output.1 559 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.69 for lighttpd 1.4.33.
  4. @%:@
  5. @%:@ Report bugs to <contact@lighttpd.net>.
  6. @%:@
  7. @%:@
  8. @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. @%:@
  10. @%:@
  11. @%:@ This configure script is free software; the Free Software Foundation
  12. @%:@ gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in @%:@(
  27. *posix*) :
  28. set -o posix ;; @%:@(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in @%:@(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in @%:@((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in @%:@ ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in @%:@(
  160. *posix*) :
  161. set -o posix ;; @%:@(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in @%:@(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in @%:@ ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: contact@lighttpd.net about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. @%:@ as_fn_unset VAR
  277. @%:@ ---------------
  278. @%:@ Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. @%:@ as_fn_set_status STATUS
  285. @%:@ -----------------------
  286. @%:@ Set @S|@? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } @%:@ as_fn_set_status
  291. @%:@ as_fn_exit STATUS
  292. @%:@ -----------------
  293. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } @%:@ as_fn_exit
  300. @%:@ as_fn_mkdir_p
  301. @%:@ -------------
  302. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } @%:@ as_fn_mkdir_p
  344. @%:@ as_fn_executable_p FILE
  345. @%:@ -----------------------
  346. @%:@ Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } @%:@ as_fn_executable_p
  351. @%:@ as_fn_append VAR VALUE
  352. @%:@ ----------------------
  353. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  354. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  355. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  356. @%:@ implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. @%:@ as_fn_arith ARG...
  369. @%:@ ------------------
  370. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  371. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  372. @%:@ must be portable across @S|@(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. @%:@ ----------------------------------------
  386. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. @%:@ script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } @%:@ as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in @%:@(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIB@&t@OBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='lighttpd'
  542. PACKAGE_TARNAME='lighttpd'
  543. PACKAGE_VERSION='1.4.33'
  544. PACKAGE_STRING='lighttpd 1.4.33'
  545. PACKAGE_BUGREPORT='contact@lighttpd.net'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/server.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. CHECK_WITH_FASTCGI_FALSE
  587. CHECK_WITH_FASTCGI_TRUE
  588. CROSS_COMPILING_FALSE
  589. CROSS_COMPILING_TRUE
  590. SENDFILE_LIB
  591. CRYPT_LIB
  592. LUA_LIBS
  593. LUA_CFLAGS
  594. MEMCACHE_LIB
  595. GDBM_LIB
  596. UUID_LIBS
  597. SQLITE_LIBS
  598. SQLITE_CFLAGS
  599. XML_LIBS
  600. XML_CFLAGS
  601. FAM_LIBS
  602. FAM_CFLAGS
  603. BZ_LIB
  604. Z_LIB
  605. PCRE_LIB
  606. PCRECONFIG
  607. SSL_LIB
  608. DL_LIB
  609. ATTR_LIB
  610. LBER_LIB
  611. LDAP_LIB
  612. MYSQL_INCLUDE
  613. MYSQL_LIBS
  614. MYSQL_CONFIG
  615. LIBEV_LIBS
  616. LIBEV_CFLAGS
  617. PKG_CONFIG_LIBDIR
  618. PKG_CONFIG_PATH
  619. PKG_CONFIG
  620. LIB@&t@OBJS
  621. LT_SYS_LIBRARY_PATH
  622. OTOOL64
  623. OTOOL
  624. LIPO
  625. NMEDIT
  626. DSYMUTIL
  627. MANIFEST_TOOL
  628. RANLIB
  629. DLLTOOL
  630. OBJDUMP
  631. NM
  632. ac_ct_DUMPBIN
  633. DUMPBIN
  634. LIBTOOL
  635. NO_RDYNAMIC_FALSE
  636. NO_RDYNAMIC_TRUE
  637. ac_ct_AR
  638. AR
  639. LN_S
  640. CPP
  641. LD
  642. FGREP
  643. EGREP
  644. GREP
  645. SED
  646. am__fastdepCC_FALSE
  647. am__fastdepCC_TRUE
  648. CCDEPMODE
  649. am__nodep
  650. AMDEPBACKSLASH
  651. AMDEP_FALSE
  652. AMDEP_TRUE
  653. am__quote
  654. am__include
  655. DEPDIR
  656. OBJEXT
  657. EXEEXT
  658. ac_ct_CC
  659. CPPFLAGS
  660. LDFLAGS
  661. CFLAGS
  662. CC
  663. AM_BACKSLASH
  664. AM_DEFAULT_VERBOSITY
  665. AM_DEFAULT_V
  666. AM_V
  667. am__untar
  668. am__tar
  669. AMTAR
  670. am__leading_dot
  671. SET_MAKE
  672. AWK
  673. mkdir_p
  674. MKDIR_P
  675. INSTALL_STRIP_PROGRAM
  676. STRIP
  677. install_sh
  678. MAKEINFO
  679. AUTOHEADER
  680. AUTOMAKE
  681. AUTOCONF
  682. ACLOCAL
  683. VERSION
  684. PACKAGE
  685. CYGPATH_W
  686. am__isrc
  687. INSTALL_DATA
  688. INSTALL_SCRIPT
  689. INSTALL_PROGRAM
  690. target_os
  691. target_vendor
  692. target_cpu
  693. target
  694. host_os
  695. host_vendor
  696. host_cpu
  697. host
  698. build_os
  699. build_vendor
  700. build_cpu
  701. build
  702. target_alias
  703. host_alias
  704. build_alias
  705. LIBS
  706. ECHO_T
  707. ECHO_N
  708. ECHO_C
  709. DEFS
  710. mandir
  711. localedir
  712. libdir
  713. psdir
  714. pdfdir
  715. dvidir
  716. htmldir
  717. infodir
  718. docdir
  719. oldincludedir
  720. includedir
  721. runstatedir
  722. localstatedir
  723. sharedstatedir
  724. sysconfdir
  725. datadir
  726. datarootdir
  727. libexecdir
  728. sbindir
  729. bindir
  730. program_transform_name
  731. prefix
  732. exec_prefix
  733. PACKAGE_URL
  734. PACKAGE_BUGREPORT
  735. PACKAGE_STRING
  736. PACKAGE_VERSION
  737. PACKAGE_TARNAME
  738. PACKAGE_NAME
  739. PATH_SEPARATOR
  740. SHELL'
  741. ac_subst_files=''
  742. ac_user_opts='
  743. enable_option_checking
  744. enable_silent_rules
  745. enable_dependency_tracking
  746. with_gnu_ld
  747. enable_static
  748. enable_shared
  749. with_pic
  750. enable_fast_install
  751. with_aix_soname
  752. with_sysroot
  753. enable_libtool_lock
  754. with_libev
  755. with_mysql
  756. with_ldap
  757. with_attr
  758. with_valgrind
  759. with_openssl
  760. with_openssl_includes
  761. with_openssl_libs
  762. with_kerberos5
  763. with_pcre
  764. with_zlib
  765. with_bzip2
  766. with_fam
  767. with_webdav_props
  768. with_webdav_locks
  769. with_gdbm
  770. with_memcache
  771. with_lua
  772. enable_lfs
  773. enable_ipv6
  774. enable_mmap
  775. enable_extra_warnings
  776. '
  777. ac_precious_vars='build_alias
  778. host_alias
  779. target_alias
  780. CC
  781. CFLAGS
  782. LDFLAGS
  783. LIBS
  784. CPPFLAGS
  785. CPP
  786. LT_SYS_LIBRARY_PATH
  787. PKG_CONFIG
  788. PKG_CONFIG_PATH
  789. PKG_CONFIG_LIBDIR
  790. LIBEV_CFLAGS
  791. LIBEV_LIBS
  792. FAM_CFLAGS
  793. FAM_LIBS
  794. XML_CFLAGS
  795. XML_LIBS
  796. SQLITE_CFLAGS
  797. SQLITE_LIBS
  798. LUA_CFLAGS
  799. LUA_LIBS'
  800. # Initialize some variables set by options.
  801. ac_init_help=
  802. ac_init_version=false
  803. ac_unrecognized_opts=
  804. ac_unrecognized_sep=
  805. # The variables have the same names as the options, with
  806. # dashes changed to underlines.
  807. cache_file=/dev/null
  808. exec_prefix=NONE
  809. no_create=
  810. no_recursion=
  811. prefix=NONE
  812. program_prefix=NONE
  813. program_suffix=NONE
  814. program_transform_name=s,x,x,
  815. silent=
  816. site=
  817. srcdir=
  818. verbose=
  819. x_includes=NONE
  820. x_libraries=NONE
  821. # Installation directory options.
  822. # These are left unexpanded so users can "make install exec_prefix=/foo"
  823. # and all the variables that are supposed to be based on exec_prefix
  824. # by default will actually change.
  825. # Use braces instead of parens because sh, perl, etc. also accept them.
  826. # (The list follows the same order as the GNU Coding Standards.)
  827. bindir='${exec_prefix}/bin'
  828. sbindir='${exec_prefix}/sbin'
  829. libexecdir='${exec_prefix}/libexec'
  830. datarootdir='${prefix}/share'
  831. datadir='${datarootdir}'
  832. sysconfdir='${prefix}/etc'
  833. sharedstatedir='${prefix}/com'
  834. localstatedir='${prefix}/var'
  835. runstatedir='${localstatedir}/run'
  836. includedir='${prefix}/include'
  837. oldincludedir='/usr/include'
  838. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  839. infodir='${datarootdir}/info'
  840. htmldir='${docdir}'
  841. dvidir='${docdir}'
  842. pdfdir='${docdir}'
  843. psdir='${docdir}'
  844. libdir='${exec_prefix}/lib'
  845. localedir='${datarootdir}/locale'
  846. mandir='${datarootdir}/man'
  847. ac_prev=
  848. ac_dashdash=
  849. for ac_option
  850. do
  851. # If the previous option needs an argument, assign it.
  852. if test -n "$ac_prev"; then
  853. eval $ac_prev=\$ac_option
  854. ac_prev=
  855. continue
  856. fi
  857. case $ac_option in
  858. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  859. *=) ac_optarg= ;;
  860. *) ac_optarg=yes ;;
  861. esac
  862. # Accept the important Cygnus configure options, so we can diagnose typos.
  863. case $ac_dashdash$ac_option in
  864. --)
  865. ac_dashdash=yes ;;
  866. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  867. ac_prev=bindir ;;
  868. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  869. bindir=$ac_optarg ;;
  870. -build | --build | --buil | --bui | --bu)
  871. ac_prev=build_alias ;;
  872. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  873. build_alias=$ac_optarg ;;
  874. -cache-file | --cache-file | --cache-fil | --cache-fi \
  875. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  876. ac_prev=cache_file ;;
  877. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  878. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  879. cache_file=$ac_optarg ;;
  880. --config-cache | -C)
  881. cache_file=config.cache ;;
  882. -datadir | --datadir | --datadi | --datad)
  883. ac_prev=datadir ;;
  884. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  885. datadir=$ac_optarg ;;
  886. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  887. | --dataroo | --dataro | --datar)
  888. ac_prev=datarootdir ;;
  889. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  890. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  891. datarootdir=$ac_optarg ;;
  892. -disable-* | --disable-*)
  893. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  894. # Reject names that are not valid shell variable names.
  895. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  896. as_fn_error $? "invalid feature name: $ac_useropt"
  897. ac_useropt_orig=$ac_useropt
  898. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  899. case $ac_user_opts in
  900. *"
  901. "enable_$ac_useropt"
  902. "*) ;;
  903. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  904. ac_unrecognized_sep=', ';;
  905. esac
  906. eval enable_$ac_useropt=no ;;
  907. -docdir | --docdir | --docdi | --doc | --do)
  908. ac_prev=docdir ;;
  909. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  910. docdir=$ac_optarg ;;
  911. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  912. ac_prev=dvidir ;;
  913. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  914. dvidir=$ac_optarg ;;
  915. -enable-* | --enable-*)
  916. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  919. as_fn_error $? "invalid feature name: $ac_useropt"
  920. ac_useropt_orig=$ac_useropt
  921. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  922. case $ac_user_opts in
  923. *"
  924. "enable_$ac_useropt"
  925. "*) ;;
  926. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  927. ac_unrecognized_sep=', ';;
  928. esac
  929. eval enable_$ac_useropt=\$ac_optarg ;;
  930. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  931. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  932. | --exec | --exe | --ex)
  933. ac_prev=exec_prefix ;;
  934. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  935. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  936. | --exec=* | --exe=* | --ex=*)
  937. exec_prefix=$ac_optarg ;;
  938. -gas | --gas | --ga | --g)
  939. # Obsolete; use --with-gas.
  940. with_gas=yes ;;
  941. -help | --help | --hel | --he | -h)
  942. ac_init_help=long ;;
  943. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  944. ac_init_help=recursive ;;
  945. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  946. ac_init_help=short ;;
  947. -host | --host | --hos | --ho)
  948. ac_prev=host_alias ;;
  949. -host=* | --host=* | --hos=* | --ho=*)
  950. host_alias=$ac_optarg ;;
  951. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  952. ac_prev=htmldir ;;
  953. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  954. | --ht=*)
  955. htmldir=$ac_optarg ;;
  956. -includedir | --includedir | --includedi | --included | --include \
  957. | --includ | --inclu | --incl | --inc)
  958. ac_prev=includedir ;;
  959. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  960. | --includ=* | --inclu=* | --incl=* | --inc=*)
  961. includedir=$ac_optarg ;;
  962. -infodir | --infodir | --infodi | --infod | --info | --inf)
  963. ac_prev=infodir ;;
  964. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  965. infodir=$ac_optarg ;;
  966. -libdir | --libdir | --libdi | --libd)
  967. ac_prev=libdir ;;
  968. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  969. libdir=$ac_optarg ;;
  970. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  971. | --libexe | --libex | --libe)
  972. ac_prev=libexecdir ;;
  973. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  974. | --libexe=* | --libex=* | --libe=*)
  975. libexecdir=$ac_optarg ;;
  976. -localedir | --localedir | --localedi | --localed | --locale)
  977. ac_prev=localedir ;;
  978. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  979. localedir=$ac_optarg ;;
  980. -localstatedir | --localstatedir | --localstatedi | --localstated \
  981. | --localstate | --localstat | --localsta | --localst | --locals)
  982. ac_prev=localstatedir ;;
  983. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  984. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  985. localstatedir=$ac_optarg ;;
  986. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  987. ac_prev=mandir ;;
  988. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  989. mandir=$ac_optarg ;;
  990. -nfp | --nfp | --nf)
  991. # Obsolete; use --without-fp.
  992. with_fp=no ;;
  993. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  994. | --no-cr | --no-c | -n)
  995. no_create=yes ;;
  996. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  997. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  998. no_recursion=yes ;;
  999. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1000. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1001. | --oldin | --oldi | --old | --ol | --o)
  1002. ac_prev=oldincludedir ;;
  1003. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1004. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1005. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1006. oldincludedir=$ac_optarg ;;
  1007. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1008. ac_prev=prefix ;;
  1009. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1010. prefix=$ac_optarg ;;
  1011. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1012. | --program-pre | --program-pr | --program-p)
  1013. ac_prev=program_prefix ;;
  1014. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1015. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1016. program_prefix=$ac_optarg ;;
  1017. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1018. | --program-suf | --program-su | --program-s)
  1019. ac_prev=program_suffix ;;
  1020. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1021. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1022. program_suffix=$ac_optarg ;;
  1023. -program-transform-name | --program-transform-name \
  1024. | --program-transform-nam | --program-transform-na \
  1025. | --program-transform-n | --program-transform- \
  1026. | --program-transform | --program-transfor \
  1027. | --program-transfo | --program-transf \
  1028. | --program-trans | --program-tran \
  1029. | --progr-tra | --program-tr | --program-t)
  1030. ac_prev=program_transform_name ;;
  1031. -program-transform-name=* | --program-transform-name=* \
  1032. | --program-transform-nam=* | --program-transform-na=* \
  1033. | --program-transform-n=* | --program-transform-=* \
  1034. | --program-transform=* | --program-transfor=* \
  1035. | --program-transfo=* | --program-transf=* \
  1036. | --program-trans=* | --program-tran=* \
  1037. | --progr-tra=* | --program-tr=* | --program-t=*)
  1038. program_transform_name=$ac_optarg ;;
  1039. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1040. ac_prev=pdfdir ;;
  1041. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1042. pdfdir=$ac_optarg ;;
  1043. -psdir | --psdir | --psdi | --psd | --ps)
  1044. ac_prev=psdir ;;
  1045. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1046. psdir=$ac_optarg ;;
  1047. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1048. | -silent | --silent | --silen | --sile | --sil)
  1049. silent=yes ;;
  1050. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1051. | --runstate | --runstat | --runsta | --runst | --runs \
  1052. | --run | --ru | --r)
  1053. ac_prev=runstatedir ;;
  1054. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1055. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1056. | --run=* | --ru=* | --r=*)
  1057. runstatedir=$ac_optarg ;;
  1058. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1059. ac_prev=sbindir ;;
  1060. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1061. | --sbi=* | --sb=*)
  1062. sbindir=$ac_optarg ;;
  1063. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1064. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1065. | --sharedst | --shareds | --shared | --share | --shar \
  1066. | --sha | --sh)
  1067. ac_prev=sharedstatedir ;;
  1068. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1069. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1070. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1071. | --sha=* | --sh=*)
  1072. sharedstatedir=$ac_optarg ;;
  1073. -site | --site | --sit)
  1074. ac_prev=site ;;
  1075. -site=* | --site=* | --sit=*)
  1076. site=$ac_optarg ;;
  1077. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1078. ac_prev=srcdir ;;
  1079. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1080. srcdir=$ac_optarg ;;
  1081. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1082. | --syscon | --sysco | --sysc | --sys | --sy)
  1083. ac_prev=sysconfdir ;;
  1084. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1085. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1086. sysconfdir=$ac_optarg ;;
  1087. -target | --target | --targe | --targ | --tar | --ta | --t)
  1088. ac_prev=target_alias ;;
  1089. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1090. target_alias=$ac_optarg ;;
  1091. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1092. verbose=yes ;;
  1093. -version | --version | --versio | --versi | --vers | -V)
  1094. ac_init_version=: ;;
  1095. -with-* | --with-*)
  1096. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1097. # Reject names that are not valid shell variable names.
  1098. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1099. as_fn_error $? "invalid package name: $ac_useropt"
  1100. ac_useropt_orig=$ac_useropt
  1101. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1102. case $ac_user_opts in
  1103. *"
  1104. "with_$ac_useropt"
  1105. "*) ;;
  1106. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1107. ac_unrecognized_sep=', ';;
  1108. esac
  1109. eval with_$ac_useropt=\$ac_optarg ;;
  1110. -without-* | --without-*)
  1111. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1112. # Reject names that are not valid shell variable names.
  1113. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1114. as_fn_error $? "invalid package name: $ac_useropt"
  1115. ac_useropt_orig=$ac_useropt
  1116. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1117. case $ac_user_opts in
  1118. *"
  1119. "with_$ac_useropt"
  1120. "*) ;;
  1121. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1122. ac_unrecognized_sep=', ';;
  1123. esac
  1124. eval with_$ac_useropt=no ;;
  1125. --x)
  1126. # Obsolete; use --with-x.
  1127. with_x=yes ;;
  1128. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1129. | --x-incl | --x-inc | --x-in | --x-i)
  1130. ac_prev=x_includes ;;
  1131. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1132. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1133. x_includes=$ac_optarg ;;
  1134. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1135. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1136. ac_prev=x_libraries ;;
  1137. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1138. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1139. x_libraries=$ac_optarg ;;
  1140. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1141. Try \`$0 --help' for more information"
  1142. ;;
  1143. *=*)
  1144. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1145. # Reject names that are not valid shell variable names.
  1146. case $ac_envvar in #(
  1147. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1148. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1149. esac
  1150. eval $ac_envvar=\$ac_optarg
  1151. export $ac_envvar ;;
  1152. *)
  1153. # FIXME: should be removed in autoconf 3.0.
  1154. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1155. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1156. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1157. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1158. ;;
  1159. esac
  1160. done
  1161. if test -n "$ac_prev"; then
  1162. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1163. as_fn_error $? "missing argument to $ac_option"
  1164. fi
  1165. if test -n "$ac_unrecognized_opts"; then
  1166. case $enable_option_checking in
  1167. no) ;;
  1168. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1169. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1170. esac
  1171. fi
  1172. # Check all directory arguments for consistency.
  1173. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1174. datadir sysconfdir sharedstatedir localstatedir includedir \
  1175. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1176. libdir localedir mandir runstatedir
  1177. do
  1178. eval ac_val=\$$ac_var
  1179. # Remove trailing slashes.
  1180. case $ac_val in
  1181. */ )
  1182. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1183. eval $ac_var=\$ac_val;;
  1184. esac
  1185. # Be sure to have absolute directory names.
  1186. case $ac_val in
  1187. [\\/$]* | ?:[\\/]* ) continue;;
  1188. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1189. esac
  1190. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1191. done
  1192. # There might be people who depend on the old broken behavior: `$host'
  1193. # used to hold the argument of --host etc.
  1194. # FIXME: To remove some day.
  1195. build=$build_alias
  1196. host=$host_alias
  1197. target=$target_alias
  1198. # FIXME: To remove some day.
  1199. if test "x$host_alias" != x; then
  1200. if test "x$build_alias" = x; then
  1201. cross_compiling=maybe
  1202. elif test "x$build_alias" != "x$host_alias"; then
  1203. cross_compiling=yes
  1204. fi
  1205. fi
  1206. ac_tool_prefix=
  1207. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1208. test "$silent" = yes && exec 6>/dev/null
  1209. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1210. ac_ls_di=`ls -di .` &&
  1211. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1212. as_fn_error $? "working directory cannot be determined"
  1213. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1214. as_fn_error $? "pwd does not report name of working directory"
  1215. # Find the source files, if location was not specified.
  1216. if test -z "$srcdir"; then
  1217. ac_srcdir_defaulted=yes
  1218. # Try the directory containing this script, then the parent directory.
  1219. ac_confdir=`$as_dirname -- "$as_myself" ||
  1220. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1221. X"$as_myself" : 'X\(//\)[^/]' \| \
  1222. X"$as_myself" : 'X\(//\)$' \| \
  1223. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1224. $as_echo X"$as_myself" |
  1225. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1226. s//\1/
  1227. q
  1228. }
  1229. /^X\(\/\/\)[^/].*/{
  1230. s//\1/
  1231. q
  1232. }
  1233. /^X\(\/\/\)$/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\).*/{
  1238. s//\1/
  1239. q
  1240. }
  1241. s/.*/./; q'`
  1242. srcdir=$ac_confdir
  1243. if test ! -r "$srcdir/$ac_unique_file"; then
  1244. srcdir=..
  1245. fi
  1246. else
  1247. ac_srcdir_defaulted=no
  1248. fi
  1249. if test ! -r "$srcdir/$ac_unique_file"; then
  1250. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1251. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1252. fi
  1253. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1254. ac_abs_confdir=`(
  1255. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1256. pwd)`
  1257. # When building in place, set srcdir=.
  1258. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1259. srcdir=.
  1260. fi
  1261. # Remove unnecessary trailing slashes from srcdir.
  1262. # Double slashes in file names in object file debugging info
  1263. # mess up M-x gdb in Emacs.
  1264. case $srcdir in
  1265. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1266. esac
  1267. for ac_var in $ac_precious_vars; do
  1268. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1269. eval ac_env_${ac_var}_value=\$${ac_var}
  1270. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1271. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1272. done
  1273. #
  1274. # Report the --help message.
  1275. #
  1276. if test "$ac_init_help" = "long"; then
  1277. # Omit some internal or obsolete options to make the list less imposing.
  1278. # This message is too long to be a string in the A/UX 3.1 sh.
  1279. cat <<_ACEOF
  1280. \`configure' configures lighttpd 1.4.33 to adapt to many kinds of systems.
  1281. Usage: $0 [OPTION]... [VAR=VALUE]...
  1282. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1283. VAR=VALUE. See below for descriptions of some of the useful variables.
  1284. Defaults for the options are specified in brackets.
  1285. Configuration:
  1286. -h, --help display this help and exit
  1287. --help=short display options specific to this package
  1288. --help=recursive display the short help of all the included packages
  1289. -V, --version display version information and exit
  1290. -q, --quiet, --silent do not print \`checking ...' messages
  1291. --cache-file=FILE cache test results in FILE [disabled]
  1292. -C, --config-cache alias for \`--cache-file=config.cache'
  1293. -n, --no-create do not create output files
  1294. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1295. Installation directories:
  1296. --prefix=PREFIX install architecture-independent files in PREFIX
  1297. @<:@@S|@ac_default_prefix@:>@
  1298. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1299. @<:@PREFIX@:>@
  1300. By default, \`make install' will install all the files in
  1301. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1302. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1303. for instance \`--prefix=\$HOME'.
  1304. For better control, use the options below.
  1305. Fine tuning of the installation directories:
  1306. --bindir=DIR user executables [EPREFIX/bin]
  1307. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1308. --libexecdir=DIR program executables [EPREFIX/libexec]
  1309. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1310. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1311. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1312. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1313. --libdir=DIR object code libraries [EPREFIX/lib]
  1314. --includedir=DIR C header files [PREFIX/include]
  1315. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1316. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1317. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1318. --infodir=DIR info documentation [DATAROOTDIR/info]
  1319. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1320. --mandir=DIR man documentation [DATAROOTDIR/man]
  1321. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/lighttpd@:>@
  1322. --htmldir=DIR html documentation [DOCDIR]
  1323. --dvidir=DIR dvi documentation [DOCDIR]
  1324. --pdfdir=DIR pdf documentation [DOCDIR]
  1325. --psdir=DIR ps documentation [DOCDIR]
  1326. _ACEOF
  1327. cat <<\_ACEOF
  1328. Program names:
  1329. --program-prefix=PREFIX prepend PREFIX to installed program names
  1330. --program-suffix=SUFFIX append SUFFIX to installed program names
  1331. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1332. System types:
  1333. --build=BUILD configure for building on BUILD [guessed]
  1334. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1335. --target=TARGET configure for building compilers for TARGET [HOST]
  1336. _ACEOF
  1337. fi
  1338. if test -n "$ac_init_help"; then
  1339. case $ac_init_help in
  1340. short | recursive ) echo "Configuration of lighttpd 1.4.33:";;
  1341. esac
  1342. cat <<\_ACEOF
  1343. Optional Features:
  1344. --disable-option-checking ignore unrecognized --enable/--with options
  1345. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1346. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1347. --enable-silent-rules less verbose build output (undo: "make V=1")
  1348. --disable-silent-rules verbose build output (undo: "make V=0")
  1349. --enable-dependency-tracking
  1350. do not reject slow dependency extractors
  1351. --disable-dependency-tracking
  1352. speeds up one-time build
  1353. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
  1354. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1355. --enable-fast-install@<:@=PKGS@:>@
  1356. optimize for fast installation @<:@default=yes@:>@
  1357. --disable-libtool-lock avoid locking (might break parallel builds)
  1358. --enable-lfs Turn on Large File System (default)
  1359. --disable-ipv6 disable IPv6 support
  1360. --enable-mmap use mmap if available (DANGEROUS, allows local users
  1361. to trigger SIGBUS crashes)
  1362. --enable-extra-warnings enable extra warnings (gcc specific)
  1363. Optional Packages:
  1364. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1365. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1366. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1367. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1368. both@:>@
  1369. --with-aix-soname=aix|svr4|both
  1370. shared library versioning (aka "SONAME") variant to
  1371. provide on AIX, @<:@default=aix@:>@.
  1372. --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the
  1373. compiler's sysroot if not specified).
  1374. --with-libev@<:@=PATH@:>@ Include libev support for fdevent handlers in
  1375. PATH/include and PATH/lib
  1376. --with-mysql@<:@=PATH@:>@ Include MySQL support. PATH is the path to
  1377. 'mysql_config'
  1378. --with-ldap enable LDAP support
  1379. --with-attr enable extended attribute support
  1380. --with-valgrind enable internal support for valgrind
  1381. --with-openssl@<:@=DIR@:>@ Include openssl support (default no)
  1382. --with-openssl-includes=DIR
  1383. OpenSSL includes
  1384. --with-openssl-libs=DIR OpenSSL libraries
  1385. --with-kerberos5 use Kerberos5 support with OpenSSL
  1386. --with-pcre Enable pcre support (default yes)
  1387. --with-zlib Enable zlib support for mod_compress
  1388. --with-bzip2 Enable bzip2 support for mod_compress
  1389. --with-fam fam/gamin for reducing number of stat() calls
  1390. --with-webdav-props properties in mod_webdav
  1391. --with-webdav-locks locks in mod_webdav
  1392. --with-gdbm gdbm storage for mod_trigger_b4_dl
  1393. --with-memcache memcached storage for mod_trigger_b4_dl
  1394. --with-lua lua engine for mod_cml
  1395. Some influential environment variables:
  1396. CC C compiler command
  1397. CFLAGS C compiler flags
  1398. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1399. nonstandard directory <lib dir>
  1400. LIBS libraries to pass to the linker, e.g. -l<library>
  1401. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1402. you have headers in a nonstandard directory <include dir>
  1403. CPP C preprocessor
  1404. LT_SYS_LIBRARY_PATH
  1405. User-defined run-time library search path.
  1406. PKG_CONFIG path to pkg-config utility
  1407. PKG_CONFIG_PATH
  1408. directories to add to pkg-config's search path
  1409. PKG_CONFIG_LIBDIR
  1410. path overriding pkg-config's built-in search path
  1411. LIBEV_CFLAGS
  1412. C compiler flags for LIBEV, overriding pkg-config
  1413. LIBEV_LIBS linker flags for LIBEV, overriding pkg-config
  1414. FAM_CFLAGS C compiler flags for FAM, overriding pkg-config
  1415. FAM_LIBS linker flags for FAM, overriding pkg-config
  1416. XML_CFLAGS C compiler flags for XML, overriding pkg-config
  1417. XML_LIBS linker flags for XML, overriding pkg-config
  1418. SQLITE_CFLAGS
  1419. C compiler flags for SQLITE, overriding pkg-config
  1420. SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
  1421. LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
  1422. LUA_LIBS linker flags for LUA, overriding pkg-config
  1423. Use these variables to override the choices made by `configure' or to help
  1424. it to find libraries and programs with nonstandard names/locations.
  1425. Report bugs to <contact@lighttpd.net>.
  1426. _ACEOF
  1427. ac_status=$?
  1428. fi
  1429. if test "$ac_init_help" = "recursive"; then
  1430. # If there are subdirs, report their specific --help.
  1431. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1432. test -d "$ac_dir" ||
  1433. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1434. continue
  1435. ac_builddir=.
  1436. case "$ac_dir" in
  1437. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1438. *)
  1439. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1440. # A ".." for each directory in $ac_dir_suffix.
  1441. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1442. case $ac_top_builddir_sub in
  1443. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1444. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1445. esac ;;
  1446. esac
  1447. ac_abs_top_builddir=$ac_pwd
  1448. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1449. # for backward compatibility:
  1450. ac_top_builddir=$ac_top_build_prefix
  1451. case $srcdir in
  1452. .) # We are building in place.
  1453. ac_srcdir=.
  1454. ac_top_srcdir=$ac_top_builddir_sub
  1455. ac_abs_top_srcdir=$ac_pwd ;;
  1456. [\\/]* | ?:[\\/]* ) # Absolute name.
  1457. ac_srcdir=$srcdir$ac_dir_suffix;
  1458. ac_top_srcdir=$srcdir
  1459. ac_abs_top_srcdir=$srcdir ;;
  1460. *) # Relative name.
  1461. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1462. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1463. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1464. esac
  1465. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1466. cd "$ac_dir" || { ac_status=$?; continue; }
  1467. # Check for guested configure.
  1468. if test -f "$ac_srcdir/configure.gnu"; then
  1469. echo &&
  1470. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1471. elif test -f "$ac_srcdir/configure"; then
  1472. echo &&
  1473. $SHELL "$ac_srcdir/configure" --help=recursive
  1474. else
  1475. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1476. fi || ac_status=$?
  1477. cd "$ac_pwd" || { ac_status=$?; break; }
  1478. done
  1479. fi
  1480. test -n "$ac_init_help" && exit $ac_status
  1481. if $ac_init_version; then
  1482. cat <<\_ACEOF
  1483. lighttpd configure 1.4.33
  1484. generated by GNU Autoconf 2.69
  1485. Copyright (C) 2012 Free Software Foundation, Inc.
  1486. This configure script is free software; the Free Software Foundation
  1487. gives unlimited permission to copy, distribute and modify it.
  1488. _ACEOF
  1489. exit
  1490. fi
  1491. ## ------------------------ ##
  1492. ## Autoconf initialization. ##
  1493. ## ------------------------ ##
  1494. @%:@ ac_fn_c_try_compile LINENO
  1495. @%:@ --------------------------
  1496. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1497. ac_fn_c_try_compile ()
  1498. {
  1499. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1500. rm -f conftest.$ac_objext
  1501. if { { ac_try="$ac_compile"
  1502. case "(($ac_try" in
  1503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1504. *) ac_try_echo=$ac_try;;
  1505. esac
  1506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1507. $as_echo "$ac_try_echo"; } >&5
  1508. (eval "$ac_compile") 2>conftest.err
  1509. ac_status=$?
  1510. if test -s conftest.err; then
  1511. grep -v '^ *+' conftest.err >conftest.er1
  1512. cat conftest.er1 >&5
  1513. mv -f conftest.er1 conftest.err
  1514. fi
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } && {
  1517. test -z "$ac_c_werror_flag" ||
  1518. test ! -s conftest.err
  1519. } && test -s conftest.$ac_objext; then :
  1520. ac_retval=0
  1521. else
  1522. $as_echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. ac_retval=1
  1525. fi
  1526. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1527. as_fn_set_status $ac_retval
  1528. } @%:@ ac_fn_c_try_compile
  1529. @%:@ ac_fn_c_try_cpp LINENO
  1530. @%:@ ----------------------
  1531. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1532. ac_fn_c_try_cpp ()
  1533. {
  1534. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1535. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1536. case "(($ac_try" in
  1537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1538. *) ac_try_echo=$ac_try;;
  1539. esac
  1540. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1541. $as_echo "$ac_try_echo"; } >&5
  1542. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1543. ac_status=$?
  1544. if test -s conftest.err; then
  1545. grep -v '^ *+' conftest.err >conftest.er1
  1546. cat conftest.er1 >&5
  1547. mv -f conftest.er1 conftest.err
  1548. fi
  1549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1550. test $ac_status = 0; } > conftest.i && {
  1551. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1552. test ! -s conftest.err
  1553. }; then :
  1554. ac_retval=0
  1555. else
  1556. $as_echo "$as_me: failed program was:" >&5
  1557. sed 's/^/| /' conftest.$ac_ext >&5
  1558. ac_retval=1
  1559. fi
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. as_fn_set_status $ac_retval
  1562. } @%:@ ac_fn_c_try_cpp
  1563. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1564. @%:@ -------------------------------------------------------
  1565. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1566. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1567. @%:@ accordingly.
  1568. ac_fn_c_check_header_mongrel ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. if eval \${$3+:} false; then :
  1572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1573. $as_echo_n "checking for $2... " >&6; }
  1574. if eval \${$3+:} false; then :
  1575. $as_echo_n "(cached) " >&6
  1576. fi
  1577. eval ac_res=\$$3
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1579. $as_echo "$ac_res" >&6; }
  1580. else
  1581. # Is the header compilable?
  1582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1583. $as_echo_n "checking $2 usability... " >&6; }
  1584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1585. /* end confdefs.h. */
  1586. $4
  1587. @%:@include <$2>
  1588. _ACEOF
  1589. if ac_fn_c_try_compile "$LINENO"; then :
  1590. ac_header_compiler=yes
  1591. else
  1592. ac_header_compiler=no
  1593. fi
  1594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1596. $as_echo "$ac_header_compiler" >&6; }
  1597. # Is the header present?
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1599. $as_echo_n "checking $2 presence... " >&6; }
  1600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1601. /* end confdefs.h. */
  1602. @%:@include <$2>
  1603. _ACEOF
  1604. if ac_fn_c_try_cpp "$LINENO"; then :
  1605. ac_header_preproc=yes
  1606. else
  1607. ac_header_preproc=no
  1608. fi
  1609. rm -f conftest.err conftest.i conftest.$ac_ext
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1611. $as_echo "$ac_header_preproc" >&6; }
  1612. # So? What about this header?
  1613. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1614. yes:no: )
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1616. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1618. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1619. ;;
  1620. no:yes:* )
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1622. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1624. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1626. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1628. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1630. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1631. ( $as_echo "## ----------------------------------- ##
  1632. ## Report this to contact@lighttpd.net ##
  1633. ## ----------------------------------- ##"
  1634. ) | sed "s/^/$as_me: WARNING: /" >&2
  1635. ;;
  1636. esac
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1638. $as_echo_n "checking for $2... " >&6; }
  1639. if eval \${$3+:} false; then :
  1640. $as_echo_n "(cached) " >&6
  1641. else
  1642. eval "$3=\$ac_header_compiler"
  1643. fi
  1644. eval ac_res=\$$3
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1646. $as_echo "$ac_res" >&6; }
  1647. fi
  1648. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1649. } @%:@ ac_fn_c_check_header_mongrel
  1650. @%:@ ac_fn_c_try_run LINENO
  1651. @%:@ ----------------------
  1652. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1653. @%:@ that executables *can* be run.
  1654. ac_fn_c_try_run ()
  1655. {
  1656. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1657. if { { ac_try="$ac_link"
  1658. case "(($ac_try" in
  1659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1660. *) ac_try_echo=$ac_try;;
  1661. esac
  1662. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1663. $as_echo "$ac_try_echo"; } >&5
  1664. (eval "$ac_link") 2>&5
  1665. ac_status=$?
  1666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1667. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1668. { { case "(($ac_try" in
  1669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1670. *) ac_try_echo=$ac_try;;
  1671. esac
  1672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1673. $as_echo "$ac_try_echo"; } >&5
  1674. (eval "$ac_try") 2>&5
  1675. ac_status=$?
  1676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1677. test $ac_status = 0; }; }; then :
  1678. ac_retval=0
  1679. else
  1680. $as_echo "$as_me: program exited with status $ac_status" >&5
  1681. $as_echo "$as_me: failed program was:" >&5
  1682. sed 's/^/| /' conftest.$ac_ext >&5
  1683. ac_retval=$ac_status
  1684. fi
  1685. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1686. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1687. as_fn_set_status $ac_retval
  1688. } @%:@ ac_fn_c_try_run
  1689. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1690. @%:@ -------------------------------------------------------
  1691. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1692. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1693. ac_fn_c_check_header_compile ()
  1694. {
  1695. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1697. $as_echo_n "checking for $2... " >&6; }
  1698. if eval \${$3+:} false; then :
  1699. $as_echo_n "(cached) " >&6
  1700. else
  1701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1702. /* end confdefs.h. */
  1703. $4
  1704. @%:@include <$2>
  1705. _ACEOF
  1706. if ac_fn_c_try_compile "$LINENO"; then :
  1707. eval "$3=yes"
  1708. else
  1709. eval "$3=no"
  1710. fi
  1711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1712. fi
  1713. eval ac_res=\$$3
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1715. $as_echo "$ac_res" >&6; }
  1716. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1717. } @%:@ ac_fn_c_check_header_compile
  1718. @%:@ ac_fn_c_try_link LINENO
  1719. @%:@ -----------------------
  1720. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1721. ac_fn_c_try_link ()
  1722. {
  1723. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1724. rm -f conftest.$ac_objext conftest$ac_exeext
  1725. if { { ac_try="$ac_link"
  1726. case "(($ac_try" in
  1727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1728. *) ac_try_echo=$ac_try;;
  1729. esac
  1730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1731. $as_echo "$ac_try_echo"; } >&5
  1732. (eval "$ac_link") 2>conftest.err
  1733. ac_status=$?
  1734. if test -s conftest.err; then
  1735. grep -v '^ *+' conftest.err >conftest.er1
  1736. cat conftest.er1 >&5
  1737. mv -f conftest.er1 conftest.err
  1738. fi
  1739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1740. test $ac_status = 0; } && {
  1741. test -z "$ac_c_werror_flag" ||
  1742. test ! -s conftest.err
  1743. } && test -s conftest$ac_exeext && {
  1744. test "$cross_compiling" = yes ||
  1745. test -x conftest$ac_exeext
  1746. }; then :
  1747. ac_retval=0
  1748. else
  1749. $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_retval=1
  1752. fi
  1753. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1754. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1755. # interfere with the next link command; also delete a directory that is
  1756. # left behind by Apple's compiler. We do this before executing the actions.
  1757. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1758. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1759. as_fn_set_status $ac_retval
  1760. } @%:@ ac_fn_c_try_link
  1761. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1762. @%:@ ----------------------------------
  1763. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1764. ac_fn_c_check_func ()
  1765. {
  1766. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1768. $as_echo_n "checking for $2... " >&6; }
  1769. if eval \${$3+:} false; then :
  1770. $as_echo_n "(cached) " >&6
  1771. else
  1772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1773. /* end confdefs.h. */
  1774. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1775. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1776. #define $2 innocuous_$2
  1777. /* System header to define __stub macros and hopefully few prototypes,
  1778. which can conflict with char $2 (); below.
  1779. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1780. <limits.h> exists even on freestanding compilers. */
  1781. #ifdef __STDC__
  1782. # include <limits.h>
  1783. #else
  1784. # include <assert.h>
  1785. #endif
  1786. #undef $2
  1787. /* Override any GCC internal prototype to avoid an error.
  1788. Use char because int might match the return type of a GCC
  1789. builtin and then its argument prototype would still apply. */
  1790. #ifdef __cplusplus
  1791. extern "C"
  1792. #endif
  1793. char $2 ();
  1794. /* The GNU C library defines this for functions which it implements
  1795. to always fail with ENOSYS. Some functions are actually named
  1796. something starting with __ and the normal name is an alias. */
  1797. #if defined __stub_$2 || defined __stub___$2
  1798. choke me
  1799. #endif
  1800. int
  1801. main ()
  1802. {
  1803. return $2 ();
  1804. ;
  1805. return 0;
  1806. }
  1807. _ACEOF
  1808. if ac_fn_c_try_link "$LINENO"; then :
  1809. eval "$3=yes"
  1810. else
  1811. eval "$3=no"
  1812. fi
  1813. rm -f core conftest.err conftest.$ac_objext \
  1814. conftest$ac_exeext conftest.$ac_ext
  1815. fi
  1816. eval ac_res=\$$3
  1817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1818. $as_echo "$ac_res" >&6; }
  1819. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1820. } @%:@ ac_fn_c_check_func
  1821. @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1822. @%:@ -------------------------------------------
  1823. @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
  1824. @%:@ variable VAR accordingly.
  1825. ac_fn_c_check_type ()
  1826. {
  1827. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1829. $as_echo_n "checking for $2... " >&6; }
  1830. if eval \${$3+:} false; then :
  1831. $as_echo_n "(cached) " >&6
  1832. else
  1833. eval "$3=no"
  1834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1835. /* end confdefs.h. */
  1836. $4
  1837. int
  1838. main ()
  1839. {
  1840. if (sizeof ($2))
  1841. return 0;
  1842. ;
  1843. return 0;
  1844. }
  1845. _ACEOF
  1846. if ac_fn_c_try_compile "$LINENO"; then :
  1847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h. */
  1849. $4
  1850. int
  1851. main ()
  1852. {
  1853. if (sizeof (($2)))
  1854. return 0;
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. if ac_fn_c_try_compile "$LINENO"; then :
  1860. else
  1861. eval "$3=yes"
  1862. fi
  1863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1864. fi
  1865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1866. fi
  1867. eval ac_res=\$$3
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1869. $as_echo "$ac_res" >&6; }
  1870. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1871. } @%:@ ac_fn_c_check_type
  1872. @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1873. @%:@ ----------------------------------------------------
  1874. @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
  1875. @%:@ INCLUDES, setting cache variable VAR accordingly.
  1876. ac_fn_c_check_member ()
  1877. {
  1878. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1880. $as_echo_n "checking for $2.$3... " >&6; }
  1881. if eval \${$4+:} false; then :
  1882. $as_echo_n "(cached) " >&6
  1883. else
  1884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1885. /* end confdefs.h. */
  1886. $5
  1887. int
  1888. main ()
  1889. {
  1890. static $2 ac_aggr;
  1891. if (ac_aggr.$3)
  1892. return 0;
  1893. ;
  1894. return 0;
  1895. }
  1896. _ACEOF
  1897. if ac_fn_c_try_compile "$LINENO"; then :
  1898. eval "$4=yes"
  1899. else
  1900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1901. /* end confdefs.h. */
  1902. $5
  1903. int
  1904. main ()
  1905. {
  1906. static $2 ac_aggr;
  1907. if (sizeof ac_aggr.$3)
  1908. return 0;
  1909. ;
  1910. return 0;
  1911. }
  1912. _ACEOF
  1913. if ac_fn_c_try_compile "$LINENO"; then :
  1914. eval "$4=yes"
  1915. else
  1916. eval "$4=no"
  1917. fi
  1918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1919. fi
  1920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1921. fi
  1922. eval ac_res=\$$4
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1924. $as_echo "$ac_res" >&6; }
  1925. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1926. } @%:@ ac_fn_c_check_member
  1927. @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1928. @%:@ --------------------------------------------
  1929. @%:@ Tries to find the compile-time value of EXPR in a program that includes
  1930. @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
  1931. @%:@ computed
  1932. ac_fn_c_compute_int ()
  1933. {
  1934. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1935. if test "$cross_compiling" = yes; then
  1936. # Depending upon the size, compute the lo and hi bounds.
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. $4
  1940. int
  1941. main ()
  1942. {
  1943. static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
  1944. test_array @<:@0@:>@ = 0;
  1945. return test_array @<:@0@:>@;
  1946. ;
  1947. return 0;
  1948. }
  1949. _ACEOF
  1950. if ac_fn_c_try_compile "$LINENO"; then :
  1951. ac_lo=0 ac_mid=0
  1952. while :; do
  1953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. $4
  1956. int
  1957. main ()
  1958. {
  1959. static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
  1960. test_array @<:@0@:>@ = 0;
  1961. return test_array @<:@0@:>@;
  1962. ;
  1963. return 0;
  1964. }
  1965. _ACEOF
  1966. if ac_fn_c_try_compile "$LINENO"; then :
  1967. ac_hi=$ac_mid; break
  1968. else
  1969. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1970. if test $ac_lo -le $ac_mid; then
  1971. ac_lo= ac_hi=
  1972. break
  1973. fi
  1974. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1975. fi
  1976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1977. done
  1978. else
  1979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1980. /* end confdefs.h. */
  1981. $4
  1982. int
  1983. main ()
  1984. {
  1985. static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
  1986. test_array @<:@0@:>@ = 0;
  1987. return test_array @<:@0@:>@;
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_c_try_compile "$LINENO"; then :
  1993. ac_hi=-1 ac_mid=-1
  1994. while :; do
  1995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1996. /* end confdefs.h. */
  1997. $4
  1998. int
  1999. main ()
  2000. {
  2001. static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
  2002. test_array @<:@0@:>@ = 0;
  2003. return test_array @<:@0@:>@;
  2004. ;
  2005. return 0;
  2006. }
  2007. _ACEOF
  2008. if ac_fn_c_try_compile "$LINENO"; then :
  2009. ac_lo=$ac_mid; break
  2010. else
  2011. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2012. if test $ac_mid -le $ac_hi; then
  2013. ac_lo= ac_hi=
  2014. break
  2015. fi
  2016. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2017. fi
  2018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2019. done
  2020. else
  2021. ac_lo= ac_hi=
  2022. fi
  2023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2024. fi
  2025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. # Binary search between lo and hi bounds.
  2027. while test "x$ac_lo" != "x$ac_hi"; do
  2028. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2030. /* end confdefs.h. */
  2031. $4
  2032. int
  2033. main ()
  2034. {
  2035. static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
  2036. test_array @<:@0@:>@ = 0;
  2037. return test_array @<:@0@:>@;
  2038. ;
  2039. return 0;
  2040. }
  2041. _ACEOF
  2042. if ac_fn_c_try_compile "$LINENO"; then :
  2043. ac_hi=$ac_mid
  2044. else
  2045. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2046. fi
  2047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2048. done
  2049. case $ac_lo in @%:@((
  2050. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2051. '') ac_retval=1 ;;
  2052. esac
  2053. else
  2054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2055. /* end confdefs.h. */
  2056. $4
  2057. static long int longval () { return $2; }
  2058. static unsigned long int ulongval () { return $2; }
  2059. @%:@include <stdio.h>
  2060. @%:@include <stdlib.h>
  2061. int
  2062. main ()
  2063. {
  2064. FILE *f = fopen ("conftest.val", "w");
  2065. if (! f)
  2066. return 1;
  2067. if (($2) < 0)
  2068. {
  2069. long int i = longval ();
  2070. if (i != ($2))
  2071. return 1;
  2072. fprintf (f, "%ld", i);
  2073. }
  2074. else
  2075. {
  2076. unsigned long int i = ulongval ();
  2077. if (i != ($2))
  2078. return 1;
  2079. fprintf (f, "%lu", i);
  2080. }
  2081. /* Do not output a trailing newline, as this causes \r\n confusion
  2082. on some platforms. */
  2083. return ferror (f) || fclose (f) != 0;
  2084. ;
  2085. return 0;
  2086. }
  2087. _ACEOF
  2088. if ac_fn_c_try_run "$LINENO"; then :
  2089. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2090. else
  2091. ac_retval=1
  2092. fi
  2093. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2094. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2095. rm -f conftest.val
  2096. fi
  2097. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2098. as_fn_set_status $ac_retval
  2099. } @%:@ ac_fn_c_compute_int
  2100. cat >config.log <<_ACEOF
  2101. This file contains any messages produced by compilers while
  2102. running configure, to aid debugging if configure makes a mistake.
  2103. It was created by lighttpd $as_me 1.4.33, which was
  2104. generated by GNU Autoconf 2.69. Invocation command line was
  2105. $ $0 $@
  2106. _ACEOF
  2107. exec 5>>config.log
  2108. {
  2109. cat <<_ASUNAME
  2110. ## --------- ##
  2111. ## Platform. ##
  2112. ## --------- ##
  2113. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2114. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2115. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2116. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2117. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2118. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2119. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2120. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2121. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2122. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2123. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2124. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2125. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2126. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2127. _ASUNAME
  2128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2129. for as_dir in $PATH
  2130. do
  2131. IFS=$as_save_IFS
  2132. test -z "$as_dir" && as_dir=.
  2133. $as_echo "PATH: $as_dir"
  2134. done
  2135. IFS=$as_save_IFS
  2136. } >&5
  2137. cat >&5 <<_ACEOF
  2138. ## ----------- ##
  2139. ## Core tests. ##
  2140. ## ----------- ##
  2141. _ACEOF
  2142. # Keep a trace of the command line.
  2143. # Strip out --no-create and --no-recursion so they do not pile up.
  2144. # Strip out --silent because we don't want to record it for future runs.
  2145. # Also quote any args containing shell meta-characters.
  2146. # Make two passes to allow for proper duplicate-argument suppression.
  2147. ac_configure_args=
  2148. ac_configure_args0=
  2149. ac_configure_args1=
  2150. ac_must_keep_next=false
  2151. for ac_pass in 1 2
  2152. do
  2153. for ac_arg
  2154. do
  2155. case $ac_arg in
  2156. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2157. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2158. | -silent | --silent | --silen | --sile | --sil)
  2159. continue ;;
  2160. *\'*)
  2161. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2162. esac
  2163. case $ac_pass in
  2164. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2165. 2)
  2166. as_fn_append ac_configure_args1 " '$ac_arg'"
  2167. if test $ac_must_keep_next = true; then
  2168. ac_must_keep_next=false # Got value, back to normal.
  2169. else
  2170. case $ac_arg in
  2171. *=* | --config-cache | -C | -disable-* | --disable-* \
  2172. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2173. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2174. | -with-* | --with-* | -without-* | --without-* | --x)
  2175. case "$ac_configure_args0 " in
  2176. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2177. esac
  2178. ;;
  2179. -* ) ac_must_keep_next=true ;;
  2180. esac
  2181. fi
  2182. as_fn_append ac_configure_args " '$ac_arg'"
  2183. ;;
  2184. esac
  2185. done
  2186. done
  2187. { ac_configure_args0=; unset ac_configure_args0;}
  2188. { ac_configure_args1=; unset ac_configure_args1;}
  2189. # When interrupted or exit'd, cleanup temporary files, and complete
  2190. # config.log. We remove comments because anyway the quotes in there
  2191. # would cause problems or look ugly.
  2192. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2193. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2194. trap 'exit_status=$?
  2195. # Save into config.log some information that might help in debugging.
  2196. {
  2197. echo
  2198. $as_echo "## ---------------- ##
  2199. ## Cache variables. ##
  2200. ## ---------------- ##"
  2201. echo
  2202. # The following way of writing the cache mishandles newlines in values,
  2203. (
  2204. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2205. eval ac_val=\$$ac_var
  2206. case $ac_val in #(
  2207. *${as_nl}*)
  2208. case $ac_var in #(
  2209. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2210. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2211. esac
  2212. case $ac_var in #(
  2213. _ | IFS | as_nl) ;; #(
  2214. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2215. *) { eval $ac_var=; unset $ac_var;} ;;
  2216. esac ;;
  2217. esac
  2218. done
  2219. (set) 2>&1 |
  2220. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2221. *${as_nl}ac_space=\ *)
  2222. sed -n \
  2223. "s/'\''/'\''\\\\'\'''\''/g;
  2224. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2225. ;; #(
  2226. *)
  2227. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2228. ;;
  2229. esac |
  2230. sort
  2231. )
  2232. echo
  2233. $as_echo "## ----------------- ##
  2234. ## Output variables. ##
  2235. ## ----------------- ##"
  2236. echo
  2237. for ac_var in $ac_subst_vars
  2238. do
  2239. eval ac_val=\$$ac_var
  2240. case $ac_val in
  2241. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2242. esac
  2243. $as_echo "$ac_var='\''$ac_val'\''"
  2244. done | sort
  2245. echo
  2246. if test -n "$ac_subst_files"; then
  2247. $as_echo "## ------------------- ##
  2248. ## File substitutions. ##
  2249. ## ------------------- ##"
  2250. echo
  2251. for ac_var in $ac_subst_files
  2252. do
  2253. eval ac_val=\$$ac_var
  2254. case $ac_val in
  2255. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2256. esac
  2257. $as_echo "$ac_var='\''$ac_val'\''"
  2258. done | sort
  2259. echo
  2260. fi
  2261. if test -s confdefs.h; then
  2262. $as_echo "## ----------- ##
  2263. ## confdefs.h. ##
  2264. ## ----------- ##"
  2265. echo
  2266. cat confdefs.h
  2267. echo
  2268. fi
  2269. test "$ac_signal" != 0 &&
  2270. $as_echo "$as_me: caught signal $ac_signal"
  2271. $as_echo "$as_me: exit $exit_status"
  2272. } >&5
  2273. rm -f core *.core core.conftest.* &&
  2274. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2275. exit $exit_status
  2276. ' 0
  2277. for ac_signal in 1 2 13 15; do
  2278. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2279. done
  2280. ac_signal=0
  2281. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2282. rm -f -r conftest* confdefs.h
  2283. $as_echo "/* confdefs.h */" > confdefs.h
  2284. # Predefined preprocessor variables.
  2285. cat >>confdefs.h <<_ACEOF
  2286. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  2287. _ACEOF
  2288. cat >>confdefs.h <<_ACEOF
  2289. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2290. _ACEOF
  2291. cat >>confdefs.h <<_ACEOF
  2292. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2296. _ACEOF
  2297. cat >>confdefs.h <<_ACEOF
  2298. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2299. _ACEOF
  2300. cat >>confdefs.h <<_ACEOF
  2301. @%:@define PACKAGE_URL "$PACKAGE_URL"
  2302. _ACEOF
  2303. # Let the site file select an alternate cache file if it wants to.
  2304. # Prefer an explicitly selected file to automatically selected ones.
  2305. ac_site_file1=NONE
  2306. ac_site_file2=NONE
  2307. if test -n "$CONFIG_SITE"; then
  2308. # We do not want a PATH search for config.site.
  2309. case $CONFIG_SITE in @%:@((
  2310. -*) ac_site_file1=./$CONFIG_SITE;;
  2311. */*) ac_site_file1=$CONFIG_SITE;;
  2312. *) ac_site_file1=./$CONFIG_SITE;;
  2313. esac
  2314. elif test "x$prefix" != xNONE; then
  2315. ac_site_file1=$prefix/share/config.site
  2316. ac_site_file2=$prefix/etc/config.site
  2317. else
  2318. ac_site_file1=$ac_default_prefix/share/config.site
  2319. ac_site_file2=$ac_default_prefix/etc/config.site
  2320. fi
  2321. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2322. do
  2323. test "x$ac_site_file" = xNONE && continue
  2324. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2326. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2327. sed 's/^/| /' "$ac_site_file" >&5
  2328. . "$ac_site_file" \
  2329. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2330. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2331. as_fn_error $? "failed to load site script $ac_site_file
  2332. See \`config.log' for more details" "$LINENO" 5; }
  2333. fi
  2334. done
  2335. if test -r "$cache_file"; then
  2336. # Some versions of bash will fail to source /dev/null (special files
  2337. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2338. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2340. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2341. case $cache_file in
  2342. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2343. *) . "./$cache_file";;
  2344. esac
  2345. fi
  2346. else
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2348. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2349. >$cache_file
  2350. fi
  2351. # Check that the precious variables saved in the cache have kept the same
  2352. # value.
  2353. ac_cache_corrupted=false
  2354. for ac_var in $ac_precious_vars; do
  2355. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2356. eval ac_new_set=\$ac_env_${ac_var}_set
  2357. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2358. eval ac_new_val=\$ac_env_${ac_var}_value
  2359. case $ac_old_set,$ac_new_set in
  2360. set,)
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2362. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2363. ac_cache_corrupted=: ;;
  2364. ,set)
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2366. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2367. ac_cache_corrupted=: ;;
  2368. ,);;
  2369. *)
  2370. if test "x$ac_old_val" != "x$ac_new_val"; then
  2371. # differences in whitespace do not lead to failure.
  2372. ac_old_val_w=`echo x $ac_old_val`
  2373. ac_new_val_w=`echo x $ac_new_val`
  2374. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2376. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2377. ac_cache_corrupted=:
  2378. else
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2380. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2381. eval $ac_var=\$ac_old_val
  2382. fi
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2384. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2386. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2387. fi;;
  2388. esac
  2389. # Pass precious variables to config.status.
  2390. if test "$ac_new_set" = set; then
  2391. case $ac_new_val in
  2392. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2393. *) ac_arg=$ac_var=$ac_new_val ;;
  2394. esac
  2395. case " $ac_configure_args " in
  2396. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2397. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2398. esac
  2399. fi
  2400. done
  2401. if $ac_cache_corrupted; then
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2403. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2405. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2406. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2407. fi
  2408. ## -------------------- ##
  2409. ## Main body of script. ##
  2410. ## -------------------- ##
  2411. ac_ext=c
  2412. ac_cpp='$CPP $CPPFLAGS'
  2413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2416. ac_config_headers="$ac_config_headers config.h"
  2417. ac_aux_dir=
  2418. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2419. if test -f "$ac_dir/install-sh"; then
  2420. ac_aux_dir=$ac_dir
  2421. ac_install_sh="$ac_aux_dir/install-sh -c"
  2422. break
  2423. elif test -f "$ac_dir/install.sh"; then
  2424. ac_aux_dir=$ac_dir
  2425. ac_install_sh="$ac_aux_dir/install.sh -c"
  2426. break
  2427. elif test -f "$ac_dir/shtool"; then
  2428. ac_aux_dir=$ac_dir
  2429. ac_install_sh="$ac_aux_dir/shtool install -c"
  2430. break
  2431. fi
  2432. done
  2433. if test -z "$ac_aux_dir"; then
  2434. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2435. fi
  2436. # These three variables are undocumented and unsupported,
  2437. # and are intended to be withdrawn in a future Autoconf release.
  2438. # They can cause serious problems if a builder's source tree is in a directory
  2439. # whose full name contains unusual characters.
  2440. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2441. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2442. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2443. # Make sure we can run config.sub.
  2444. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2445. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2447. $as_echo_n "checking build system type... " >&6; }
  2448. if ${ac_cv_build+:} false; then :
  2449. $as_echo_n "(cached) " >&6
  2450. else
  2451. ac_build_alias=$build_alias
  2452. test "x$ac_build_alias" = x &&
  2453. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2454. test "x$ac_build_alias" = x &&
  2455. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2456. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2457. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2458. fi
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2460. $as_echo "$ac_cv_build" >&6; }
  2461. case $ac_cv_build in
  2462. *-*-*) ;;
  2463. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2464. esac
  2465. build=$ac_cv_build
  2466. ac_save_IFS=$IFS; IFS='-'
  2467. set x $ac_cv_build
  2468. shift
  2469. build_cpu=$1
  2470. build_vendor=$2
  2471. shift; shift
  2472. # Remember, the first character of IFS is used to create $*,
  2473. # except with old shells:
  2474. build_os=$*
  2475. IFS=$ac_save_IFS
  2476. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2478. $as_echo_n "checking host system type... " >&6; }
  2479. if ${ac_cv_host+:} false; then :
  2480. $as_echo_n "(cached) " >&6
  2481. else
  2482. if test "x$host_alias" = x; then
  2483. ac_cv_host=$ac_cv_build
  2484. else
  2485. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2486. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2487. fi
  2488. fi
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2490. $as_echo "$ac_cv_host" >&6; }
  2491. case $ac_cv_host in
  2492. *-*-*) ;;
  2493. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2494. esac
  2495. host=$ac_cv_host
  2496. ac_save_IFS=$IFS; IFS='-'
  2497. set x $ac_cv_host
  2498. shift
  2499. host_cpu=$1
  2500. host_vendor=$2
  2501. shift; shift
  2502. # Remember, the first character of IFS is used to create $*,
  2503. # except with old shells:
  2504. host_os=$*
  2505. IFS=$ac_save_IFS
  2506. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2508. $as_echo_n "checking target system type... " >&6; }
  2509. if ${ac_cv_target+:} false; then :
  2510. $as_echo_n "(cached) " >&6
  2511. else
  2512. if test "x$target_alias" = x; then
  2513. ac_cv_target=$ac_cv_host
  2514. else
  2515. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2516. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2517. fi
  2518. fi
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2520. $as_echo "$ac_cv_target" >&6; }
  2521. case $ac_cv_target in
  2522. *-*-*) ;;
  2523. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2524. esac
  2525. target=$ac_cv_target
  2526. ac_save_IFS=$IFS; IFS='-'
  2527. set x $ac_cv_target
  2528. shift
  2529. target_cpu=$1
  2530. target_vendor=$2
  2531. shift; shift
  2532. # Remember, the first character of IFS is used to create $*,
  2533. # except with old shells:
  2534. target_os=$*
  2535. IFS=$ac_save_IFS
  2536. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2537. # The aliases save the names the user supplied, while $host etc.
  2538. # will get canonicalized.
  2539. test -n "$target_alias" &&
  2540. test "$program_prefix$program_suffix$program_transform_name" = \
  2541. NONENONEs,x,x, &&
  2542. program_prefix=${target_alias}-
  2543. am__api_version='1.15'
  2544. # Find a good install program. We prefer a C program (faster),
  2545. # so one script is as good as another. But avoid the broken or
  2546. # incompatible versions:
  2547. # SysV /etc/install, /usr/sbin/install
  2548. # SunOS /usr/etc/install
  2549. # IRIX /sbin/install
  2550. # AIX /bin/install
  2551. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2552. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2553. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2554. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2555. # OS/2's system install, which has a completely different semantic
  2556. # ./install, which can be erroneously created by make from ./install.sh.
  2557. # Reject install programs that cannot install multiple files.
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2559. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2560. if test -z "$INSTALL"; then
  2561. if ${ac_cv_path_install+:} false; then :
  2562. $as_echo_n "(cached) " >&6
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. # Account for people who put trailing slashes in PATH elements.
  2570. case $as_dir/ in @%:@((
  2571. ./ | .// | /[cC]/* | \
  2572. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2573. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2574. /usr/ucb/* ) ;;
  2575. *)
  2576. # OSF1 and SCO ODT 3.0 have their own names for install.
  2577. # Don't use installbsd from OSF since it installs stuff as root
  2578. # by default.
  2579. for ac_prog in ginstall scoinst install; do
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2582. if test $ac_prog = install &&
  2583. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2584. # AIX install. It has an incompatible calling convention.
  2585. :
  2586. elif test $ac_prog = install &&
  2587. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2588. # program-specific install script used by HP pwplus--don't use.
  2589. :
  2590. else
  2591. rm -rf conftest.one conftest.two conftest.dir
  2592. echo one > conftest.one
  2593. echo two > conftest.two
  2594. mkdir conftest.dir
  2595. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2596. test -s conftest.one && test -s conftest.two &&
  2597. test -s conftest.dir/conftest.one &&
  2598. test -s conftest.dir/conftest.two
  2599. then
  2600. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2601. break 3
  2602. fi
  2603. fi
  2604. fi
  2605. done
  2606. done
  2607. ;;
  2608. esac
  2609. done
  2610. IFS=$as_save_IFS
  2611. rm -rf conftest.one conftest.two conftest.dir
  2612. fi
  2613. if test "${ac_cv_path_install+set}" = set; then
  2614. INSTALL=$ac_cv_path_install
  2615. else
  2616. # As a last resort, use the slow shell script. Don't cache a
  2617. # value for INSTALL within a source directory, because that will
  2618. # break other packages using the cache if that directory is
  2619. # removed, or if the value is a relative name.
  2620. INSTALL=$ac_install_sh
  2621. fi
  2622. fi
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2624. $as_echo "$INSTALL" >&6; }
  2625. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2626. # It thinks the first close brace ends the variable substitution.
  2627. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2628. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2629. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2631. $as_echo_n "checking whether build environment is sane... " >&6; }
  2632. # Reject unsafe characters in $srcdir or the absolute working directory
  2633. # name. Accept space and tab only in the latter.
  2634. am_lf='
  2635. '
  2636. case `pwd` in
  2637. *[\\\"\#\$\&\'\`$am_lf]*)
  2638. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2639. esac
  2640. case $srcdir in
  2641. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2642. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2643. esac
  2644. # Do 'set' in a subshell so we don't clobber the current shell's
  2645. # arguments. Must try -L first in case configure is actually a
  2646. # symlink; some systems play weird games with the mod time of symlinks
  2647. # (eg FreeBSD returns the mod time of the symlink's containing
  2648. # directory).
  2649. if (
  2650. am_has_slept=no
  2651. for am_try in 1 2; do
  2652. echo "timestamp, slept: $am_has_slept" > conftest.file
  2653. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2654. if test "$*" = "X"; then
  2655. # -L didn't work.
  2656. set X `ls -t "$srcdir/configure" conftest.file`
  2657. fi
  2658. if test "$*" != "X $srcdir/configure conftest.file" \
  2659. && test "$*" != "X conftest.file $srcdir/configure"; then
  2660. # If neither matched, then we have a broken ls. This can happen
  2661. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2662. # broken ls alias from the environment. This has actually
  2663. # happened. Such a system could not be considered "sane".
  2664. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2665. alias in your environment" "$LINENO" 5
  2666. fi
  2667. if test "$2" = conftest.file || test $am_try -eq 2; then
  2668. break
  2669. fi
  2670. # Just in case.
  2671. sleep 1
  2672. am_has_slept=yes
  2673. done
  2674. test "$2" = conftest.file
  2675. )
  2676. then
  2677. # Ok.
  2678. :
  2679. else
  2680. as_fn_error $? "newly created file is older than distributed files!
  2681. Check your system clock" "$LINENO" 5
  2682. fi
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2684. $as_echo "yes" >&6; }
  2685. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2686. # generated files are strictly newer.
  2687. am_sleep_pid=
  2688. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2689. ( sleep 1 ) &
  2690. am_sleep_pid=$!
  2691. fi
  2692. rm -f conftest.file
  2693. test "$program_prefix" != NONE &&
  2694. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2695. # Use a double $ so make ignores it.
  2696. test "$program_suffix" != NONE &&
  2697. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2698. # Double any \ or $.
  2699. # By default was `s,x,x', remove it if useless.
  2700. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2701. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2702. # Expand $ac_aux_dir to an absolute path.
  2703. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2704. if test x"${MISSING+set}" != xset; then
  2705. case $am_aux_dir in
  2706. *\ * | *\ *)
  2707. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2708. *)
  2709. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2710. esac
  2711. fi
  2712. # Use eval to expand $SHELL
  2713. if eval "$MISSING --is-lightweight"; then
  2714. am_missing_run="$MISSING "
  2715. else
  2716. am_missing_run=
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2718. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2719. fi
  2720. if test x"${install_sh+set}" != xset; then
  2721. case $am_aux_dir in
  2722. *\ * | *\ *)
  2723. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2724. *)
  2725. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2726. esac
  2727. fi
  2728. # Installed binaries are usually stripped using 'strip' when the user
  2729. # run "make install-strip". However 'strip' might not be the right
  2730. # tool to use in cross-compilation environments, therefore Automake
  2731. # will honor the 'STRIP' environment variable to overrule this program.
  2732. if test "$cross_compiling" != no; then
  2733. if test -n "$ac_tool_prefix"; then
  2734. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2735. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2737. $as_echo_n "checking for $ac_word... " >&6; }
  2738. if ${ac_cv_prog_STRIP+:} false; then :
  2739. $as_echo_n "(cached) " >&6
  2740. else
  2741. if test -n "$STRIP"; then
  2742. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2743. else
  2744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2745. for as_dir in $PATH
  2746. do
  2747. IFS=$as_save_IFS
  2748. test -z "$as_dir" && as_dir=.
  2749. for ac_exec_ext in '' $ac_executable_extensions; do
  2750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2751. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2753. break 2
  2754. fi
  2755. done
  2756. done
  2757. IFS=$as_save_IFS
  2758. fi
  2759. fi
  2760. STRIP=$ac_cv_prog_STRIP
  2761. if test -n "$STRIP"; then
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2763. $as_echo "$STRIP" >&6; }
  2764. else
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2766. $as_echo "no" >&6; }
  2767. fi
  2768. fi
  2769. if test -z "$ac_cv_prog_STRIP"; then
  2770. ac_ct_STRIP=$STRIP
  2771. # Extract the first word of "strip", so it can be a program name with args.
  2772. set dummy strip; ac_word=$2
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2774. $as_echo_n "checking for $ac_word... " >&6; }
  2775. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2776. $as_echo_n "(cached) " >&6
  2777. else
  2778. if test -n "$ac_ct_STRIP"; then
  2779. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2780. else
  2781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2782. for as_dir in $PATH
  2783. do
  2784. IFS=$as_save_IFS
  2785. test -z "$as_dir" && as_dir=.
  2786. for ac_exec_ext in '' $ac_executable_extensions; do
  2787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2788. ac_cv_prog_ac_ct_STRIP="strip"
  2789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2790. break 2
  2791. fi
  2792. done
  2793. done
  2794. IFS=$as_save_IFS
  2795. fi
  2796. fi
  2797. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2798. if test -n "$ac_ct_STRIP"; then
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2800. $as_echo "$ac_ct_STRIP" >&6; }
  2801. else
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2803. $as_echo "no" >&6; }
  2804. fi
  2805. if test "x$ac_ct_STRIP" = x; then
  2806. STRIP=":"
  2807. else
  2808. case $cross_compiling:$ac_tool_warned in
  2809. yes:)
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2811. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2812. ac_tool_warned=yes ;;
  2813. esac
  2814. STRIP=$ac_ct_STRIP
  2815. fi
  2816. else
  2817. STRIP="$ac_cv_prog_STRIP"
  2818. fi
  2819. fi
  2820. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2822. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2823. if test -z "$MKDIR_P"; then
  2824. if ${ac_cv_path_mkdir+:} false; then :
  2825. $as_echo_n "(cached) " >&6
  2826. else
  2827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2828. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2829. do
  2830. IFS=$as_save_IFS
  2831. test -z "$as_dir" && as_dir=.
  2832. for ac_prog in mkdir gmkdir; do
  2833. for ac_exec_ext in '' $ac_executable_extensions; do
  2834. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2835. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2836. 'mkdir (GNU coreutils) '* | \
  2837. 'mkdir (coreutils) '* | \
  2838. 'mkdir (fileutils) '4.1*)
  2839. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2840. break 3;;
  2841. esac
  2842. done
  2843. done
  2844. done
  2845. IFS=$as_save_IFS
  2846. fi
  2847. test -d ./--version && rmdir ./--version
  2848. if test "${ac_cv_path_mkdir+set}" = set; then
  2849. MKDIR_P="$ac_cv_path_mkdir -p"
  2850. else
  2851. # As a last resort, use the slow shell script. Don't cache a
  2852. # value for MKDIR_P within a source directory, because that will
  2853. # break other packages using the cache if that directory is
  2854. # removed, or if the value is a relative name.
  2855. MKDIR_P="$ac_install_sh -d"
  2856. fi
  2857. fi
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2859. $as_echo "$MKDIR_P" >&6; }
  2860. for ac_prog in gawk mawk nawk awk
  2861. do
  2862. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2863. set dummy $ac_prog; ac_word=$2
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2865. $as_echo_n "checking for $ac_word... " >&6; }
  2866. if ${ac_cv_prog_AWK+:} false; then :
  2867. $as_echo_n "(cached) " >&6
  2868. else
  2869. if test -n "$AWK"; then
  2870. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2871. else
  2872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2873. for as_dir in $PATH
  2874. do
  2875. IFS=$as_save_IFS
  2876. test -z "$as_dir" && as_dir=.
  2877. for ac_exec_ext in '' $ac_executable_extensions; do
  2878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2879. ac_cv_prog_AWK="$ac_prog"
  2880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2881. break 2
  2882. fi
  2883. done
  2884. done
  2885. IFS=$as_save_IFS
  2886. fi
  2887. fi
  2888. AWK=$ac_cv_prog_AWK
  2889. if test -n "$AWK"; then
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2891. $as_echo "$AWK" >&6; }
  2892. else
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2894. $as_echo "no" >&6; }
  2895. fi
  2896. test -n "$AWK" && break
  2897. done
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2899. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2900. set x ${MAKE-make}
  2901. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2902. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2903. $as_echo_n "(cached) " >&6
  2904. else
  2905. cat >conftest.make <<\_ACEOF
  2906. SHELL = /bin/sh
  2907. all:
  2908. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2909. _ACEOF
  2910. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2911. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2912. *@@@%%%=?*=@@@%%%*)
  2913. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2914. *)
  2915. eval ac_cv_prog_make_${ac_make}_set=no;;
  2916. esac
  2917. rm -f conftest.make
  2918. fi
  2919. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2921. $as_echo "yes" >&6; }
  2922. SET_MAKE=
  2923. else
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2925. $as_echo "no" >&6; }
  2926. SET_MAKE="MAKE=${MAKE-make}"
  2927. fi
  2928. rm -rf .tst 2>/dev/null
  2929. mkdir .tst 2>/dev/null
  2930. if test -d .tst; then
  2931. am__leading_dot=.
  2932. else
  2933. am__leading_dot=_
  2934. fi
  2935. rmdir .tst 2>/dev/null
  2936. @%:@ Check whether --enable-silent-rules was given.
  2937. if test "${enable_silent_rules+set}" = set; then :
  2938. enableval=$enable_silent_rules;
  2939. fi
  2940. case $enable_silent_rules in @%:@ (((
  2941. yes) AM_DEFAULT_VERBOSITY=0;;
  2942. no) AM_DEFAULT_VERBOSITY=1;;
  2943. *) AM_DEFAULT_VERBOSITY=1;;
  2944. esac
  2945. am_make=${MAKE-make}
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2947. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2948. if ${am_cv_make_support_nested_variables+:} false; then :
  2949. $as_echo_n "(cached) " >&6
  2950. else
  2951. if $as_echo 'TRUE=$(BAR$(V))
  2952. BAR0=false
  2953. BAR1=true
  2954. V=1
  2955. am__doit:
  2956. @$(TRUE)
  2957. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2958. am_cv_make_support_nested_variables=yes
  2959. else
  2960. am_cv_make_support_nested_variables=no
  2961. fi
  2962. fi
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2964. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2965. if test $am_cv_make_support_nested_variables = yes; then
  2966. AM_V='$(V)'
  2967. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2968. else
  2969. AM_V=$AM_DEFAULT_VERBOSITY
  2970. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2971. fi
  2972. AM_BACKSLASH='\'
  2973. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2974. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2975. # is not polluted with repeated "-I."
  2976. am__isrc=' -I$(srcdir)'
  2977. # test to see if srcdir already configured
  2978. if test -f $srcdir/config.status; then
  2979. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2980. fi
  2981. fi
  2982. # test whether we have cygpath
  2983. if test -z "$CYGPATH_W"; then
  2984. if (cygpath --version) >/dev/null 2>/dev/null; then
  2985. CYGPATH_W='cygpath -w'
  2986. else
  2987. CYGPATH_W=echo
  2988. fi
  2989. fi
  2990. # Define the identity of the package.
  2991. PACKAGE='lighttpd'
  2992. VERSION='1.4.33'
  2993. cat >>confdefs.h <<_ACEOF
  2994. @%:@define PACKAGE "$PACKAGE"
  2995. _ACEOF
  2996. cat >>confdefs.h <<_ACEOF
  2997. @%:@define VERSION "$VERSION"
  2998. _ACEOF
  2999. # Some tools Automake needs.
  3000. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3001. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3002. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3003. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3004. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3005. # For better backward compatibility. To be removed once Automake 1.9.x
  3006. # dies out for good. For more background, see:
  3007. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3008. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3009. mkdir_p='$(MKDIR_P)'
  3010. # We need awk for the "check" target (and possibly the TAP driver). The
  3011. # system "awk" is bad on some platforms.
  3012. # Always define AMTAR for backward compatibility. Yes, it's still used
  3013. # in the wild :-( We should find a proper way to deprecate it ...
  3014. AMTAR='$${TAR-tar}'
  3015. # We'll loop over all known methods to create a tar archive until one works.
  3016. _am_tools='gnutar plaintar pax cpio none'
  3017. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  3018. # There is notably a 21 bits limit for the UID and the GID. In fact,
  3019. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  3020. # and bug#13588).
  3021. am_max_uid=2097151 # 2^21 - 1
  3022. am_max_gid=$am_max_uid
  3023. # The $UID and $GID variables are not portable, so we need to resort
  3024. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  3025. # below are definitely unexpected, so allow the users to see them
  3026. # (that is, avoid stderr redirection).
  3027. am_uid=`id -u || echo unknown`
  3028. am_gid=`id -g || echo unknown`
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  3030. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  3031. if test $am_uid -le $am_max_uid; then
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3033. $as_echo "yes" >&6; }
  3034. else
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3036. $as_echo "no" >&6; }
  3037. _am_tools=none
  3038. fi
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  3040. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  3041. if test $am_gid -le $am_max_gid; then
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3043. $as_echo "yes" >&6; }
  3044. else
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3046. $as_echo "no" >&6; }
  3047. _am_tools=none
  3048. fi
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  3050. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  3051. # Go ahead even if we have the value already cached. We do so because we
  3052. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3053. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3054. for _am_tool in $_am_tools; do
  3055. case $_am_tool in
  3056. gnutar)
  3057. for _am_tar in tar gnutar gtar; do
  3058. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3059. ($_am_tar --version) >&5 2>&5
  3060. ac_status=$?
  3061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3062. (exit $ac_status); } && break
  3063. done
  3064. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3065. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3066. am__untar="$_am_tar -xf -"
  3067. ;;
  3068. plaintar)
  3069. # Must skip GNU tar: if it does not support --format= it doesn't create
  3070. # ustar tarball either.
  3071. (tar --version) >/dev/null 2>&1 && continue
  3072. am__tar='tar chf - "$$tardir"'
  3073. am__tar_='tar chf - "$tardir"'
  3074. am__untar='tar xf -'
  3075. ;;
  3076. pax)
  3077. am__tar='pax -L -x ustar -w "$$tardir"'
  3078. am__tar_='pax -L -x ustar -w "$tardir"'
  3079. am__untar='pax -r'
  3080. ;;
  3081. cpio)
  3082. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3083. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3084. am__untar='cpio -i -H ustar -d'
  3085. ;;
  3086. none)
  3087. am__tar=false
  3088. am__tar_=false
  3089. am__untar=false
  3090. ;;
  3091. esac
  3092. # If the value was cached, stop now. We just wanted to have am__tar
  3093. # and am__untar set.
  3094. test -n "${am_cv_prog_tar_ustar}" && break
  3095. # tar/untar a dummy directory, and stop if the command works.
  3096. rm -rf conftest.dir
  3097. mkdir conftest.dir
  3098. echo GrepMe > conftest.dir/file
  3099. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3100. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3101. ac_status=$?
  3102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3103. (exit $ac_status); }
  3104. rm -rf conftest.dir
  3105. if test -s conftest.tar; then
  3106. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3107. ($am__untar <conftest.tar) >&5 2>&5
  3108. ac_status=$?
  3109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3110. (exit $ac_status); }
  3111. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3112. (cat conftest.dir/file) >&5 2>&5
  3113. ac_status=$?
  3114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3115. (exit $ac_status); }
  3116. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3117. fi
  3118. done
  3119. rm -rf conftest.dir
  3120. if ${am_cv_prog_tar_ustar+:} false; then :
  3121. $as_echo_n "(cached) " >&6
  3122. else
  3123. am_cv_prog_tar_ustar=$_am_tool
  3124. fi
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3126. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  3127. # POSIX will say in a future version that running "rm -f" with no argument
  3128. # is OK; and we want to be able to make that assumption in our Makefile
  3129. # recipes. So use an aggressive probe to check that the usage we want is
  3130. # actually supported "in the wild" to an acceptable degree.
  3131. # See automake bug#10828.
  3132. # To make any issue more visible, cause the running configure to be aborted
  3133. # by default if the 'rm' program in use doesn't match our expectations; the
  3134. # user can still override this though.
  3135. if rm -f && rm -fr && rm -rf; then : OK; else
  3136. cat >&2 <<'END'
  3137. Oops!
  3138. Your 'rm' program seems unable to run without file operands specified
  3139. on the command line, even when the '-f' option is present. This is contrary
  3140. to the behaviour of most rm programs out there, and not conforming with
  3141. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3142. Please tell bug-automake@gnu.org about your system, including the value
  3143. of your $PATH and any error possibly output before this message. This
  3144. can help us improve future automake versions.
  3145. END
  3146. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3147. echo 'Configuration will proceed anyway, since you have set the' >&2
  3148. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3149. echo >&2
  3150. else
  3151. cat >&2 <<'END'
  3152. Aborting the configuration process, to ensure you take notice of the issue.
  3153. You can download and install GNU coreutils to get an 'rm' implementation
  3154. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3155. If you want to complete the configuration process using your problematic
  3156. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3157. to "yes", and re-run configure.
  3158. END
  3159. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3160. fi
  3161. fi
  3162. @%:@ Check whether --enable-silent-rules was given.
  3163. if test "${enable_silent_rules+set}" = set; then :
  3164. enableval=$enable_silent_rules;
  3165. fi
  3166. case $enable_silent_rules in @%:@ (((
  3167. yes) AM_DEFAULT_VERBOSITY=0;;
  3168. no) AM_DEFAULT_VERBOSITY=1;;
  3169. *) AM_DEFAULT_VERBOSITY=1;;
  3170. esac
  3171. am_make=${MAKE-make}
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3173. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3174. if ${am_cv_make_support_nested_variables+:} false; then :
  3175. $as_echo_n "(cached) " >&6
  3176. else
  3177. if $as_echo 'TRUE=$(BAR$(V))
  3178. BAR0=false
  3179. BAR1=true
  3180. V=1
  3181. am__doit:
  3182. @$(TRUE)
  3183. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3184. am_cv_make_support_nested_variables=yes
  3185. else
  3186. am_cv_make_support_nested_variables=no
  3187. fi
  3188. fi
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3190. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3191. if test $am_cv_make_support_nested_variables = yes; then
  3192. AM_V='$(V)'
  3193. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3194. else
  3195. AM_V=$AM_DEFAULT_VERBOSITY
  3196. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3197. fi
  3198. AM_BACKSLASH='\'
  3199. ac_ext=c
  3200. ac_cpp='$CPP $CPPFLAGS'
  3201. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3202. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3203. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3204. if test -n "$ac_tool_prefix"; then
  3205. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3206. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3208. $as_echo_n "checking for $ac_word... " >&6; }
  3209. if ${ac_cv_prog_CC+:} false; then :
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. if test -n "$CC"; then
  3213. ac_cv_prog_CC="$CC" # Let the user override the test.
  3214. else
  3215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3216. for as_dir in $PATH
  3217. do
  3218. IFS=$as_save_IFS
  3219. test -z "$as_dir" && as_dir=.
  3220. for ac_exec_ext in '' $ac_executable_extensions; do
  3221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3222. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3224. break 2
  3225. fi
  3226. done
  3227. done
  3228. IFS=$as_save_IFS
  3229. fi
  3230. fi
  3231. CC=$ac_cv_prog_CC
  3232. if test -n "$CC"; then
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3234. $as_echo "$CC" >&6; }
  3235. else
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3237. $as_echo "no" >&6; }
  3238. fi
  3239. fi
  3240. if test -z "$ac_cv_prog_CC"; then
  3241. ac_ct_CC=$CC
  3242. # Extract the first word of "gcc", so it can be a program name with args.
  3243. set dummy gcc; ac_word=$2
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3245. $as_echo_n "checking for $ac_word... " >&6; }
  3246. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3247. $as_echo_n "(cached) " >&6
  3248. else
  3249. if test -n "$ac_ct_CC"; then
  3250. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3251. else
  3252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3253. for as_dir in $PATH
  3254. do
  3255. IFS=$as_save_IFS
  3256. test -z "$as_dir" && as_dir=.
  3257. for ac_exec_ext in '' $ac_executable_extensions; do
  3258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3259. ac_cv_prog_ac_ct_CC="gcc"
  3260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3261. break 2
  3262. fi
  3263. done
  3264. done
  3265. IFS=$as_save_IFS
  3266. fi
  3267. fi
  3268. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3269. if test -n "$ac_ct_CC"; then
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3271. $as_echo "$ac_ct_CC" >&6; }
  3272. else
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3274. $as_echo "no" >&6; }
  3275. fi
  3276. if test "x$ac_ct_CC" = x; then
  3277. CC=""
  3278. else
  3279. case $cross_compiling:$ac_tool_warned in
  3280. yes:)
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3283. ac_tool_warned=yes ;;
  3284. esac
  3285. CC=$ac_ct_CC
  3286. fi
  3287. else
  3288. CC="$ac_cv_prog_CC"
  3289. fi
  3290. if test -z "$CC"; then
  3291. if test -n "$ac_tool_prefix"; then
  3292. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3293. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3295. $as_echo_n "checking for $ac_word... " >&6; }
  3296. if ${ac_cv_prog_CC+:} false; then :
  3297. $as_echo_n "(cached) " >&6
  3298. else
  3299. if test -n "$CC"; then
  3300. ac_cv_prog_CC="$CC" # Let the user override the test.
  3301. else
  3302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3303. for as_dir in $PATH
  3304. do
  3305. IFS=$as_save_IFS
  3306. test -z "$as_dir" && as_dir=.
  3307. for ac_exec_ext in '' $ac_executable_extensions; do
  3308. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3309. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3311. break 2
  3312. fi
  3313. done
  3314. done
  3315. IFS=$as_save_IFS
  3316. fi
  3317. fi
  3318. CC=$ac_cv_prog_CC
  3319. if test -n "$CC"; then
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3321. $as_echo "$CC" >&6; }
  3322. else
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3324. $as_echo "no" >&6; }
  3325. fi
  3326. fi
  3327. fi
  3328. if test -z "$CC"; then
  3329. # Extract the first word of "cc", so it can be a program name with args.
  3330. set dummy cc; ac_word=$2
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3332. $as_echo_n "checking for $ac_word... " >&6; }
  3333. if ${ac_cv_prog_CC+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. if test -n "$CC"; then
  3337. ac_cv_prog_CC="$CC" # Let the user override the test.
  3338. else
  3339. ac_prog_rejected=no
  3340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3341. for as_dir in $PATH
  3342. do
  3343. IFS=$as_save_IFS
  3344. test -z "$as_dir" && as_dir=.
  3345. for ac_exec_ext in '' $ac_executable_extensions; do
  3346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3347. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3348. ac_prog_rejected=yes
  3349. continue
  3350. fi
  3351. ac_cv_prog_CC="cc"
  3352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3353. break 2
  3354. fi
  3355. done
  3356. done
  3357. IFS=$as_save_IFS
  3358. if test $ac_prog_rejected = yes; then
  3359. # We found a bogon in the path, so make sure we never use it.
  3360. set dummy $ac_cv_prog_CC
  3361. shift
  3362. if test $@%:@ != 0; then
  3363. # We chose a different compiler from the bogus one.
  3364. # However, it has the same basename, so the bogon will be chosen
  3365. # first if we set CC to just the basename; use the full file name.
  3366. shift
  3367. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3368. fi
  3369. fi
  3370. fi
  3371. fi
  3372. CC=$ac_cv_prog_CC
  3373. if test -n "$CC"; then
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3375. $as_echo "$CC" >&6; }
  3376. else
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3378. $as_echo "no" >&6; }
  3379. fi
  3380. fi
  3381. if test -z "$CC"; then
  3382. if test -n "$ac_tool_prefix"; then
  3383. for ac_prog in cl.exe
  3384. do
  3385. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3386. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3388. $as_echo_n "checking for $ac_word... " >&6; }
  3389. if ${ac_cv_prog_CC+:} false; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. if test -n "$CC"; then
  3393. ac_cv_prog_CC="$CC" # Let the user override the test.
  3394. else
  3395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3396. for as_dir in $PATH
  3397. do
  3398. IFS=$as_save_IFS
  3399. test -z "$as_dir" && as_dir=.
  3400. for ac_exec_ext in '' $ac_executable_extensions; do
  3401. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3402. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3404. break 2
  3405. fi
  3406. done
  3407. done
  3408. IFS=$as_save_IFS
  3409. fi
  3410. fi
  3411. CC=$ac_cv_prog_CC
  3412. if test -n "$CC"; then
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3414. $as_echo "$CC" >&6; }
  3415. else
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. $as_echo "no" >&6; }
  3418. fi
  3419. test -n "$CC" && break
  3420. done
  3421. fi
  3422. if test -z "$CC"; then
  3423. ac_ct_CC=$CC
  3424. for ac_prog in cl.exe
  3425. do
  3426. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3427. set dummy $ac_prog; ac_word=$2
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3429. $as_echo_n "checking for $ac_word... " >&6; }
  3430. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3431. $as_echo_n "(cached) " >&6
  3432. else
  3433. if test -n "$ac_ct_CC"; then
  3434. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3435. else
  3436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3437. for as_dir in $PATH
  3438. do
  3439. IFS=$as_save_IFS
  3440. test -z "$as_dir" && as_dir=.
  3441. for ac_exec_ext in '' $ac_executable_extensions; do
  3442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3443. ac_cv_prog_ac_ct_CC="$ac_prog"
  3444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3445. break 2
  3446. fi
  3447. done
  3448. done
  3449. IFS=$as_save_IFS
  3450. fi
  3451. fi
  3452. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3453. if test -n "$ac_ct_CC"; then
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3455. $as_echo "$ac_ct_CC" >&6; }
  3456. else
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3458. $as_echo "no" >&6; }
  3459. fi
  3460. test -n "$ac_ct_CC" && break
  3461. done
  3462. if test "x$ac_ct_CC" = x; then
  3463. CC=""
  3464. else
  3465. case $cross_compiling:$ac_tool_warned in
  3466. yes:)
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3469. ac_tool_warned=yes ;;
  3470. esac
  3471. CC=$ac_ct_CC
  3472. fi
  3473. fi
  3474. fi
  3475. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3476. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3477. as_fn_error $? "no acceptable C compiler found in \$PATH
  3478. See \`config.log' for more details" "$LINENO" 5; }
  3479. # Provide some information about the compiler.
  3480. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3481. set X $ac_compile
  3482. ac_compiler=$2
  3483. for ac_option in --version -v -V -qversion; do
  3484. { { ac_try="$ac_compiler $ac_option >&5"
  3485. case "(($ac_try" in
  3486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3487. *) ac_try_echo=$ac_try;;
  3488. esac
  3489. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3490. $as_echo "$ac_try_echo"; } >&5
  3491. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3492. ac_status=$?
  3493. if test -s conftest.err; then
  3494. sed '10a\
  3495. ... rest of stderr output deleted ...
  3496. 10q' conftest.err >conftest.er1
  3497. cat conftest.er1 >&5
  3498. fi
  3499. rm -f conftest.er1 conftest.err
  3500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3501. test $ac_status = 0; }
  3502. done
  3503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3504. /* end confdefs.h. */
  3505. int
  3506. main ()
  3507. {
  3508. ;
  3509. return 0;
  3510. }
  3511. _ACEOF
  3512. ac_clean_files_save=$ac_clean_files
  3513. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3514. # Try to create an executable without -o first, disregard a.out.
  3515. # It will help us diagnose broken compilers, and finding out an intuition
  3516. # of exeext.
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3518. $as_echo_n "checking whether the C compiler works... " >&6; }
  3519. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3520. # The possible output files:
  3521. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3522. ac_rmfiles=
  3523. for ac_file in $ac_files
  3524. do
  3525. case $ac_file in
  3526. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3527. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3528. esac
  3529. done
  3530. rm -f $ac_rmfiles
  3531. if { { ac_try="$ac_link_default"
  3532. case "(($ac_try" in
  3533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3534. *) ac_try_echo=$ac_try;;
  3535. esac
  3536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3537. $as_echo "$ac_try_echo"; } >&5
  3538. (eval "$ac_link_default") 2>&5
  3539. ac_status=$?
  3540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3541. test $ac_status = 0; }; then :
  3542. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3543. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3544. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3545. # so that the user can short-circuit this test for compilers unknown to
  3546. # Autoconf.
  3547. for ac_file in $ac_files ''
  3548. do
  3549. test -f "$ac_file" || continue
  3550. case $ac_file in
  3551. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3552. ;;
  3553. [ab].out )
  3554. # We found the default executable, but exeext='' is most
  3555. # certainly right.
  3556. break;;
  3557. *.* )
  3558. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3559. then :; else
  3560. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3561. fi
  3562. # We set ac_cv_exeext here because the later test for it is not
  3563. # safe: cross compilers may not add the suffix if given an `-o'
  3564. # argument, so we may need to know it at that point already.
  3565. # Even if this section looks crufty: it has the advantage of
  3566. # actually working.
  3567. break;;
  3568. * )
  3569. break;;
  3570. esac
  3571. done
  3572. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3573. else
  3574. ac_file=''
  3575. fi
  3576. if test -z "$ac_file"; then :
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3578. $as_echo "no" >&6; }
  3579. $as_echo "$as_me: failed program was:" >&5
  3580. sed 's/^/| /' conftest.$ac_ext >&5
  3581. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3582. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3583. as_fn_error 77 "C compiler cannot create executables
  3584. See \`config.log' for more details" "$LINENO" 5; }
  3585. else
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3587. $as_echo "yes" >&6; }
  3588. fi
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3590. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3592. $as_echo "$ac_file" >&6; }
  3593. ac_exeext=$ac_cv_exeext
  3594. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3595. ac_clean_files=$ac_clean_files_save
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3597. $as_echo_n "checking for suffix of executables... " >&6; }
  3598. if { { ac_try="$ac_link"
  3599. case "(($ac_try" in
  3600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3601. *) ac_try_echo=$ac_try;;
  3602. esac
  3603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3604. $as_echo "$ac_try_echo"; } >&5
  3605. (eval "$ac_link") 2>&5
  3606. ac_status=$?
  3607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3608. test $ac_status = 0; }; then :
  3609. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3610. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3611. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3612. # `rm'.
  3613. for ac_file in conftest.exe conftest conftest.*; do
  3614. test -f "$ac_file" || continue
  3615. case $ac_file in
  3616. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3617. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3618. break;;
  3619. * ) break;;
  3620. esac
  3621. done
  3622. else
  3623. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3625. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3626. See \`config.log' for more details" "$LINENO" 5; }
  3627. fi
  3628. rm -f conftest conftest$ac_cv_exeext
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3630. $as_echo "$ac_cv_exeext" >&6; }
  3631. rm -f conftest.$ac_ext
  3632. EXEEXT=$ac_cv_exeext
  3633. ac_exeext=$EXEEXT
  3634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3635. /* end confdefs.h. */
  3636. @%:@include <stdio.h>
  3637. int
  3638. main ()
  3639. {
  3640. FILE *f = fopen ("conftest.out", "w");
  3641. return ferror (f) || fclose (f) != 0;
  3642. ;
  3643. return 0;
  3644. }
  3645. _ACEOF
  3646. ac_clean_files="$ac_clean_files conftest.out"
  3647. # Check that the compiler produces executables we can run. If not, either
  3648. # the compiler is broken, or we cross compile.
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3650. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3651. if test "$cross_compiling" != yes; then
  3652. { { ac_try="$ac_link"
  3653. case "(($ac_try" in
  3654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3655. *) ac_try_echo=$ac_try;;
  3656. esac
  3657. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3658. $as_echo "$ac_try_echo"; } >&5
  3659. (eval "$ac_link") 2>&5
  3660. ac_status=$?
  3661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3662. test $ac_status = 0; }
  3663. if { ac_try='./conftest$ac_cv_exeext'
  3664. { { case "(($ac_try" in
  3665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3666. *) ac_try_echo=$ac_try;;
  3667. esac
  3668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3669. $as_echo "$ac_try_echo"; } >&5
  3670. (eval "$ac_try") 2>&5
  3671. ac_status=$?
  3672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3673. test $ac_status = 0; }; }; then
  3674. cross_compiling=no
  3675. else
  3676. if test "$cross_compiling" = maybe; then
  3677. cross_compiling=yes
  3678. else
  3679. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3680. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3681. as_fn_error $? "cannot run C compiled programs.
  3682. If you meant to cross compile, use \`--host'.
  3683. See \`config.log' for more details" "$LINENO" 5; }
  3684. fi
  3685. fi
  3686. fi
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3688. $as_echo "$cross_compiling" >&6; }
  3689. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3690. ac_clean_files=$ac_clean_files_save
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3692. $as_echo_n "checking for suffix of object files... " >&6; }
  3693. if ${ac_cv_objext+:} false; then :
  3694. $as_echo_n "(cached) " >&6
  3695. else
  3696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3697. /* end confdefs.h. */
  3698. int
  3699. main ()
  3700. {
  3701. ;
  3702. return 0;
  3703. }
  3704. _ACEOF
  3705. rm -f conftest.o conftest.obj
  3706. if { { ac_try="$ac_compile"
  3707. case "(($ac_try" in
  3708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3709. *) ac_try_echo=$ac_try;;
  3710. esac
  3711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3712. $as_echo "$ac_try_echo"; } >&5
  3713. (eval "$ac_compile") 2>&5
  3714. ac_status=$?
  3715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3716. test $ac_status = 0; }; then :
  3717. for ac_file in conftest.o conftest.obj conftest.*; do
  3718. test -f "$ac_file" || continue;
  3719. case $ac_file in
  3720. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3721. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3722. break;;
  3723. esac
  3724. done
  3725. else
  3726. $as_echo "$as_me: failed program was:" >&5
  3727. sed 's/^/| /' conftest.$ac_ext >&5
  3728. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3729. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3730. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3731. See \`config.log' for more details" "$LINENO" 5; }
  3732. fi
  3733. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3734. fi
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3736. $as_echo "$ac_cv_objext" >&6; }
  3737. OBJEXT=$ac_cv_objext
  3738. ac_objext=$OBJEXT
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3740. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3741. if ${ac_cv_c_compiler_gnu+:} false; then :
  3742. $as_echo_n "(cached) " >&6
  3743. else
  3744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3745. /* end confdefs.h. */
  3746. int
  3747. main ()
  3748. {
  3749. #ifndef __GNUC__
  3750. choke me
  3751. #endif
  3752. ;
  3753. return 0;
  3754. }
  3755. _ACEOF
  3756. if ac_fn_c_try_compile "$LINENO"; then :
  3757. ac_compiler_gnu=yes
  3758. else
  3759. ac_compiler_gnu=no
  3760. fi
  3761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3762. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3763. fi
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3765. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3766. if test $ac_compiler_gnu = yes; then
  3767. GCC=yes
  3768. else
  3769. GCC=
  3770. fi
  3771. ac_test_CFLAGS=${CFLAGS+set}
  3772. ac_save_CFLAGS=$CFLAGS
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3774. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3775. if ${ac_cv_prog_cc_g+:} false; then :
  3776. $as_echo_n "(cached) " >&6
  3777. else
  3778. ac_save_c_werror_flag=$ac_c_werror_flag
  3779. ac_c_werror_flag=yes
  3780. ac_cv_prog_cc_g=no
  3781. CFLAGS="-g"
  3782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3783. /* end confdefs.h. */
  3784. int
  3785. main ()
  3786. {
  3787. ;
  3788. return 0;
  3789. }
  3790. _ACEOF
  3791. if ac_fn_c_try_compile "$LINENO"; then :
  3792. ac_cv_prog_cc_g=yes
  3793. else
  3794. CFLAGS=""
  3795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3796. /* end confdefs.h. */
  3797. int
  3798. main ()
  3799. {
  3800. ;
  3801. return 0;
  3802. }
  3803. _ACEOF
  3804. if ac_fn_c_try_compile "$LINENO"; then :
  3805. else
  3806. ac_c_werror_flag=$ac_save_c_werror_flag
  3807. CFLAGS="-g"
  3808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3809. /* end confdefs.h. */
  3810. int
  3811. main ()
  3812. {
  3813. ;
  3814. return 0;
  3815. }
  3816. _ACEOF
  3817. if ac_fn_c_try_compile "$LINENO"; then :
  3818. ac_cv_prog_cc_g=yes
  3819. fi
  3820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3821. fi
  3822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3823. fi
  3824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3825. ac_c_werror_flag=$ac_save_c_werror_flag
  3826. fi
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3828. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3829. if test "$ac_test_CFLAGS" = set; then
  3830. CFLAGS=$ac_save_CFLAGS
  3831. elif test $ac_cv_prog_cc_g = yes; then
  3832. if test "$GCC" = yes; then
  3833. CFLAGS="-g -O2"
  3834. else
  3835. CFLAGS="-g"
  3836. fi
  3837. else
  3838. if test "$GCC" = yes; then
  3839. CFLAGS="-O2"
  3840. else
  3841. CFLAGS=
  3842. fi
  3843. fi
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3845. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3846. if ${ac_cv_prog_cc_c89+:} false; then :
  3847. $as_echo_n "(cached) " >&6
  3848. else
  3849. ac_cv_prog_cc_c89=no
  3850. ac_save_CC=$CC
  3851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3852. /* end confdefs.h. */
  3853. #include <stdarg.h>
  3854. #include <stdio.h>
  3855. struct stat;
  3856. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3857. struct buf { int x; };
  3858. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3859. static char *e (p, i)
  3860. char **p;
  3861. int i;
  3862. {
  3863. return p[i];
  3864. }
  3865. static char *f (char * (*g) (char **, int), char **p, ...)
  3866. {
  3867. char *s;
  3868. va_list v;
  3869. va_start (v,p);
  3870. s = g (p, va_arg (v,int));
  3871. va_end (v);
  3872. return s;
  3873. }
  3874. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3875. function prototypes and stuff, but not '\xHH' hex character constants.
  3876. These don't provoke an error unfortunately, instead are silently treated
  3877. as 'x'. The following induces an error, until -std is added to get
  3878. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3879. array size at least. It's necessary to write '\x00'==0 to get something
  3880. that's true only with -std. */
  3881. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3882. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3883. inside strings and character constants. */
  3884. #define FOO(x) 'x'
  3885. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3886. int test (int i, double x);
  3887. struct s1 {int (*f) (int a);};
  3888. struct s2 {int (*f) (double a);};
  3889. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3890. int argc;
  3891. char **argv;
  3892. int
  3893. main ()
  3894. {
  3895. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3896. ;
  3897. return 0;
  3898. }
  3899. _ACEOF
  3900. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3901. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3902. do
  3903. CC="$ac_save_CC $ac_arg"
  3904. if ac_fn_c_try_compile "$LINENO"; then :
  3905. ac_cv_prog_cc_c89=$ac_arg
  3906. fi
  3907. rm -f core conftest.err conftest.$ac_objext
  3908. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3909. done
  3910. rm -f conftest.$ac_ext
  3911. CC=$ac_save_CC
  3912. fi
  3913. # AC_CACHE_VAL
  3914. case "x$ac_cv_prog_cc_c89" in
  3915. x)
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3917. $as_echo "none needed" >&6; } ;;
  3918. xno)
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3920. $as_echo "unsupported" >&6; } ;;
  3921. *)
  3922. CC="$CC $ac_cv_prog_cc_c89"
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3924. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3925. esac
  3926. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3927. fi
  3928. ac_ext=c
  3929. ac_cpp='$CPP $CPPFLAGS'
  3930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3933. ac_ext=c
  3934. ac_cpp='$CPP $CPPFLAGS'
  3935. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3936. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3937. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3939. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3940. if ${am_cv_prog_cc_c_o+:} false; then :
  3941. $as_echo_n "(cached) " >&6
  3942. else
  3943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3944. /* end confdefs.h. */
  3945. int
  3946. main ()
  3947. {
  3948. ;
  3949. return 0;
  3950. }
  3951. _ACEOF
  3952. # Make sure it works both with $CC and with simple cc.
  3953. # Following AC_PROG_CC_C_O, we do the test twice because some
  3954. # compilers refuse to overwrite an existing .o file with -o,
  3955. # though they will create one.
  3956. am_cv_prog_cc_c_o=yes
  3957. for am_i in 1 2; do
  3958. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3959. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3960. ac_status=$?
  3961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3962. (exit $ac_status); } \
  3963. && test -f conftest2.$ac_objext; then
  3964. : OK
  3965. else
  3966. am_cv_prog_cc_c_o=no
  3967. break
  3968. fi
  3969. done
  3970. rm -f core conftest*
  3971. unset am_i
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3974. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3975. if test "$am_cv_prog_cc_c_o" != yes; then
  3976. # Losing compiler, so override with the script.
  3977. # FIXME: It is wrong to rewrite CC.
  3978. # But if we don't then we get into trouble of one sort or another.
  3979. # A longer-term fix would be to have automake use am__CC in this case,
  3980. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3981. CC="$am_aux_dir/compile $CC"
  3982. fi
  3983. ac_ext=c
  3984. ac_cpp='$CPP $CPPFLAGS'
  3985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3988. DEPDIR="${am__leading_dot}deps"
  3989. ac_config_commands="$ac_config_commands depfiles"
  3990. am_make=${MAKE-make}
  3991. cat > confinc << 'END'
  3992. am__doit:
  3993. @echo this is the am__doit target
  3994. .PHONY: am__doit
  3995. END
  3996. # If we don't find an include directive, just comment out the code.
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3998. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3999. am__include="#"
  4000. am__quote=
  4001. _am_result=none
  4002. # First try GNU make style include.
  4003. echo "include confinc" > confmf
  4004. # Ignore all kinds of additional output from 'make'.
  4005. case `$am_make -s -f confmf 2> /dev/null` in #(
  4006. *the\ am__doit\ target*)
  4007. am__include=include
  4008. am__quote=
  4009. _am_result=GNU
  4010. ;;
  4011. esac
  4012. # Now try BSD make style include.
  4013. if test "$am__include" = "#"; then
  4014. echo '.include "confinc"' > confmf
  4015. case `$am_make -s -f confmf 2> /dev/null` in #(
  4016. *the\ am__doit\ target*)
  4017. am__include=.include
  4018. am__quote="\""
  4019. _am_result=BSD
  4020. ;;
  4021. esac
  4022. fi
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4024. $as_echo "$_am_result" >&6; }
  4025. rm -f confinc confmf
  4026. @%:@ Check whether --enable-dependency-tracking was given.
  4027. if test "${enable_dependency_tracking+set}" = set; then :
  4028. enableval=$enable_dependency_tracking;
  4029. fi
  4030. if test "x$enable_dependency_tracking" != xno; then
  4031. am_depcomp="$ac_aux_dir/depcomp"
  4032. AMDEPBACKSLASH='\'
  4033. am__nodep='_no'
  4034. fi
  4035. if test "x$enable_dependency_tracking" != xno; then
  4036. AMDEP_TRUE=
  4037. AMDEP_FALSE='#'
  4038. else
  4039. AMDEP_TRUE='#'
  4040. AMDEP_FALSE=
  4041. fi
  4042. depcc="$CC" am_compiler_list=
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4044. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4045. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4046. $as_echo_n "(cached) " >&6
  4047. else
  4048. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4049. # We make a subdir and do the tests there. Otherwise we can end up
  4050. # making bogus files that we don't know about and never remove. For
  4051. # instance it was reported that on HP-UX the gcc test will end up
  4052. # making a dummy file named 'D' -- because '-MD' means "put the output
  4053. # in D".
  4054. rm -rf conftest.dir
  4055. mkdir conftest.dir
  4056. # Copy depcomp to subdir because otherwise we won't find it if we're
  4057. # using a relative directory.
  4058. cp "$am_depcomp" conftest.dir
  4059. cd conftest.dir
  4060. # We will build objects and dependencies in a subdirectory because
  4061. # it helps to detect inapplicable dependency modes. For instance
  4062. # both Tru64's cc and ICC support -MD to output dependencies as a
  4063. # side effect of compilation, but ICC will put the dependencies in
  4064. # the current directory while Tru64 will put them in the object
  4065. # directory.
  4066. mkdir sub
  4067. am_cv_CC_dependencies_compiler_type=none
  4068. if test "$am_compiler_list" = ""; then
  4069. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4070. fi
  4071. am__universal=false
  4072. case " $depcc " in #(
  4073. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4074. esac
  4075. for depmode in $am_compiler_list; do
  4076. # Setup a source with many dependencies, because some compilers
  4077. # like to wrap large dependency lists on column 80 (with \), and
  4078. # we should not choose a depcomp mode which is confused by this.
  4079. #
  4080. # We need to recreate these files for each test, as the compiler may
  4081. # overwrite some of them when testing with obscure command lines.
  4082. # This happens at least with the AIX C compiler.
  4083. : > sub/conftest.c
  4084. for i in 1 2 3 4 5 6; do
  4085. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4086. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4087. # Solaris 10 /bin/sh.
  4088. echo '/* dummy */' > sub/conftst$i.h
  4089. done
  4090. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4091. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4092. # mode. It turns out that the SunPro C++ compiler does not properly
  4093. # handle '-M -o', and we need to detect this. Also, some Intel
  4094. # versions had trouble with output in subdirs.
  4095. am__obj=sub/conftest.${OBJEXT-o}
  4096. am__minus_obj="-o $am__obj"
  4097. case $depmode in
  4098. gcc)
  4099. # This depmode causes a compiler race in universal mode.
  4100. test "$am__universal" = false || continue
  4101. ;;
  4102. nosideeffect)
  4103. # After this tag, mechanisms are not by side-effect, so they'll
  4104. # only be used when explicitly requested.
  4105. if test "x$enable_dependency_tracking" = xyes; then
  4106. continue
  4107. else
  4108. break
  4109. fi
  4110. ;;
  4111. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4112. # This compiler won't grok '-c -o', but also, the minuso test has
  4113. # not run yet. These depmodes are late enough in the game, and
  4114. # so weak that their functioning should not be impacted.
  4115. am__obj=conftest.${OBJEXT-o}
  4116. am__minus_obj=
  4117. ;;
  4118. none) break ;;
  4119. esac
  4120. if depmode=$depmode \
  4121. source=sub/conftest.c object=$am__obj \
  4122. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4123. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4124. >/dev/null 2>conftest.err &&
  4125. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4126. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4127. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4128. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4129. # icc doesn't choke on unknown options, it will just issue warnings
  4130. # or remarks (even with -Werror). So we grep stderr for any message
  4131. # that says an option was ignored or not supported.
  4132. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4133. # icc: Command line warning: ignoring option '-M'; no argument required
  4134. # The diagnosis changed in icc 8.0:
  4135. # icc: Command line remark: option '-MP' not supported
  4136. if (grep 'ignoring option' conftest.err ||
  4137. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4138. am_cv_CC_dependencies_compiler_type=$depmode
  4139. break
  4140. fi
  4141. fi
  4142. done
  4143. cd ..
  4144. rm -rf conftest.dir
  4145. else
  4146. am_cv_CC_dependencies_compiler_type=none
  4147. fi
  4148. fi
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4150. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4151. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4152. if
  4153. test "x$enable_dependency_tracking" != xno \
  4154. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4155. am__fastdepCC_TRUE=
  4156. am__fastdepCC_FALSE='#'
  4157. else
  4158. am__fastdepCC_TRUE='#'
  4159. am__fastdepCC_FALSE=
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4162. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4163. if ${ac_cv_path_SED+:} false; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4167. for ac_i in 1 2 3 4 5 6 7; do
  4168. ac_script="$ac_script$as_nl$ac_script"
  4169. done
  4170. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4171. { ac_script=; unset ac_script;}
  4172. if test -z "$SED"; then
  4173. ac_path_SED_found=false
  4174. # Loop through the user's path and test for each of PROGNAME-LIST
  4175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4176. for as_dir in $PATH
  4177. do
  4178. IFS=$as_save_IFS
  4179. test -z "$as_dir" && as_dir=.
  4180. for ac_prog in sed gsed; do
  4181. for ac_exec_ext in '' $ac_executable_extensions; do
  4182. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4183. as_fn_executable_p "$ac_path_SED" || continue
  4184. # Check for GNU ac_path_SED and select it if it is found.
  4185. # Check for GNU $ac_path_SED
  4186. case `"$ac_path_SED" --version 2>&1` in
  4187. *GNU*)
  4188. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4189. *)
  4190. ac_count=0
  4191. $as_echo_n 0123456789 >"conftest.in"
  4192. while :
  4193. do
  4194. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4195. mv "conftest.tmp" "conftest.in"
  4196. cp "conftest.in" "conftest.nl"
  4197. $as_echo '' >> "conftest.nl"
  4198. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4199. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4200. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4201. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4202. # Best one so far, save it but keep looking for a better one
  4203. ac_cv_path_SED="$ac_path_SED"
  4204. ac_path_SED_max=$ac_count
  4205. fi
  4206. # 10*(2^10) chars as input seems more than enough
  4207. test $ac_count -gt 10 && break
  4208. done
  4209. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4210. esac
  4211. $ac_path_SED_found && break 3
  4212. done
  4213. done
  4214. done
  4215. IFS=$as_save_IFS
  4216. if test -z "$ac_cv_path_SED"; then
  4217. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4218. fi
  4219. else
  4220. ac_cv_path_SED=$SED
  4221. fi
  4222. fi
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4224. $as_echo "$ac_cv_path_SED" >&6; }
  4225. SED="$ac_cv_path_SED"
  4226. rm -f conftest.sed
  4227. test -z "$SED" && SED=sed
  4228. Xsed="$SED -e 1s/^X//"
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4230. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4231. if ${ac_cv_path_GREP+:} false; then :
  4232. $as_echo_n "(cached) " >&6
  4233. else
  4234. if test -z "$GREP"; then
  4235. ac_path_GREP_found=false
  4236. # Loop through the user's path and test for each of PROGNAME-LIST
  4237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4238. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4239. do
  4240. IFS=$as_save_IFS
  4241. test -z "$as_dir" && as_dir=.
  4242. for ac_prog in grep ggrep; do
  4243. for ac_exec_ext in '' $ac_executable_extensions; do
  4244. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4245. as_fn_executable_p "$ac_path_GREP" || continue
  4246. # Check for GNU ac_path_GREP and select it if it is found.
  4247. # Check for GNU $ac_path_GREP
  4248. case `"$ac_path_GREP" --version 2>&1` in
  4249. *GNU*)
  4250. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4251. *)
  4252. ac_count=0
  4253. $as_echo_n 0123456789 >"conftest.in"
  4254. while :
  4255. do
  4256. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4257. mv "conftest.tmp" "conftest.in"
  4258. cp "conftest.in" "conftest.nl"
  4259. $as_echo 'GREP' >> "conftest.nl"
  4260. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4261. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4262. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4263. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4264. # Best one so far, save it but keep looking for a better one
  4265. ac_cv_path_GREP="$ac_path_GREP"
  4266. ac_path_GREP_max=$ac_count
  4267. fi
  4268. # 10*(2^10) chars as input seems more than enough
  4269. test $ac_count -gt 10 && break
  4270. done
  4271. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4272. esac
  4273. $ac_path_GREP_found && break 3
  4274. done
  4275. done
  4276. done
  4277. IFS=$as_save_IFS
  4278. if test -z "$ac_cv_path_GREP"; then
  4279. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4280. fi
  4281. else
  4282. ac_cv_path_GREP=$GREP
  4283. fi
  4284. fi
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4286. $as_echo "$ac_cv_path_GREP" >&6; }
  4287. GREP="$ac_cv_path_GREP"
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4289. $as_echo_n "checking for egrep... " >&6; }
  4290. if ${ac_cv_path_EGREP+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4294. then ac_cv_path_EGREP="$GREP -E"
  4295. else
  4296. if test -z "$EGREP"; then
  4297. ac_path_EGREP_found=false
  4298. # Loop through the user's path and test for each of PROGNAME-LIST
  4299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4300. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4301. do
  4302. IFS=$as_save_IFS
  4303. test -z "$as_dir" && as_dir=.
  4304. for ac_prog in egrep; do
  4305. for ac_exec_ext in '' $ac_executable_extensions; do
  4306. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4307. as_fn_executable_p "$ac_path_EGREP" || continue
  4308. # Check for GNU ac_path_EGREP and select it if it is found.
  4309. # Check for GNU $ac_path_EGREP
  4310. case `"$ac_path_EGREP" --version 2>&1` in
  4311. *GNU*)
  4312. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4313. *)
  4314. ac_count=0
  4315. $as_echo_n 0123456789 >"conftest.in"
  4316. while :
  4317. do
  4318. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4319. mv "conftest.tmp" "conftest.in"
  4320. cp "conftest.in" "conftest.nl"
  4321. $as_echo 'EGREP' >> "conftest.nl"
  4322. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4323. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4324. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4325. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4326. # Best one so far, save it but keep looking for a better one
  4327. ac_cv_path_EGREP="$ac_path_EGREP"
  4328. ac_path_EGREP_max=$ac_count
  4329. fi
  4330. # 10*(2^10) chars as input seems more than enough
  4331. test $ac_count -gt 10 && break
  4332. done
  4333. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4334. esac
  4335. $ac_path_EGREP_found && break 3
  4336. done
  4337. done
  4338. done
  4339. IFS=$as_save_IFS
  4340. if test -z "$ac_cv_path_EGREP"; then
  4341. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4342. fi
  4343. else
  4344. ac_cv_path_EGREP=$EGREP
  4345. fi
  4346. fi
  4347. fi
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4349. $as_echo "$ac_cv_path_EGREP" >&6; }
  4350. EGREP="$ac_cv_path_EGREP"
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4352. $as_echo_n "checking for fgrep... " >&6; }
  4353. if ${ac_cv_path_FGREP+:} false; then :
  4354. $as_echo_n "(cached) " >&6
  4355. else
  4356. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4357. then ac_cv_path_FGREP="$GREP -F"
  4358. else
  4359. if test -z "$FGREP"; then
  4360. ac_path_FGREP_found=false
  4361. # Loop through the user's path and test for each of PROGNAME-LIST
  4362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4363. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4364. do
  4365. IFS=$as_save_IFS
  4366. test -z "$as_dir" && as_dir=.
  4367. for ac_prog in fgrep; do
  4368. for ac_exec_ext in '' $ac_executable_extensions; do
  4369. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4370. as_fn_executable_p "$ac_path_FGREP" || continue
  4371. # Check for GNU ac_path_FGREP and select it if it is found.
  4372. # Check for GNU $ac_path_FGREP
  4373. case `"$ac_path_FGREP" --version 2>&1` in
  4374. *GNU*)
  4375. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4376. *)
  4377. ac_count=0
  4378. $as_echo_n 0123456789 >"conftest.in"
  4379. while :
  4380. do
  4381. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4382. mv "conftest.tmp" "conftest.in"
  4383. cp "conftest.in" "conftest.nl"
  4384. $as_echo 'FGREP' >> "conftest.nl"
  4385. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4386. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4387. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4388. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4389. # Best one so far, save it but keep looking for a better one
  4390. ac_cv_path_FGREP="$ac_path_FGREP"
  4391. ac_path_FGREP_max=$ac_count
  4392. fi
  4393. # 10*(2^10) chars as input seems more than enough
  4394. test $ac_count -gt 10 && break
  4395. done
  4396. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4397. esac
  4398. $ac_path_FGREP_found && break 3
  4399. done
  4400. done
  4401. done
  4402. IFS=$as_save_IFS
  4403. if test -z "$ac_cv_path_FGREP"; then
  4404. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4405. fi
  4406. else
  4407. ac_cv_path_FGREP=$FGREP
  4408. fi
  4409. fi
  4410. fi
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4412. $as_echo "$ac_cv_path_FGREP" >&6; }
  4413. FGREP="$ac_cv_path_FGREP"
  4414. test -z "$GREP" && GREP=grep
  4415. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4416. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4417. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4419. $as_echo_n "checking how to print strings... " >&6; }
  4420. # Test print first, because it will be a builtin if present.
  4421. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4422. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4423. ECHO='print -r --'
  4424. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4425. ECHO='printf %s\n'
  4426. else
  4427. # Use this function as a fallback that always works.
  4428. func_fallback_echo ()
  4429. {
  4430. eval 'cat <<_LTECHO_EOF
  4431. $1
  4432. _LTECHO_EOF'
  4433. }
  4434. ECHO='func_fallback_echo'
  4435. fi
  4436. # func_echo_all arg...
  4437. # Invoke $ECHO with all args, space-separated.
  4438. func_echo_all ()
  4439. {
  4440. $ECHO ""
  4441. }
  4442. case $ECHO in
  4443. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4444. $as_echo "printf" >&6; } ;;
  4445. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4446. $as_echo "print -r" >&6; } ;;
  4447. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4448. $as_echo "cat" >&6; } ;;
  4449. esac
  4450. @%:@ Check whether --with-gnu-ld was given.
  4451. if test "${with_gnu_ld+set}" = set; then :
  4452. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4453. else
  4454. with_gnu_ld=no
  4455. fi
  4456. ac_prog=ld
  4457. if test yes = "$GCC"; then
  4458. # Check if gcc -print-prog-name=ld gives a path.
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4460. $as_echo_n "checking for ld used by $CC... " >&6; }
  4461. case $host in
  4462. *-*-mingw*)
  4463. # gcc leaves a trailing carriage return, which upsets mingw
  4464. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4465. *)
  4466. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4467. esac
  4468. case $ac_prog in
  4469. # Accept absolute paths.
  4470. [\\/]* | ?:[\\/]*)
  4471. re_direlt='/[^/][^/]*/\.\./'
  4472. # Canonicalize the pathname of ld
  4473. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4474. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4475. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4476. done
  4477. test -z "$LD" && LD=$ac_prog
  4478. ;;
  4479. "")
  4480. # If it fails, then pretend we aren't using GCC.
  4481. ac_prog=ld
  4482. ;;
  4483. *)
  4484. # If it is relative, then search for the first ld in PATH.
  4485. with_gnu_ld=unknown
  4486. ;;
  4487. esac
  4488. elif test yes = "$with_gnu_ld"; then
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4490. $as_echo_n "checking for GNU ld... " >&6; }
  4491. else
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4493. $as_echo_n "checking for non-GNU ld... " >&6; }
  4494. fi
  4495. if ${lt_cv_path_LD+:} false; then :
  4496. $as_echo_n "(cached) " >&6
  4497. else
  4498. if test -z "$LD"; then
  4499. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4500. for ac_dir in $PATH; do
  4501. IFS=$lt_save_ifs
  4502. test -z "$ac_dir" && ac_dir=.
  4503. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4504. lt_cv_path_LD=$ac_dir/$ac_prog
  4505. # Check to see if the program is GNU ld. I'd rather use --version,
  4506. # but apparently some variants of GNU ld only accept -v.
  4507. # Break only if it was the GNU/non-GNU ld that we prefer.
  4508. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4509. *GNU* | *'with BFD'*)
  4510. test no != "$with_gnu_ld" && break
  4511. ;;
  4512. *)
  4513. test yes != "$with_gnu_ld" && break
  4514. ;;
  4515. esac
  4516. fi
  4517. done
  4518. IFS=$lt_save_ifs
  4519. else
  4520. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4521. fi
  4522. fi
  4523. LD=$lt_cv_path_LD
  4524. if test -n "$LD"; then
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4526. $as_echo "$LD" >&6; }
  4527. else
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4529. $as_echo "no" >&6; }
  4530. fi
  4531. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4533. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4534. if ${lt_cv_prog_gnu_ld+:} false; then :
  4535. $as_echo_n "(cached) " >&6
  4536. else
  4537. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4538. case `$LD -v 2>&1 </dev/null` in
  4539. *GNU* | *'with BFD'*)
  4540. lt_cv_prog_gnu_ld=yes
  4541. ;;
  4542. *)
  4543. lt_cv_prog_gnu_ld=no
  4544. ;;
  4545. esac
  4546. fi
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4548. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4549. with_gnu_ld=$lt_cv_prog_gnu_ld
  4550. for ac_prog in gawk mawk nawk awk
  4551. do
  4552. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4553. set dummy $ac_prog; ac_word=$2
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4555. $as_echo_n "checking for $ac_word... " >&6; }
  4556. if ${ac_cv_prog_AWK+:} false; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. if test -n "$AWK"; then
  4560. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4561. else
  4562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4563. for as_dir in $PATH
  4564. do
  4565. IFS=$as_save_IFS
  4566. test -z "$as_dir" && as_dir=.
  4567. for ac_exec_ext in '' $ac_executable_extensions; do
  4568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4569. ac_cv_prog_AWK="$ac_prog"
  4570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4571. break 2
  4572. fi
  4573. done
  4574. done
  4575. IFS=$as_save_IFS
  4576. fi
  4577. fi
  4578. AWK=$ac_cv_prog_AWK
  4579. if test -n "$AWK"; then
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4581. $as_echo "$AWK" >&6; }
  4582. else
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4584. $as_echo "no" >&6; }
  4585. fi
  4586. test -n "$AWK" && break
  4587. done
  4588. ac_ext=c
  4589. ac_cpp='$CPP $CPPFLAGS'
  4590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4594. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4595. # On Suns, sometimes $CPP names a directory.
  4596. if test -n "$CPP" && test -d "$CPP"; then
  4597. CPP=
  4598. fi
  4599. if test -z "$CPP"; then
  4600. if ${ac_cv_prog_CPP+:} false; then :
  4601. $as_echo_n "(cached) " >&6
  4602. else
  4603. # Double quotes because CPP needs to be expanded
  4604. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4605. do
  4606. ac_preproc_ok=false
  4607. for ac_c_preproc_warn_flag in '' yes
  4608. do
  4609. # Use a header file that comes with gcc, so configuring glibc
  4610. # with a fresh cross-compiler works.
  4611. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4612. # <limits.h> exists even on freestanding compilers.
  4613. # On the NeXT, cc -E runs the code through the compiler's parser,
  4614. # not just through cpp. "Syntax error" is here to catch this case.
  4615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4616. /* end confdefs.h. */
  4617. @%:@ifdef __STDC__
  4618. @%:@ include <limits.h>
  4619. @%:@else
  4620. @%:@ include <assert.h>
  4621. @%:@endif
  4622. Syntax error
  4623. _ACEOF
  4624. if ac_fn_c_try_cpp "$LINENO"; then :
  4625. else
  4626. # Broken: fails on valid input.
  4627. continue
  4628. fi
  4629. rm -f conftest.err conftest.i conftest.$ac_ext
  4630. # OK, works on sane cases. Now check whether nonexistent headers
  4631. # can be detected and how.
  4632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4633. /* end confdefs.h. */
  4634. @%:@include <ac_nonexistent.h>
  4635. _ACEOF
  4636. if ac_fn_c_try_cpp "$LINENO"; then :
  4637. # Broken: success on invalid input.
  4638. continue
  4639. else
  4640. # Passes both tests.
  4641. ac_preproc_ok=:
  4642. break
  4643. fi
  4644. rm -f conftest.err conftest.i conftest.$ac_ext
  4645. done
  4646. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4647. rm -f conftest.i conftest.err conftest.$ac_ext
  4648. if $ac_preproc_ok; then :
  4649. break
  4650. fi
  4651. done
  4652. ac_cv_prog_CPP=$CPP
  4653. fi
  4654. CPP=$ac_cv_prog_CPP
  4655. else
  4656. ac_cv_prog_CPP=$CPP
  4657. fi
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4659. $as_echo "$CPP" >&6; }
  4660. ac_preproc_ok=false
  4661. for ac_c_preproc_warn_flag in '' yes
  4662. do
  4663. # Use a header file that comes with gcc, so configuring glibc
  4664. # with a fresh cross-compiler works.
  4665. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4666. # <limits.h> exists even on freestanding compilers.
  4667. # On the NeXT, cc -E runs the code through the compiler's parser,
  4668. # not just through cpp. "Syntax error" is here to catch this case.
  4669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4670. /* end confdefs.h. */
  4671. @%:@ifdef __STDC__
  4672. @%:@ include <limits.h>
  4673. @%:@else
  4674. @%:@ include <assert.h>
  4675. @%:@endif
  4676. Syntax error
  4677. _ACEOF
  4678. if ac_fn_c_try_cpp "$LINENO"; then :
  4679. else
  4680. # Broken: fails on valid input.
  4681. continue
  4682. fi
  4683. rm -f conftest.err conftest.i conftest.$ac_ext
  4684. # OK, works on sane cases. Now check whether nonexistent headers
  4685. # can be detected and how.
  4686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4687. /* end confdefs.h. */
  4688. @%:@include <ac_nonexistent.h>
  4689. _ACEOF
  4690. if ac_fn_c_try_cpp "$LINENO"; then :
  4691. # Broken: success on invalid input.
  4692. continue
  4693. else
  4694. # Passes both tests.
  4695. ac_preproc_ok=:
  4696. break
  4697. fi
  4698. rm -f conftest.err conftest.i conftest.$ac_ext
  4699. done
  4700. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4701. rm -f conftest.i conftest.err conftest.$ac_ext
  4702. if $ac_preproc_ok; then :
  4703. else
  4704. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4705. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4706. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4707. See \`config.log' for more details" "$LINENO" 5; }
  4708. fi
  4709. ac_ext=c
  4710. ac_cpp='$CPP $CPPFLAGS'
  4711. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4712. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4713. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4715. $as_echo_n "checking whether ln -s works... " >&6; }
  4716. LN_S=$as_ln_s
  4717. if test "$LN_S" = "ln -s"; then
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4719. $as_echo "yes" >&6; }
  4720. else
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4722. $as_echo "no, using $LN_S" >&6; }
  4723. fi
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4725. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4726. set x ${MAKE-make}
  4727. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4728. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4729. $as_echo_n "(cached) " >&6
  4730. else
  4731. cat >conftest.make <<\_ACEOF
  4732. SHELL = /bin/sh
  4733. all:
  4734. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4735. _ACEOF
  4736. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4737. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4738. *@@@%%%=?*=@@@%%%*)
  4739. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4740. *)
  4741. eval ac_cv_prog_make_${ac_make}_set=no;;
  4742. esac
  4743. rm -f conftest.make
  4744. fi
  4745. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4747. $as_echo "yes" >&6; }
  4748. SET_MAKE=
  4749. else
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4751. $as_echo "no" >&6; }
  4752. SET_MAKE="MAKE=${MAKE-make}"
  4753. fi
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4755. $as_echo_n "checking for ANSI C header files... " >&6; }
  4756. if ${ac_cv_header_stdc+:} false; then :
  4757. $as_echo_n "(cached) " >&6
  4758. else
  4759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4760. /* end confdefs.h. */
  4761. #include <stdlib.h>
  4762. #include <stdarg.h>
  4763. #include <string.h>
  4764. #include <float.h>
  4765. int
  4766. main ()
  4767. {
  4768. ;
  4769. return 0;
  4770. }
  4771. _ACEOF
  4772. if ac_fn_c_try_compile "$LINENO"; then :
  4773. ac_cv_header_stdc=yes
  4774. else
  4775. ac_cv_header_stdc=no
  4776. fi
  4777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4778. if test $ac_cv_header_stdc = yes; then
  4779. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4781. /* end confdefs.h. */
  4782. #include <string.h>
  4783. _ACEOF
  4784. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4785. $EGREP "memchr" >/dev/null 2>&1; then :
  4786. else
  4787. ac_cv_header_stdc=no
  4788. fi
  4789. rm -f conftest*
  4790. fi
  4791. if test $ac_cv_header_stdc = yes; then
  4792. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4794. /* end confdefs.h. */
  4795. #include <stdlib.h>
  4796. _ACEOF
  4797. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4798. $EGREP "free" >/dev/null 2>&1; then :
  4799. else
  4800. ac_cv_header_stdc=no
  4801. fi
  4802. rm -f conftest*
  4803. fi
  4804. if test $ac_cv_header_stdc = yes; then
  4805. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4806. if test "$cross_compiling" = yes; then :
  4807. :
  4808. else
  4809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4810. /* end confdefs.h. */
  4811. #include <ctype.h>
  4812. #include <stdlib.h>
  4813. #if ((' ' & 0x0FF) == 0x020)
  4814. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4815. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4816. #else
  4817. # define ISLOWER(c) \
  4818. (('a' <= (c) && (c) <= 'i') \
  4819. || ('j' <= (c) && (c) <= 'r') \
  4820. || ('s' <= (c) && (c) <= 'z'))
  4821. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4822. #endif
  4823. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4824. int
  4825. main ()
  4826. {
  4827. int i;
  4828. for (i = 0; i < 256; i++)
  4829. if (XOR (islower (i), ISLOWER (i))
  4830. || toupper (i) != TOUPPER (i))
  4831. return 2;
  4832. return 0;
  4833. }
  4834. _ACEOF
  4835. if ac_fn_c_try_run "$LINENO"; then :
  4836. else
  4837. ac_cv_header_stdc=no
  4838. fi
  4839. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4840. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4841. fi
  4842. fi
  4843. fi
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4845. $as_echo "$ac_cv_header_stdc" >&6; }
  4846. if test $ac_cv_header_stdc = yes; then
  4847. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  4848. fi
  4849. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4850. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4851. inttypes.h stdint.h unistd.h
  4852. do :
  4853. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4854. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4855. "
  4856. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4857. cat >>confdefs.h <<_ACEOF
  4858. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4859. _ACEOF
  4860. fi
  4861. done
  4862. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4863. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4864. MINIX=yes
  4865. else
  4866. MINIX=
  4867. fi
  4868. if test "$MINIX" = yes; then
  4869. $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
  4870. $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
  4871. $as_echo "@%:@define _MINIX 1" >>confdefs.h
  4872. fi
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4874. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4875. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4876. $as_echo_n "(cached) " >&6
  4877. else
  4878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4879. /* end confdefs.h. */
  4880. # define __EXTENSIONS__ 1
  4881. $ac_includes_default
  4882. int
  4883. main ()
  4884. {
  4885. ;
  4886. return 0;
  4887. }
  4888. _ACEOF
  4889. if ac_fn_c_try_compile "$LINENO"; then :
  4890. ac_cv_safe_to_define___extensions__=yes
  4891. else
  4892. ac_cv_safe_to_define___extensions__=no
  4893. fi
  4894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4895. fi
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4897. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4898. test $ac_cv_safe_to_define___extensions__ = yes &&
  4899. $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
  4900. $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
  4901. $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
  4902. $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4903. $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
  4904. if test -n "$ac_tool_prefix"; then
  4905. for ac_prog in ar lib "link -lib"
  4906. do
  4907. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4908. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4910. $as_echo_n "checking for $ac_word... " >&6; }
  4911. if ${ac_cv_prog_AR+:} false; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. if test -n "$AR"; then
  4915. ac_cv_prog_AR="$AR" # Let the user override the test.
  4916. else
  4917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4918. for as_dir in $PATH
  4919. do
  4920. IFS=$as_save_IFS
  4921. test -z "$as_dir" && as_dir=.
  4922. for ac_exec_ext in '' $ac_executable_extensions; do
  4923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4924. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4926. break 2
  4927. fi
  4928. done
  4929. done
  4930. IFS=$as_save_IFS
  4931. fi
  4932. fi
  4933. AR=$ac_cv_prog_AR
  4934. if test -n "$AR"; then
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4936. $as_echo "$AR" >&6; }
  4937. else
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4939. $as_echo "no" >&6; }
  4940. fi
  4941. test -n "$AR" && break
  4942. done
  4943. fi
  4944. if test -z "$AR"; then
  4945. ac_ct_AR=$AR
  4946. for ac_prog in ar lib "link -lib"
  4947. do
  4948. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4949. set dummy $ac_prog; ac_word=$2
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4951. $as_echo_n "checking for $ac_word... " >&6; }
  4952. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4953. $as_echo_n "(cached) " >&6
  4954. else
  4955. if test -n "$ac_ct_AR"; then
  4956. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4957. else
  4958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4959. for as_dir in $PATH
  4960. do
  4961. IFS=$as_save_IFS
  4962. test -z "$as_dir" && as_dir=.
  4963. for ac_exec_ext in '' $ac_executable_extensions; do
  4964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4965. ac_cv_prog_ac_ct_AR="$ac_prog"
  4966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4967. break 2
  4968. fi
  4969. done
  4970. done
  4971. IFS=$as_save_IFS
  4972. fi
  4973. fi
  4974. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4975. if test -n "$ac_ct_AR"; then
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4977. $as_echo "$ac_ct_AR" >&6; }
  4978. else
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4980. $as_echo "no" >&6; }
  4981. fi
  4982. test -n "$ac_ct_AR" && break
  4983. done
  4984. if test "x$ac_ct_AR" = x; then
  4985. AR="false"
  4986. else
  4987. case $cross_compiling:$ac_tool_warned in
  4988. yes:)
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4991. ac_tool_warned=yes ;;
  4992. esac
  4993. AR=$ac_ct_AR
  4994. fi
  4995. fi
  4996. : ${AR=ar}
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4998. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4999. if ${am_cv_ar_interface+:} false; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. ac_ext=c
  5003. ac_cpp='$CPP $CPPFLAGS'
  5004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5007. am_cv_ar_interface=ar
  5008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5009. /* end confdefs.h. */
  5010. int some_variable = 0;
  5011. _ACEOF
  5012. if ac_fn_c_try_compile "$LINENO"; then :
  5013. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  5014. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5015. (eval $am_ar_try) 2>&5
  5016. ac_status=$?
  5017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5018. test $ac_status = 0; }
  5019. if test "$ac_status" -eq 0; then
  5020. am_cv_ar_interface=ar
  5021. else
  5022. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  5023. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5024. (eval $am_ar_try) 2>&5
  5025. ac_status=$?
  5026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5027. test $ac_status = 0; }
  5028. if test "$ac_status" -eq 0; then
  5029. am_cv_ar_interface=lib
  5030. else
  5031. am_cv_ar_interface=unknown
  5032. fi
  5033. fi
  5034. rm -f conftest.lib libconftest.a
  5035. fi
  5036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5037. ac_ext=c
  5038. ac_cpp='$CPP $CPPFLAGS'
  5039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5042. fi
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  5044. $as_echo "$am_cv_ar_interface" >&6; }
  5045. case $am_cv_ar_interface in
  5046. ar)
  5047. ;;
  5048. lib)
  5049. # Microsoft lib, so override with the ar-lib wrapper script.
  5050. # FIXME: It is wrong to rewrite AR.
  5051. # But if we don't then we get into trouble of one sort or another.
  5052. # A longer-term fix would be to have automake use am__AR in this case,
  5053. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  5054. # similar.
  5055. AR="$am_aux_dir/ar-lib $AR"
  5056. ;;
  5057. unknown)
  5058. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  5059. ;;
  5060. esac
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  5062. $as_echo_n "checking for library containing strerror... " >&6; }
  5063. if ${ac_cv_search_strerror+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. ac_func_search_save_LIBS=$LIBS
  5067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5068. /* end confdefs.h. */
  5069. /* Override any GCC internal prototype to avoid an error.
  5070. Use char because int might match the return type of a GCC
  5071. builtin and then its argument prototype would still apply. */
  5072. #ifdef __cplusplus
  5073. extern "C"
  5074. #endif
  5075. char strerror ();
  5076. int
  5077. main ()
  5078. {
  5079. return strerror ();
  5080. ;
  5081. return 0;
  5082. }
  5083. _ACEOF
  5084. for ac_lib in '' cposix; do
  5085. if test -z "$ac_lib"; then
  5086. ac_res="none required"
  5087. else
  5088. ac_res=-l$ac_lib
  5089. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5090. fi
  5091. if ac_fn_c_try_link "$LINENO"; then :
  5092. ac_cv_search_strerror=$ac_res
  5093. fi
  5094. rm -f core conftest.err conftest.$ac_objext \
  5095. conftest$ac_exeext
  5096. if ${ac_cv_search_strerror+:} false; then :
  5097. break
  5098. fi
  5099. done
  5100. if ${ac_cv_search_strerror+:} false; then :
  5101. else
  5102. ac_cv_search_strerror=no
  5103. fi
  5104. rm conftest.$ac_ext
  5105. LIBS=$ac_func_search_save_LIBS
  5106. fi
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  5108. $as_echo "$ac_cv_search_strerror" >&6; }
  5109. ac_res=$ac_cv_search_strerror
  5110. if test "$ac_res" != no; then :
  5111. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5112. fi
  5113. case $host_os in
  5114. *darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;;
  5115. * ) NO_RDYNAMIC=no;;
  5116. esac
  5117. if test x$NO_RDYNAMIC = xyes; then
  5118. NO_RDYNAMIC_TRUE=
  5119. NO_RDYNAMIC_FALSE='#'
  5120. else
  5121. NO_RDYNAMIC_TRUE='#'
  5122. NO_RDYNAMIC_FALSE=
  5123. fi
  5124. @%:@ Check whether --enable-static was given.
  5125. if test "${enable_static+set}" = set; then :
  5126. enableval=$enable_static; p=${PACKAGE-default}
  5127. case $enableval in
  5128. yes) enable_static=yes ;;
  5129. no) enable_static=no ;;
  5130. *)
  5131. enable_static=no
  5132. # Look at the argument we got. We use all the common list separators.
  5133. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  5134. for pkg in $enableval; do
  5135. IFS=$lt_save_ifs
  5136. if test "X$pkg" = "X$p"; then
  5137. enable_static=yes
  5138. fi
  5139. done
  5140. IFS=$lt_save_ifs
  5141. ;;
  5142. esac
  5143. else
  5144. enable_static=no
  5145. fi
  5146. @%:@ Check whether --enable-shared was given.
  5147. if test "${enable_shared+set}" = set; then :
  5148. enableval=$enable_shared; p=${PACKAGE-default}
  5149. case $enableval in
  5150. yes) enable_shared=yes ;;
  5151. no) enable_shared=no ;;
  5152. *)
  5153. enable_shared=no
  5154. # Look at the argument we got. We use all the common list separators.
  5155. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  5156. for pkg in $enableval; do
  5157. IFS=$lt_save_ifs
  5158. if test "X$pkg" = "X$p"; then
  5159. enable_shared=yes
  5160. fi
  5161. done
  5162. IFS=$lt_save_ifs
  5163. ;;
  5164. esac
  5165. else
  5166. enable_shared=yes
  5167. fi
  5168. enable_dlopen=yes
  5169. case `pwd` in
  5170. *\ * | *\ *)
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5172. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5173. esac
  5174. macro_version='2.4.6'
  5175. macro_revision='2.4.6'
  5176. ltmain=$ac_aux_dir/ltmain.sh
  5177. # Backslashify metacharacters that are still active within
  5178. # double-quoted strings.
  5179. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5180. # Same as above, but do not quote variable references.
  5181. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5182. # Sed substitution to delay expansion of an escaped shell variable in a
  5183. # double_quote_subst'ed string.
  5184. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5185. # Sed substitution to delay expansion of an escaped single quote.
  5186. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5187. # Sed substitution to avoid accidental globbing in evaled expressions
  5188. no_glob_subst='s/\*/\\\*/g'
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5190. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5191. if ${lt_cv_path_NM+:} false; then :
  5192. $as_echo_n "(cached) " >&6
  5193. else
  5194. if test -n "$NM"; then
  5195. # Let the user override the test.
  5196. lt_cv_path_NM=$NM
  5197. else
  5198. lt_nm_to_check=${ac_tool_prefix}nm
  5199. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5200. lt_nm_to_check="$lt_nm_to_check nm"
  5201. fi
  5202. for lt_tmp_nm in $lt_nm_to_check; do
  5203. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5204. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5205. IFS=$lt_save_ifs
  5206. test -z "$ac_dir" && ac_dir=.
  5207. tmp_nm=$ac_dir/$lt_tmp_nm
  5208. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5209. # Check to see if the nm accepts a BSD-compat flag.
  5210. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5211. # nm: unknown option "B" ignored
  5212. # Tru64's nm complains that /dev/null is an invalid object file
  5213. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5214. case $build_os in
  5215. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5216. *) lt_bad_file=/dev/null ;;
  5217. esac
  5218. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5219. *$lt_bad_file* | *'Invalid file or object type'*)
  5220. lt_cv_path_NM="$tmp_nm -B"
  5221. break 2
  5222. ;;
  5223. *)
  5224. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5225. */dev/null*)
  5226. lt_cv_path_NM="$tmp_nm -p"
  5227. break 2
  5228. ;;
  5229. *)
  5230. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5231. continue # so that we can try to find one that supports BSD flags
  5232. ;;
  5233. esac
  5234. ;;
  5235. esac
  5236. fi
  5237. done
  5238. IFS=$lt_save_ifs
  5239. done
  5240. : ${lt_cv_path_NM=no}
  5241. fi
  5242. fi
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5244. $as_echo "$lt_cv_path_NM" >&6; }
  5245. if test no != "$lt_cv_path_NM"; then
  5246. NM=$lt_cv_path_NM
  5247. else
  5248. # Didn't find any BSD compatible name lister, look for dumpbin.
  5249. if test -n "$DUMPBIN"; then :
  5250. # Let the user override the test.
  5251. else
  5252. if test -n "$ac_tool_prefix"; then
  5253. for ac_prog in dumpbin "link -dump"
  5254. do
  5255. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5256. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5258. $as_echo_n "checking for $ac_word... " >&6; }
  5259. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. if test -n "$DUMPBIN"; then
  5263. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5264. else
  5265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5266. for as_dir in $PATH
  5267. do
  5268. IFS=$as_save_IFS
  5269. test -z "$as_dir" && as_dir=.
  5270. for ac_exec_ext in '' $ac_executable_extensions; do
  5271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5272. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5274. break 2
  5275. fi
  5276. done
  5277. done
  5278. IFS=$as_save_IFS
  5279. fi
  5280. fi
  5281. DUMPBIN=$ac_cv_prog_DUMPBIN
  5282. if test -n "$DUMPBIN"; then
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5284. $as_echo "$DUMPBIN" >&6; }
  5285. else
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5287. $as_echo "no" >&6; }
  5288. fi
  5289. test -n "$DUMPBIN" && break
  5290. done
  5291. fi
  5292. if test -z "$DUMPBIN"; then
  5293. ac_ct_DUMPBIN=$DUMPBIN
  5294. for ac_prog in dumpbin "link -dump"
  5295. do
  5296. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5297. set dummy $ac_prog; ac_word=$2
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5299. $as_echo_n "checking for $ac_word... " >&6; }
  5300. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5301. $as_echo_n "(cached) " >&6
  5302. else
  5303. if test -n "$ac_ct_DUMPBIN"; then
  5304. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5305. else
  5306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5307. for as_dir in $PATH
  5308. do
  5309. IFS=$as_save_IFS
  5310. test -z "$as_dir" && as_dir=.
  5311. for ac_exec_ext in '' $ac_executable_extensions; do
  5312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5313. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5315. break 2
  5316. fi
  5317. done
  5318. done
  5319. IFS=$as_save_IFS
  5320. fi
  5321. fi
  5322. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5323. if test -n "$ac_ct_DUMPBIN"; then
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5325. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5326. else
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5328. $as_echo "no" >&6; }
  5329. fi
  5330. test -n "$ac_ct_DUMPBIN" && break
  5331. done
  5332. if test "x$ac_ct_DUMPBIN" = x; then
  5333. DUMPBIN=":"
  5334. else
  5335. case $cross_compiling:$ac_tool_warned in
  5336. yes:)
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5338. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5339. ac_tool_warned=yes ;;
  5340. esac
  5341. DUMPBIN=$ac_ct_DUMPBIN
  5342. fi
  5343. fi
  5344. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5345. *COFF*)
  5346. DUMPBIN="$DUMPBIN -symbols -headers"
  5347. ;;
  5348. *)
  5349. DUMPBIN=:
  5350. ;;
  5351. esac
  5352. fi
  5353. if test : != "$DUMPBIN"; then
  5354. NM=$DUMPBIN
  5355. fi
  5356. fi
  5357. test -z "$NM" && NM=nm
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5359. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5360. if ${lt_cv_nm_interface+:} false; then :
  5361. $as_echo_n "(cached) " >&6
  5362. else
  5363. lt_cv_nm_interface="BSD nm"
  5364. echo "int some_variable = 0;" > conftest.$ac_ext
  5365. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5366. (eval "$ac_compile" 2>conftest.err)
  5367. cat conftest.err >&5
  5368. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5369. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5370. cat conftest.err >&5
  5371. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5372. cat conftest.out >&5
  5373. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5374. lt_cv_nm_interface="MS dumpbin"
  5375. fi
  5376. rm -f conftest*
  5377. fi
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5379. $as_echo "$lt_cv_nm_interface" >&6; }
  5380. # find the maximum length of command line arguments
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5382. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5383. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5384. $as_echo_n "(cached) " >&6
  5385. else
  5386. i=0
  5387. teststring=ABCD
  5388. case $build_os in
  5389. msdosdjgpp*)
  5390. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5391. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5392. # during glob expansion). Even if it were fixed, the result of this
  5393. # check would be larger than it should be.
  5394. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5395. ;;
  5396. gnu*)
  5397. # Under GNU Hurd, this test is not required because there is
  5398. # no limit to the length of command line arguments.
  5399. # Libtool will interpret -1 as no limit whatsoever
  5400. lt_cv_sys_max_cmd_len=-1;
  5401. ;;
  5402. cygwin* | mingw* | cegcc*)
  5403. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5404. # about 5 minutes as the teststring grows exponentially.
  5405. # Worse, since 9x/ME are not pre-emptively multitasking,
  5406. # you end up with a "frozen" computer, even though with patience
  5407. # the test eventually succeeds (with a max line length of 256k).
  5408. # Instead, let's just punt: use the minimum linelength reported by
  5409. # all of the supported platforms: 8192 (on NT/2K/XP).
  5410. lt_cv_sys_max_cmd_len=8192;
  5411. ;;
  5412. mint*)
  5413. # On MiNT this can take a long time and run out of memory.
  5414. lt_cv_sys_max_cmd_len=8192;
  5415. ;;
  5416. amigaos*)
  5417. # On AmigaOS with pdksh, this test takes hours, literally.
  5418. # So we just punt and use a minimum line length of 8192.
  5419. lt_cv_sys_max_cmd_len=8192;
  5420. ;;
  5421. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5422. # This has been around since 386BSD, at least. Likely further.
  5423. if test -x /sbin/sysctl; then
  5424. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5425. elif test -x /usr/sbin/sysctl; then
  5426. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5427. else
  5428. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5429. fi
  5430. # And add a safety zone
  5431. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5432. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5433. ;;
  5434. interix*)
  5435. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5436. lt_cv_sys_max_cmd_len=196608
  5437. ;;
  5438. os2*)
  5439. # The test takes a long time on OS/2.
  5440. lt_cv_sys_max_cmd_len=8192
  5441. ;;
  5442. osf*)
  5443. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5444. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5445. # nice to cause kernel panics so lets avoid the loop below.
  5446. # First set a reasonable default.
  5447. lt_cv_sys_max_cmd_len=16384
  5448. #
  5449. if test -x /sbin/sysconfig; then
  5450. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5451. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5452. esac
  5453. fi
  5454. ;;
  5455. sco3.2v5*)
  5456. lt_cv_sys_max_cmd_len=102400
  5457. ;;
  5458. sysv5* | sco5v6* | sysv4.2uw2*)
  5459. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5460. if test -n "$kargmax"; then
  5461. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5462. else
  5463. lt_cv_sys_max_cmd_len=32768
  5464. fi
  5465. ;;
  5466. *)
  5467. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5468. if test -n "$lt_cv_sys_max_cmd_len" && \
  5469. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5470. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5471. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5472. else
  5473. # Make teststring a little bigger before we do anything with it.
  5474. # a 1K string should be a reasonable start.
  5475. for i in 1 2 3 4 5 6 7 8; do
  5476. teststring=$teststring$teststring
  5477. done
  5478. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5479. # If test is not a shell built-in, we'll probably end up computing a
  5480. # maximum length that is only half of the actual maximum length, but
  5481. # we can't tell.
  5482. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5483. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5484. test 17 != "$i" # 1/2 MB should be enough
  5485. do
  5486. i=`expr $i + 1`
  5487. teststring=$teststring$teststring
  5488. done
  5489. # Only check the string length outside the loop.
  5490. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5491. teststring=
  5492. # Add a significant safety factor because C++ compilers can tack on
  5493. # massive amounts of additional arguments before passing them to the
  5494. # linker. It appears as though 1/2 is a usable value.
  5495. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5496. fi
  5497. ;;
  5498. esac
  5499. fi
  5500. if test -n "$lt_cv_sys_max_cmd_len"; then
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5502. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5503. else
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5505. $as_echo "none" >&6; }
  5506. fi
  5507. max_cmd_len=$lt_cv_sys_max_cmd_len
  5508. : ${CP="cp -f"}
  5509. : ${MV="mv -f"}
  5510. : ${RM="rm -f"}
  5511. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5512. lt_unset=unset
  5513. else
  5514. lt_unset=false
  5515. fi
  5516. # test EBCDIC or ASCII
  5517. case `echo X|tr X '\101'` in
  5518. A) # ASCII based system
  5519. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5520. lt_SP2NL='tr \040 \012'
  5521. lt_NL2SP='tr \015\012 \040\040'
  5522. ;;
  5523. *) # EBCDIC based system
  5524. lt_SP2NL='tr \100 \n'
  5525. lt_NL2SP='tr \r\n \100\100'
  5526. ;;
  5527. esac
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5529. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5530. if ${lt_cv_to_host_file_cmd+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. case $host in
  5534. *-*-mingw* )
  5535. case $build in
  5536. *-*-mingw* ) # actually msys
  5537. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5538. ;;
  5539. *-*-cygwin* )
  5540. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5541. ;;
  5542. * ) # otherwise, assume *nix
  5543. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5544. ;;
  5545. esac
  5546. ;;
  5547. *-*-cygwin* )
  5548. case $build in
  5549. *-*-mingw* ) # actually msys
  5550. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5551. ;;
  5552. *-*-cygwin* )
  5553. lt_cv_to_host_file_cmd=func_convert_file_noop
  5554. ;;
  5555. * ) # otherwise, assume *nix
  5556. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5557. ;;
  5558. esac
  5559. ;;
  5560. * ) # unhandled hosts (and "normal" native builds)
  5561. lt_cv_to_host_file_cmd=func_convert_file_noop
  5562. ;;
  5563. esac
  5564. fi
  5565. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5567. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5569. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5570. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5571. $as_echo_n "(cached) " >&6
  5572. else
  5573. #assume ordinary cross tools, or native build.
  5574. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5575. case $host in
  5576. *-*-mingw* )
  5577. case $build in
  5578. *-*-mingw* ) # actually msys
  5579. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5580. ;;
  5581. esac
  5582. ;;
  5583. esac
  5584. fi
  5585. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5587. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5589. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5590. if ${lt_cv_ld_reload_flag+:} false; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. lt_cv_ld_reload_flag='-r'
  5594. fi
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5596. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5597. reload_flag=$lt_cv_ld_reload_flag
  5598. case $reload_flag in
  5599. "" | " "*) ;;
  5600. *) reload_flag=" $reload_flag" ;;
  5601. esac
  5602. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5603. case $host_os in
  5604. cygwin* | mingw* | pw32* | cegcc*)
  5605. if test yes != "$GCC"; then
  5606. reload_cmds=false
  5607. fi
  5608. ;;
  5609. darwin*)
  5610. if test yes = "$GCC"; then
  5611. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5612. else
  5613. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5614. fi
  5615. ;;
  5616. esac
  5617. if test -n "$ac_tool_prefix"; then
  5618. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5619. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5621. $as_echo_n "checking for $ac_word... " >&6; }
  5622. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5623. $as_echo_n "(cached) " >&6
  5624. else
  5625. if test -n "$OBJDUMP"; then
  5626. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5627. else
  5628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5629. for as_dir in $PATH
  5630. do
  5631. IFS=$as_save_IFS
  5632. test -z "$as_dir" && as_dir=.
  5633. for ac_exec_ext in '' $ac_executable_extensions; do
  5634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5635. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5637. break 2
  5638. fi
  5639. done
  5640. done
  5641. IFS=$as_save_IFS
  5642. fi
  5643. fi
  5644. OBJDUMP=$ac_cv_prog_OBJDUMP
  5645. if test -n "$OBJDUMP"; then
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5647. $as_echo "$OBJDUMP" >&6; }
  5648. else
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5650. $as_echo "no" >&6; }
  5651. fi
  5652. fi
  5653. if test -z "$ac_cv_prog_OBJDUMP"; then
  5654. ac_ct_OBJDUMP=$OBJDUMP
  5655. # Extract the first word of "objdump", so it can be a program name with args.
  5656. set dummy objdump; ac_word=$2
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5658. $as_echo_n "checking for $ac_word... " >&6; }
  5659. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5660. $as_echo_n "(cached) " >&6
  5661. else
  5662. if test -n "$ac_ct_OBJDUMP"; then
  5663. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5664. else
  5665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5666. for as_dir in $PATH
  5667. do
  5668. IFS=$as_save_IFS
  5669. test -z "$as_dir" && as_dir=.
  5670. for ac_exec_ext in '' $ac_executable_extensions; do
  5671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5672. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5674. break 2
  5675. fi
  5676. done
  5677. done
  5678. IFS=$as_save_IFS
  5679. fi
  5680. fi
  5681. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5682. if test -n "$ac_ct_OBJDUMP"; then
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5684. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5685. else
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5687. $as_echo "no" >&6; }
  5688. fi
  5689. if test "x$ac_ct_OBJDUMP" = x; then
  5690. OBJDUMP="false"
  5691. else
  5692. case $cross_compiling:$ac_tool_warned in
  5693. yes:)
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5695. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5696. ac_tool_warned=yes ;;
  5697. esac
  5698. OBJDUMP=$ac_ct_OBJDUMP
  5699. fi
  5700. else
  5701. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5702. fi
  5703. test -z "$OBJDUMP" && OBJDUMP=objdump
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5705. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5706. if ${lt_cv_deplibs_check_method+:} false; then :
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5710. lt_cv_file_magic_test_file=
  5711. lt_cv_deplibs_check_method='unknown'
  5712. # Need to set the preceding variable on all platforms that support
  5713. # interlibrary dependencies.
  5714. # 'none' -- dependencies not supported.
  5715. # 'unknown' -- same as none, but documents that we really don't know.
  5716. # 'pass_all' -- all dependencies passed with no checks.
  5717. # 'test_compile' -- check by making test program.
  5718. # 'file_magic [[regex]]' -- check by looking for files in library path
  5719. # that responds to the $file_magic_cmd with a given extended regex.
  5720. # If you have 'file' or equivalent on your system and you're not sure
  5721. # whether 'pass_all' will *always* work, you probably want this one.
  5722. case $host_os in
  5723. aix[4-9]*)
  5724. lt_cv_deplibs_check_method=pass_all
  5725. ;;
  5726. beos*)
  5727. lt_cv_deplibs_check_method=pass_all
  5728. ;;
  5729. bsdi[45]*)
  5730. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5731. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5732. lt_cv_file_magic_test_file=/shlib/libc.so
  5733. ;;
  5734. cygwin*)
  5735. # func_win32_libid is a shell function defined in ltmain.sh
  5736. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5737. lt_cv_file_magic_cmd='func_win32_libid'
  5738. ;;
  5739. mingw* | pw32*)
  5740. # Base MSYS/MinGW do not provide the 'file' command needed by
  5741. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5742. # unless we find 'file', for example because we are cross-compiling.
  5743. if ( file / ) >/dev/null 2>&1; then
  5744. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5745. lt_cv_file_magic_cmd='func_win32_libid'
  5746. else
  5747. # Keep this pattern in sync with the one in func_win32_libid.
  5748. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5749. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5750. fi
  5751. ;;
  5752. cegcc*)
  5753. # use the weaker test based on 'objdump'. See mingw*.
  5754. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5755. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5756. ;;
  5757. darwin* | rhapsody*)
  5758. lt_cv_deplibs_check_method=pass_all
  5759. ;;
  5760. freebsd* | dragonfly*)
  5761. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5762. case $host_cpu in
  5763. i*86 )
  5764. # Not sure whether the presence of OpenBSD here was a mistake.
  5765. # Let's accept both of them until this is cleared up.
  5766. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5767. lt_cv_file_magic_cmd=/usr/bin/file
  5768. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5769. ;;
  5770. esac
  5771. else
  5772. lt_cv_deplibs_check_method=pass_all
  5773. fi
  5774. ;;
  5775. haiku*)
  5776. lt_cv_deplibs_check_method=pass_all
  5777. ;;
  5778. hpux10.20* | hpux11*)
  5779. lt_cv_file_magic_cmd=/usr/bin/file
  5780. case $host_cpu in
  5781. ia64*)
  5782. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5783. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5784. ;;
  5785. hppa*64*)
  5786. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5787. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5788. ;;
  5789. *)
  5790. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5791. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5792. ;;
  5793. esac
  5794. ;;
  5795. interix[3-9]*)
  5796. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5797. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5798. ;;
  5799. irix5* | irix6* | nonstopux*)
  5800. case $LD in
  5801. *-32|*"-32 ") libmagic=32-bit;;
  5802. *-n32|*"-n32 ") libmagic=N32;;
  5803. *-64|*"-64 ") libmagic=64-bit;;
  5804. *) libmagic=never-match;;
  5805. esac
  5806. lt_cv_deplibs_check_method=pass_all
  5807. ;;
  5808. # This must be glibc/ELF.
  5809. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5810. lt_cv_deplibs_check_method=pass_all
  5811. ;;
  5812. netbsd* | netbsdelf*-gnu)
  5813. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5814. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5815. else
  5816. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5817. fi
  5818. ;;
  5819. newos6*)
  5820. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5821. lt_cv_file_magic_cmd=/usr/bin/file
  5822. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5823. ;;
  5824. *nto* | *qnx*)
  5825. lt_cv_deplibs_check_method=pass_all
  5826. ;;
  5827. openbsd* | bitrig*)
  5828. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5829. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5830. else
  5831. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5832. fi
  5833. ;;
  5834. osf3* | osf4* | osf5*)
  5835. lt_cv_deplibs_check_method=pass_all
  5836. ;;
  5837. rdos*)
  5838. lt_cv_deplibs_check_method=pass_all
  5839. ;;
  5840. solaris*)
  5841. lt_cv_deplibs_check_method=pass_all
  5842. ;;
  5843. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5844. lt_cv_deplibs_check_method=pass_all
  5845. ;;
  5846. sysv4 | sysv4.3*)
  5847. case $host_vendor in
  5848. motorola)
  5849. 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]'
  5850. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5851. ;;
  5852. ncr)
  5853. lt_cv_deplibs_check_method=pass_all
  5854. ;;
  5855. sequent)
  5856. lt_cv_file_magic_cmd='/bin/file'
  5857. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5858. ;;
  5859. sni)
  5860. lt_cv_file_magic_cmd='/bin/file'
  5861. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5862. lt_cv_file_magic_test_file=/lib/libc.so
  5863. ;;
  5864. siemens)
  5865. lt_cv_deplibs_check_method=pass_all
  5866. ;;
  5867. pc)
  5868. lt_cv_deplibs_check_method=pass_all
  5869. ;;
  5870. esac
  5871. ;;
  5872. tpf*)
  5873. lt_cv_deplibs_check_method=pass_all
  5874. ;;
  5875. os2*)
  5876. lt_cv_deplibs_check_method=pass_all
  5877. ;;
  5878. esac
  5879. fi
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5881. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5882. file_magic_glob=
  5883. want_nocaseglob=no
  5884. if test "$build" = "$host"; then
  5885. case $host_os in
  5886. mingw* | pw32*)
  5887. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5888. want_nocaseglob=yes
  5889. else
  5890. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5891. fi
  5892. ;;
  5893. esac
  5894. fi
  5895. file_magic_cmd=$lt_cv_file_magic_cmd
  5896. deplibs_check_method=$lt_cv_deplibs_check_method
  5897. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5898. if test -n "$ac_tool_prefix"; then
  5899. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5900. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5902. $as_echo_n "checking for $ac_word... " >&6; }
  5903. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5904. $as_echo_n "(cached) " >&6
  5905. else
  5906. if test -n "$DLLTOOL"; then
  5907. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5908. else
  5909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5910. for as_dir in $PATH
  5911. do
  5912. IFS=$as_save_IFS
  5913. test -z "$as_dir" && as_dir=.
  5914. for ac_exec_ext in '' $ac_executable_extensions; do
  5915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5916. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5918. break 2
  5919. fi
  5920. done
  5921. done
  5922. IFS=$as_save_IFS
  5923. fi
  5924. fi
  5925. DLLTOOL=$ac_cv_prog_DLLTOOL
  5926. if test -n "$DLLTOOL"; then
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5928. $as_echo "$DLLTOOL" >&6; }
  5929. else
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5931. $as_echo "no" >&6; }
  5932. fi
  5933. fi
  5934. if test -z "$ac_cv_prog_DLLTOOL"; then
  5935. ac_ct_DLLTOOL=$DLLTOOL
  5936. # Extract the first word of "dlltool", so it can be a program name with args.
  5937. set dummy dlltool; ac_word=$2
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5939. $as_echo_n "checking for $ac_word... " >&6; }
  5940. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5941. $as_echo_n "(cached) " >&6
  5942. else
  5943. if test -n "$ac_ct_DLLTOOL"; then
  5944. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5945. else
  5946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5947. for as_dir in $PATH
  5948. do
  5949. IFS=$as_save_IFS
  5950. test -z "$as_dir" && as_dir=.
  5951. for ac_exec_ext in '' $ac_executable_extensions; do
  5952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5953. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5955. break 2
  5956. fi
  5957. done
  5958. done
  5959. IFS=$as_save_IFS
  5960. fi
  5961. fi
  5962. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5963. if test -n "$ac_ct_DLLTOOL"; then
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5965. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5966. else
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5968. $as_echo "no" >&6; }
  5969. fi
  5970. if test "x$ac_ct_DLLTOOL" = x; then
  5971. DLLTOOL="false"
  5972. else
  5973. case $cross_compiling:$ac_tool_warned in
  5974. yes:)
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5976. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5977. ac_tool_warned=yes ;;
  5978. esac
  5979. DLLTOOL=$ac_ct_DLLTOOL
  5980. fi
  5981. else
  5982. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5983. fi
  5984. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5986. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5987. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5988. $as_echo_n "(cached) " >&6
  5989. else
  5990. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5991. case $host_os in
  5992. cygwin* | mingw* | pw32* | cegcc*)
  5993. # two different shell functions defined in ltmain.sh;
  5994. # decide which one to use based on capabilities of $DLLTOOL
  5995. case `$DLLTOOL --help 2>&1` in
  5996. *--identify-strict*)
  5997. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5998. ;;
  5999. *)
  6000. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6001. ;;
  6002. esac
  6003. ;;
  6004. *)
  6005. # fallback: assume linklib IS sharedlib
  6006. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6007. ;;
  6008. esac
  6009. fi
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6011. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6012. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6013. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6014. if test -n "$ac_tool_prefix"; then
  6015. for ac_prog in ar
  6016. do
  6017. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6018. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6020. $as_echo_n "checking for $ac_word... " >&6; }
  6021. if ${ac_cv_prog_AR+:} false; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. if test -n "$AR"; then
  6025. ac_cv_prog_AR="$AR" # Let the user override the test.
  6026. else
  6027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6028. for as_dir in $PATH
  6029. do
  6030. IFS=$as_save_IFS
  6031. test -z "$as_dir" && as_dir=.
  6032. for ac_exec_ext in '' $ac_executable_extensions; do
  6033. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6034. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6036. break 2
  6037. fi
  6038. done
  6039. done
  6040. IFS=$as_save_IFS
  6041. fi
  6042. fi
  6043. AR=$ac_cv_prog_AR
  6044. if test -n "$AR"; then
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6046. $as_echo "$AR" >&6; }
  6047. else
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6049. $as_echo "no" >&6; }
  6050. fi
  6051. test -n "$AR" && break
  6052. done
  6053. fi
  6054. if test -z "$AR"; then
  6055. ac_ct_AR=$AR
  6056. for ac_prog in ar
  6057. do
  6058. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6059. set dummy $ac_prog; ac_word=$2
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6061. $as_echo_n "checking for $ac_word... " >&6; }
  6062. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6063. $as_echo_n "(cached) " >&6
  6064. else
  6065. if test -n "$ac_ct_AR"; then
  6066. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6067. else
  6068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6069. for as_dir in $PATH
  6070. do
  6071. IFS=$as_save_IFS
  6072. test -z "$as_dir" && as_dir=.
  6073. for ac_exec_ext in '' $ac_executable_extensions; do
  6074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6075. ac_cv_prog_ac_ct_AR="$ac_prog"
  6076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6077. break 2
  6078. fi
  6079. done
  6080. done
  6081. IFS=$as_save_IFS
  6082. fi
  6083. fi
  6084. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6085. if test -n "$ac_ct_AR"; then
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6087. $as_echo "$ac_ct_AR" >&6; }
  6088. else
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6090. $as_echo "no" >&6; }
  6091. fi
  6092. test -n "$ac_ct_AR" && break
  6093. done
  6094. if test "x$ac_ct_AR" = x; then
  6095. AR="false"
  6096. else
  6097. case $cross_compiling:$ac_tool_warned in
  6098. yes:)
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6100. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6101. ac_tool_warned=yes ;;
  6102. esac
  6103. AR=$ac_ct_AR
  6104. fi
  6105. fi
  6106. : ${AR=ar}
  6107. : ${AR_FLAGS=cru}
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6109. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6110. if ${lt_cv_ar_at_file+:} false; then :
  6111. $as_echo_n "(cached) " >&6
  6112. else
  6113. lt_cv_ar_at_file=no
  6114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6115. /* end confdefs.h. */
  6116. int
  6117. main ()
  6118. {
  6119. ;
  6120. return 0;
  6121. }
  6122. _ACEOF
  6123. if ac_fn_c_try_compile "$LINENO"; then :
  6124. echo conftest.$ac_objext > conftest.lst
  6125. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6126. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6127. (eval $lt_ar_try) 2>&5
  6128. ac_status=$?
  6129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6130. test $ac_status = 0; }
  6131. if test 0 -eq "$ac_status"; then
  6132. # Ensure the archiver fails upon bogus file names.
  6133. rm -f conftest.$ac_objext libconftest.a
  6134. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6135. (eval $lt_ar_try) 2>&5
  6136. ac_status=$?
  6137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6138. test $ac_status = 0; }
  6139. if test 0 -ne "$ac_status"; then
  6140. lt_cv_ar_at_file=@
  6141. fi
  6142. fi
  6143. rm -f conftest.* libconftest.a
  6144. fi
  6145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6146. fi
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6148. $as_echo "$lt_cv_ar_at_file" >&6; }
  6149. if test no = "$lt_cv_ar_at_file"; then
  6150. archiver_list_spec=
  6151. else
  6152. archiver_list_spec=$lt_cv_ar_at_file
  6153. fi
  6154. if test -n "$ac_tool_prefix"; then
  6155. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6156. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6158. $as_echo_n "checking for $ac_word... " >&6; }
  6159. if ${ac_cv_prog_STRIP+:} false; then :
  6160. $as_echo_n "(cached) " >&6
  6161. else
  6162. if test -n "$STRIP"; then
  6163. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6164. else
  6165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6166. for as_dir in $PATH
  6167. do
  6168. IFS=$as_save_IFS
  6169. test -z "$as_dir" && as_dir=.
  6170. for ac_exec_ext in '' $ac_executable_extensions; do
  6171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6172. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6174. break 2
  6175. fi
  6176. done
  6177. done
  6178. IFS=$as_save_IFS
  6179. fi
  6180. fi
  6181. STRIP=$ac_cv_prog_STRIP
  6182. if test -n "$STRIP"; then
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6184. $as_echo "$STRIP" >&6; }
  6185. else
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6187. $as_echo "no" >&6; }
  6188. fi
  6189. fi
  6190. if test -z "$ac_cv_prog_STRIP"; then
  6191. ac_ct_STRIP=$STRIP
  6192. # Extract the first word of "strip", so it can be a program name with args.
  6193. set dummy strip; ac_word=$2
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6195. $as_echo_n "checking for $ac_word... " >&6; }
  6196. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6197. $as_echo_n "(cached) " >&6
  6198. else
  6199. if test -n "$ac_ct_STRIP"; then
  6200. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6201. else
  6202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6203. for as_dir in $PATH
  6204. do
  6205. IFS=$as_save_IFS
  6206. test -z "$as_dir" && as_dir=.
  6207. for ac_exec_ext in '' $ac_executable_extensions; do
  6208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6209. ac_cv_prog_ac_ct_STRIP="strip"
  6210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6211. break 2
  6212. fi
  6213. done
  6214. done
  6215. IFS=$as_save_IFS
  6216. fi
  6217. fi
  6218. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6219. if test -n "$ac_ct_STRIP"; then
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6221. $as_echo "$ac_ct_STRIP" >&6; }
  6222. else
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6224. $as_echo "no" >&6; }
  6225. fi
  6226. if test "x$ac_ct_STRIP" = x; then
  6227. STRIP=":"
  6228. else
  6229. case $cross_compiling:$ac_tool_warned in
  6230. yes:)
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6233. ac_tool_warned=yes ;;
  6234. esac
  6235. STRIP=$ac_ct_STRIP
  6236. fi
  6237. else
  6238. STRIP="$ac_cv_prog_STRIP"
  6239. fi
  6240. test -z "$STRIP" && STRIP=:
  6241. if test -n "$ac_tool_prefix"; then
  6242. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6243. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6245. $as_echo_n "checking for $ac_word... " >&6; }
  6246. if ${ac_cv_prog_RANLIB+:} false; then :
  6247. $as_echo_n "(cached) " >&6
  6248. else
  6249. if test -n "$RANLIB"; then
  6250. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6251. else
  6252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6253. for as_dir in $PATH
  6254. do
  6255. IFS=$as_save_IFS
  6256. test -z "$as_dir" && as_dir=.
  6257. for ac_exec_ext in '' $ac_executable_extensions; do
  6258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6259. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6261. break 2
  6262. fi
  6263. done
  6264. done
  6265. IFS=$as_save_IFS
  6266. fi
  6267. fi
  6268. RANLIB=$ac_cv_prog_RANLIB
  6269. if test -n "$RANLIB"; then
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6271. $as_echo "$RANLIB" >&6; }
  6272. else
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6274. $as_echo "no" >&6; }
  6275. fi
  6276. fi
  6277. if test -z "$ac_cv_prog_RANLIB"; then
  6278. ac_ct_RANLIB=$RANLIB
  6279. # Extract the first word of "ranlib", so it can be a program name with args.
  6280. set dummy ranlib; ac_word=$2
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6282. $as_echo_n "checking for $ac_word... " >&6; }
  6283. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6284. $as_echo_n "(cached) " >&6
  6285. else
  6286. if test -n "$ac_ct_RANLIB"; then
  6287. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6288. else
  6289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6290. for as_dir in $PATH
  6291. do
  6292. IFS=$as_save_IFS
  6293. test -z "$as_dir" && as_dir=.
  6294. for ac_exec_ext in '' $ac_executable_extensions; do
  6295. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6296. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6298. break 2
  6299. fi
  6300. done
  6301. done
  6302. IFS=$as_save_IFS
  6303. fi
  6304. fi
  6305. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6306. if test -n "$ac_ct_RANLIB"; then
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6308. $as_echo "$ac_ct_RANLIB" >&6; }
  6309. else
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6311. $as_echo "no" >&6; }
  6312. fi
  6313. if test "x$ac_ct_RANLIB" = x; then
  6314. RANLIB=":"
  6315. else
  6316. case $cross_compiling:$ac_tool_warned in
  6317. yes:)
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6319. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6320. ac_tool_warned=yes ;;
  6321. esac
  6322. RANLIB=$ac_ct_RANLIB
  6323. fi
  6324. else
  6325. RANLIB="$ac_cv_prog_RANLIB"
  6326. fi
  6327. test -z "$RANLIB" && RANLIB=:
  6328. # Determine commands to create old-style static archives.
  6329. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6330. old_postinstall_cmds='chmod 644 $oldlib'
  6331. old_postuninstall_cmds=
  6332. if test -n "$RANLIB"; then
  6333. case $host_os in
  6334. bitrig* | openbsd*)
  6335. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6336. ;;
  6337. *)
  6338. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6339. ;;
  6340. esac
  6341. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6342. fi
  6343. case $host_os in
  6344. darwin*)
  6345. lock_old_archive_extraction=yes ;;
  6346. *)
  6347. lock_old_archive_extraction=no ;;
  6348. esac
  6349. # If no C compiler was specified, use CC.
  6350. LTCC=${LTCC-"$CC"}
  6351. # If no C compiler flags were specified, use CFLAGS.
  6352. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6353. # Allow CC to be a program name with arguments.
  6354. compiler=$CC
  6355. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6357. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6358. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6359. $as_echo_n "(cached) " >&6
  6360. else
  6361. # These are sane defaults that work on at least a few old systems.
  6362. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6363. # Character class describing NM global symbol codes.
  6364. symcode='[BCDEGRST]'
  6365. # Regexp to match symbols that can be accessed directly from C.
  6366. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6367. # Define system-specific variables.
  6368. case $host_os in
  6369. aix*)
  6370. symcode='[BCDT]'
  6371. ;;
  6372. cygwin* | mingw* | pw32* | cegcc*)
  6373. symcode='[ABCDGISTW]'
  6374. ;;
  6375. hpux*)
  6376. if test ia64 = "$host_cpu"; then
  6377. symcode='[ABCDEGRST]'
  6378. fi
  6379. ;;
  6380. irix* | nonstopux*)
  6381. symcode='[BCDEGRST]'
  6382. ;;
  6383. osf*)
  6384. symcode='[BCDEGQRST]'
  6385. ;;
  6386. solaris*)
  6387. symcode='[BDRT]'
  6388. ;;
  6389. sco3.2v5*)
  6390. symcode='[DT]'
  6391. ;;
  6392. sysv4.2uw2*)
  6393. symcode='[DT]'
  6394. ;;
  6395. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6396. symcode='[ABDT]'
  6397. ;;
  6398. sysv4)
  6399. symcode='[DFNSTU]'
  6400. ;;
  6401. esac
  6402. # If we're using GNU nm, then use its standard symbol codes.
  6403. case `$NM -V 2>&1` in
  6404. *GNU* | *'with BFD'*)
  6405. symcode='[ABCDGIRSTW]' ;;
  6406. esac
  6407. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6408. # Gets list of data symbols to import.
  6409. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6410. # Adjust the below global symbol transforms to fixup imported variables.
  6411. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6412. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6413. lt_c_name_lib_hook="\
  6414. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6415. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6416. else
  6417. # Disable hooks by default.
  6418. lt_cv_sys_global_symbol_to_import=
  6419. lt_cdecl_hook=
  6420. lt_c_name_hook=
  6421. lt_c_name_lib_hook=
  6422. fi
  6423. # Transform an extracted symbol line into a proper C declaration.
  6424. # Some systems (esp. on ia64) link data and code symbols differently,
  6425. # so use this general approach.
  6426. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6427. $lt_cdecl_hook\
  6428. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6429. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6430. # Transform an extracted symbol line into symbol name and symbol address
  6431. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6432. $lt_c_name_hook\
  6433. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6434. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6435. # Transform an extracted symbol line into symbol name with lib prefix and
  6436. # symbol address.
  6437. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6438. $lt_c_name_lib_hook\
  6439. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6440. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6441. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6442. # Handle CRLF in mingw tool chain
  6443. opt_cr=
  6444. case $build_os in
  6445. mingw*)
  6446. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6447. ;;
  6448. esac
  6449. # Try without a prefix underscore, then with it.
  6450. for ac_symprfx in "" "_"; do
  6451. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6452. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6453. # Write the raw and C identifiers.
  6454. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6455. # Fake it for dumpbin and say T for any non-static function,
  6456. # D for any global variable and I for any imported variable.
  6457. # Also find C++ and __fastcall symbols from MSVC++,
  6458. # which start with @ or ?.
  6459. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6460. " {last_section=section; section=\$ 3};"\
  6461. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6462. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6463. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6464. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6465. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6466. " \$ 0!~/External *\|/{next};"\
  6467. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6468. " {if(hide[section]) next};"\
  6469. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6470. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6471. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6472. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6473. " ' prfx=^$ac_symprfx"
  6474. else
  6475. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6476. fi
  6477. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6478. # Check to see that the pipe works correctly.
  6479. pipe_works=no
  6480. rm -f conftest*
  6481. cat > conftest.$ac_ext <<_LT_EOF
  6482. #ifdef __cplusplus
  6483. extern "C" {
  6484. #endif
  6485. char nm_test_var;
  6486. void nm_test_func(void);
  6487. void nm_test_func(void){}
  6488. #ifdef __cplusplus
  6489. }
  6490. #endif
  6491. int main(){nm_test_var='a';nm_test_func();return(0);}
  6492. _LT_EOF
  6493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6494. (eval $ac_compile) 2>&5
  6495. ac_status=$?
  6496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6497. test $ac_status = 0; }; then
  6498. # Now try to grab the symbols.
  6499. nlist=conftest.nm
  6500. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6501. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6502. ac_status=$?
  6503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6504. test $ac_status = 0; } && test -s "$nlist"; then
  6505. # Try sorting and uniquifying the output.
  6506. if sort "$nlist" | uniq > "$nlist"T; then
  6507. mv -f "$nlist"T "$nlist"
  6508. else
  6509. rm -f "$nlist"T
  6510. fi
  6511. # Make sure that we snagged all the symbols we need.
  6512. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6513. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6514. cat <<_LT_EOF > conftest.$ac_ext
  6515. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6516. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6517. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6518. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6519. # define LT@&t@_DLSYM_CONST
  6520. #elif defined __osf__
  6521. /* This system does not cope well with relocations in const data. */
  6522. # define LT@&t@_DLSYM_CONST
  6523. #else
  6524. # define LT@&t@_DLSYM_CONST const
  6525. #endif
  6526. #ifdef __cplusplus
  6527. extern "C" {
  6528. #endif
  6529. _LT_EOF
  6530. # Now generate the symbol file.
  6531. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6532. cat <<_LT_EOF >> conftest.$ac_ext
  6533. /* The mapping between symbol names and symbols. */
  6534. LT@&t@_DLSYM_CONST struct {
  6535. const char *name;
  6536. void *address;
  6537. }
  6538. lt__PROGRAM__LTX_preloaded_symbols[] =
  6539. {
  6540. { "@PROGRAM@", (void *) 0 },
  6541. _LT_EOF
  6542. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6543. cat <<\_LT_EOF >> conftest.$ac_ext
  6544. {0, (void *) 0}
  6545. };
  6546. /* This works around a problem in FreeBSD linker */
  6547. #ifdef FREEBSD_WORKAROUND
  6548. static const void *lt_preloaded_setup() {
  6549. return lt__PROGRAM__LTX_preloaded_symbols;
  6550. }
  6551. #endif
  6552. #ifdef __cplusplus
  6553. }
  6554. #endif
  6555. _LT_EOF
  6556. # Now try linking the two files.
  6557. mv conftest.$ac_objext conftstm.$ac_objext
  6558. lt_globsym_save_LIBS=$LIBS
  6559. lt_globsym_save_CFLAGS=$CFLAGS
  6560. LIBS=conftstm.$ac_objext
  6561. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6562. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6563. (eval $ac_link) 2>&5
  6564. ac_status=$?
  6565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6566. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6567. pipe_works=yes
  6568. fi
  6569. LIBS=$lt_globsym_save_LIBS
  6570. CFLAGS=$lt_globsym_save_CFLAGS
  6571. else
  6572. echo "cannot find nm_test_func in $nlist" >&5
  6573. fi
  6574. else
  6575. echo "cannot find nm_test_var in $nlist" >&5
  6576. fi
  6577. else
  6578. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6579. fi
  6580. else
  6581. echo "$progname: failed program was:" >&5
  6582. cat conftest.$ac_ext >&5
  6583. fi
  6584. rm -rf conftest* conftst*
  6585. # Do not use the global_symbol_pipe unless it works.
  6586. if test yes = "$pipe_works"; then
  6587. break
  6588. else
  6589. lt_cv_sys_global_symbol_pipe=
  6590. fi
  6591. done
  6592. fi
  6593. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6594. lt_cv_sys_global_symbol_to_cdecl=
  6595. fi
  6596. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6598. $as_echo "failed" >&6; }
  6599. else
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6601. $as_echo "ok" >&6; }
  6602. fi
  6603. # Response file support.
  6604. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6605. nm_file_list_spec='@'
  6606. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6607. nm_file_list_spec='@'
  6608. fi
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6610. $as_echo_n "checking for sysroot... " >&6; }
  6611. @%:@ Check whether --with-sysroot was given.
  6612. if test "${with_sysroot+set}" = set; then :
  6613. withval=$with_sysroot;
  6614. else
  6615. with_sysroot=no
  6616. fi
  6617. lt_sysroot=
  6618. case $with_sysroot in #(
  6619. yes)
  6620. if test yes = "$GCC"; then
  6621. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6622. fi
  6623. ;; #(
  6624. /*)
  6625. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6626. ;; #(
  6627. no|'')
  6628. ;; #(
  6629. *)
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6631. $as_echo "$with_sysroot" >&6; }
  6632. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6633. ;;
  6634. esac
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6636. $as_echo "${lt_sysroot:-no}" >&6; }
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6638. $as_echo_n "checking for a working dd... " >&6; }
  6639. if ${ac_cv_path_lt_DD+:} false; then :
  6640. $as_echo_n "(cached) " >&6
  6641. else
  6642. printf 0123456789abcdef0123456789abcdef >conftest.i
  6643. cat conftest.i conftest.i >conftest2.i
  6644. : ${lt_DD:=$DD}
  6645. if test -z "$lt_DD"; then
  6646. ac_path_lt_DD_found=false
  6647. # Loop through the user's path and test for each of PROGNAME-LIST
  6648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6649. for as_dir in $PATH
  6650. do
  6651. IFS=$as_save_IFS
  6652. test -z "$as_dir" && as_dir=.
  6653. for ac_prog in dd; do
  6654. for ac_exec_ext in '' $ac_executable_extensions; do
  6655. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6656. as_fn_executable_p "$ac_path_lt_DD" || continue
  6657. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6658. cmp -s conftest.i conftest.out \
  6659. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6660. fi
  6661. $ac_path_lt_DD_found && break 3
  6662. done
  6663. done
  6664. done
  6665. IFS=$as_save_IFS
  6666. if test -z "$ac_cv_path_lt_DD"; then
  6667. :
  6668. fi
  6669. else
  6670. ac_cv_path_lt_DD=$lt_DD
  6671. fi
  6672. rm -f conftest.i conftest2.i conftest.out
  6673. fi
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6675. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6677. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6678. if ${lt_cv_truncate_bin+:} false; then :
  6679. $as_echo_n "(cached) " >&6
  6680. else
  6681. printf 0123456789abcdef0123456789abcdef >conftest.i
  6682. cat conftest.i conftest.i >conftest2.i
  6683. lt_cv_truncate_bin=
  6684. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6685. cmp -s conftest.i conftest.out \
  6686. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6687. fi
  6688. rm -f conftest.i conftest2.i conftest.out
  6689. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6690. fi
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6692. $as_echo "$lt_cv_truncate_bin" >&6; }
  6693. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6694. func_cc_basename ()
  6695. {
  6696. for cc_temp in @S|@*""; do
  6697. case $cc_temp in
  6698. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6699. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6700. \-*) ;;
  6701. *) break;;
  6702. esac
  6703. done
  6704. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6705. }
  6706. @%:@ Check whether --enable-libtool-lock was given.
  6707. if test "${enable_libtool_lock+set}" = set; then :
  6708. enableval=$enable_libtool_lock;
  6709. fi
  6710. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6711. # Some flags need to be propagated to the compiler or linker for good
  6712. # libtool support.
  6713. case $host in
  6714. ia64-*-hpux*)
  6715. # Find out what ABI is being produced by ac_compile, and set mode
  6716. # options accordingly.
  6717. echo 'int i;' > conftest.$ac_ext
  6718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6719. (eval $ac_compile) 2>&5
  6720. ac_status=$?
  6721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6722. test $ac_status = 0; }; then
  6723. case `/usr/bin/file conftest.$ac_objext` in
  6724. *ELF-32*)
  6725. HPUX_IA64_MODE=32
  6726. ;;
  6727. *ELF-64*)
  6728. HPUX_IA64_MODE=64
  6729. ;;
  6730. esac
  6731. fi
  6732. rm -rf conftest*
  6733. ;;
  6734. *-*-irix6*)
  6735. # Find out what ABI is being produced by ac_compile, and set linker
  6736. # options accordingly.
  6737. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6738. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6739. (eval $ac_compile) 2>&5
  6740. ac_status=$?
  6741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6742. test $ac_status = 0; }; then
  6743. if test yes = "$lt_cv_prog_gnu_ld"; then
  6744. case `/usr/bin/file conftest.$ac_objext` in
  6745. *32-bit*)
  6746. LD="${LD-ld} -melf32bsmip"
  6747. ;;
  6748. *N32*)
  6749. LD="${LD-ld} -melf32bmipn32"
  6750. ;;
  6751. *64-bit*)
  6752. LD="${LD-ld} -melf64bmip"
  6753. ;;
  6754. esac
  6755. else
  6756. case `/usr/bin/file conftest.$ac_objext` in
  6757. *32-bit*)
  6758. LD="${LD-ld} -32"
  6759. ;;
  6760. *N32*)
  6761. LD="${LD-ld} -n32"
  6762. ;;
  6763. *64-bit*)
  6764. LD="${LD-ld} -64"
  6765. ;;
  6766. esac
  6767. fi
  6768. fi
  6769. rm -rf conftest*
  6770. ;;
  6771. mips64*-*linux*)
  6772. # Find out what ABI is being produced by ac_compile, and set linker
  6773. # options accordingly.
  6774. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6775. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6776. (eval $ac_compile) 2>&5
  6777. ac_status=$?
  6778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6779. test $ac_status = 0; }; then
  6780. emul=elf
  6781. case `/usr/bin/file conftest.$ac_objext` in
  6782. *32-bit*)
  6783. emul="${emul}32"
  6784. ;;
  6785. *64-bit*)
  6786. emul="${emul}64"
  6787. ;;
  6788. esac
  6789. case `/usr/bin/file conftest.$ac_objext` in
  6790. *MSB*)
  6791. emul="${emul}btsmip"
  6792. ;;
  6793. *LSB*)
  6794. emul="${emul}ltsmip"
  6795. ;;
  6796. esac
  6797. case `/usr/bin/file conftest.$ac_objext` in
  6798. *N32*)
  6799. emul="${emul}n32"
  6800. ;;
  6801. esac
  6802. LD="${LD-ld} -m $emul"
  6803. fi
  6804. rm -rf conftest*
  6805. ;;
  6806. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6807. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6808. # Find out what ABI is being produced by ac_compile, and set linker
  6809. # options accordingly. Note that the listed cases only cover the
  6810. # situations where additional linker options are needed (such as when
  6811. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6812. # vice versa); the common cases where no linker options are needed do
  6813. # not appear in the list.
  6814. echo 'int i;' > conftest.$ac_ext
  6815. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6816. (eval $ac_compile) 2>&5
  6817. ac_status=$?
  6818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6819. test $ac_status = 0; }; then
  6820. case `/usr/bin/file conftest.o` in
  6821. *32-bit*)
  6822. case $host in
  6823. x86_64-*kfreebsd*-gnu)
  6824. LD="${LD-ld} -m elf_i386_fbsd"
  6825. ;;
  6826. x86_64-*linux*)
  6827. case `/usr/bin/file conftest.o` in
  6828. *x86-64*)
  6829. LD="${LD-ld} -m elf32_x86_64"
  6830. ;;
  6831. *)
  6832. LD="${LD-ld} -m elf_i386"
  6833. ;;
  6834. esac
  6835. ;;
  6836. powerpc64le-*linux*)
  6837. LD="${LD-ld} -m elf32lppclinux"
  6838. ;;
  6839. powerpc64-*linux*)
  6840. LD="${LD-ld} -m elf32ppclinux"
  6841. ;;
  6842. s390x-*linux*)
  6843. LD="${LD-ld} -m elf_s390"
  6844. ;;
  6845. sparc64-*linux*)
  6846. LD="${LD-ld} -m elf32_sparc"
  6847. ;;
  6848. esac
  6849. ;;
  6850. *64-bit*)
  6851. case $host in
  6852. x86_64-*kfreebsd*-gnu)
  6853. LD="${LD-ld} -m elf_x86_64_fbsd"
  6854. ;;
  6855. x86_64-*linux*)
  6856. LD="${LD-ld} -m elf_x86_64"
  6857. ;;
  6858. powerpcle-*linux*)
  6859. LD="${LD-ld} -m elf64lppc"
  6860. ;;
  6861. powerpc-*linux*)
  6862. LD="${LD-ld} -m elf64ppc"
  6863. ;;
  6864. s390*-*linux*|s390*-*tpf*)
  6865. LD="${LD-ld} -m elf64_s390"
  6866. ;;
  6867. sparc*-*linux*)
  6868. LD="${LD-ld} -m elf64_sparc"
  6869. ;;
  6870. esac
  6871. ;;
  6872. esac
  6873. fi
  6874. rm -rf conftest*
  6875. ;;
  6876. *-*-sco3.2v5*)
  6877. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6878. SAVE_CFLAGS=$CFLAGS
  6879. CFLAGS="$CFLAGS -belf"
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6881. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6882. if ${lt_cv_cc_needs_belf+:} false; then :
  6883. $as_echo_n "(cached) " >&6
  6884. else
  6885. ac_ext=c
  6886. ac_cpp='$CPP $CPPFLAGS'
  6887. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6888. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6889. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6891. /* end confdefs.h. */
  6892. int
  6893. main ()
  6894. {
  6895. ;
  6896. return 0;
  6897. }
  6898. _ACEOF
  6899. if ac_fn_c_try_link "$LINENO"; then :
  6900. lt_cv_cc_needs_belf=yes
  6901. else
  6902. lt_cv_cc_needs_belf=no
  6903. fi
  6904. rm -f core conftest.err conftest.$ac_objext \
  6905. conftest$ac_exeext conftest.$ac_ext
  6906. ac_ext=c
  6907. ac_cpp='$CPP $CPPFLAGS'
  6908. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6909. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6910. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6911. fi
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6913. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6914. if test yes != "$lt_cv_cc_needs_belf"; then
  6915. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6916. CFLAGS=$SAVE_CFLAGS
  6917. fi
  6918. ;;
  6919. *-*solaris*)
  6920. # Find out what ABI is being produced by ac_compile, and set linker
  6921. # options accordingly.
  6922. echo 'int i;' > conftest.$ac_ext
  6923. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6924. (eval $ac_compile) 2>&5
  6925. ac_status=$?
  6926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6927. test $ac_status = 0; }; then
  6928. case `/usr/bin/file conftest.o` in
  6929. *64-bit*)
  6930. case $lt_cv_prog_gnu_ld in
  6931. yes*)
  6932. case $host in
  6933. i?86-*-solaris*|x86_64-*-solaris*)
  6934. LD="${LD-ld} -m elf_x86_64"
  6935. ;;
  6936. sparc*-*-solaris*)
  6937. LD="${LD-ld} -m elf64_sparc"
  6938. ;;
  6939. esac
  6940. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6941. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6942. LD=${LD-ld}_sol2
  6943. fi
  6944. ;;
  6945. *)
  6946. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6947. LD="${LD-ld} -64"
  6948. fi
  6949. ;;
  6950. esac
  6951. ;;
  6952. esac
  6953. fi
  6954. rm -rf conftest*
  6955. ;;
  6956. esac
  6957. need_locks=$enable_libtool_lock
  6958. if test -n "$ac_tool_prefix"; then
  6959. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6960. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6962. $as_echo_n "checking for $ac_word... " >&6; }
  6963. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. if test -n "$MANIFEST_TOOL"; then
  6967. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6968. else
  6969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6970. for as_dir in $PATH
  6971. do
  6972. IFS=$as_save_IFS
  6973. test -z "$as_dir" && as_dir=.
  6974. for ac_exec_ext in '' $ac_executable_extensions; do
  6975. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6976. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6978. break 2
  6979. fi
  6980. done
  6981. done
  6982. IFS=$as_save_IFS
  6983. fi
  6984. fi
  6985. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6986. if test -n "$MANIFEST_TOOL"; then
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6988. $as_echo "$MANIFEST_TOOL" >&6; }
  6989. else
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6991. $as_echo "no" >&6; }
  6992. fi
  6993. fi
  6994. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6995. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6996. # Extract the first word of "mt", so it can be a program name with args.
  6997. set dummy mt; ac_word=$2
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6999. $as_echo_n "checking for $ac_word... " >&6; }
  7000. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7001. $as_echo_n "(cached) " >&6
  7002. else
  7003. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7004. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7005. else
  7006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7007. for as_dir in $PATH
  7008. do
  7009. IFS=$as_save_IFS
  7010. test -z "$as_dir" && as_dir=.
  7011. for ac_exec_ext in '' $ac_executable_extensions; do
  7012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7013. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7015. break 2
  7016. fi
  7017. done
  7018. done
  7019. IFS=$as_save_IFS
  7020. fi
  7021. fi
  7022. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7023. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7025. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7026. else
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7028. $as_echo "no" >&6; }
  7029. fi
  7030. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7031. MANIFEST_TOOL=":"
  7032. else
  7033. case $cross_compiling:$ac_tool_warned in
  7034. yes:)
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7036. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7037. ac_tool_warned=yes ;;
  7038. esac
  7039. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7040. fi
  7041. else
  7042. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7043. fi
  7044. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7046. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7047. if ${lt_cv_path_mainfest_tool+:} false; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. lt_cv_path_mainfest_tool=no
  7051. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7052. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7053. cat conftest.err >&5
  7054. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7055. lt_cv_path_mainfest_tool=yes
  7056. fi
  7057. rm -f conftest*
  7058. fi
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7060. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7061. if test yes != "$lt_cv_path_mainfest_tool"; then
  7062. MANIFEST_TOOL=:
  7063. fi
  7064. case $host_os in
  7065. rhapsody* | darwin*)
  7066. if test -n "$ac_tool_prefix"; then
  7067. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7068. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7070. $as_echo_n "checking for $ac_word... " >&6; }
  7071. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7072. $as_echo_n "(cached) " >&6
  7073. else
  7074. if test -n "$DSYMUTIL"; then
  7075. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7076. else
  7077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7078. for as_dir in $PATH
  7079. do
  7080. IFS=$as_save_IFS
  7081. test -z "$as_dir" && as_dir=.
  7082. for ac_exec_ext in '' $ac_executable_extensions; do
  7083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7084. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7086. break 2
  7087. fi
  7088. done
  7089. done
  7090. IFS=$as_save_IFS
  7091. fi
  7092. fi
  7093. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7094. if test -n "$DSYMUTIL"; then
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7096. $as_echo "$DSYMUTIL" >&6; }
  7097. else
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7099. $as_echo "no" >&6; }
  7100. fi
  7101. fi
  7102. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7103. ac_ct_DSYMUTIL=$DSYMUTIL
  7104. # Extract the first word of "dsymutil", so it can be a program name with args.
  7105. set dummy dsymutil; ac_word=$2
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7107. $as_echo_n "checking for $ac_word... " >&6; }
  7108. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7109. $as_echo_n "(cached) " >&6
  7110. else
  7111. if test -n "$ac_ct_DSYMUTIL"; then
  7112. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7113. else
  7114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7115. for as_dir in $PATH
  7116. do
  7117. IFS=$as_save_IFS
  7118. test -z "$as_dir" && as_dir=.
  7119. for ac_exec_ext in '' $ac_executable_extensions; do
  7120. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7121. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7123. break 2
  7124. fi
  7125. done
  7126. done
  7127. IFS=$as_save_IFS
  7128. fi
  7129. fi
  7130. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7131. if test -n "$ac_ct_DSYMUTIL"; then
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7133. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7134. else
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7136. $as_echo "no" >&6; }
  7137. fi
  7138. if test "x$ac_ct_DSYMUTIL" = x; then
  7139. DSYMUTIL=":"
  7140. else
  7141. case $cross_compiling:$ac_tool_warned in
  7142. yes:)
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7144. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7145. ac_tool_warned=yes ;;
  7146. esac
  7147. DSYMUTIL=$ac_ct_DSYMUTIL
  7148. fi
  7149. else
  7150. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7151. fi
  7152. if test -n "$ac_tool_prefix"; then
  7153. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7154. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7156. $as_echo_n "checking for $ac_word... " >&6; }
  7157. if ${ac_cv_prog_NMEDIT+:} false; then :
  7158. $as_echo_n "(cached) " >&6
  7159. else
  7160. if test -n "$NMEDIT"; then
  7161. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7162. else
  7163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7164. for as_dir in $PATH
  7165. do
  7166. IFS=$as_save_IFS
  7167. test -z "$as_dir" && as_dir=.
  7168. for ac_exec_ext in '' $ac_executable_extensions; do
  7169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7170. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7172. break 2
  7173. fi
  7174. done
  7175. done
  7176. IFS=$as_save_IFS
  7177. fi
  7178. fi
  7179. NMEDIT=$ac_cv_prog_NMEDIT
  7180. if test -n "$NMEDIT"; then
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7182. $as_echo "$NMEDIT" >&6; }
  7183. else
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7185. $as_echo "no" >&6; }
  7186. fi
  7187. fi
  7188. if test -z "$ac_cv_prog_NMEDIT"; then
  7189. ac_ct_NMEDIT=$NMEDIT
  7190. # Extract the first word of "nmedit", so it can be a program name with args.
  7191. set dummy nmedit; ac_word=$2
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7193. $as_echo_n "checking for $ac_word... " >&6; }
  7194. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. if test -n "$ac_ct_NMEDIT"; then
  7198. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7199. else
  7200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7201. for as_dir in $PATH
  7202. do
  7203. IFS=$as_save_IFS
  7204. test -z "$as_dir" && as_dir=.
  7205. for ac_exec_ext in '' $ac_executable_extensions; do
  7206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7207. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7209. break 2
  7210. fi
  7211. done
  7212. done
  7213. IFS=$as_save_IFS
  7214. fi
  7215. fi
  7216. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7217. if test -n "$ac_ct_NMEDIT"; then
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7219. $as_echo "$ac_ct_NMEDIT" >&6; }
  7220. else
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7222. $as_echo "no" >&6; }
  7223. fi
  7224. if test "x$ac_ct_NMEDIT" = x; then
  7225. NMEDIT=":"
  7226. else
  7227. case $cross_compiling:$ac_tool_warned in
  7228. yes:)
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7230. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7231. ac_tool_warned=yes ;;
  7232. esac
  7233. NMEDIT=$ac_ct_NMEDIT
  7234. fi
  7235. else
  7236. NMEDIT="$ac_cv_prog_NMEDIT"
  7237. fi
  7238. if test -n "$ac_tool_prefix"; then
  7239. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7240. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7242. $as_echo_n "checking for $ac_word... " >&6; }
  7243. if ${ac_cv_prog_LIPO+:} false; then :
  7244. $as_echo_n "(cached) " >&6
  7245. else
  7246. if test -n "$LIPO"; then
  7247. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7248. else
  7249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7250. for as_dir in $PATH
  7251. do
  7252. IFS=$as_save_IFS
  7253. test -z "$as_dir" && as_dir=.
  7254. for ac_exec_ext in '' $ac_executable_extensions; do
  7255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7256. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7258. break 2
  7259. fi
  7260. done
  7261. done
  7262. IFS=$as_save_IFS
  7263. fi
  7264. fi
  7265. LIPO=$ac_cv_prog_LIPO
  7266. if test -n "$LIPO"; then
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7268. $as_echo "$LIPO" >&6; }
  7269. else
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7271. $as_echo "no" >&6; }
  7272. fi
  7273. fi
  7274. if test -z "$ac_cv_prog_LIPO"; then
  7275. ac_ct_LIPO=$LIPO
  7276. # Extract the first word of "lipo", so it can be a program name with args.
  7277. set dummy lipo; ac_word=$2
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7279. $as_echo_n "checking for $ac_word... " >&6; }
  7280. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7281. $as_echo_n "(cached) " >&6
  7282. else
  7283. if test -n "$ac_ct_LIPO"; then
  7284. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7285. else
  7286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7287. for as_dir in $PATH
  7288. do
  7289. IFS=$as_save_IFS
  7290. test -z "$as_dir" && as_dir=.
  7291. for ac_exec_ext in '' $ac_executable_extensions; do
  7292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7293. ac_cv_prog_ac_ct_LIPO="lipo"
  7294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7295. break 2
  7296. fi
  7297. done
  7298. done
  7299. IFS=$as_save_IFS
  7300. fi
  7301. fi
  7302. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7303. if test -n "$ac_ct_LIPO"; then
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7305. $as_echo "$ac_ct_LIPO" >&6; }
  7306. else
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7308. $as_echo "no" >&6; }
  7309. fi
  7310. if test "x$ac_ct_LIPO" = x; then
  7311. LIPO=":"
  7312. else
  7313. case $cross_compiling:$ac_tool_warned in
  7314. yes:)
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7316. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7317. ac_tool_warned=yes ;;
  7318. esac
  7319. LIPO=$ac_ct_LIPO
  7320. fi
  7321. else
  7322. LIPO="$ac_cv_prog_LIPO"
  7323. fi
  7324. if test -n "$ac_tool_prefix"; then
  7325. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7326. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7328. $as_echo_n "checking for $ac_word... " >&6; }
  7329. if ${ac_cv_prog_OTOOL+:} false; then :
  7330. $as_echo_n "(cached) " >&6
  7331. else
  7332. if test -n "$OTOOL"; then
  7333. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7334. else
  7335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7336. for as_dir in $PATH
  7337. do
  7338. IFS=$as_save_IFS
  7339. test -z "$as_dir" && as_dir=.
  7340. for ac_exec_ext in '' $ac_executable_extensions; do
  7341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7342. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7344. break 2
  7345. fi
  7346. done
  7347. done
  7348. IFS=$as_save_IFS
  7349. fi
  7350. fi
  7351. OTOOL=$ac_cv_prog_OTOOL
  7352. if test -n "$OTOOL"; then
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7354. $as_echo "$OTOOL" >&6; }
  7355. else
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7357. $as_echo "no" >&6; }
  7358. fi
  7359. fi
  7360. if test -z "$ac_cv_prog_OTOOL"; then
  7361. ac_ct_OTOOL=$OTOOL
  7362. # Extract the first word of "otool", so it can be a program name with args.
  7363. set dummy otool; ac_word=$2
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7365. $as_echo_n "checking for $ac_word... " >&6; }
  7366. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7367. $as_echo_n "(cached) " >&6
  7368. else
  7369. if test -n "$ac_ct_OTOOL"; then
  7370. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7371. else
  7372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7373. for as_dir in $PATH
  7374. do
  7375. IFS=$as_save_IFS
  7376. test -z "$as_dir" && as_dir=.
  7377. for ac_exec_ext in '' $ac_executable_extensions; do
  7378. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7379. ac_cv_prog_ac_ct_OTOOL="otool"
  7380. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7381. break 2
  7382. fi
  7383. done
  7384. done
  7385. IFS=$as_save_IFS
  7386. fi
  7387. fi
  7388. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7389. if test -n "$ac_ct_OTOOL"; then
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7391. $as_echo "$ac_ct_OTOOL" >&6; }
  7392. else
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7394. $as_echo "no" >&6; }
  7395. fi
  7396. if test "x$ac_ct_OTOOL" = x; then
  7397. OTOOL=":"
  7398. else
  7399. case $cross_compiling:$ac_tool_warned in
  7400. yes:)
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7402. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7403. ac_tool_warned=yes ;;
  7404. esac
  7405. OTOOL=$ac_ct_OTOOL
  7406. fi
  7407. else
  7408. OTOOL="$ac_cv_prog_OTOOL"
  7409. fi
  7410. if test -n "$ac_tool_prefix"; then
  7411. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7412. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7414. $as_echo_n "checking for $ac_word... " >&6; }
  7415. if ${ac_cv_prog_OTOOL64+:} false; then :
  7416. $as_echo_n "(cached) " >&6
  7417. else
  7418. if test -n "$OTOOL64"; then
  7419. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7420. else
  7421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7422. for as_dir in $PATH
  7423. do
  7424. IFS=$as_save_IFS
  7425. test -z "$as_dir" && as_dir=.
  7426. for ac_exec_ext in '' $ac_executable_extensions; do
  7427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7428. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7430. break 2
  7431. fi
  7432. done
  7433. done
  7434. IFS=$as_save_IFS
  7435. fi
  7436. fi
  7437. OTOOL64=$ac_cv_prog_OTOOL64
  7438. if test -n "$OTOOL64"; then
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7440. $as_echo "$OTOOL64" >&6; }
  7441. else
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7443. $as_echo "no" >&6; }
  7444. fi
  7445. fi
  7446. if test -z "$ac_cv_prog_OTOOL64"; then
  7447. ac_ct_OTOOL64=$OTOOL64
  7448. # Extract the first word of "otool64", so it can be a program name with args.
  7449. set dummy otool64; ac_word=$2
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7451. $as_echo_n "checking for $ac_word... " >&6; }
  7452. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7453. $as_echo_n "(cached) " >&6
  7454. else
  7455. if test -n "$ac_ct_OTOOL64"; then
  7456. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7457. else
  7458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7459. for as_dir in $PATH
  7460. do
  7461. IFS=$as_save_IFS
  7462. test -z "$as_dir" && as_dir=.
  7463. for ac_exec_ext in '' $ac_executable_extensions; do
  7464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7465. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7467. break 2
  7468. fi
  7469. done
  7470. done
  7471. IFS=$as_save_IFS
  7472. fi
  7473. fi
  7474. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7475. if test -n "$ac_ct_OTOOL64"; then
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7477. $as_echo "$ac_ct_OTOOL64" >&6; }
  7478. else
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7480. $as_echo "no" >&6; }
  7481. fi
  7482. if test "x$ac_ct_OTOOL64" = x; then
  7483. OTOOL64=":"
  7484. else
  7485. case $cross_compiling:$ac_tool_warned in
  7486. yes:)
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7488. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7489. ac_tool_warned=yes ;;
  7490. esac
  7491. OTOOL64=$ac_ct_OTOOL64
  7492. fi
  7493. else
  7494. OTOOL64="$ac_cv_prog_OTOOL64"
  7495. fi
  7496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7497. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7498. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7499. $as_echo_n "(cached) " >&6
  7500. else
  7501. lt_cv_apple_cc_single_mod=no
  7502. if test -z "$LT_MULTI_MODULE"; then
  7503. # By default we will add the -single_module flag. You can override
  7504. # by either setting the environment variable LT_MULTI_MODULE
  7505. # non-empty at configure time, or by adding -multi_module to the
  7506. # link flags.
  7507. rm -rf libconftest.dylib*
  7508. echo "int foo(void){return 1;}" > conftest.c
  7509. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7510. -dynamiclib -Wl,-single_module conftest.c" >&5
  7511. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7512. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7513. _lt_result=$?
  7514. # If there is a non-empty error log, and "single_module"
  7515. # appears in it, assume the flag caused a linker warning
  7516. if test -s conftest.err && $GREP single_module conftest.err; then
  7517. cat conftest.err >&5
  7518. # Otherwise, if the output was created with a 0 exit code from
  7519. # the compiler, it worked.
  7520. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7521. lt_cv_apple_cc_single_mod=yes
  7522. else
  7523. cat conftest.err >&5
  7524. fi
  7525. rm -rf libconftest.dylib*
  7526. rm -f conftest.*
  7527. fi
  7528. fi
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7530. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7532. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7533. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7534. $as_echo_n "(cached) " >&6
  7535. else
  7536. lt_cv_ld_exported_symbols_list=no
  7537. save_LDFLAGS=$LDFLAGS
  7538. echo "_main" > conftest.sym
  7539. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7541. /* end confdefs.h. */
  7542. int
  7543. main ()
  7544. {
  7545. ;
  7546. return 0;
  7547. }
  7548. _ACEOF
  7549. if ac_fn_c_try_link "$LINENO"; then :
  7550. lt_cv_ld_exported_symbols_list=yes
  7551. else
  7552. lt_cv_ld_exported_symbols_list=no
  7553. fi
  7554. rm -f core conftest.err conftest.$ac_objext \
  7555. conftest$ac_exeext conftest.$ac_ext
  7556. LDFLAGS=$save_LDFLAGS
  7557. fi
  7558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7559. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7561. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7562. if ${lt_cv_ld_force_load+:} false; then :
  7563. $as_echo_n "(cached) " >&6
  7564. else
  7565. lt_cv_ld_force_load=no
  7566. cat > conftest.c << _LT_EOF
  7567. int forced_loaded() { return 2;}
  7568. _LT_EOF
  7569. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7570. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7571. echo "$AR cru libconftest.a conftest.o" >&5
  7572. $AR cru libconftest.a conftest.o 2>&5
  7573. echo "$RANLIB libconftest.a" >&5
  7574. $RANLIB libconftest.a 2>&5
  7575. cat > conftest.c << _LT_EOF
  7576. int main() { return 0;}
  7577. _LT_EOF
  7578. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7579. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7580. _lt_result=$?
  7581. if test -s conftest.err && $GREP force_load conftest.err; then
  7582. cat conftest.err >&5
  7583. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7584. lt_cv_ld_force_load=yes
  7585. else
  7586. cat conftest.err >&5
  7587. fi
  7588. rm -f conftest.err libconftest.a conftest conftest.c
  7589. rm -rf conftest.dSYM
  7590. fi
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7592. $as_echo "$lt_cv_ld_force_load" >&6; }
  7593. case $host_os in
  7594. rhapsody* | darwin1.[012])
  7595. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7596. darwin1.*)
  7597. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7598. darwin*) # darwin 5.x on
  7599. # if running on 10.5 or later, the deployment target defaults
  7600. # to the OS version, if on x86, and 10.4, the deployment
  7601. # target defaults to 10.4. Don't you love it?
  7602. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7603. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7604. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7605. 10.[012][,.]*)
  7606. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7607. 10.*)
  7608. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7609. esac
  7610. ;;
  7611. esac
  7612. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7613. _lt_dar_single_mod='$single_module'
  7614. fi
  7615. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7616. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7617. else
  7618. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7619. fi
  7620. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7621. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7622. else
  7623. _lt_dsymutil=
  7624. fi
  7625. ;;
  7626. esac
  7627. # func_munge_path_list VARIABLE PATH
  7628. # -----------------------------------
  7629. # VARIABLE is name of variable containing _space_ separated list of
  7630. # directories to be munged by the contents of PATH, which is string
  7631. # having a format:
  7632. # "DIR[:DIR]:"
  7633. # string "DIR[ DIR]" will be prepended to VARIABLE
  7634. # ":DIR[:DIR]"
  7635. # string "DIR[ DIR]" will be appended to VARIABLE
  7636. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7637. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7638. # "DIRA[ DIRA]" will be appended to VARIABLE
  7639. # "DIR[:DIR]"
  7640. # VARIABLE will be replaced by "DIR[ DIR]"
  7641. func_munge_path_list ()
  7642. {
  7643. case x@S|@2 in
  7644. x)
  7645. ;;
  7646. *:)
  7647. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
  7648. ;;
  7649. x:*)
  7650. eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
  7651. ;;
  7652. *::*)
  7653. eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7654. eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
  7655. ;;
  7656. *)
  7657. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
  7658. ;;
  7659. esac
  7660. }
  7661. for ac_header in dlfcn.h
  7662. do :
  7663. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7664. "
  7665. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7666. cat >>confdefs.h <<_ACEOF
  7667. @%:@define HAVE_DLFCN_H 1
  7668. _ACEOF
  7669. fi
  7670. done
  7671. # Set options
  7672. enable_win32_dll=no
  7673. @%:@ Check whether --with-pic was given.
  7674. if test "${with_pic+set}" = set; then :
  7675. withval=$with_pic; lt_p=${PACKAGE-default}
  7676. case $withval in
  7677. yes|no) pic_mode=$withval ;;
  7678. *)
  7679. pic_mode=default
  7680. # Look at the argument we got. We use all the common list separators.
  7681. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7682. for lt_pkg in $withval; do
  7683. IFS=$lt_save_ifs
  7684. if test "X$lt_pkg" = "X$lt_p"; then
  7685. pic_mode=yes
  7686. fi
  7687. done
  7688. IFS=$lt_save_ifs
  7689. ;;
  7690. esac
  7691. else
  7692. pic_mode=default
  7693. fi
  7694. @%:@ Check whether --enable-fast-install was given.
  7695. if test "${enable_fast_install+set}" = set; then :
  7696. enableval=$enable_fast_install; p=${PACKAGE-default}
  7697. case $enableval in
  7698. yes) enable_fast_install=yes ;;
  7699. no) enable_fast_install=no ;;
  7700. *)
  7701. enable_fast_install=no
  7702. # Look at the argument we got. We use all the common list separators.
  7703. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7704. for pkg in $enableval; do
  7705. IFS=$lt_save_ifs
  7706. if test "X$pkg" = "X$p"; then
  7707. enable_fast_install=yes
  7708. fi
  7709. done
  7710. IFS=$lt_save_ifs
  7711. ;;
  7712. esac
  7713. else
  7714. enable_fast_install=yes
  7715. fi
  7716. shared_archive_member_spec=
  7717. case $host,$enable_shared in
  7718. power*-*-aix[5-9]*,yes)
  7719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7720. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7721. @%:@ Check whether --with-aix-soname was given.
  7722. if test "${with_aix_soname+set}" = set; then :
  7723. withval=$with_aix_soname; case $withval in
  7724. aix|svr4|both)
  7725. ;;
  7726. *)
  7727. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7728. ;;
  7729. esac
  7730. lt_cv_with_aix_soname=$with_aix_soname
  7731. else
  7732. if ${lt_cv_with_aix_soname+:} false; then :
  7733. $as_echo_n "(cached) " >&6
  7734. else
  7735. lt_cv_with_aix_soname=aix
  7736. fi
  7737. with_aix_soname=$lt_cv_with_aix_soname
  7738. fi
  7739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7740. $as_echo "$with_aix_soname" >&6; }
  7741. if test aix != "$with_aix_soname"; then
  7742. # For the AIX way of multilib, we name the shared archive member
  7743. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7744. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7745. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7746. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7747. if test 64 = "${OBJECT_MODE-32}"; then
  7748. shared_archive_member_spec=shr_64
  7749. else
  7750. shared_archive_member_spec=shr
  7751. fi
  7752. fi
  7753. ;;
  7754. *)
  7755. with_aix_soname=aix
  7756. ;;
  7757. esac
  7758. # This can be used to rebuild libtool when needed
  7759. LIBTOOL_DEPS=$ltmain
  7760. # Always use our own libtool.
  7761. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7762. test -z "$LN_S" && LN_S="ln -s"
  7763. if test -n "${ZSH_VERSION+set}"; then
  7764. setopt NO_GLOB_SUBST
  7765. fi
  7766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7767. $as_echo_n "checking for objdir... " >&6; }
  7768. if ${lt_cv_objdir+:} false; then :
  7769. $as_echo_n "(cached) " >&6
  7770. else
  7771. rm -f .libs 2>/dev/null
  7772. mkdir .libs 2>/dev/null
  7773. if test -d .libs; then
  7774. lt_cv_objdir=.libs
  7775. else
  7776. # MS-DOS does not allow filenames that begin with a dot.
  7777. lt_cv_objdir=_libs
  7778. fi
  7779. rmdir .libs 2>/dev/null
  7780. fi
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7782. $as_echo "$lt_cv_objdir" >&6; }
  7783. objdir=$lt_cv_objdir
  7784. cat >>confdefs.h <<_ACEOF
  7785. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  7786. _ACEOF
  7787. case $host_os in
  7788. aix3*)
  7789. # AIX sometimes has problems with the GCC collect2 program. For some
  7790. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7791. # vanish in a puff of smoke.
  7792. if test set != "${COLLECT_NAMES+set}"; then
  7793. COLLECT_NAMES=
  7794. export COLLECT_NAMES
  7795. fi
  7796. ;;
  7797. esac
  7798. # Global variables:
  7799. ofile=libtool
  7800. can_build_shared=yes
  7801. # All known linkers require a '.a' archive for static linking (except MSVC,
  7802. # which needs '.lib').
  7803. libext=a
  7804. with_gnu_ld=$lt_cv_prog_gnu_ld
  7805. old_CC=$CC
  7806. old_CFLAGS=$CFLAGS
  7807. # Set sane defaults for various variables
  7808. test -z "$CC" && CC=cc
  7809. test -z "$LTCC" && LTCC=$CC
  7810. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7811. test -z "$LD" && LD=ld
  7812. test -z "$ac_objext" && ac_objext=o
  7813. func_cc_basename $compiler
  7814. cc_basename=$func_cc_basename_result
  7815. # Only perform the check for file, if the check method requires it
  7816. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7817. case $deplibs_check_method in
  7818. file_magic*)
  7819. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7821. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7822. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7823. $as_echo_n "(cached) " >&6
  7824. else
  7825. case $MAGIC_CMD in
  7826. [\\/*] | ?:[\\/]*)
  7827. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7828. ;;
  7829. *)
  7830. lt_save_MAGIC_CMD=$MAGIC_CMD
  7831. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7832. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7833. for ac_dir in $ac_dummy; do
  7834. IFS=$lt_save_ifs
  7835. test -z "$ac_dir" && ac_dir=.
  7836. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7837. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7838. if test -n "$file_magic_test_file"; then
  7839. case $deplibs_check_method in
  7840. "file_magic "*)
  7841. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7842. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7843. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7844. $EGREP "$file_magic_regex" > /dev/null; then
  7845. :
  7846. else
  7847. cat <<_LT_EOF 1>&2
  7848. *** Warning: the command libtool uses to detect shared libraries,
  7849. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7850. *** The result is that libtool may fail to recognize shared libraries
  7851. *** as such. This will affect the creation of libtool libraries that
  7852. *** depend on shared libraries, but programs linked with such libtool
  7853. *** libraries will work regardless of this problem. Nevertheless, you
  7854. *** may want to report the problem to your system manager and/or to
  7855. *** bug-libtool@gnu.org
  7856. _LT_EOF
  7857. fi ;;
  7858. esac
  7859. fi
  7860. break
  7861. fi
  7862. done
  7863. IFS=$lt_save_ifs
  7864. MAGIC_CMD=$lt_save_MAGIC_CMD
  7865. ;;
  7866. esac
  7867. fi
  7868. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7869. if test -n "$MAGIC_CMD"; then
  7870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7871. $as_echo "$MAGIC_CMD" >&6; }
  7872. else
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7874. $as_echo "no" >&6; }
  7875. fi
  7876. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7877. if test -n "$ac_tool_prefix"; then
  7878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7879. $as_echo_n "checking for file... " >&6; }
  7880. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7881. $as_echo_n "(cached) " >&6
  7882. else
  7883. case $MAGIC_CMD in
  7884. [\\/*] | ?:[\\/]*)
  7885. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7886. ;;
  7887. *)
  7888. lt_save_MAGIC_CMD=$MAGIC_CMD
  7889. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7890. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7891. for ac_dir in $ac_dummy; do
  7892. IFS=$lt_save_ifs
  7893. test -z "$ac_dir" && ac_dir=.
  7894. if test -f "$ac_dir/file"; then
  7895. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7896. if test -n "$file_magic_test_file"; then
  7897. case $deplibs_check_method in
  7898. "file_magic "*)
  7899. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7900. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7901. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7902. $EGREP "$file_magic_regex" > /dev/null; then
  7903. :
  7904. else
  7905. cat <<_LT_EOF 1>&2
  7906. *** Warning: the command libtool uses to detect shared libraries,
  7907. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7908. *** The result is that libtool may fail to recognize shared libraries
  7909. *** as such. This will affect the creation of libtool libraries that
  7910. *** depend on shared libraries, but programs linked with such libtool
  7911. *** libraries will work regardless of this problem. Nevertheless, you
  7912. *** may want to report the problem to your system manager and/or to
  7913. *** bug-libtool@gnu.org
  7914. _LT_EOF
  7915. fi ;;
  7916. esac
  7917. fi
  7918. break
  7919. fi
  7920. done
  7921. IFS=$lt_save_ifs
  7922. MAGIC_CMD=$lt_save_MAGIC_CMD
  7923. ;;
  7924. esac
  7925. fi
  7926. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7927. if test -n "$MAGIC_CMD"; then
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7929. $as_echo "$MAGIC_CMD" >&6; }
  7930. else
  7931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7932. $as_echo "no" >&6; }
  7933. fi
  7934. else
  7935. MAGIC_CMD=:
  7936. fi
  7937. fi
  7938. fi
  7939. ;;
  7940. esac
  7941. # Use C for the default configuration in the libtool script
  7942. lt_save_CC=$CC
  7943. ac_ext=c
  7944. ac_cpp='$CPP $CPPFLAGS'
  7945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7948. # Source file extension for C test sources.
  7949. ac_ext=c
  7950. # Object file extension for compiled C test sources.
  7951. objext=o
  7952. objext=$objext
  7953. # Code to be used in simple compile tests
  7954. lt_simple_compile_test_code="int some_variable = 0;"
  7955. # Code to be used in simple link tests
  7956. lt_simple_link_test_code='int main(){return(0);}'
  7957. # If no C compiler was specified, use CC.
  7958. LTCC=${LTCC-"$CC"}
  7959. # If no C compiler flags were specified, use CFLAGS.
  7960. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7961. # Allow CC to be a program name with arguments.
  7962. compiler=$CC
  7963. # Save the default compiler, since it gets overwritten when the other
  7964. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7965. compiler_DEFAULT=$CC
  7966. # save warnings/boilerplate of simple test code
  7967. ac_outfile=conftest.$ac_objext
  7968. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7969. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7970. _lt_compiler_boilerplate=`cat conftest.err`
  7971. $RM conftest*
  7972. ac_outfile=conftest.$ac_objext
  7973. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7974. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7975. _lt_linker_boilerplate=`cat conftest.err`
  7976. $RM -r conftest*
  7977. ## CAVEAT EMPTOR:
  7978. ## There is no encapsulation within the following macros, do not change
  7979. ## the running order or otherwise move them around unless you know exactly
  7980. ## what you are doing...
  7981. if test -n "$compiler"; then
  7982. lt_prog_compiler_no_builtin_flag=
  7983. if test yes = "$GCC"; then
  7984. case $cc_basename in
  7985. nvcc*)
  7986. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7987. *)
  7988. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7989. esac
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7991. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7992. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7993. $as_echo_n "(cached) " >&6
  7994. else
  7995. lt_cv_prog_compiler_rtti_exceptions=no
  7996. ac_outfile=conftest.$ac_objext
  7997. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7998. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7999. # Insert the option either (1) after the last *FLAGS variable, or
  8000. # (2) before a word containing "conftest.", or (3) at the end.
  8001. # Note that $ac_compile itself does not contain backslashes and begins
  8002. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8003. # The option is referenced via a variable to avoid confusing sed.
  8004. lt_compile=`echo "$ac_compile" | $SED \
  8005. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8006. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8007. -e 's:$: $lt_compiler_flag:'`
  8008. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8009. (eval "$lt_compile" 2>conftest.err)
  8010. ac_status=$?
  8011. cat conftest.err >&5
  8012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8013. if (exit $ac_status) && test -s "$ac_outfile"; then
  8014. # The compiler can only warn and ignore the option if not recognized
  8015. # So say no if there are warnings other than the usual output.
  8016. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8017. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8018. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8019. lt_cv_prog_compiler_rtti_exceptions=yes
  8020. fi
  8021. fi
  8022. $RM conftest*
  8023. fi
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8025. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8026. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8027. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8028. else
  8029. :
  8030. fi
  8031. fi
  8032. lt_prog_compiler_wl=
  8033. lt_prog_compiler_pic=
  8034. lt_prog_compiler_static=
  8035. if test yes = "$GCC"; then
  8036. lt_prog_compiler_wl='-Wl,'
  8037. lt_prog_compiler_static='-static'
  8038. case $host_os in
  8039. aix*)
  8040. # All AIX code is PIC.
  8041. if test ia64 = "$host_cpu"; then
  8042. # AIX 5 now supports IA64 processor
  8043. lt_prog_compiler_static='-Bstatic'
  8044. fi
  8045. lt_prog_compiler_pic='-fPIC'
  8046. ;;
  8047. amigaos*)
  8048. case $host_cpu in
  8049. powerpc)
  8050. # see comment about AmigaOS4 .so support
  8051. lt_prog_compiler_pic='-fPIC'
  8052. ;;
  8053. m68k)
  8054. # FIXME: we need at least 68020 code to build shared libraries, but
  8055. # adding the '-m68020' flag to GCC prevents building anything better,
  8056. # like '-m68040'.
  8057. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8058. ;;
  8059. esac
  8060. ;;
  8061. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8062. # PIC is the default for these OSes.
  8063. ;;
  8064. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8065. # This hack is so that the source file can tell whether it is being
  8066. # built for inclusion in a dll (and should export symbols for example).
  8067. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8068. # (--disable-auto-import) libraries
  8069. lt_prog_compiler_pic='-DDLL_EXPORT'
  8070. case $host_os in
  8071. os2*)
  8072. lt_prog_compiler_static='$wl-static'
  8073. ;;
  8074. esac
  8075. ;;
  8076. darwin* | rhapsody*)
  8077. # PIC is the default on this platform
  8078. # Common symbols not allowed in MH_DYLIB files
  8079. lt_prog_compiler_pic='-fno-common'
  8080. ;;
  8081. haiku*)
  8082. # PIC is the default for Haiku.
  8083. # The "-static" flag exists, but is broken.
  8084. lt_prog_compiler_static=
  8085. ;;
  8086. hpux*)
  8087. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8088. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8089. # sets the default TLS model and affects inlining.
  8090. case $host_cpu in
  8091. hppa*64*)
  8092. # +Z the default
  8093. ;;
  8094. *)
  8095. lt_prog_compiler_pic='-fPIC'
  8096. ;;
  8097. esac
  8098. ;;
  8099. interix[3-9]*)
  8100. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8101. # Instead, we relocate shared libraries at runtime.
  8102. ;;
  8103. msdosdjgpp*)
  8104. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8105. # on systems that don't support them.
  8106. lt_prog_compiler_can_build_shared=no
  8107. enable_shared=no
  8108. ;;
  8109. *nto* | *qnx*)
  8110. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8111. # it will coredump.
  8112. lt_prog_compiler_pic='-fPIC -shared'
  8113. ;;
  8114. sysv4*MP*)
  8115. if test -d /usr/nec; then
  8116. lt_prog_compiler_pic=-Kconform_pic
  8117. fi
  8118. ;;
  8119. *)
  8120. lt_prog_compiler_pic='-fPIC'
  8121. ;;
  8122. esac
  8123. case $cc_basename in
  8124. nvcc*) # Cuda Compiler Driver 2.2
  8125. lt_prog_compiler_wl='-Xlinker '
  8126. if test -n "$lt_prog_compiler_pic"; then
  8127. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8128. fi
  8129. ;;
  8130. esac
  8131. else
  8132. # PORTME Check for flag to pass linker flags through the system compiler.
  8133. case $host_os in
  8134. aix*)
  8135. lt_prog_compiler_wl='-Wl,'
  8136. if test ia64 = "$host_cpu"; then
  8137. # AIX 5 now supports IA64 processor
  8138. lt_prog_compiler_static='-Bstatic'
  8139. else
  8140. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8141. fi
  8142. ;;
  8143. darwin* | rhapsody*)
  8144. # PIC is the default on this platform
  8145. # Common symbols not allowed in MH_DYLIB files
  8146. lt_prog_compiler_pic='-fno-common'
  8147. case $cc_basename in
  8148. nagfor*)
  8149. # NAG Fortran compiler
  8150. lt_prog_compiler_wl='-Wl,-Wl,,'
  8151. lt_prog_compiler_pic='-PIC'
  8152. lt_prog_compiler_static='-Bstatic'
  8153. ;;
  8154. esac
  8155. ;;
  8156. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8157. # This hack is so that the source file can tell whether it is being
  8158. # built for inclusion in a dll (and should export symbols for example).
  8159. lt_prog_compiler_pic='-DDLL_EXPORT'
  8160. case $host_os in
  8161. os2*)
  8162. lt_prog_compiler_static='$wl-static'
  8163. ;;
  8164. esac
  8165. ;;
  8166. hpux9* | hpux10* | hpux11*)
  8167. lt_prog_compiler_wl='-Wl,'
  8168. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8169. # not for PA HP-UX.
  8170. case $host_cpu in
  8171. hppa*64*|ia64*)
  8172. # +Z the default
  8173. ;;
  8174. *)
  8175. lt_prog_compiler_pic='+Z'
  8176. ;;
  8177. esac
  8178. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8179. lt_prog_compiler_static='$wl-a ${wl}archive'
  8180. ;;
  8181. irix5* | irix6* | nonstopux*)
  8182. lt_prog_compiler_wl='-Wl,'
  8183. # PIC (with -KPIC) is the default.
  8184. lt_prog_compiler_static='-non_shared'
  8185. ;;
  8186. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8187. case $cc_basename in
  8188. # old Intel for x86_64, which still supported -KPIC.
  8189. ecc*)
  8190. lt_prog_compiler_wl='-Wl,'
  8191. lt_prog_compiler_pic='-KPIC'
  8192. lt_prog_compiler_static='-static'
  8193. ;;
  8194. # icc used to be incompatible with GCC.
  8195. # ICC 10 doesn't accept -KPIC any more.
  8196. icc* | ifort*)
  8197. lt_prog_compiler_wl='-Wl,'
  8198. lt_prog_compiler_pic='-fPIC'
  8199. lt_prog_compiler_static='-static'
  8200. ;;
  8201. # Lahey Fortran 8.1.
  8202. lf95*)
  8203. lt_prog_compiler_wl='-Wl,'
  8204. lt_prog_compiler_pic='--shared'
  8205. lt_prog_compiler_static='--static'
  8206. ;;
  8207. nagfor*)
  8208. # NAG Fortran compiler
  8209. lt_prog_compiler_wl='-Wl,-Wl,,'
  8210. lt_prog_compiler_pic='-PIC'
  8211. lt_prog_compiler_static='-Bstatic'
  8212. ;;
  8213. tcc*)
  8214. # Fabrice Bellard et al's Tiny C Compiler
  8215. lt_prog_compiler_wl='-Wl,'
  8216. lt_prog_compiler_pic='-fPIC'
  8217. lt_prog_compiler_static='-static'
  8218. ;;
  8219. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8220. # Portland Group compilers (*not* the Pentium gcc compiler,
  8221. # which looks to be a dead project)
  8222. lt_prog_compiler_wl='-Wl,'
  8223. lt_prog_compiler_pic='-fpic'
  8224. lt_prog_compiler_static='-Bstatic'
  8225. ;;
  8226. ccc*)
  8227. lt_prog_compiler_wl='-Wl,'
  8228. # All Alpha code is PIC.
  8229. lt_prog_compiler_static='-non_shared'
  8230. ;;
  8231. xl* | bgxl* | bgf* | mpixl*)
  8232. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8233. lt_prog_compiler_wl='-Wl,'
  8234. lt_prog_compiler_pic='-qpic'
  8235. lt_prog_compiler_static='-qstaticlink'
  8236. ;;
  8237. *)
  8238. case `$CC -V 2>&1 | sed 5q` in
  8239. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8240. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8241. lt_prog_compiler_pic='-KPIC'
  8242. lt_prog_compiler_static='-Bstatic'
  8243. lt_prog_compiler_wl=''
  8244. ;;
  8245. *Sun\ F* | *Sun*Fortran*)
  8246. lt_prog_compiler_pic='-KPIC'
  8247. lt_prog_compiler_static='-Bstatic'
  8248. lt_prog_compiler_wl='-Qoption ld '
  8249. ;;
  8250. *Sun\ C*)
  8251. # Sun C 5.9
  8252. lt_prog_compiler_pic='-KPIC'
  8253. lt_prog_compiler_static='-Bstatic'
  8254. lt_prog_compiler_wl='-Wl,'
  8255. ;;
  8256. *Intel*\ [CF]*Compiler*)
  8257. lt_prog_compiler_wl='-Wl,'
  8258. lt_prog_compiler_pic='-fPIC'
  8259. lt_prog_compiler_static='-static'
  8260. ;;
  8261. *Portland\ Group*)
  8262. lt_prog_compiler_wl='-Wl,'
  8263. lt_prog_compiler_pic='-fpic'
  8264. lt_prog_compiler_static='-Bstatic'
  8265. ;;
  8266. esac
  8267. ;;
  8268. esac
  8269. ;;
  8270. newsos6)
  8271. lt_prog_compiler_pic='-KPIC'
  8272. lt_prog_compiler_static='-Bstatic'
  8273. ;;
  8274. *nto* | *qnx*)
  8275. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8276. # it will coredump.
  8277. lt_prog_compiler_pic='-fPIC -shared'
  8278. ;;
  8279. osf3* | osf4* | osf5*)
  8280. lt_prog_compiler_wl='-Wl,'
  8281. # All OSF/1 code is PIC.
  8282. lt_prog_compiler_static='-non_shared'
  8283. ;;
  8284. rdos*)
  8285. lt_prog_compiler_static='-non_shared'
  8286. ;;
  8287. solaris*)
  8288. lt_prog_compiler_pic='-KPIC'
  8289. lt_prog_compiler_static='-Bstatic'
  8290. case $cc_basename in
  8291. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8292. lt_prog_compiler_wl='-Qoption ld ';;
  8293. *)
  8294. lt_prog_compiler_wl='-Wl,';;
  8295. esac
  8296. ;;
  8297. sunos4*)
  8298. lt_prog_compiler_wl='-Qoption ld '
  8299. lt_prog_compiler_pic='-PIC'
  8300. lt_prog_compiler_static='-Bstatic'
  8301. ;;
  8302. sysv4 | sysv4.2uw2* | sysv4.3*)
  8303. lt_prog_compiler_wl='-Wl,'
  8304. lt_prog_compiler_pic='-KPIC'
  8305. lt_prog_compiler_static='-Bstatic'
  8306. ;;
  8307. sysv4*MP*)
  8308. if test -d /usr/nec; then
  8309. lt_prog_compiler_pic='-Kconform_pic'
  8310. lt_prog_compiler_static='-Bstatic'
  8311. fi
  8312. ;;
  8313. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8314. lt_prog_compiler_wl='-Wl,'
  8315. lt_prog_compiler_pic='-KPIC'
  8316. lt_prog_compiler_static='-Bstatic'
  8317. ;;
  8318. unicos*)
  8319. lt_prog_compiler_wl='-Wl,'
  8320. lt_prog_compiler_can_build_shared=no
  8321. ;;
  8322. uts4*)
  8323. lt_prog_compiler_pic='-pic'
  8324. lt_prog_compiler_static='-Bstatic'
  8325. ;;
  8326. *)
  8327. lt_prog_compiler_can_build_shared=no
  8328. ;;
  8329. esac
  8330. fi
  8331. case $host_os in
  8332. # For platforms that do not support PIC, -DPIC is meaningless:
  8333. *djgpp*)
  8334. lt_prog_compiler_pic=
  8335. ;;
  8336. *)
  8337. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  8338. ;;
  8339. esac
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8341. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8342. if ${lt_cv_prog_compiler_pic+:} false; then :
  8343. $as_echo_n "(cached) " >&6
  8344. else
  8345. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8346. fi
  8347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8348. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8349. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8350. #
  8351. # Check to make sure the PIC flag actually works.
  8352. #
  8353. if test -n "$lt_prog_compiler_pic"; then
  8354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8355. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8356. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8357. $as_echo_n "(cached) " >&6
  8358. else
  8359. lt_cv_prog_compiler_pic_works=no
  8360. ac_outfile=conftest.$ac_objext
  8361. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8362. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8363. # Insert the option either (1) after the last *FLAGS variable, or
  8364. # (2) before a word containing "conftest.", or (3) at the end.
  8365. # Note that $ac_compile itself does not contain backslashes and begins
  8366. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8367. # The option is referenced via a variable to avoid confusing sed.
  8368. lt_compile=`echo "$ac_compile" | $SED \
  8369. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8370. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8371. -e 's:$: $lt_compiler_flag:'`
  8372. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8373. (eval "$lt_compile" 2>conftest.err)
  8374. ac_status=$?
  8375. cat conftest.err >&5
  8376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8377. if (exit $ac_status) && test -s "$ac_outfile"; then
  8378. # The compiler can only warn and ignore the option if not recognized
  8379. # So say no if there are warnings other than the usual output.
  8380. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8381. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8382. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8383. lt_cv_prog_compiler_pic_works=yes
  8384. fi
  8385. fi
  8386. $RM conftest*
  8387. fi
  8388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8389. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8390. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8391. case $lt_prog_compiler_pic in
  8392. "" | " "*) ;;
  8393. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8394. esac
  8395. else
  8396. lt_prog_compiler_pic=
  8397. lt_prog_compiler_can_build_shared=no
  8398. fi
  8399. fi
  8400. #
  8401. # Check to make sure the static flag actually works.
  8402. #
  8403. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8405. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8406. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8407. $as_echo_n "(cached) " >&6
  8408. else
  8409. lt_cv_prog_compiler_static_works=no
  8410. save_LDFLAGS=$LDFLAGS
  8411. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8412. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8413. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8414. # The linker can only warn and ignore the option if not recognized
  8415. # So say no if there are warnings
  8416. if test -s conftest.err; then
  8417. # Append any errors to the config.log.
  8418. cat conftest.err 1>&5
  8419. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8420. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8421. if diff conftest.exp conftest.er2 >/dev/null; then
  8422. lt_cv_prog_compiler_static_works=yes
  8423. fi
  8424. else
  8425. lt_cv_prog_compiler_static_works=yes
  8426. fi
  8427. fi
  8428. $RM -r conftest*
  8429. LDFLAGS=$save_LDFLAGS
  8430. fi
  8431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8432. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8433. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8434. :
  8435. else
  8436. lt_prog_compiler_static=
  8437. fi
  8438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8439. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8440. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8441. $as_echo_n "(cached) " >&6
  8442. else
  8443. lt_cv_prog_compiler_c_o=no
  8444. $RM -r conftest 2>/dev/null
  8445. mkdir conftest
  8446. cd conftest
  8447. mkdir out
  8448. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8449. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8450. # Insert the option either (1) after the last *FLAGS variable, or
  8451. # (2) before a word containing "conftest.", or (3) at the end.
  8452. # Note that $ac_compile itself does not contain backslashes and begins
  8453. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8454. lt_compile=`echo "$ac_compile" | $SED \
  8455. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8456. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8457. -e 's:$: $lt_compiler_flag:'`
  8458. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8459. (eval "$lt_compile" 2>out/conftest.err)
  8460. ac_status=$?
  8461. cat out/conftest.err >&5
  8462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8463. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8464. then
  8465. # The compiler can only warn and ignore the option if not recognized
  8466. # So say no if there are warnings
  8467. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8468. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8469. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8470. lt_cv_prog_compiler_c_o=yes
  8471. fi
  8472. fi
  8473. chmod u+w . 2>&5
  8474. $RM conftest*
  8475. # SGI C++ compiler will create directory out/ii_files/ for
  8476. # template instantiation
  8477. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8478. $RM out/* && rmdir out
  8479. cd ..
  8480. $RM -r conftest
  8481. $RM conftest*
  8482. fi
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8484. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8486. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8487. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8488. $as_echo_n "(cached) " >&6
  8489. else
  8490. lt_cv_prog_compiler_c_o=no
  8491. $RM -r conftest 2>/dev/null
  8492. mkdir conftest
  8493. cd conftest
  8494. mkdir out
  8495. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8496. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8497. # Insert the option either (1) after the last *FLAGS variable, or
  8498. # (2) before a word containing "conftest.", or (3) at the end.
  8499. # Note that $ac_compile itself does not contain backslashes and begins
  8500. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8501. lt_compile=`echo "$ac_compile" | $SED \
  8502. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8503. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8504. -e 's:$: $lt_compiler_flag:'`
  8505. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8506. (eval "$lt_compile" 2>out/conftest.err)
  8507. ac_status=$?
  8508. cat out/conftest.err >&5
  8509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8510. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8511. then
  8512. # The compiler can only warn and ignore the option if not recognized
  8513. # So say no if there are warnings
  8514. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8515. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8516. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8517. lt_cv_prog_compiler_c_o=yes
  8518. fi
  8519. fi
  8520. chmod u+w . 2>&5
  8521. $RM conftest*
  8522. # SGI C++ compiler will create directory out/ii_files/ for
  8523. # template instantiation
  8524. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8525. $RM out/* && rmdir out
  8526. cd ..
  8527. $RM -r conftest
  8528. $RM conftest*
  8529. fi
  8530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8531. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8532. hard_links=nottested
  8533. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8534. # do not overwrite the value of need_locks provided by the user
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8536. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8537. hard_links=yes
  8538. $RM conftest*
  8539. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8540. touch conftest.a
  8541. ln conftest.a conftest.b 2>&5 || hard_links=no
  8542. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8544. $as_echo "$hard_links" >&6; }
  8545. if test no = "$hard_links"; then
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8547. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8548. need_locks=warn
  8549. fi
  8550. else
  8551. need_locks=no
  8552. fi
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8554. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8555. runpath_var=
  8556. allow_undefined_flag=
  8557. always_export_symbols=no
  8558. archive_cmds=
  8559. archive_expsym_cmds=
  8560. compiler_needs_object=no
  8561. enable_shared_with_static_runtimes=no
  8562. export_dynamic_flag_spec=
  8563. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8564. hardcode_automatic=no
  8565. hardcode_direct=no
  8566. hardcode_direct_absolute=no
  8567. hardcode_libdir_flag_spec=
  8568. hardcode_libdir_separator=
  8569. hardcode_minus_L=no
  8570. hardcode_shlibpath_var=unsupported
  8571. inherit_rpath=no
  8572. link_all_deplibs=unknown
  8573. module_cmds=
  8574. module_expsym_cmds=
  8575. old_archive_from_new_cmds=
  8576. old_archive_from_expsyms_cmds=
  8577. thread_safe_flag_spec=
  8578. whole_archive_flag_spec=
  8579. # include_expsyms should be a list of space-separated symbols to be *always*
  8580. # included in the symbol list
  8581. include_expsyms=
  8582. # exclude_expsyms can be an extended regexp of symbols to exclude
  8583. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8584. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8585. # as well as any symbol that contains 'd'.
  8586. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8587. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8588. # platforms (ab)use it in PIC code, but their linkers get confused if
  8589. # the symbol is explicitly referenced. Since portable code cannot
  8590. # rely on this symbol name, it's probably fine to never include it in
  8591. # preloaded symbol tables.
  8592. # Exclude shared library initialization/finalization symbols.
  8593. extract_expsyms_cmds=
  8594. case $host_os in
  8595. cygwin* | mingw* | pw32* | cegcc*)
  8596. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8597. # When not using gcc, we currently assume that we are using
  8598. # Microsoft Visual C++.
  8599. if test yes != "$GCC"; then
  8600. with_gnu_ld=no
  8601. fi
  8602. ;;
  8603. interix*)
  8604. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8605. with_gnu_ld=yes
  8606. ;;
  8607. openbsd* | bitrig*)
  8608. with_gnu_ld=no
  8609. ;;
  8610. linux* | k*bsd*-gnu | gnu*)
  8611. link_all_deplibs=no
  8612. ;;
  8613. esac
  8614. ld_shlibs=yes
  8615. # On some targets, GNU ld is compatible enough with the native linker
  8616. # that we're better off using the native interface for both.
  8617. lt_use_gnu_ld_interface=no
  8618. if test yes = "$with_gnu_ld"; then
  8619. case $host_os in
  8620. aix*)
  8621. # The AIX port of GNU ld has always aspired to compatibility
  8622. # with the native linker. However, as the warning in the GNU ld
  8623. # block says, versions before 2.19.5* couldn't really create working
  8624. # shared libraries, regardless of the interface used.
  8625. case `$LD -v 2>&1` in
  8626. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8627. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8628. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8629. *)
  8630. lt_use_gnu_ld_interface=yes
  8631. ;;
  8632. esac
  8633. ;;
  8634. *)
  8635. lt_use_gnu_ld_interface=yes
  8636. ;;
  8637. esac
  8638. fi
  8639. if test yes = "$lt_use_gnu_ld_interface"; then
  8640. # If archive_cmds runs LD, not CC, wlarc should be empty
  8641. wlarc='$wl'
  8642. # Set some defaults for GNU ld with shared library support. These
  8643. # are reset later if shared libraries are not supported. Putting them
  8644. # here allows them to be overridden if necessary.
  8645. runpath_var=LD_RUN_PATH
  8646. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8647. export_dynamic_flag_spec='$wl--export-dynamic'
  8648. # ancient GNU ld didn't support --whole-archive et. al.
  8649. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8650. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8651. else
  8652. whole_archive_flag_spec=
  8653. fi
  8654. supports_anon_versioning=no
  8655. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8656. *GNU\ gold*) supports_anon_versioning=yes ;;
  8657. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8658. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8659. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8660. *\ 2.11.*) ;; # other 2.11 versions
  8661. *) supports_anon_versioning=yes ;;
  8662. esac
  8663. # See if GNU ld supports shared libraries.
  8664. case $host_os in
  8665. aix[3-9]*)
  8666. # On AIX/PPC, the GNU linker is very broken
  8667. if test ia64 != "$host_cpu"; then
  8668. ld_shlibs=no
  8669. cat <<_LT_EOF 1>&2
  8670. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8671. *** to be unable to reliably create shared libraries on AIX.
  8672. *** Therefore, libtool is disabling shared libraries support. If you
  8673. *** really care for shared libraries, you may want to install binutils
  8674. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8675. *** You will then need to restart the configuration process.
  8676. _LT_EOF
  8677. fi
  8678. ;;
  8679. amigaos*)
  8680. case $host_cpu in
  8681. powerpc)
  8682. # see comment about AmigaOS4 .so support
  8683. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8684. archive_expsym_cmds=''
  8685. ;;
  8686. m68k)
  8687. 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)'
  8688. hardcode_libdir_flag_spec='-L$libdir'
  8689. hardcode_minus_L=yes
  8690. ;;
  8691. esac
  8692. ;;
  8693. beos*)
  8694. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8695. allow_undefined_flag=unsupported
  8696. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8697. # support --undefined. This deserves some investigation. FIXME
  8698. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8699. else
  8700. ld_shlibs=no
  8701. fi
  8702. ;;
  8703. cygwin* | mingw* | pw32* | cegcc*)
  8704. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8705. # as there is no search path for DLLs.
  8706. hardcode_libdir_flag_spec='-L$libdir'
  8707. export_dynamic_flag_spec='$wl--export-all-symbols'
  8708. allow_undefined_flag=unsupported
  8709. always_export_symbols=no
  8710. enable_shared_with_static_runtimes=yes
  8711. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8712. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8713. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8714. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8715. # If the export-symbols file already is a .def file, use it as
  8716. # is; otherwise, prepend EXPORTS...
  8717. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8718. cp $export_symbols $output_objdir/$soname.def;
  8719. else
  8720. echo EXPORTS > $output_objdir/$soname.def;
  8721. cat $export_symbols >> $output_objdir/$soname.def;
  8722. fi~
  8723. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8724. else
  8725. ld_shlibs=no
  8726. fi
  8727. ;;
  8728. haiku*)
  8729. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8730. link_all_deplibs=yes
  8731. ;;
  8732. os2*)
  8733. hardcode_libdir_flag_spec='-L$libdir'
  8734. hardcode_minus_L=yes
  8735. allow_undefined_flag=unsupported
  8736. shrext_cmds=.dll
  8737. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8738. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8739. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8740. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8741. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8742. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8743. emximp -o $lib $output_objdir/$libname.def'
  8744. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8745. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8746. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8747. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8748. prefix_cmds="$SED"~
  8749. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8750. prefix_cmds="$prefix_cmds -e 1d";
  8751. fi~
  8752. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8753. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8754. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8755. emximp -o $lib $output_objdir/$libname.def'
  8756. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8757. enable_shared_with_static_runtimes=yes
  8758. ;;
  8759. interix[3-9]*)
  8760. hardcode_direct=no
  8761. hardcode_shlibpath_var=no
  8762. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8763. export_dynamic_flag_spec='$wl-E'
  8764. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8765. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8766. # default) and relocated if they conflict, which is a slow very memory
  8767. # consuming and fragmenting process. To avoid this, we pick a random,
  8768. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8769. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8770. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8771. 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'
  8772. ;;
  8773. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8774. tmp_diet=no
  8775. if test linux-dietlibc = "$host_os"; then
  8776. case $cc_basename in
  8777. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8778. esac
  8779. fi
  8780. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8781. && test no = "$tmp_diet"
  8782. then
  8783. tmp_addflag=' $pic_flag'
  8784. tmp_sharedflag='-shared'
  8785. case $cc_basename,$host_cpu in
  8786. pgcc*) # Portland Group C compiler
  8787. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8788. tmp_addflag=' $pic_flag'
  8789. ;;
  8790. pgf77* | pgf90* | pgf95* | pgfortran*)
  8791. # Portland Group f77 and f90 compilers
  8792. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8793. tmp_addflag=' $pic_flag -Mnomain' ;;
  8794. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8795. tmp_addflag=' -i_dynamic' ;;
  8796. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8797. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8798. ifc* | ifort*) # Intel Fortran compiler
  8799. tmp_addflag=' -nofor_main' ;;
  8800. lf95*) # Lahey Fortran 8.1
  8801. whole_archive_flag_spec=
  8802. tmp_sharedflag='--shared' ;;
  8803. nagfor*) # NAGFOR 5.3
  8804. tmp_sharedflag='-Wl,-shared' ;;
  8805. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8806. tmp_sharedflag='-qmkshrobj'
  8807. tmp_addflag= ;;
  8808. nvcc*) # Cuda Compiler Driver 2.2
  8809. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8810. compiler_needs_object=yes
  8811. ;;
  8812. esac
  8813. case `$CC -V 2>&1 | sed 5q` in
  8814. *Sun\ C*) # Sun C 5.9
  8815. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8816. compiler_needs_object=yes
  8817. tmp_sharedflag='-G' ;;
  8818. *Sun\ F*) # Sun Fortran 8.3
  8819. tmp_sharedflag='-G' ;;
  8820. esac
  8821. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8822. if test yes = "$supports_anon_versioning"; then
  8823. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8824. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8825. echo "local: *; };" >> $output_objdir/$libname.ver~
  8826. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8827. fi
  8828. case $cc_basename in
  8829. tcc*)
  8830. export_dynamic_flag_spec='-rdynamic'
  8831. ;;
  8832. xlf* | bgf* | bgxlf* | mpixlf*)
  8833. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8834. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8835. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8836. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8837. if test yes = "$supports_anon_versioning"; then
  8838. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8839. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8840. echo "local: *; };" >> $output_objdir/$libname.ver~
  8841. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8842. fi
  8843. ;;
  8844. esac
  8845. else
  8846. ld_shlibs=no
  8847. fi
  8848. ;;
  8849. netbsd* | netbsdelf*-gnu)
  8850. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8851. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8852. wlarc=
  8853. else
  8854. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8855. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8856. fi
  8857. ;;
  8858. solaris*)
  8859. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8860. ld_shlibs=no
  8861. cat <<_LT_EOF 1>&2
  8862. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8863. *** create shared libraries on Solaris systems. Therefore, libtool
  8864. *** is disabling shared libraries support. We urge you to upgrade GNU
  8865. *** binutils to release 2.9.1 or newer. Another option is to modify
  8866. *** your PATH or compiler configuration so that the native linker is
  8867. *** used, and then restart.
  8868. _LT_EOF
  8869. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8870. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8871. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8872. else
  8873. ld_shlibs=no
  8874. fi
  8875. ;;
  8876. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8877. case `$LD -v 2>&1` in
  8878. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8879. ld_shlibs=no
  8880. cat <<_LT_EOF 1>&2
  8881. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8882. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8883. *** is disabling shared libraries support. We urge you to upgrade GNU
  8884. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8885. *** your PATH or compiler configuration so that the native linker is
  8886. *** used, and then restart.
  8887. _LT_EOF
  8888. ;;
  8889. *)
  8890. # For security reasons, it is highly recommended that you always
  8891. # use absolute paths for naming shared libraries, and exclude the
  8892. # DT_RUNPATH tag from executables and libraries. But doing so
  8893. # requires that you compile everything twice, which is a pain.
  8894. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8895. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8896. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8897. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8898. else
  8899. ld_shlibs=no
  8900. fi
  8901. ;;
  8902. esac
  8903. ;;
  8904. sunos4*)
  8905. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8906. wlarc=
  8907. hardcode_direct=yes
  8908. hardcode_shlibpath_var=no
  8909. ;;
  8910. *)
  8911. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8912. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8913. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8914. else
  8915. ld_shlibs=no
  8916. fi
  8917. ;;
  8918. esac
  8919. if test no = "$ld_shlibs"; then
  8920. runpath_var=
  8921. hardcode_libdir_flag_spec=
  8922. export_dynamic_flag_spec=
  8923. whole_archive_flag_spec=
  8924. fi
  8925. else
  8926. # PORTME fill in a description of your system's linker (not GNU ld)
  8927. case $host_os in
  8928. aix3*)
  8929. allow_undefined_flag=unsupported
  8930. always_export_symbols=yes
  8931. 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'
  8932. # Note: this linker hardcodes the directories in LIBPATH if there
  8933. # are no directories specified by -L.
  8934. hardcode_minus_L=yes
  8935. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8936. # Neither direct hardcoding nor static linking is supported with a
  8937. # broken collect2.
  8938. hardcode_direct=unsupported
  8939. fi
  8940. ;;
  8941. aix[4-9]*)
  8942. if test ia64 = "$host_cpu"; then
  8943. # On IA64, the linker does run time linking by default, so we don't
  8944. # have to do anything special.
  8945. aix_use_runtimelinking=no
  8946. exp_sym_flag='-Bexport'
  8947. no_entry_flag=
  8948. else
  8949. # If we're using GNU nm, then we don't want the "-C" option.
  8950. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8951. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8952. # weak defined symbols like other global defined symbols, whereas
  8953. # GNU nm marks them as "W".
  8954. # While the 'weak' keyword is ignored in the Export File, we need
  8955. # it in the Import File for the 'aix-soname' feature, so we have
  8956. # to replace the "-B" option with "-P" for AIX nm.
  8957. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8958. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8959. else
  8960. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8961. fi
  8962. aix_use_runtimelinking=no
  8963. # Test if we are trying to use run time linking or normal
  8964. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8965. # have runtime linking enabled, and use it for executables.
  8966. # For shared libraries, we enable/disable runtime linking
  8967. # depending on the kind of the shared library created -
  8968. # when "with_aix_soname,aix_use_runtimelinking" is:
  8969. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8970. # "aix,yes" lib.so shared, rtl:yes, for executables
  8971. # lib.a static archive
  8972. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8973. # lib.a(lib.so.V) shared, rtl:no, for executables
  8974. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8975. # lib.a(lib.so.V) shared, rtl:no
  8976. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8977. # lib.a static archive
  8978. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8979. for ld_flag in $LDFLAGS; do
  8980. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8981. aix_use_runtimelinking=yes
  8982. break
  8983. fi
  8984. done
  8985. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8986. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8987. # so we don't have lib.a shared libs to link our executables.
  8988. # We have to force runtime linking in this case.
  8989. aix_use_runtimelinking=yes
  8990. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8991. fi
  8992. ;;
  8993. esac
  8994. exp_sym_flag='-bexport'
  8995. no_entry_flag='-bnoentry'
  8996. fi
  8997. # When large executables or shared objects are built, AIX ld can
  8998. # have problems creating the table of contents. If linking a library
  8999. # or program results in "error TOC overflow" add -mminimal-toc to
  9000. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9001. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9002. archive_cmds=''
  9003. hardcode_direct=yes
  9004. hardcode_direct_absolute=yes
  9005. hardcode_libdir_separator=':'
  9006. link_all_deplibs=yes
  9007. file_list_spec='$wl-f,'
  9008. case $with_aix_soname,$aix_use_runtimelinking in
  9009. aix,*) ;; # traditional, no import file
  9010. svr4,* | *,yes) # use import file
  9011. # The Import File defines what to hardcode.
  9012. hardcode_direct=no
  9013. hardcode_direct_absolute=no
  9014. ;;
  9015. esac
  9016. if test yes = "$GCC"; then
  9017. case $host_os in aix4.[012]|aix4.[012].*)
  9018. # We only want to do this on AIX 4.2 and lower, the check
  9019. # below for broken collect2 doesn't work under 4.3+
  9020. collect2name=`$CC -print-prog-name=collect2`
  9021. if test -f "$collect2name" &&
  9022. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9023. then
  9024. # We have reworked collect2
  9025. :
  9026. else
  9027. # We have old collect2
  9028. hardcode_direct=unsupported
  9029. # It fails to find uninstalled libraries when the uninstalled
  9030. # path is not listed in the libpath. Setting hardcode_minus_L
  9031. # to unsupported forces relinking
  9032. hardcode_minus_L=yes
  9033. hardcode_libdir_flag_spec='-L$libdir'
  9034. hardcode_libdir_separator=
  9035. fi
  9036. ;;
  9037. esac
  9038. shared_flag='-shared'
  9039. if test yes = "$aix_use_runtimelinking"; then
  9040. shared_flag="$shared_flag "'$wl-G'
  9041. fi
  9042. # Need to ensure runtime linking is disabled for the traditional
  9043. # shared library, or the linker may eventually find shared libraries
  9044. # /with/ Import File - we do not want to mix them.
  9045. shared_flag_aix='-shared'
  9046. shared_flag_svr4='-shared $wl-G'
  9047. else
  9048. # not using gcc
  9049. if test ia64 = "$host_cpu"; then
  9050. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9051. # chokes on -Wl,-G. The following line is correct:
  9052. shared_flag='-G'
  9053. else
  9054. if test yes = "$aix_use_runtimelinking"; then
  9055. shared_flag='$wl-G'
  9056. else
  9057. shared_flag='$wl-bM:SRE'
  9058. fi
  9059. shared_flag_aix='$wl-bM:SRE'
  9060. shared_flag_svr4='$wl-G'
  9061. fi
  9062. fi
  9063. export_dynamic_flag_spec='$wl-bexpall'
  9064. # It seems that -bexpall does not export symbols beginning with
  9065. # underscore (_), so it is better to generate a list of symbols to export.
  9066. always_export_symbols=yes
  9067. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9068. # Warning - without using the other runtime loading flags (-brtl),
  9069. # -berok will link without error, but may produce a broken library.
  9070. allow_undefined_flag='-berok'
  9071. # Determine the default libpath from the value encoded in an
  9072. # empty executable.
  9073. if test set = "${lt_cv_aix_libpath+set}"; then
  9074. aix_libpath=$lt_cv_aix_libpath
  9075. else
  9076. if ${lt_cv_aix_libpath_+:} false; then :
  9077. $as_echo_n "(cached) " >&6
  9078. else
  9079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9080. /* end confdefs.h. */
  9081. int
  9082. main ()
  9083. {
  9084. ;
  9085. return 0;
  9086. }
  9087. _ACEOF
  9088. if ac_fn_c_try_link "$LINENO"; then :
  9089. lt_aix_libpath_sed='
  9090. /Import File Strings/,/^$/ {
  9091. /^0/ {
  9092. s/^0 *\([^ ]*\) *$/\1/
  9093. p
  9094. }
  9095. }'
  9096. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9097. # Check for a 64-bit object if we didn't find anything.
  9098. if test -z "$lt_cv_aix_libpath_"; then
  9099. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9100. fi
  9101. fi
  9102. rm -f core conftest.err conftest.$ac_objext \
  9103. conftest$ac_exeext conftest.$ac_ext
  9104. if test -z "$lt_cv_aix_libpath_"; then
  9105. lt_cv_aix_libpath_=/usr/lib:/lib
  9106. fi
  9107. fi
  9108. aix_libpath=$lt_cv_aix_libpath_
  9109. fi
  9110. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9111. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9112. else
  9113. if test ia64 = "$host_cpu"; then
  9114. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9115. allow_undefined_flag="-z nodefs"
  9116. 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"
  9117. else
  9118. # Determine the default libpath from the value encoded in an
  9119. # empty executable.
  9120. if test set = "${lt_cv_aix_libpath+set}"; then
  9121. aix_libpath=$lt_cv_aix_libpath
  9122. else
  9123. if ${lt_cv_aix_libpath_+:} false; then :
  9124. $as_echo_n "(cached) " >&6
  9125. else
  9126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9127. /* end confdefs.h. */
  9128. int
  9129. main ()
  9130. {
  9131. ;
  9132. return 0;
  9133. }
  9134. _ACEOF
  9135. if ac_fn_c_try_link "$LINENO"; then :
  9136. lt_aix_libpath_sed='
  9137. /Import File Strings/,/^$/ {
  9138. /^0/ {
  9139. s/^0 *\([^ ]*\) *$/\1/
  9140. p
  9141. }
  9142. }'
  9143. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9144. # Check for a 64-bit object if we didn't find anything.
  9145. if test -z "$lt_cv_aix_libpath_"; then
  9146. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9147. fi
  9148. fi
  9149. rm -f core conftest.err conftest.$ac_objext \
  9150. conftest$ac_exeext conftest.$ac_ext
  9151. if test -z "$lt_cv_aix_libpath_"; then
  9152. lt_cv_aix_libpath_=/usr/lib:/lib
  9153. fi
  9154. fi
  9155. aix_libpath=$lt_cv_aix_libpath_
  9156. fi
  9157. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9158. # Warning - without using the other run time loading flags,
  9159. # -berok will link without error, but may produce a broken library.
  9160. no_undefined_flag=' $wl-bernotok'
  9161. allow_undefined_flag=' $wl-berok'
  9162. if test yes = "$with_gnu_ld"; then
  9163. # We only use this code for GNU lds that support --whole-archive.
  9164. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9165. else
  9166. # Exported symbols can be pulled into shared objects from archives
  9167. whole_archive_flag_spec='$convenience'
  9168. fi
  9169. archive_cmds_need_lc=yes
  9170. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9171. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9172. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9173. if test svr4 != "$with_aix_soname"; then
  9174. # This is similar to how AIX traditionally builds its shared libraries.
  9175. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9176. fi
  9177. if test aix != "$with_aix_soname"; then
  9178. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9179. else
  9180. # used by -dlpreopen to get the symbols
  9181. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9182. fi
  9183. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9184. fi
  9185. fi
  9186. ;;
  9187. amigaos*)
  9188. case $host_cpu in
  9189. powerpc)
  9190. # see comment about AmigaOS4 .so support
  9191. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9192. archive_expsym_cmds=''
  9193. ;;
  9194. m68k)
  9195. 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)'
  9196. hardcode_libdir_flag_spec='-L$libdir'
  9197. hardcode_minus_L=yes
  9198. ;;
  9199. esac
  9200. ;;
  9201. bsdi[45]*)
  9202. export_dynamic_flag_spec=-rdynamic
  9203. ;;
  9204. cygwin* | mingw* | pw32* | cegcc*)
  9205. # When not using gcc, we currently assume that we are using
  9206. # Microsoft Visual C++.
  9207. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9208. # no search path for DLLs.
  9209. case $cc_basename in
  9210. cl*)
  9211. # Native MSVC
  9212. hardcode_libdir_flag_spec=' '
  9213. allow_undefined_flag=unsupported
  9214. always_export_symbols=yes
  9215. file_list_spec='@'
  9216. # Tell ltmain to make .lib files, not .a files.
  9217. libext=lib
  9218. # Tell ltmain to make .dll files, not .so files.
  9219. shrext_cmds=.dll
  9220. # FIXME: Setting linknames here is a bad hack.
  9221. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9222. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9223. cp "$export_symbols" "$output_objdir/$soname.def";
  9224. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9225. else
  9226. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9227. fi~
  9228. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9229. linknames='
  9230. # The linker will not automatically build a static lib if we build a DLL.
  9231. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9232. enable_shared_with_static_runtimes=yes
  9233. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9234. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9235. # Don't use ranlib
  9236. old_postinstall_cmds='chmod 644 $oldlib'
  9237. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9238. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9239. case $lt_outputfile in
  9240. *.exe|*.EXE) ;;
  9241. *)
  9242. lt_outputfile=$lt_outputfile.exe
  9243. lt_tool_outputfile=$lt_tool_outputfile.exe
  9244. ;;
  9245. esac~
  9246. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9247. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9248. $RM "$lt_outputfile.manifest";
  9249. fi'
  9250. ;;
  9251. *)
  9252. # Assume MSVC wrapper
  9253. hardcode_libdir_flag_spec=' '
  9254. allow_undefined_flag=unsupported
  9255. # Tell ltmain to make .lib files, not .a files.
  9256. libext=lib
  9257. # Tell ltmain to make .dll files, not .so files.
  9258. shrext_cmds=.dll
  9259. # FIXME: Setting linknames here is a bad hack.
  9260. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9261. # The linker will automatically build a .lib file if we build a DLL.
  9262. old_archive_from_new_cmds='true'
  9263. # FIXME: Should let the user specify the lib program.
  9264. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9265. enable_shared_with_static_runtimes=yes
  9266. ;;
  9267. esac
  9268. ;;
  9269. darwin* | rhapsody*)
  9270. archive_cmds_need_lc=no
  9271. hardcode_direct=no
  9272. hardcode_automatic=yes
  9273. hardcode_shlibpath_var=unsupported
  9274. if test yes = "$lt_cv_ld_force_load"; then
  9275. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9276. else
  9277. whole_archive_flag_spec=''
  9278. fi
  9279. link_all_deplibs=yes
  9280. allow_undefined_flag=$_lt_dar_allow_undefined
  9281. case $cc_basename in
  9282. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9283. *) _lt_dar_can_shared=$GCC ;;
  9284. esac
  9285. if test yes = "$_lt_dar_can_shared"; then
  9286. output_verbose_link_cmd=func_echo_all
  9287. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9288. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9289. 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"
  9290. 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"
  9291. else
  9292. ld_shlibs=no
  9293. fi
  9294. ;;
  9295. dgux*)
  9296. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9297. hardcode_libdir_flag_spec='-L$libdir'
  9298. hardcode_shlibpath_var=no
  9299. ;;
  9300. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9301. # support. Future versions do this automatically, but an explicit c++rt0.o
  9302. # does not break anything, and helps significantly (at the cost of a little
  9303. # extra space).
  9304. freebsd2.2*)
  9305. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9306. hardcode_libdir_flag_spec='-R$libdir'
  9307. hardcode_direct=yes
  9308. hardcode_shlibpath_var=no
  9309. ;;
  9310. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9311. freebsd2.*)
  9312. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9313. hardcode_direct=yes
  9314. hardcode_minus_L=yes
  9315. hardcode_shlibpath_var=no
  9316. ;;
  9317. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9318. freebsd* | dragonfly*)
  9319. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9320. hardcode_libdir_flag_spec='-R$libdir'
  9321. hardcode_direct=yes
  9322. hardcode_shlibpath_var=no
  9323. ;;
  9324. hpux9*)
  9325. if test yes = "$GCC"; then
  9326. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9327. else
  9328. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9329. fi
  9330. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9331. hardcode_libdir_separator=:
  9332. hardcode_direct=yes
  9333. # hardcode_minus_L: Not really in the search PATH,
  9334. # but as the default location of the library.
  9335. hardcode_minus_L=yes
  9336. export_dynamic_flag_spec='$wl-E'
  9337. ;;
  9338. hpux10*)
  9339. if test yes,no = "$GCC,$with_gnu_ld"; then
  9340. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9341. else
  9342. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9343. fi
  9344. if test no = "$with_gnu_ld"; then
  9345. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9346. hardcode_libdir_separator=:
  9347. hardcode_direct=yes
  9348. hardcode_direct_absolute=yes
  9349. export_dynamic_flag_spec='$wl-E'
  9350. # hardcode_minus_L: Not really in the search PATH,
  9351. # but as the default location of the library.
  9352. hardcode_minus_L=yes
  9353. fi
  9354. ;;
  9355. hpux11*)
  9356. if test yes,no = "$GCC,$with_gnu_ld"; then
  9357. case $host_cpu in
  9358. hppa*64*)
  9359. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9360. ;;
  9361. ia64*)
  9362. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9363. ;;
  9364. *)
  9365. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9366. ;;
  9367. esac
  9368. else
  9369. case $host_cpu in
  9370. hppa*64*)
  9371. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9372. ;;
  9373. ia64*)
  9374. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9375. ;;
  9376. *)
  9377. # Older versions of the 11.00 compiler do not understand -b yet
  9378. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9380. $as_echo_n "checking if $CC understands -b... " >&6; }
  9381. if ${lt_cv_prog_compiler__b+:} false; then :
  9382. $as_echo_n "(cached) " >&6
  9383. else
  9384. lt_cv_prog_compiler__b=no
  9385. save_LDFLAGS=$LDFLAGS
  9386. LDFLAGS="$LDFLAGS -b"
  9387. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9388. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9389. # The linker can only warn and ignore the option if not recognized
  9390. # So say no if there are warnings
  9391. if test -s conftest.err; then
  9392. # Append any errors to the config.log.
  9393. cat conftest.err 1>&5
  9394. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9395. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9396. if diff conftest.exp conftest.er2 >/dev/null; then
  9397. lt_cv_prog_compiler__b=yes
  9398. fi
  9399. else
  9400. lt_cv_prog_compiler__b=yes
  9401. fi
  9402. fi
  9403. $RM -r conftest*
  9404. LDFLAGS=$save_LDFLAGS
  9405. fi
  9406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9407. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9408. if test yes = "$lt_cv_prog_compiler__b"; then
  9409. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9410. else
  9411. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9412. fi
  9413. ;;
  9414. esac
  9415. fi
  9416. if test no = "$with_gnu_ld"; then
  9417. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9418. hardcode_libdir_separator=:
  9419. case $host_cpu in
  9420. hppa*64*|ia64*)
  9421. hardcode_direct=no
  9422. hardcode_shlibpath_var=no
  9423. ;;
  9424. *)
  9425. hardcode_direct=yes
  9426. hardcode_direct_absolute=yes
  9427. export_dynamic_flag_spec='$wl-E'
  9428. # hardcode_minus_L: Not really in the search PATH,
  9429. # but as the default location of the library.
  9430. hardcode_minus_L=yes
  9431. ;;
  9432. esac
  9433. fi
  9434. ;;
  9435. irix5* | irix6* | nonstopux*)
  9436. if test yes = "$GCC"; then
  9437. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9438. # Try to use the -exported_symbol ld option, if it does not
  9439. # work, assume that -exports_file does not work either and
  9440. # implicitly export all symbols.
  9441. # This should be the same for all languages, so no per-tag cache variable.
  9442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9443. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9444. if ${lt_cv_irix_exported_symbol+:} false; then :
  9445. $as_echo_n "(cached) " >&6
  9446. else
  9447. save_LDFLAGS=$LDFLAGS
  9448. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9450. /* end confdefs.h. */
  9451. int foo (void) { return 0; }
  9452. _ACEOF
  9453. if ac_fn_c_try_link "$LINENO"; then :
  9454. lt_cv_irix_exported_symbol=yes
  9455. else
  9456. lt_cv_irix_exported_symbol=no
  9457. fi
  9458. rm -f core conftest.err conftest.$ac_objext \
  9459. conftest$ac_exeext conftest.$ac_ext
  9460. LDFLAGS=$save_LDFLAGS
  9461. fi
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9463. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9464. if test yes = "$lt_cv_irix_exported_symbol"; then
  9465. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9466. fi
  9467. link_all_deplibs=no
  9468. else
  9469. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9470. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9471. fi
  9472. archive_cmds_need_lc='no'
  9473. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9474. hardcode_libdir_separator=:
  9475. inherit_rpath=yes
  9476. link_all_deplibs=yes
  9477. ;;
  9478. linux*)
  9479. case $cc_basename in
  9480. tcc*)
  9481. # Fabrice Bellard et al's Tiny C Compiler
  9482. ld_shlibs=yes
  9483. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9484. ;;
  9485. esac
  9486. ;;
  9487. netbsd* | netbsdelf*-gnu)
  9488. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9489. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9490. else
  9491. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9492. fi
  9493. hardcode_libdir_flag_spec='-R$libdir'
  9494. hardcode_direct=yes
  9495. hardcode_shlibpath_var=no
  9496. ;;
  9497. newsos6)
  9498. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9499. hardcode_direct=yes
  9500. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9501. hardcode_libdir_separator=:
  9502. hardcode_shlibpath_var=no
  9503. ;;
  9504. *nto* | *qnx*)
  9505. ;;
  9506. openbsd* | bitrig*)
  9507. if test -f /usr/libexec/ld.so; then
  9508. hardcode_direct=yes
  9509. hardcode_shlibpath_var=no
  9510. hardcode_direct_absolute=yes
  9511. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9512. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9513. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9514. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9515. export_dynamic_flag_spec='$wl-E'
  9516. else
  9517. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9518. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9519. fi
  9520. else
  9521. ld_shlibs=no
  9522. fi
  9523. ;;
  9524. os2*)
  9525. hardcode_libdir_flag_spec='-L$libdir'
  9526. hardcode_minus_L=yes
  9527. allow_undefined_flag=unsupported
  9528. shrext_cmds=.dll
  9529. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9530. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9531. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9532. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9533. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9534. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9535. emximp -o $lib $output_objdir/$libname.def'
  9536. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9537. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9538. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9539. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9540. prefix_cmds="$SED"~
  9541. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9542. prefix_cmds="$prefix_cmds -e 1d";
  9543. fi~
  9544. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9545. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9546. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9547. emximp -o $lib $output_objdir/$libname.def'
  9548. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9549. enable_shared_with_static_runtimes=yes
  9550. ;;
  9551. osf3*)
  9552. if test yes = "$GCC"; then
  9553. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9554. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9555. else
  9556. allow_undefined_flag=' -expect_unresolved \*'
  9557. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9558. fi
  9559. archive_cmds_need_lc='no'
  9560. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9561. hardcode_libdir_separator=:
  9562. ;;
  9563. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9564. if test yes = "$GCC"; then
  9565. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9566. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9567. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9568. else
  9569. allow_undefined_flag=' -expect_unresolved \*'
  9570. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9571. 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~
  9572. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9573. # Both c and cxx compiler support -rpath directly
  9574. hardcode_libdir_flag_spec='-rpath $libdir'
  9575. fi
  9576. archive_cmds_need_lc='no'
  9577. hardcode_libdir_separator=:
  9578. ;;
  9579. solaris*)
  9580. no_undefined_flag=' -z defs'
  9581. if test yes = "$GCC"; then
  9582. wlarc='$wl'
  9583. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9584. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9585. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9586. else
  9587. case `$CC -V 2>&1` in
  9588. *"Compilers 5.0"*)
  9589. wlarc=''
  9590. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9591. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9592. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9593. ;;
  9594. *)
  9595. wlarc='$wl'
  9596. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9597. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9598. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9599. ;;
  9600. esac
  9601. fi
  9602. hardcode_libdir_flag_spec='-R$libdir'
  9603. hardcode_shlibpath_var=no
  9604. case $host_os in
  9605. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9606. *)
  9607. # The compiler driver will combine and reorder linker options,
  9608. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9609. # but is careful enough not to reorder.
  9610. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9611. if test yes = "$GCC"; then
  9612. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9613. else
  9614. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9615. fi
  9616. ;;
  9617. esac
  9618. link_all_deplibs=yes
  9619. ;;
  9620. sunos4*)
  9621. if test sequent = "$host_vendor"; then
  9622. # Use $CC to link under sequent, because it throws in some extra .o
  9623. # files that make .init and .fini sections work.
  9624. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9625. else
  9626. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9627. fi
  9628. hardcode_libdir_flag_spec='-L$libdir'
  9629. hardcode_direct=yes
  9630. hardcode_minus_L=yes
  9631. hardcode_shlibpath_var=no
  9632. ;;
  9633. sysv4)
  9634. case $host_vendor in
  9635. sni)
  9636. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9637. hardcode_direct=yes # is this really true???
  9638. ;;
  9639. siemens)
  9640. ## LD is ld it makes a PLAMLIB
  9641. ## CC just makes a GrossModule.
  9642. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9643. reload_cmds='$CC -r -o $output$reload_objs'
  9644. hardcode_direct=no
  9645. ;;
  9646. motorola)
  9647. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9648. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9649. ;;
  9650. esac
  9651. runpath_var='LD_RUN_PATH'
  9652. hardcode_shlibpath_var=no
  9653. ;;
  9654. sysv4.3*)
  9655. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9656. hardcode_shlibpath_var=no
  9657. export_dynamic_flag_spec='-Bexport'
  9658. ;;
  9659. sysv4*MP*)
  9660. if test -d /usr/nec; then
  9661. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9662. hardcode_shlibpath_var=no
  9663. runpath_var=LD_RUN_PATH
  9664. hardcode_runpath_var=yes
  9665. ld_shlibs=yes
  9666. fi
  9667. ;;
  9668. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9669. no_undefined_flag='$wl-z,text'
  9670. archive_cmds_need_lc=no
  9671. hardcode_shlibpath_var=no
  9672. runpath_var='LD_RUN_PATH'
  9673. if test yes = "$GCC"; then
  9674. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9675. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9676. else
  9677. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9678. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9679. fi
  9680. ;;
  9681. sysv5* | sco3.2v5* | sco5v6*)
  9682. # Note: We CANNOT use -z defs as we might desire, because we do not
  9683. # link with -lc, and that would cause any symbols used from libc to
  9684. # always be unresolved, which means just about no library would
  9685. # ever link correctly. If we're not using GNU ld we use -z text
  9686. # though, which does catch some bad symbols but isn't as heavy-handed
  9687. # as -z defs.
  9688. no_undefined_flag='$wl-z,text'
  9689. allow_undefined_flag='$wl-z,nodefs'
  9690. archive_cmds_need_lc=no
  9691. hardcode_shlibpath_var=no
  9692. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9693. hardcode_libdir_separator=':'
  9694. link_all_deplibs=yes
  9695. export_dynamic_flag_spec='$wl-Bexport'
  9696. runpath_var='LD_RUN_PATH'
  9697. if test yes = "$GCC"; then
  9698. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9699. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9700. else
  9701. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9702. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9703. fi
  9704. ;;
  9705. uts4*)
  9706. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9707. hardcode_libdir_flag_spec='-L$libdir'
  9708. hardcode_shlibpath_var=no
  9709. ;;
  9710. *)
  9711. ld_shlibs=no
  9712. ;;
  9713. esac
  9714. if test sni = "$host_vendor"; then
  9715. case $host in
  9716. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9717. export_dynamic_flag_spec='$wl-Blargedynsym'
  9718. ;;
  9719. esac
  9720. fi
  9721. fi
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9723. $as_echo "$ld_shlibs" >&6; }
  9724. test no = "$ld_shlibs" && can_build_shared=no
  9725. with_gnu_ld=$with_gnu_ld
  9726. #
  9727. # Do we need to explicitly link libc?
  9728. #
  9729. case "x$archive_cmds_need_lc" in
  9730. x|xyes)
  9731. # Assume -lc should be added
  9732. archive_cmds_need_lc=yes
  9733. if test yes,yes = "$GCC,$enable_shared"; then
  9734. case $archive_cmds in
  9735. *'~'*)
  9736. # FIXME: we may have to deal with multi-command sequences.
  9737. ;;
  9738. '$CC '*)
  9739. # Test whether the compiler implicitly links with -lc since on some
  9740. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9741. # to ld, don't add -lc before -lgcc.
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9743. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9744. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9745. $as_echo_n "(cached) " >&6
  9746. else
  9747. $RM conftest*
  9748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9749. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9750. (eval $ac_compile) 2>&5
  9751. ac_status=$?
  9752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9753. test $ac_status = 0; } 2>conftest.err; then
  9754. soname=conftest
  9755. lib=conftest
  9756. libobjs=conftest.$ac_objext
  9757. deplibs=
  9758. wl=$lt_prog_compiler_wl
  9759. pic_flag=$lt_prog_compiler_pic
  9760. compiler_flags=-v
  9761. linker_flags=-v
  9762. verstring=
  9763. output_objdir=.
  9764. libname=conftest
  9765. lt_save_allow_undefined_flag=$allow_undefined_flag
  9766. allow_undefined_flag=
  9767. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9768. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9769. ac_status=$?
  9770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9771. test $ac_status = 0; }
  9772. then
  9773. lt_cv_archive_cmds_need_lc=no
  9774. else
  9775. lt_cv_archive_cmds_need_lc=yes
  9776. fi
  9777. allow_undefined_flag=$lt_save_allow_undefined_flag
  9778. else
  9779. cat conftest.err 1>&5
  9780. fi
  9781. $RM conftest*
  9782. fi
  9783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9784. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9785. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9786. ;;
  9787. esac
  9788. fi
  9789. ;;
  9790. esac
  9791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9792. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9793. if test yes = "$GCC"; then
  9794. case $host_os in
  9795. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9796. *) lt_awk_arg='/^libraries:/' ;;
  9797. esac
  9798. case $host_os in
  9799. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9800. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9801. esac
  9802. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9803. case $lt_search_path_spec in
  9804. *\;*)
  9805. # if the path contains ";" then we assume it to be the separator
  9806. # otherwise default to the standard path separator (i.e. ":") - it is
  9807. # assumed that no part of a normal pathname contains ";" but that should
  9808. # okay in the real world where ";" in dirpaths is itself problematic.
  9809. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9810. ;;
  9811. *)
  9812. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9813. ;;
  9814. esac
  9815. # Ok, now we have the path, separated by spaces, we can step through it
  9816. # and add multilib dir if necessary...
  9817. lt_tmp_lt_search_path_spec=
  9818. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9819. # ...but if some path component already ends with the multilib dir we assume
  9820. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9821. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9822. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9823. lt_multi_os_dir=
  9824. ;;
  9825. esac
  9826. for lt_sys_path in $lt_search_path_spec; do
  9827. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9828. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9829. elif test -n "$lt_multi_os_dir"; then
  9830. test -d "$lt_sys_path" && \
  9831. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9832. fi
  9833. done
  9834. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9835. BEGIN {RS = " "; FS = "/|\n";} {
  9836. lt_foo = "";
  9837. lt_count = 0;
  9838. for (lt_i = NF; lt_i > 0; lt_i--) {
  9839. if ($lt_i != "" && $lt_i != ".") {
  9840. if ($lt_i == "..") {
  9841. lt_count++;
  9842. } else {
  9843. if (lt_count == 0) {
  9844. lt_foo = "/" $lt_i lt_foo;
  9845. } else {
  9846. lt_count--;
  9847. }
  9848. }
  9849. }
  9850. }
  9851. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9852. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9853. }'`
  9854. # AWK program above erroneously prepends '/' to C:/dos/paths
  9855. # for these hosts.
  9856. case $host_os in
  9857. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9858. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9859. esac
  9860. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9861. else
  9862. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9863. fi
  9864. library_names_spec=
  9865. libname_spec='lib$name'
  9866. soname_spec=
  9867. shrext_cmds=.so
  9868. postinstall_cmds=
  9869. postuninstall_cmds=
  9870. finish_cmds=
  9871. finish_eval=
  9872. shlibpath_var=
  9873. shlibpath_overrides_runpath=unknown
  9874. version_type=none
  9875. dynamic_linker="$host_os ld.so"
  9876. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9877. need_lib_prefix=unknown
  9878. hardcode_into_libs=no
  9879. # when you set need_version to no, make sure it does not cause -set_version
  9880. # flags to be left without arguments
  9881. need_version=unknown
  9882. case $host_os in
  9883. aix3*)
  9884. version_type=linux # correct to gnu/linux during the next big refactor
  9885. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9886. shlibpath_var=LIBPATH
  9887. # AIX 3 has no versioning support, so we append a major version to the name.
  9888. soname_spec='$libname$release$shared_ext$major'
  9889. ;;
  9890. aix[4-9]*)
  9891. version_type=linux # correct to gnu/linux during the next big refactor
  9892. need_lib_prefix=no
  9893. need_version=no
  9894. hardcode_into_libs=yes
  9895. if test ia64 = "$host_cpu"; then
  9896. # AIX 5 supports IA64
  9897. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9898. shlibpath_var=LD_LIBRARY_PATH
  9899. else
  9900. # With GCC up to 2.95.x, collect2 would create an import file
  9901. # for dependence libraries. The import file would start with
  9902. # the line '#! .'. This would cause the generated library to
  9903. # depend on '.', always an invalid library. This was fixed in
  9904. # development snapshots of GCC prior to 3.0.
  9905. case $host_os in
  9906. aix4 | aix4.[01] | aix4.[01].*)
  9907. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9908. echo ' yes '
  9909. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9910. :
  9911. else
  9912. can_build_shared=no
  9913. fi
  9914. ;;
  9915. esac
  9916. # Using Import Files as archive members, it is possible to support
  9917. # filename-based versioning of shared library archives on AIX. While
  9918. # this would work for both with and without runtime linking, it will
  9919. # prevent static linking of such archives. So we do filename-based
  9920. # shared library versioning with .so extension only, which is used
  9921. # when both runtime linking and shared linking is enabled.
  9922. # Unfortunately, runtime linking may impact performance, so we do
  9923. # not want this to be the default eventually. Also, we use the
  9924. # versioned .so libs for executables only if there is the -brtl
  9925. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9926. # To allow for filename-based versioning support, we need to create
  9927. # libNAME.so.V as an archive file, containing:
  9928. # *) an Import File, referring to the versioned filename of the
  9929. # archive as well as the shared archive member, telling the
  9930. # bitwidth (32 or 64) of that shared object, and providing the
  9931. # list of exported symbols of that shared object, eventually
  9932. # decorated with the 'weak' keyword
  9933. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9934. # it being seen by the linker.
  9935. # At run time we better use the real file rather than another symlink,
  9936. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9937. case $with_aix_soname,$aix_use_runtimelinking in
  9938. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9939. # soname into executable. Probably we can add versioning support to
  9940. # collect2, so additional links can be useful in future.
  9941. aix,yes) # traditional libtool
  9942. dynamic_linker='AIX unversionable lib.so'
  9943. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9944. # instead of lib<name>.a to let people know that these are not
  9945. # typical AIX shared libraries.
  9946. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9947. ;;
  9948. aix,no) # traditional AIX only
  9949. dynamic_linker='AIX lib.a(lib.so.V)'
  9950. # We preserve .a as extension for shared libraries through AIX4.2
  9951. # and later when we are not doing run time linking.
  9952. library_names_spec='$libname$release.a $libname.a'
  9953. soname_spec='$libname$release$shared_ext$major'
  9954. ;;
  9955. svr4,*) # full svr4 only
  9956. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9957. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9958. # We do not specify a path in Import Files, so LIBPATH fires.
  9959. shlibpath_overrides_runpath=yes
  9960. ;;
  9961. *,yes) # both, prefer svr4
  9962. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9963. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9964. # unpreferred sharedlib libNAME.a needs extra handling
  9965. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9966. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9967. # We do not specify a path in Import Files, so LIBPATH fires.
  9968. shlibpath_overrides_runpath=yes
  9969. ;;
  9970. *,no) # both, prefer aix
  9971. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9972. library_names_spec='$libname$release.a $libname.a'
  9973. soname_spec='$libname$release$shared_ext$major'
  9974. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9975. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9976. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9977. ;;
  9978. esac
  9979. shlibpath_var=LIBPATH
  9980. fi
  9981. ;;
  9982. amigaos*)
  9983. case $host_cpu in
  9984. powerpc)
  9985. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9986. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9987. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9988. ;;
  9989. m68k)
  9990. library_names_spec='$libname.ixlibrary $libname.a'
  9991. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9992. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9993. ;;
  9994. esac
  9995. ;;
  9996. beos*)
  9997. library_names_spec='$libname$shared_ext'
  9998. dynamic_linker="$host_os ld.so"
  9999. shlibpath_var=LIBRARY_PATH
  10000. ;;
  10001. bsdi[45]*)
  10002. version_type=linux # correct to gnu/linux during the next big refactor
  10003. need_version=no
  10004. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10005. soname_spec='$libname$release$shared_ext$major'
  10006. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10007. shlibpath_var=LD_LIBRARY_PATH
  10008. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10009. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10010. # the default ld.so.conf also contains /usr/contrib/lib and
  10011. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10012. # libtool to hard-code these into programs
  10013. ;;
  10014. cygwin* | mingw* | pw32* | cegcc*)
  10015. version_type=windows
  10016. shrext_cmds=.dll
  10017. need_version=no
  10018. need_lib_prefix=no
  10019. case $GCC,$cc_basename in
  10020. yes,*)
  10021. # gcc
  10022. library_names_spec='$libname.dll.a'
  10023. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10024. postinstall_cmds='base_file=`basename \$file`~
  10025. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10026. dldir=$destdir/`dirname \$dlpath`~
  10027. test -d \$dldir || mkdir -p \$dldir~
  10028. $install_prog $dir/$dlname \$dldir/$dlname~
  10029. chmod a+x \$dldir/$dlname~
  10030. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10031. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10032. fi'
  10033. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10034. dlpath=$dir/\$dldll~
  10035. $RM \$dlpath'
  10036. shlibpath_overrides_runpath=yes
  10037. case $host_os in
  10038. cygwin*)
  10039. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10040. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10041. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10042. ;;
  10043. mingw* | cegcc*)
  10044. # MinGW DLLs use traditional 'lib' prefix
  10045. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10046. ;;
  10047. pw32*)
  10048. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10049. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10050. ;;
  10051. esac
  10052. dynamic_linker='Win32 ld.exe'
  10053. ;;
  10054. *,cl*)
  10055. # Native MSVC
  10056. libname_spec='$name'
  10057. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10058. library_names_spec='$libname.dll.lib'
  10059. case $build_os in
  10060. mingw*)
  10061. sys_lib_search_path_spec=
  10062. lt_save_ifs=$IFS
  10063. IFS=';'
  10064. for lt_path in $LIB
  10065. do
  10066. IFS=$lt_save_ifs
  10067. # Let DOS variable expansion print the short 8.3 style file name.
  10068. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10069. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10070. done
  10071. IFS=$lt_save_ifs
  10072. # Convert to MSYS style.
  10073. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10074. ;;
  10075. cygwin*)
  10076. # Convert to unix form, then to dos form, then back to unix form
  10077. # but this time dos style (no spaces!) so that the unix form looks
  10078. # like /cygdrive/c/PROGRA~1:/cygdr...
  10079. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10080. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10081. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10082. ;;
  10083. *)
  10084. sys_lib_search_path_spec=$LIB
  10085. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10086. # It is most probably a Windows format PATH.
  10087. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10088. else
  10089. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10090. fi
  10091. # FIXME: find the short name or the path components, as spaces are
  10092. # common. (e.g. "Program Files" -> "PROGRA~1")
  10093. ;;
  10094. esac
  10095. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10096. postinstall_cmds='base_file=`basename \$file`~
  10097. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10098. dldir=$destdir/`dirname \$dlpath`~
  10099. test -d \$dldir || mkdir -p \$dldir~
  10100. $install_prog $dir/$dlname \$dldir/$dlname'
  10101. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10102. dlpath=$dir/\$dldll~
  10103. $RM \$dlpath'
  10104. shlibpath_overrides_runpath=yes
  10105. dynamic_linker='Win32 link.exe'
  10106. ;;
  10107. *)
  10108. # Assume MSVC wrapper
  10109. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10110. dynamic_linker='Win32 ld.exe'
  10111. ;;
  10112. esac
  10113. # FIXME: first we should search . and the directory the executable is in
  10114. shlibpath_var=PATH
  10115. ;;
  10116. darwin* | rhapsody*)
  10117. dynamic_linker="$host_os dyld"
  10118. version_type=darwin
  10119. need_lib_prefix=no
  10120. need_version=no
  10121. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10122. soname_spec='$libname$release$major$shared_ext'
  10123. shlibpath_overrides_runpath=yes
  10124. shlibpath_var=DYLD_LIBRARY_PATH
  10125. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10126. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10127. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10128. ;;
  10129. dgux*)
  10130. version_type=linux # correct to gnu/linux during the next big refactor
  10131. need_lib_prefix=no
  10132. need_version=no
  10133. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10134. soname_spec='$libname$release$shared_ext$major'
  10135. shlibpath_var=LD_LIBRARY_PATH
  10136. ;;
  10137. freebsd* | dragonfly*)
  10138. # DragonFly does not have aout. When/if they implement a new
  10139. # versioning mechanism, adjust this.
  10140. if test -x /usr/bin/objformat; then
  10141. objformat=`/usr/bin/objformat`
  10142. else
  10143. case $host_os in
  10144. freebsd[23].*) objformat=aout ;;
  10145. *) objformat=elf ;;
  10146. esac
  10147. fi
  10148. version_type=freebsd-$objformat
  10149. case $version_type in
  10150. freebsd-elf*)
  10151. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10152. soname_spec='$libname$release$shared_ext$major'
  10153. need_version=no
  10154. need_lib_prefix=no
  10155. ;;
  10156. freebsd-*)
  10157. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10158. need_version=yes
  10159. ;;
  10160. esac
  10161. shlibpath_var=LD_LIBRARY_PATH
  10162. case $host_os in
  10163. freebsd2.*)
  10164. shlibpath_overrides_runpath=yes
  10165. ;;
  10166. freebsd3.[01]* | freebsdelf3.[01]*)
  10167. shlibpath_overrides_runpath=yes
  10168. hardcode_into_libs=yes
  10169. ;;
  10170. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10171. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10172. shlibpath_overrides_runpath=no
  10173. hardcode_into_libs=yes
  10174. ;;
  10175. *) # from 4.6 on, and DragonFly
  10176. shlibpath_overrides_runpath=yes
  10177. hardcode_into_libs=yes
  10178. ;;
  10179. esac
  10180. ;;
  10181. haiku*)
  10182. version_type=linux # correct to gnu/linux during the next big refactor
  10183. need_lib_prefix=no
  10184. need_version=no
  10185. dynamic_linker="$host_os runtime_loader"
  10186. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10187. soname_spec='$libname$release$shared_ext$major'
  10188. shlibpath_var=LIBRARY_PATH
  10189. shlibpath_overrides_runpath=no
  10190. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10191. hardcode_into_libs=yes
  10192. ;;
  10193. hpux9* | hpux10* | hpux11*)
  10194. # Give a soname corresponding to the major version so that dld.sl refuses to
  10195. # link against other versions.
  10196. version_type=sunos
  10197. need_lib_prefix=no
  10198. need_version=no
  10199. case $host_cpu in
  10200. ia64*)
  10201. shrext_cmds='.so'
  10202. hardcode_into_libs=yes
  10203. dynamic_linker="$host_os dld.so"
  10204. shlibpath_var=LD_LIBRARY_PATH
  10205. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. if test 32 = "$HPUX_IA64_MODE"; then
  10209. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10210. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10211. else
  10212. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10213. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10214. fi
  10215. ;;
  10216. hppa*64*)
  10217. shrext_cmds='.sl'
  10218. hardcode_into_libs=yes
  10219. dynamic_linker="$host_os dld.sl"
  10220. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10221. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10222. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10223. soname_spec='$libname$release$shared_ext$major'
  10224. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10225. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10226. ;;
  10227. *)
  10228. shrext_cmds='.sl'
  10229. dynamic_linker="$host_os dld.sl"
  10230. shlibpath_var=SHLIB_PATH
  10231. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10233. soname_spec='$libname$release$shared_ext$major'
  10234. ;;
  10235. esac
  10236. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10237. postinstall_cmds='chmod 555 $lib'
  10238. # or fails outright, so override atomically:
  10239. install_override_mode=555
  10240. ;;
  10241. interix[3-9]*)
  10242. version_type=linux # correct to gnu/linux during the next big refactor
  10243. need_lib_prefix=no
  10244. need_version=no
  10245. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10246. soname_spec='$libname$release$shared_ext$major'
  10247. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10248. shlibpath_var=LD_LIBRARY_PATH
  10249. shlibpath_overrides_runpath=no
  10250. hardcode_into_libs=yes
  10251. ;;
  10252. irix5* | irix6* | nonstopux*)
  10253. case $host_os in
  10254. nonstopux*) version_type=nonstopux ;;
  10255. *)
  10256. if test yes = "$lt_cv_prog_gnu_ld"; then
  10257. version_type=linux # correct to gnu/linux during the next big refactor
  10258. else
  10259. version_type=irix
  10260. fi ;;
  10261. esac
  10262. need_lib_prefix=no
  10263. need_version=no
  10264. soname_spec='$libname$release$shared_ext$major'
  10265. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10266. case $host_os in
  10267. irix5* | nonstopux*)
  10268. libsuff= shlibsuff=
  10269. ;;
  10270. *)
  10271. case $LD in # libtool.m4 will add one of these switches to LD
  10272. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10273. libsuff= shlibsuff= libmagic=32-bit;;
  10274. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10275. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10276. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10277. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10278. *) libsuff= shlibsuff= libmagic=never-match;;
  10279. esac
  10280. ;;
  10281. esac
  10282. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10283. shlibpath_overrides_runpath=no
  10284. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10285. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10286. hardcode_into_libs=yes
  10287. ;;
  10288. # No shared lib support for Linux oldld, aout, or coff.
  10289. linux*oldld* | linux*aout* | linux*coff*)
  10290. dynamic_linker=no
  10291. ;;
  10292. linux*android*)
  10293. version_type=none # Android doesn't support versioned libraries.
  10294. need_lib_prefix=no
  10295. need_version=no
  10296. library_names_spec='$libname$release$shared_ext'
  10297. soname_spec='$libname$release$shared_ext'
  10298. finish_cmds=
  10299. shlibpath_var=LD_LIBRARY_PATH
  10300. shlibpath_overrides_runpath=yes
  10301. # This implies no fast_install, which is unacceptable.
  10302. # Some rework will be needed to allow for fast_install
  10303. # before this can be enabled.
  10304. hardcode_into_libs=yes
  10305. dynamic_linker='Android linker'
  10306. # Don't embed -rpath directories since the linker doesn't support them.
  10307. hardcode_libdir_flag_spec='-L$libdir'
  10308. ;;
  10309. # This must be glibc/ELF.
  10310. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10311. version_type=linux # correct to gnu/linux during the next big refactor
  10312. need_lib_prefix=no
  10313. need_version=no
  10314. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10315. soname_spec='$libname$release$shared_ext$major'
  10316. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10317. shlibpath_var=LD_LIBRARY_PATH
  10318. shlibpath_overrides_runpath=no
  10319. # Some binutils ld are patched to set DT_RUNPATH
  10320. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10321. $as_echo_n "(cached) " >&6
  10322. else
  10323. lt_cv_shlibpath_overrides_runpath=no
  10324. save_LDFLAGS=$LDFLAGS
  10325. save_libdir=$libdir
  10326. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10327. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10329. /* end confdefs.h. */
  10330. int
  10331. main ()
  10332. {
  10333. ;
  10334. return 0;
  10335. }
  10336. _ACEOF
  10337. if ac_fn_c_try_link "$LINENO"; then :
  10338. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10339. lt_cv_shlibpath_overrides_runpath=yes
  10340. fi
  10341. fi
  10342. rm -f core conftest.err conftest.$ac_objext \
  10343. conftest$ac_exeext conftest.$ac_ext
  10344. LDFLAGS=$save_LDFLAGS
  10345. libdir=$save_libdir
  10346. fi
  10347. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10348. # This implies no fast_install, which is unacceptable.
  10349. # Some rework will be needed to allow for fast_install
  10350. # before this can be enabled.
  10351. hardcode_into_libs=yes
  10352. # Ideally, we could use ldconfig to report *all* directores which are
  10353. # searched for libraries, however this is still not possible. Aside from not
  10354. # being certain /sbin/ldconfig is available, command
  10355. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10356. # even though it is searched at run-time. Try to do the best guess by
  10357. # appending ld.so.conf contents (and includes) to the search path.
  10358. if test -f /etc/ld.so.conf; then
  10359. 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;s/"//g;/^$/d' | tr '\n' ' '`
  10360. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10361. fi
  10362. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10363. # powerpc, because MkLinux only supported shared libraries with the
  10364. # GNU dynamic linker. Since this was broken with cross compilers,
  10365. # most powerpc-linux boxes support dynamic linking these days and
  10366. # people can always --disable-shared, the test was removed, and we
  10367. # assume the GNU/Linux dynamic linker is in use.
  10368. dynamic_linker='GNU/Linux ld.so'
  10369. ;;
  10370. netbsdelf*-gnu)
  10371. version_type=linux
  10372. need_lib_prefix=no
  10373. need_version=no
  10374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10375. soname_spec='${libname}${release}${shared_ext}$major'
  10376. shlibpath_var=LD_LIBRARY_PATH
  10377. shlibpath_overrides_runpath=no
  10378. hardcode_into_libs=yes
  10379. dynamic_linker='NetBSD ld.elf_so'
  10380. ;;
  10381. netbsd*)
  10382. version_type=sunos
  10383. need_lib_prefix=no
  10384. need_version=no
  10385. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10386. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10387. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10388. dynamic_linker='NetBSD (a.out) ld.so'
  10389. else
  10390. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10391. soname_spec='$libname$release$shared_ext$major'
  10392. dynamic_linker='NetBSD ld.elf_so'
  10393. fi
  10394. shlibpath_var=LD_LIBRARY_PATH
  10395. shlibpath_overrides_runpath=yes
  10396. hardcode_into_libs=yes
  10397. ;;
  10398. newsos6)
  10399. version_type=linux # correct to gnu/linux during the next big refactor
  10400. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10401. shlibpath_var=LD_LIBRARY_PATH
  10402. shlibpath_overrides_runpath=yes
  10403. ;;
  10404. *nto* | *qnx*)
  10405. version_type=qnx
  10406. need_lib_prefix=no
  10407. need_version=no
  10408. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10409. soname_spec='$libname$release$shared_ext$major'
  10410. shlibpath_var=LD_LIBRARY_PATH
  10411. shlibpath_overrides_runpath=no
  10412. hardcode_into_libs=yes
  10413. dynamic_linker='ldqnx.so'
  10414. ;;
  10415. openbsd* | bitrig*)
  10416. version_type=sunos
  10417. sys_lib_dlsearch_path_spec=/usr/lib
  10418. need_lib_prefix=no
  10419. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10420. need_version=no
  10421. else
  10422. need_version=yes
  10423. fi
  10424. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10425. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10426. shlibpath_var=LD_LIBRARY_PATH
  10427. shlibpath_overrides_runpath=yes
  10428. ;;
  10429. os2*)
  10430. libname_spec='$name'
  10431. version_type=windows
  10432. shrext_cmds=.dll
  10433. need_version=no
  10434. need_lib_prefix=no
  10435. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10436. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10437. v=$($ECHO $release$versuffix | tr -d .-);
  10438. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10439. $ECHO $n$v`$shared_ext'
  10440. library_names_spec='${libname}_dll.$libext'
  10441. dynamic_linker='OS/2 ld.exe'
  10442. shlibpath_var=BEGINLIBPATH
  10443. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10444. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10445. postinstall_cmds='base_file=`basename \$file`~
  10446. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10447. dldir=$destdir/`dirname \$dlpath`~
  10448. test -d \$dldir || mkdir -p \$dldir~
  10449. $install_prog $dir/$dlname \$dldir/$dlname~
  10450. chmod a+x \$dldir/$dlname~
  10451. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10452. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10453. fi'
  10454. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10455. dlpath=$dir/\$dldll~
  10456. $RM \$dlpath'
  10457. ;;
  10458. osf3* | osf4* | osf5*)
  10459. version_type=osf
  10460. need_lib_prefix=no
  10461. need_version=no
  10462. soname_spec='$libname$release$shared_ext$major'
  10463. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10464. shlibpath_var=LD_LIBRARY_PATH
  10465. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10466. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10467. ;;
  10468. rdos*)
  10469. dynamic_linker=no
  10470. ;;
  10471. solaris*)
  10472. version_type=linux # correct to gnu/linux during the next big refactor
  10473. need_lib_prefix=no
  10474. need_version=no
  10475. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10476. soname_spec='$libname$release$shared_ext$major'
  10477. shlibpath_var=LD_LIBRARY_PATH
  10478. shlibpath_overrides_runpath=yes
  10479. hardcode_into_libs=yes
  10480. # ldd complains unless libraries are executable
  10481. postinstall_cmds='chmod +x $lib'
  10482. ;;
  10483. sunos4*)
  10484. version_type=sunos
  10485. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10486. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10487. shlibpath_var=LD_LIBRARY_PATH
  10488. shlibpath_overrides_runpath=yes
  10489. if test yes = "$with_gnu_ld"; then
  10490. need_lib_prefix=no
  10491. fi
  10492. need_version=yes
  10493. ;;
  10494. sysv4 | sysv4.3*)
  10495. version_type=linux # correct to gnu/linux during the next big refactor
  10496. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10497. soname_spec='$libname$release$shared_ext$major'
  10498. shlibpath_var=LD_LIBRARY_PATH
  10499. case $host_vendor in
  10500. sni)
  10501. shlibpath_overrides_runpath=no
  10502. need_lib_prefix=no
  10503. runpath_var=LD_RUN_PATH
  10504. ;;
  10505. siemens)
  10506. need_lib_prefix=no
  10507. ;;
  10508. motorola)
  10509. need_lib_prefix=no
  10510. need_version=no
  10511. shlibpath_overrides_runpath=no
  10512. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10513. ;;
  10514. esac
  10515. ;;
  10516. sysv4*MP*)
  10517. if test -d /usr/nec; then
  10518. version_type=linux # correct to gnu/linux during the next big refactor
  10519. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10520. soname_spec='$libname$shared_ext.$major'
  10521. shlibpath_var=LD_LIBRARY_PATH
  10522. fi
  10523. ;;
  10524. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10525. version_type=sco
  10526. need_lib_prefix=no
  10527. need_version=no
  10528. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10529. soname_spec='$libname$release$shared_ext$major'
  10530. shlibpath_var=LD_LIBRARY_PATH
  10531. shlibpath_overrides_runpath=yes
  10532. hardcode_into_libs=yes
  10533. if test yes = "$with_gnu_ld"; then
  10534. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10535. else
  10536. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10537. case $host_os in
  10538. sco3.2v5*)
  10539. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10540. ;;
  10541. esac
  10542. fi
  10543. sys_lib_dlsearch_path_spec='/usr/lib'
  10544. ;;
  10545. tpf*)
  10546. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10547. version_type=linux # correct to gnu/linux during the next big refactor
  10548. need_lib_prefix=no
  10549. need_version=no
  10550. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10551. shlibpath_var=LD_LIBRARY_PATH
  10552. shlibpath_overrides_runpath=no
  10553. hardcode_into_libs=yes
  10554. ;;
  10555. uts4*)
  10556. version_type=linux # correct to gnu/linux during the next big refactor
  10557. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10558. soname_spec='$libname$release$shared_ext$major'
  10559. shlibpath_var=LD_LIBRARY_PATH
  10560. ;;
  10561. *)
  10562. dynamic_linker=no
  10563. ;;
  10564. esac
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10566. $as_echo "$dynamic_linker" >&6; }
  10567. test no = "$dynamic_linker" && can_build_shared=no
  10568. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10569. if test yes = "$GCC"; then
  10570. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10571. fi
  10572. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10573. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10574. fi
  10575. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10576. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10577. fi
  10578. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10579. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10580. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10581. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10582. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10583. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10585. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10586. hardcode_action=
  10587. if test -n "$hardcode_libdir_flag_spec" ||
  10588. test -n "$runpath_var" ||
  10589. test yes = "$hardcode_automatic"; then
  10590. # We can hardcode non-existent directories.
  10591. if test no != "$hardcode_direct" &&
  10592. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10593. # have to relink, otherwise we might link with an installed library
  10594. # when we should be linking with a yet-to-be-installed one
  10595. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10596. test no != "$hardcode_minus_L"; then
  10597. # Linking always hardcodes the temporary library directory.
  10598. hardcode_action=relink
  10599. else
  10600. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10601. hardcode_action=immediate
  10602. fi
  10603. else
  10604. # We cannot hardcode anything, or else we can only hardcode existing
  10605. # directories.
  10606. hardcode_action=unsupported
  10607. fi
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10609. $as_echo "$hardcode_action" >&6; }
  10610. if test relink = "$hardcode_action" ||
  10611. test yes = "$inherit_rpath"; then
  10612. # Fast installation is not supported
  10613. enable_fast_install=no
  10614. elif test yes = "$shlibpath_overrides_runpath" ||
  10615. test no = "$enable_shared"; then
  10616. # Fast installation is not necessary
  10617. enable_fast_install=needless
  10618. fi
  10619. if test yes != "$enable_dlopen"; then
  10620. enable_dlopen=unknown
  10621. enable_dlopen_self=unknown
  10622. enable_dlopen_self_static=unknown
  10623. else
  10624. lt_cv_dlopen=no
  10625. lt_cv_dlopen_libs=
  10626. case $host_os in
  10627. beos*)
  10628. lt_cv_dlopen=load_add_on
  10629. lt_cv_dlopen_libs=
  10630. lt_cv_dlopen_self=yes
  10631. ;;
  10632. mingw* | pw32* | cegcc*)
  10633. lt_cv_dlopen=LoadLibrary
  10634. lt_cv_dlopen_libs=
  10635. ;;
  10636. cygwin*)
  10637. lt_cv_dlopen=dlopen
  10638. lt_cv_dlopen_libs=
  10639. ;;
  10640. darwin*)
  10641. # if libdl is installed we need to link against it
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10643. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10644. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10645. $as_echo_n "(cached) " >&6
  10646. else
  10647. ac_check_lib_save_LIBS=$LIBS
  10648. LIBS="-ldl $LIBS"
  10649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10650. /* end confdefs.h. */
  10651. /* Override any GCC internal prototype to avoid an error.
  10652. Use char because int might match the return type of a GCC
  10653. builtin and then its argument prototype would still apply. */
  10654. #ifdef __cplusplus
  10655. extern "C"
  10656. #endif
  10657. char dlopen ();
  10658. int
  10659. main ()
  10660. {
  10661. return dlopen ();
  10662. ;
  10663. return 0;
  10664. }
  10665. _ACEOF
  10666. if ac_fn_c_try_link "$LINENO"; then :
  10667. ac_cv_lib_dl_dlopen=yes
  10668. else
  10669. ac_cv_lib_dl_dlopen=no
  10670. fi
  10671. rm -f core conftest.err conftest.$ac_objext \
  10672. conftest$ac_exeext conftest.$ac_ext
  10673. LIBS=$ac_check_lib_save_LIBS
  10674. fi
  10675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10676. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10677. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10678. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10679. else
  10680. lt_cv_dlopen=dyld
  10681. lt_cv_dlopen_libs=
  10682. lt_cv_dlopen_self=yes
  10683. fi
  10684. ;;
  10685. tpf*)
  10686. # Don't try to run any link tests for TPF. We know it's impossible
  10687. # because TPF is a cross-compiler, and we know how we open DSOs.
  10688. lt_cv_dlopen=dlopen
  10689. lt_cv_dlopen_libs=
  10690. lt_cv_dlopen_self=no
  10691. ;;
  10692. *)
  10693. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10694. if test "x$ac_cv_func_shl_load" = xyes; then :
  10695. lt_cv_dlopen=shl_load
  10696. else
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10698. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10699. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10700. $as_echo_n "(cached) " >&6
  10701. else
  10702. ac_check_lib_save_LIBS=$LIBS
  10703. LIBS="-ldld $LIBS"
  10704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10705. /* end confdefs.h. */
  10706. /* Override any GCC internal prototype to avoid an error.
  10707. Use char because int might match the return type of a GCC
  10708. builtin and then its argument prototype would still apply. */
  10709. #ifdef __cplusplus
  10710. extern "C"
  10711. #endif
  10712. char shl_load ();
  10713. int
  10714. main ()
  10715. {
  10716. return shl_load ();
  10717. ;
  10718. return 0;
  10719. }
  10720. _ACEOF
  10721. if ac_fn_c_try_link "$LINENO"; then :
  10722. ac_cv_lib_dld_shl_load=yes
  10723. else
  10724. ac_cv_lib_dld_shl_load=no
  10725. fi
  10726. rm -f core conftest.err conftest.$ac_objext \
  10727. conftest$ac_exeext conftest.$ac_ext
  10728. LIBS=$ac_check_lib_save_LIBS
  10729. fi
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10731. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10732. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10733. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10734. else
  10735. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10736. if test "x$ac_cv_func_dlopen" = xyes; then :
  10737. lt_cv_dlopen=dlopen
  10738. else
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10740. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10741. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10742. $as_echo_n "(cached) " >&6
  10743. else
  10744. ac_check_lib_save_LIBS=$LIBS
  10745. LIBS="-ldl $LIBS"
  10746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10747. /* end confdefs.h. */
  10748. /* Override any GCC internal prototype to avoid an error.
  10749. Use char because int might match the return type of a GCC
  10750. builtin and then its argument prototype would still apply. */
  10751. #ifdef __cplusplus
  10752. extern "C"
  10753. #endif
  10754. char dlopen ();
  10755. int
  10756. main ()
  10757. {
  10758. return dlopen ();
  10759. ;
  10760. return 0;
  10761. }
  10762. _ACEOF
  10763. if ac_fn_c_try_link "$LINENO"; then :
  10764. ac_cv_lib_dl_dlopen=yes
  10765. else
  10766. ac_cv_lib_dl_dlopen=no
  10767. fi
  10768. rm -f core conftest.err conftest.$ac_objext \
  10769. conftest$ac_exeext conftest.$ac_ext
  10770. LIBS=$ac_check_lib_save_LIBS
  10771. fi
  10772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10773. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10774. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10775. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10776. else
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10778. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10779. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10780. $as_echo_n "(cached) " >&6
  10781. else
  10782. ac_check_lib_save_LIBS=$LIBS
  10783. LIBS="-lsvld $LIBS"
  10784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10785. /* end confdefs.h. */
  10786. /* Override any GCC internal prototype to avoid an error.
  10787. Use char because int might match the return type of a GCC
  10788. builtin and then its argument prototype would still apply. */
  10789. #ifdef __cplusplus
  10790. extern "C"
  10791. #endif
  10792. char dlopen ();
  10793. int
  10794. main ()
  10795. {
  10796. return dlopen ();
  10797. ;
  10798. return 0;
  10799. }
  10800. _ACEOF
  10801. if ac_fn_c_try_link "$LINENO"; then :
  10802. ac_cv_lib_svld_dlopen=yes
  10803. else
  10804. ac_cv_lib_svld_dlopen=no
  10805. fi
  10806. rm -f core conftest.err conftest.$ac_objext \
  10807. conftest$ac_exeext conftest.$ac_ext
  10808. LIBS=$ac_check_lib_save_LIBS
  10809. fi
  10810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10811. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10812. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10813. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10814. else
  10815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10816. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10817. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10818. $as_echo_n "(cached) " >&6
  10819. else
  10820. ac_check_lib_save_LIBS=$LIBS
  10821. LIBS="-ldld $LIBS"
  10822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10823. /* end confdefs.h. */
  10824. /* Override any GCC internal prototype to avoid an error.
  10825. Use char because int might match the return type of a GCC
  10826. builtin and then its argument prototype would still apply. */
  10827. #ifdef __cplusplus
  10828. extern "C"
  10829. #endif
  10830. char dld_link ();
  10831. int
  10832. main ()
  10833. {
  10834. return dld_link ();
  10835. ;
  10836. return 0;
  10837. }
  10838. _ACEOF
  10839. if ac_fn_c_try_link "$LINENO"; then :
  10840. ac_cv_lib_dld_dld_link=yes
  10841. else
  10842. ac_cv_lib_dld_dld_link=no
  10843. fi
  10844. rm -f core conftest.err conftest.$ac_objext \
  10845. conftest$ac_exeext conftest.$ac_ext
  10846. LIBS=$ac_check_lib_save_LIBS
  10847. fi
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10849. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10850. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10851. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10852. fi
  10853. fi
  10854. fi
  10855. fi
  10856. fi
  10857. fi
  10858. ;;
  10859. esac
  10860. if test no = "$lt_cv_dlopen"; then
  10861. enable_dlopen=no
  10862. else
  10863. enable_dlopen=yes
  10864. fi
  10865. case $lt_cv_dlopen in
  10866. dlopen)
  10867. save_CPPFLAGS=$CPPFLAGS
  10868. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10869. save_LDFLAGS=$LDFLAGS
  10870. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10871. save_LIBS=$LIBS
  10872. LIBS="$lt_cv_dlopen_libs $LIBS"
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10874. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10875. if ${lt_cv_dlopen_self+:} false; then :
  10876. $as_echo_n "(cached) " >&6
  10877. else
  10878. if test yes = "$cross_compiling"; then :
  10879. lt_cv_dlopen_self=cross
  10880. else
  10881. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10882. lt_status=$lt_dlunknown
  10883. cat > conftest.$ac_ext <<_LT_EOF
  10884. #line $LINENO "configure"
  10885. #include "confdefs.h"
  10886. #if HAVE_DLFCN_H
  10887. #include <dlfcn.h>
  10888. #endif
  10889. #include <stdio.h>
  10890. #ifdef RTLD_GLOBAL
  10891. # define LT_DLGLOBAL RTLD_GLOBAL
  10892. #else
  10893. # ifdef DL_GLOBAL
  10894. # define LT_DLGLOBAL DL_GLOBAL
  10895. # else
  10896. # define LT_DLGLOBAL 0
  10897. # endif
  10898. #endif
  10899. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10900. find out it does not work in some platform. */
  10901. #ifndef LT_DLLAZY_OR_NOW
  10902. # ifdef RTLD_LAZY
  10903. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10904. # else
  10905. # ifdef DL_LAZY
  10906. # define LT_DLLAZY_OR_NOW DL_LAZY
  10907. # else
  10908. # ifdef RTLD_NOW
  10909. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10910. # else
  10911. # ifdef DL_NOW
  10912. # define LT_DLLAZY_OR_NOW DL_NOW
  10913. # else
  10914. # define LT_DLLAZY_OR_NOW 0
  10915. # endif
  10916. # endif
  10917. # endif
  10918. # endif
  10919. #endif
  10920. /* When -fvisibility=hidden is used, assume the code has been annotated
  10921. correspondingly for the symbols needed. */
  10922. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10923. int fnord () __attribute__((visibility("default")));
  10924. #endif
  10925. int fnord () { return 42; }
  10926. int main ()
  10927. {
  10928. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10929. int status = $lt_dlunknown;
  10930. if (self)
  10931. {
  10932. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10933. else
  10934. {
  10935. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10936. else puts (dlerror ());
  10937. }
  10938. /* dlclose (self); */
  10939. }
  10940. else
  10941. puts (dlerror ());
  10942. return status;
  10943. }
  10944. _LT_EOF
  10945. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10946. (eval $ac_link) 2>&5
  10947. ac_status=$?
  10948. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10949. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10950. (./conftest; exit; ) >&5 2>/dev/null
  10951. lt_status=$?
  10952. case x$lt_status in
  10953. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10954. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10955. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10956. esac
  10957. else :
  10958. # compilation failed
  10959. lt_cv_dlopen_self=no
  10960. fi
  10961. fi
  10962. rm -fr conftest*
  10963. fi
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10965. $as_echo "$lt_cv_dlopen_self" >&6; }
  10966. if test yes = "$lt_cv_dlopen_self"; then
  10967. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10969. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10970. if ${lt_cv_dlopen_self_static+:} false; then :
  10971. $as_echo_n "(cached) " >&6
  10972. else
  10973. if test yes = "$cross_compiling"; then :
  10974. lt_cv_dlopen_self_static=cross
  10975. else
  10976. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10977. lt_status=$lt_dlunknown
  10978. cat > conftest.$ac_ext <<_LT_EOF
  10979. #line $LINENO "configure"
  10980. #include "confdefs.h"
  10981. #if HAVE_DLFCN_H
  10982. #include <dlfcn.h>
  10983. #endif
  10984. #include <stdio.h>
  10985. #ifdef RTLD_GLOBAL
  10986. # define LT_DLGLOBAL RTLD_GLOBAL
  10987. #else
  10988. # ifdef DL_GLOBAL
  10989. # define LT_DLGLOBAL DL_GLOBAL
  10990. # else
  10991. # define LT_DLGLOBAL 0
  10992. # endif
  10993. #endif
  10994. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10995. find out it does not work in some platform. */
  10996. #ifndef LT_DLLAZY_OR_NOW
  10997. # ifdef RTLD_LAZY
  10998. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10999. # else
  11000. # ifdef DL_LAZY
  11001. # define LT_DLLAZY_OR_NOW DL_LAZY
  11002. # else
  11003. # ifdef RTLD_NOW
  11004. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11005. # else
  11006. # ifdef DL_NOW
  11007. # define LT_DLLAZY_OR_NOW DL_NOW
  11008. # else
  11009. # define LT_DLLAZY_OR_NOW 0
  11010. # endif
  11011. # endif
  11012. # endif
  11013. # endif
  11014. #endif
  11015. /* When -fvisibility=hidden is used, assume the code has been annotated
  11016. correspondingly for the symbols needed. */
  11017. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11018. int fnord () __attribute__((visibility("default")));
  11019. #endif
  11020. int fnord () { return 42; }
  11021. int main ()
  11022. {
  11023. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11024. int status = $lt_dlunknown;
  11025. if (self)
  11026. {
  11027. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11028. else
  11029. {
  11030. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11031. else puts (dlerror ());
  11032. }
  11033. /* dlclose (self); */
  11034. }
  11035. else
  11036. puts (dlerror ());
  11037. return status;
  11038. }
  11039. _LT_EOF
  11040. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11041. (eval $ac_link) 2>&5
  11042. ac_status=$?
  11043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11044. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11045. (./conftest; exit; ) >&5 2>/dev/null
  11046. lt_status=$?
  11047. case x$lt_status in
  11048. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11049. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11050. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11051. esac
  11052. else :
  11053. # compilation failed
  11054. lt_cv_dlopen_self_static=no
  11055. fi
  11056. fi
  11057. rm -fr conftest*
  11058. fi
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11060. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11061. fi
  11062. CPPFLAGS=$save_CPPFLAGS
  11063. LDFLAGS=$save_LDFLAGS
  11064. LIBS=$save_LIBS
  11065. ;;
  11066. esac
  11067. case $lt_cv_dlopen_self in
  11068. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11069. *) enable_dlopen_self=unknown ;;
  11070. esac
  11071. case $lt_cv_dlopen_self_static in
  11072. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11073. *) enable_dlopen_self_static=unknown ;;
  11074. esac
  11075. fi
  11076. striplib=
  11077. old_striplib=
  11078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11079. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11080. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11081. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11082. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11084. $as_echo "yes" >&6; }
  11085. else
  11086. # FIXME - insert some real tests, host_os isn't really good enough
  11087. case $host_os in
  11088. darwin*)
  11089. if test -n "$STRIP"; then
  11090. striplib="$STRIP -x"
  11091. old_striplib="$STRIP -S"
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11093. $as_echo "yes" >&6; }
  11094. else
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11096. $as_echo "no" >&6; }
  11097. fi
  11098. ;;
  11099. *)
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11101. $as_echo "no" >&6; }
  11102. ;;
  11103. esac
  11104. fi
  11105. # Report what library types will actually be built
  11106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11107. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11109. $as_echo "$can_build_shared" >&6; }
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11111. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11112. test no = "$can_build_shared" && enable_shared=no
  11113. # On AIX, shared libraries and static libraries use the same namespace, and
  11114. # are all built from PIC.
  11115. case $host_os in
  11116. aix3*)
  11117. test yes = "$enable_shared" && enable_static=no
  11118. if test -n "$RANLIB"; then
  11119. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11120. postinstall_cmds='$RANLIB $lib'
  11121. fi
  11122. ;;
  11123. aix[4-9]*)
  11124. if test ia64 != "$host_cpu"; then
  11125. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11126. yes,aix,yes) ;; # shared object as lib.so file only
  11127. yes,svr4,*) ;; # shared object as lib.so archive member only
  11128. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11129. esac
  11130. fi
  11131. ;;
  11132. esac
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11134. $as_echo "$enable_shared" >&6; }
  11135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11136. $as_echo_n "checking whether to build static libraries... " >&6; }
  11137. # Make sure either enable_shared or enable_static is yes.
  11138. test yes = "$enable_shared" || enable_static=yes
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11140. $as_echo "$enable_static" >&6; }
  11141. fi
  11142. ac_ext=c
  11143. ac_cpp='$CPP $CPPFLAGS'
  11144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11147. CC=$lt_save_CC
  11148. ac_config_commands="$ac_config_commands libtool"
  11149. # Only expand once:
  11150. CPPFLAGS="${CPPFLAGS} -D_REENTRANT -D__EXTENSIONS__"
  11151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11152. $as_echo_n "checking for ANSI C header files... " >&6; }
  11153. if ${ac_cv_header_stdc+:} false; then :
  11154. $as_echo_n "(cached) " >&6
  11155. else
  11156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11157. /* end confdefs.h. */
  11158. #include <stdlib.h>
  11159. #include <stdarg.h>
  11160. #include <string.h>
  11161. #include <float.h>
  11162. int
  11163. main ()
  11164. {
  11165. ;
  11166. return 0;
  11167. }
  11168. _ACEOF
  11169. if ac_fn_c_try_compile "$LINENO"; then :
  11170. ac_cv_header_stdc=yes
  11171. else
  11172. ac_cv_header_stdc=no
  11173. fi
  11174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11175. if test $ac_cv_header_stdc = yes; then
  11176. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11178. /* end confdefs.h. */
  11179. #include <string.h>
  11180. _ACEOF
  11181. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11182. $EGREP "memchr" >/dev/null 2>&1; then :
  11183. else
  11184. ac_cv_header_stdc=no
  11185. fi
  11186. rm -f conftest*
  11187. fi
  11188. if test $ac_cv_header_stdc = yes; then
  11189. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11191. /* end confdefs.h. */
  11192. #include <stdlib.h>
  11193. _ACEOF
  11194. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11195. $EGREP "free" >/dev/null 2>&1; then :
  11196. else
  11197. ac_cv_header_stdc=no
  11198. fi
  11199. rm -f conftest*
  11200. fi
  11201. if test $ac_cv_header_stdc = yes; then
  11202. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11203. if test "$cross_compiling" = yes; then :
  11204. :
  11205. else
  11206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11207. /* end confdefs.h. */
  11208. #include <ctype.h>
  11209. #include <stdlib.h>
  11210. #if ((' ' & 0x0FF) == 0x020)
  11211. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11212. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11213. #else
  11214. # define ISLOWER(c) \
  11215. (('a' <= (c) && (c) <= 'i') \
  11216. || ('j' <= (c) && (c) <= 'r') \
  11217. || ('s' <= (c) && (c) <= 'z'))
  11218. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11219. #endif
  11220. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11221. int
  11222. main ()
  11223. {
  11224. int i;
  11225. for (i = 0; i < 256; i++)
  11226. if (XOR (islower (i), ISLOWER (i))
  11227. || toupper (i) != TOUPPER (i))
  11228. return 2;
  11229. return 0;
  11230. }
  11231. _ACEOF
  11232. if ac_fn_c_try_run "$LINENO"; then :
  11233. else
  11234. ac_cv_header_stdc=no
  11235. fi
  11236. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11237. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11238. fi
  11239. fi
  11240. fi
  11241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11242. $as_echo "$ac_cv_header_stdc" >&6; }
  11243. if test $ac_cv_header_stdc = yes; then
  11244. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  11245. fi
  11246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11247. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11248. if ${ac_cv_header_sys_wait_h+:} false; then :
  11249. $as_echo_n "(cached) " >&6
  11250. else
  11251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11252. /* end confdefs.h. */
  11253. #include <sys/types.h>
  11254. #include <sys/wait.h>
  11255. #ifndef WEXITSTATUS
  11256. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11257. #endif
  11258. #ifndef WIFEXITED
  11259. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  11260. #endif
  11261. int
  11262. main ()
  11263. {
  11264. int s;
  11265. wait (&s);
  11266. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  11267. ;
  11268. return 0;
  11269. }
  11270. _ACEOF
  11271. if ac_fn_c_try_compile "$LINENO"; then :
  11272. ac_cv_header_sys_wait_h=yes
  11273. else
  11274. ac_cv_header_sys_wait_h=no
  11275. fi
  11276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11277. fi
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  11279. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  11280. if test $ac_cv_header_sys_wait_h = yes; then
  11281. $as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h
  11282. fi
  11283. for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \
  11284. sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \
  11285. getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \
  11286. sys/mman.h sys/event.h port.h pwd.h sys/syslimits.h \
  11287. sys/resource.h sys/un.h syslog.h sys/prctl.h uuid/uuid.h
  11288. do :
  11289. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11290. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11291. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11292. cat >>confdefs.h <<_ACEOF
  11293. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11294. _ACEOF
  11295. fi
  11296. done
  11297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  11298. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  11299. if ${ac_cv_c_const+:} false; then :
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11303. /* end confdefs.h. */
  11304. int
  11305. main ()
  11306. {
  11307. #ifndef __cplusplus
  11308. /* Ultrix mips cc rejects this sort of thing. */
  11309. typedef int charset[2];
  11310. const charset cs = { 0, 0 };
  11311. /* SunOS 4.1.1 cc rejects this. */
  11312. char const *const *pcpcc;
  11313. char **ppc;
  11314. /* NEC SVR4.0.2 mips cc rejects this. */
  11315. struct point {int x, y;};
  11316. static struct point const zero = {0,0};
  11317. /* AIX XL C 1.02.0.0 rejects this.
  11318. It does not let you subtract one const X* pointer from another in
  11319. an arm of an if-expression whose if-part is not a constant
  11320. expression */
  11321. const char *g = "string";
  11322. pcpcc = &g + (g ? g-g : 0);
  11323. /* HPUX 7.0 cc rejects these. */
  11324. ++pcpcc;
  11325. ppc = (char**) pcpcc;
  11326. pcpcc = (char const *const *) ppc;
  11327. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11328. char tx;
  11329. char *t = &tx;
  11330. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11331. *t++ = 0;
  11332. if (s) return 0;
  11333. }
  11334. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11335. int x[] = {25, 17};
  11336. const int *foo = &x[0];
  11337. ++foo;
  11338. }
  11339. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11340. typedef const int *iptr;
  11341. iptr p = 0;
  11342. ++p;
  11343. }
  11344. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11345. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11346. struct s { int j; const int *ap[3]; } bx;
  11347. struct s *b = &bx; b->j = 5;
  11348. }
  11349. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11350. const int foo = 10;
  11351. if (!foo) return 0;
  11352. }
  11353. return !cs[0] && !zero.x;
  11354. #endif
  11355. ;
  11356. return 0;
  11357. }
  11358. _ACEOF
  11359. if ac_fn_c_try_compile "$LINENO"; then :
  11360. ac_cv_c_const=yes
  11361. else
  11362. ac_cv_c_const=no
  11363. fi
  11364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11365. fi
  11366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11367. $as_echo "$ac_cv_c_const" >&6; }
  11368. if test $ac_cv_c_const = no; then
  11369. $as_echo "@%:@define const /**/" >>confdefs.h
  11370. fi
  11371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  11372. $as_echo_n "checking for inline... " >&6; }
  11373. if ${ac_cv_c_inline+:} false; then :
  11374. $as_echo_n "(cached) " >&6
  11375. else
  11376. ac_cv_c_inline=no
  11377. for ac_kw in inline __inline__ __inline; do
  11378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11379. /* end confdefs.h. */
  11380. #ifndef __cplusplus
  11381. typedef int foo_t;
  11382. static $ac_kw foo_t static_foo () {return 0; }
  11383. $ac_kw foo_t foo () {return 0; }
  11384. #endif
  11385. _ACEOF
  11386. if ac_fn_c_try_compile "$LINENO"; then :
  11387. ac_cv_c_inline=$ac_kw
  11388. fi
  11389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11390. test "$ac_cv_c_inline" != no && break
  11391. done
  11392. fi
  11393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  11394. $as_echo "$ac_cv_c_inline" >&6; }
  11395. case $ac_cv_c_inline in
  11396. inline | yes) ;;
  11397. *)
  11398. case $ac_cv_c_inline in
  11399. no) ac_val=;;
  11400. *) ac_val=$ac_cv_c_inline;;
  11401. esac
  11402. cat >>confdefs.h <<_ACEOF
  11403. #ifndef __cplusplus
  11404. #define inline $ac_val
  11405. #endif
  11406. _ACEOF
  11407. ;;
  11408. esac
  11409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  11410. $as_echo_n "checking whether char is unsigned... " >&6; }
  11411. if ${ac_cv_c_char_unsigned+:} false; then :
  11412. $as_echo_n "(cached) " >&6
  11413. else
  11414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11415. /* end confdefs.h. */
  11416. $ac_includes_default
  11417. int
  11418. main ()
  11419. {
  11420. static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@;
  11421. test_array @<:@0@:>@ = 0;
  11422. return test_array @<:@0@:>@;
  11423. ;
  11424. return 0;
  11425. }
  11426. _ACEOF
  11427. if ac_fn_c_try_compile "$LINENO"; then :
  11428. ac_cv_c_char_unsigned=no
  11429. else
  11430. ac_cv_c_char_unsigned=yes
  11431. fi
  11432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11433. fi
  11434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  11435. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  11436. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  11437. $as_echo "@%:@define __CHAR_UNSIGNED__ 1" >>confdefs.h
  11438. fi
  11439. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11440. if test "x$ac_cv_type_off_t" = xyes; then :
  11441. else
  11442. cat >>confdefs.h <<_ACEOF
  11443. @%:@define off_t long int
  11444. _ACEOF
  11445. fi
  11446. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11447. if test "x$ac_cv_type_pid_t" = xyes; then :
  11448. else
  11449. cat >>confdefs.h <<_ACEOF
  11450. @%:@define pid_t int
  11451. _ACEOF
  11452. fi
  11453. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11454. if test "x$ac_cv_type_size_t" = xyes; then :
  11455. else
  11456. cat >>confdefs.h <<_ACEOF
  11457. @%:@define size_t unsigned int
  11458. _ACEOF
  11459. fi
  11460. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  11461. "
  11462. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  11463. $as_echo "@%:@define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h
  11464. fi
  11465. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
  11466. "
  11467. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
  11468. cat >>confdefs.h <<_ACEOF
  11469. @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
  11470. _ACEOF
  11471. fi
  11472. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  11473. #include <sys/socket.h>
  11474. "
  11475. if test "x$ac_cv_type_socklen_t" = xyes; then :
  11476. cat >>confdefs.h <<_ACEOF
  11477. @%:@define HAVE_SOCKLEN_T 1
  11478. _ACEOF
  11479. fi
  11480. for ac_header in vfork.h
  11481. do :
  11482. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11483. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11484. cat >>confdefs.h <<_ACEOF
  11485. @%:@define HAVE_VFORK_H 1
  11486. _ACEOF
  11487. fi
  11488. done
  11489. for ac_func in fork vfork
  11490. do :
  11491. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11492. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11493. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11494. cat >>confdefs.h <<_ACEOF
  11495. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11496. _ACEOF
  11497. fi
  11498. done
  11499. if test "x$ac_cv_func_fork" = xyes; then
  11500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11501. $as_echo_n "checking for working fork... " >&6; }
  11502. if ${ac_cv_func_fork_works+:} false; then :
  11503. $as_echo_n "(cached) " >&6
  11504. else
  11505. if test "$cross_compiling" = yes; then :
  11506. ac_cv_func_fork_works=cross
  11507. else
  11508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11509. /* end confdefs.h. */
  11510. $ac_includes_default
  11511. int
  11512. main ()
  11513. {
  11514. /* By Ruediger Kuhlmann. */
  11515. return fork () < 0;
  11516. ;
  11517. return 0;
  11518. }
  11519. _ACEOF
  11520. if ac_fn_c_try_run "$LINENO"; then :
  11521. ac_cv_func_fork_works=yes
  11522. else
  11523. ac_cv_func_fork_works=no
  11524. fi
  11525. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11526. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11527. fi
  11528. fi
  11529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11530. $as_echo "$ac_cv_func_fork_works" >&6; }
  11531. else
  11532. ac_cv_func_fork_works=$ac_cv_func_fork
  11533. fi
  11534. if test "x$ac_cv_func_fork_works" = xcross; then
  11535. case $host in
  11536. *-*-amigaos* | *-*-msdosdjgpp*)
  11537. # Override, as these systems have only a dummy fork() stub
  11538. ac_cv_func_fork_works=no
  11539. ;;
  11540. *)
  11541. ac_cv_func_fork_works=yes
  11542. ;;
  11543. esac
  11544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11545. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11546. fi
  11547. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11548. if test "x$ac_cv_func_vfork" = xyes; then
  11549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11550. $as_echo_n "checking for working vfork... " >&6; }
  11551. if ${ac_cv_func_vfork_works+:} false; then :
  11552. $as_echo_n "(cached) " >&6
  11553. else
  11554. if test "$cross_compiling" = yes; then :
  11555. ac_cv_func_vfork_works=cross
  11556. else
  11557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11558. /* end confdefs.h. */
  11559. /* Thanks to Paul Eggert for this test. */
  11560. $ac_includes_default
  11561. #include <sys/wait.h>
  11562. #ifdef HAVE_VFORK_H
  11563. # include <vfork.h>
  11564. #endif
  11565. /* On some sparc systems, changes by the child to local and incoming
  11566. argument registers are propagated back to the parent. The compiler
  11567. is told about this with #include <vfork.h>, but some compilers
  11568. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11569. static variable whose address is put into a register that is
  11570. clobbered by the vfork. */
  11571. static void
  11572. #ifdef __cplusplus
  11573. sparc_address_test (int arg)
  11574. # else
  11575. sparc_address_test (arg) int arg;
  11576. #endif
  11577. {
  11578. static pid_t child;
  11579. if (!child) {
  11580. child = vfork ();
  11581. if (child < 0) {
  11582. perror ("vfork");
  11583. _exit(2);
  11584. }
  11585. if (!child) {
  11586. arg = getpid();
  11587. write(-1, "", 0);
  11588. _exit (arg);
  11589. }
  11590. }
  11591. }
  11592. int
  11593. main ()
  11594. {
  11595. pid_t parent = getpid ();
  11596. pid_t child;
  11597. sparc_address_test (0);
  11598. child = vfork ();
  11599. if (child == 0) {
  11600. /* Here is another test for sparc vfork register problems. This
  11601. test uses lots of local variables, at least as many local
  11602. variables as main has allocated so far including compiler
  11603. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11604. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11605. reuse the register of parent for one of the local variables,
  11606. since it will think that parent can't possibly be used any more
  11607. in this routine. Assigning to the local variable will thus
  11608. munge parent in the parent process. */
  11609. pid_t
  11610. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11611. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11612. /* Convince the compiler that p..p7 are live; otherwise, it might
  11613. use the same hardware register for all 8 local variables. */
  11614. if (p != p1 || p != p2 || p != p3 || p != p4
  11615. || p != p5 || p != p6 || p != p7)
  11616. _exit(1);
  11617. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11618. from child file descriptors. If the child closes a descriptor
  11619. before it execs or exits, this munges the parent's descriptor
  11620. as well. Test for this by closing stdout in the child. */
  11621. _exit(close(fileno(stdout)) != 0);
  11622. } else {
  11623. int status;
  11624. struct stat st;
  11625. while (wait(&status) != child)
  11626. ;
  11627. return (
  11628. /* Was there some problem with vforking? */
  11629. child < 0
  11630. /* Did the child fail? (This shouldn't happen.) */
  11631. || status
  11632. /* Did the vfork/compiler bug occur? */
  11633. || parent != getpid()
  11634. /* Did the file descriptor bug occur? */
  11635. || fstat(fileno(stdout), &st) != 0
  11636. );
  11637. }
  11638. }
  11639. _ACEOF
  11640. if ac_fn_c_try_run "$LINENO"; then :
  11641. ac_cv_func_vfork_works=yes
  11642. else
  11643. ac_cv_func_vfork_works=no
  11644. fi
  11645. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11646. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11647. fi
  11648. fi
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  11650. $as_echo "$ac_cv_func_vfork_works" >&6; }
  11651. fi;
  11652. if test "x$ac_cv_func_fork_works" = xcross; then
  11653. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  11655. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  11656. fi
  11657. if test "x$ac_cv_func_vfork_works" = xyes; then
  11658. $as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h
  11659. else
  11660. $as_echo "@%:@define vfork fork" >>confdefs.h
  11661. fi
  11662. if test "x$ac_cv_func_fork_works" = xyes; then
  11663. $as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h
  11664. fi
  11665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  11666. $as_echo_n "checking return type of signal handlers... " >&6; }
  11667. if ${ac_cv_type_signal+:} false; then :
  11668. $as_echo_n "(cached) " >&6
  11669. else
  11670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11671. /* end confdefs.h. */
  11672. #include <sys/types.h>
  11673. #include <signal.h>
  11674. int
  11675. main ()
  11676. {
  11677. return *(signal (0, 0)) (0) == 1;
  11678. ;
  11679. return 0;
  11680. }
  11681. _ACEOF
  11682. if ac_fn_c_try_compile "$LINENO"; then :
  11683. ac_cv_type_signal=int
  11684. else
  11685. ac_cv_type_signal=void
  11686. fi
  11687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11688. fi
  11689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  11690. $as_echo "$ac_cv_type_signal" >&6; }
  11691. cat >>confdefs.h <<_ACEOF
  11692. @%:@define RETSIGTYPE $ac_cv_type_signal
  11693. _ACEOF
  11694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  11695. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  11696. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  11697. $as_echo_n "(cached) " >&6
  11698. else
  11699. rm -f conftest.sym conftest.file
  11700. echo >conftest.file
  11701. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  11702. if test "$cross_compiling" = yes; then :
  11703. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11704. else
  11705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11706. /* end confdefs.h. */
  11707. $ac_includes_default
  11708. int
  11709. main ()
  11710. {
  11711. struct stat sbuf;
  11712. /* Linux will dereference the symlink and fail, as required by POSIX.
  11713. That is better in the sense that it means we will not
  11714. have to compile and use the lstat wrapper. */
  11715. return lstat ("conftest.sym/", &sbuf) == 0;
  11716. ;
  11717. return 0;
  11718. }
  11719. _ACEOF
  11720. if ac_fn_c_try_run "$LINENO"; then :
  11721. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  11722. else
  11723. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11724. fi
  11725. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11726. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11727. fi
  11728. else
  11729. # If the `ln -s' command failed, then we probably don't even
  11730. # have an lstat function.
  11731. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11732. fi
  11733. rm -f conftest.sym conftest.file
  11734. fi
  11735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  11736. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  11737. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  11738. cat >>confdefs.h <<_ACEOF
  11739. @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  11740. _ACEOF
  11741. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  11742. case " $LIB@&t@OBJS " in
  11743. *" lstat.$ac_objext "* ) ;;
  11744. *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
  11745. ;;
  11746. esac
  11747. fi
  11748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  11749. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11750. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  11751. $as_echo_n "(cached) " >&6
  11752. else
  11753. if test "$cross_compiling" = yes; then :
  11754. ac_cv_func_stat_empty_string_bug=yes
  11755. else
  11756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11757. /* end confdefs.h. */
  11758. $ac_includes_default
  11759. int
  11760. main ()
  11761. {
  11762. struct stat sbuf;
  11763. return stat ("", &sbuf) == 0;
  11764. ;
  11765. return 0;
  11766. }
  11767. _ACEOF
  11768. if ac_fn_c_try_run "$LINENO"; then :
  11769. ac_cv_func_stat_empty_string_bug=no
  11770. else
  11771. ac_cv_func_stat_empty_string_bug=yes
  11772. fi
  11773. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11774. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11775. fi
  11776. fi
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  11778. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11779. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11780. case " $LIB@&t@OBJS " in
  11781. *" stat.$ac_objext "* ) ;;
  11782. *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
  11783. ;;
  11784. esac
  11785. cat >>confdefs.h <<_ACEOF
  11786. @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
  11787. _ACEOF
  11788. fi
  11789. for ac_func in strftime
  11790. do :
  11791. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  11792. if test "x$ac_cv_func_strftime" = xyes; then :
  11793. cat >>confdefs.h <<_ACEOF
  11794. @%:@define HAVE_STRFTIME 1
  11795. _ACEOF
  11796. else
  11797. # strftime is in -lintl on SCO UNIX.
  11798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  11799. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11800. if ${ac_cv_lib_intl_strftime+:} false; then :
  11801. $as_echo_n "(cached) " >&6
  11802. else
  11803. ac_check_lib_save_LIBS=$LIBS
  11804. LIBS="-lintl $LIBS"
  11805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11806. /* end confdefs.h. */
  11807. /* Override any GCC internal prototype to avoid an error.
  11808. Use char because int might match the return type of a GCC
  11809. builtin and then its argument prototype would still apply. */
  11810. #ifdef __cplusplus
  11811. extern "C"
  11812. #endif
  11813. char strftime ();
  11814. int
  11815. main ()
  11816. {
  11817. return strftime ();
  11818. ;
  11819. return 0;
  11820. }
  11821. _ACEOF
  11822. if ac_fn_c_try_link "$LINENO"; then :
  11823. ac_cv_lib_intl_strftime=yes
  11824. else
  11825. ac_cv_lib_intl_strftime=no
  11826. fi
  11827. rm -f core conftest.err conftest.$ac_objext \
  11828. conftest$ac_exeext conftest.$ac_ext
  11829. LIBS=$ac_check_lib_save_LIBS
  11830. fi
  11831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  11832. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11833. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  11834. $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
  11835. LIBS="-lintl $LIBS"
  11836. fi
  11837. fi
  11838. done
  11839. for ac_func in issetugid inet_pton
  11840. do :
  11841. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11842. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11843. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11844. cat >>confdefs.h <<_ACEOF
  11845. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11846. _ACEOF
  11847. fi
  11848. done
  11849. if test -z "$PKG_CONFIG"; then
  11850. # Extract the first word of "pkg-config", so it can be a program name with args.
  11851. set dummy pkg-config; ac_word=$2
  11852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11853. $as_echo_n "checking for $ac_word... " >&6; }
  11854. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11855. $as_echo_n "(cached) " >&6
  11856. else
  11857. case $PKG_CONFIG in
  11858. [\\/]* | ?:[\\/]*)
  11859. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11860. ;;
  11861. *)
  11862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11863. for as_dir in $PATH
  11864. do
  11865. IFS=$as_save_IFS
  11866. test -z "$as_dir" && as_dir=.
  11867. for ac_exec_ext in '' $ac_executable_extensions; do
  11868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11869. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11871. break 2
  11872. fi
  11873. done
  11874. done
  11875. IFS=$as_save_IFS
  11876. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11877. ;;
  11878. esac
  11879. fi
  11880. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11881. if test -n "$PKG_CONFIG"; then
  11882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11883. $as_echo "$PKG_CONFIG" >&6; }
  11884. else
  11885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11886. $as_echo "no" >&6; }
  11887. fi
  11888. fi
  11889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev support" >&5
  11890. $as_echo_n "checking for libev support... " >&6; }
  11891. @%:@ Check whether --with-libev was given.
  11892. if test "${with_libev+set}" = set; then :
  11893. withval=$with_libev; WITH_LIBEV=$withval
  11894. else
  11895. WITH_LIBEV=no
  11896. fi
  11897. LIBEV_CFLAGS=""
  11898. LIBEV_LIBS=""
  11899. if test "$WITH_LIBEV" != "no"; then
  11900. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  11901. if test -n "$ac_tool_prefix"; then
  11902. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  11903. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  11904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11905. $as_echo_n "checking for $ac_word... " >&6; }
  11906. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11907. $as_echo_n "(cached) " >&6
  11908. else
  11909. case $PKG_CONFIG in
  11910. [\\/]* | ?:[\\/]*)
  11911. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11912. ;;
  11913. *)
  11914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11915. for as_dir in $PATH
  11916. do
  11917. IFS=$as_save_IFS
  11918. test -z "$as_dir" && as_dir=.
  11919. for ac_exec_ext in '' $ac_executable_extensions; do
  11920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11921. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11923. break 2
  11924. fi
  11925. done
  11926. done
  11927. IFS=$as_save_IFS
  11928. ;;
  11929. esac
  11930. fi
  11931. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11932. if test -n "$PKG_CONFIG"; then
  11933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11934. $as_echo "$PKG_CONFIG" >&6; }
  11935. else
  11936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11937. $as_echo "no" >&6; }
  11938. fi
  11939. fi
  11940. if test -z "$ac_cv_path_PKG_CONFIG"; then
  11941. ac_pt_PKG_CONFIG=$PKG_CONFIG
  11942. # Extract the first word of "pkg-config", so it can be a program name with args.
  11943. set dummy pkg-config; ac_word=$2
  11944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11945. $as_echo_n "checking for $ac_word... " >&6; }
  11946. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  11947. $as_echo_n "(cached) " >&6
  11948. else
  11949. case $ac_pt_PKG_CONFIG in
  11950. [\\/]* | ?:[\\/]*)
  11951. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  11952. ;;
  11953. *)
  11954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11955. for as_dir in $PATH
  11956. do
  11957. IFS=$as_save_IFS
  11958. test -z "$as_dir" && as_dir=.
  11959. for ac_exec_ext in '' $ac_executable_extensions; do
  11960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11961. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11963. break 2
  11964. fi
  11965. done
  11966. done
  11967. IFS=$as_save_IFS
  11968. ;;
  11969. esac
  11970. fi
  11971. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  11972. if test -n "$ac_pt_PKG_CONFIG"; then
  11973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  11974. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  11975. else
  11976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11977. $as_echo "no" >&6; }
  11978. fi
  11979. if test "x$ac_pt_PKG_CONFIG" = x; then
  11980. PKG_CONFIG=""
  11981. else
  11982. case $cross_compiling:$ac_tool_warned in
  11983. yes:)
  11984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11985. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11986. ac_tool_warned=yes ;;
  11987. esac
  11988. PKG_CONFIG=$ac_pt_PKG_CONFIG
  11989. fi
  11990. else
  11991. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  11992. fi
  11993. fi
  11994. if test -n "$PKG_CONFIG"; then
  11995. _pkg_min_version=0.9.0
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  11997. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  11998. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  11999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12000. $as_echo "yes" >&6; }
  12001. else
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12003. $as_echo "no" >&6; }
  12004. PKG_CONFIG=""
  12005. fi
  12006. fi
  12007. pkg_failed=no
  12008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5
  12009. $as_echo_n "checking for LIBEV... " >&6; }
  12010. if test -n "$LIBEV_CFLAGS"; then
  12011. pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS"
  12012. elif test -n "$PKG_CONFIG"; then
  12013. if test -n "$PKG_CONFIG" && \
  12014. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
  12015. ($PKG_CONFIG --exists --print-errors "libev") 2>&5
  12016. ac_status=$?
  12017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12018. test $ac_status = 0; }; then
  12019. pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null`
  12020. test "x$?" != "x0" && pkg_failed=yes
  12021. else
  12022. pkg_failed=yes
  12023. fi
  12024. else
  12025. pkg_failed=untried
  12026. fi
  12027. if test -n "$LIBEV_LIBS"; then
  12028. pkg_cv_LIBEV_LIBS="$LIBEV_LIBS"
  12029. elif test -n "$PKG_CONFIG"; then
  12030. if test -n "$PKG_CONFIG" && \
  12031. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
  12032. ($PKG_CONFIG --exists --print-errors "libev") 2>&5
  12033. ac_status=$?
  12034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12035. test $ac_status = 0; }; then
  12036. pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null`
  12037. test "x$?" != "x0" && pkg_failed=yes
  12038. else
  12039. pkg_failed=yes
  12040. fi
  12041. else
  12042. pkg_failed=untried
  12043. fi
  12044. if test $pkg_failed = yes; then
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12046. $as_echo "no" >&6; }
  12047. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12048. _pkg_short_errors_supported=yes
  12049. else
  12050. _pkg_short_errors_supported=no
  12051. fi
  12052. if test $_pkg_short_errors_supported = yes; then
  12053. LIBEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libev" 2>&1`
  12054. else
  12055. LIBEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libev" 2>&1`
  12056. fi
  12057. # Put the nasty error message in config.log where it belongs
  12058. echo "$LIBEV_PKG_ERRORS" >&5
  12059. if test "$WITH_LIBEV" != "yes"; then
  12060. LIBEV_CFLAGS="-I$WITH_LIBEV/include"
  12061. LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
  12062. else
  12063. for ac_header in ev.h
  12064. do :
  12065. ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
  12066. if test "x$ac_cv_header_ev_h" = xyes; then :
  12067. cat >>confdefs.h <<_ACEOF
  12068. @%:@define HAVE_EV_H 1
  12069. _ACEOF
  12070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
  12071. $as_echo_n "checking for ev_time in -lev... " >&6; }
  12072. if ${ac_cv_lib_ev_ev_time+:} false; then :
  12073. $as_echo_n "(cached) " >&6
  12074. else
  12075. ac_check_lib_save_LIBS=$LIBS
  12076. LIBS="-lev $LIBS"
  12077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12078. /* end confdefs.h. */
  12079. /* Override any GCC internal prototype to avoid an error.
  12080. Use char because int might match the return type of a GCC
  12081. builtin and then its argument prototype would still apply. */
  12082. #ifdef __cplusplus
  12083. extern "C"
  12084. #endif
  12085. char ev_time ();
  12086. int
  12087. main ()
  12088. {
  12089. return ev_time ();
  12090. ;
  12091. return 0;
  12092. }
  12093. _ACEOF
  12094. if ac_fn_c_try_link "$LINENO"; then :
  12095. ac_cv_lib_ev_ev_time=yes
  12096. else
  12097. ac_cv_lib_ev_ev_time=no
  12098. fi
  12099. rm -f core conftest.err conftest.$ac_objext \
  12100. conftest$ac_exeext conftest.$ac_ext
  12101. LIBS=$ac_check_lib_save_LIBS
  12102. fi
  12103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
  12104. $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
  12105. if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
  12106. LIBEV_CFLAGS=""
  12107. LIBEV_LIBS="-lev"
  12108. else
  12109. as_fn_error $? "libev not found" "$LINENO" 5
  12110. fi
  12111. else
  12112. as_fn_error $? "libev not found" "$LINENO" 5
  12113. fi
  12114. done
  12115. fi
  12116. elif test $pkg_failed = untried; then
  12117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12118. $as_echo "no" >&6; }
  12119. if test "$WITH_LIBEV" != "yes"; then
  12120. LIBEV_CFLAGS="-I$WITH_LIBEV/include"
  12121. LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
  12122. else
  12123. for ac_header in ev.h
  12124. do :
  12125. ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
  12126. if test "x$ac_cv_header_ev_h" = xyes; then :
  12127. cat >>confdefs.h <<_ACEOF
  12128. @%:@define HAVE_EV_H 1
  12129. _ACEOF
  12130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
  12131. $as_echo_n "checking for ev_time in -lev... " >&6; }
  12132. if ${ac_cv_lib_ev_ev_time+:} false; then :
  12133. $as_echo_n "(cached) " >&6
  12134. else
  12135. ac_check_lib_save_LIBS=$LIBS
  12136. LIBS="-lev $LIBS"
  12137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12138. /* end confdefs.h. */
  12139. /* Override any GCC internal prototype to avoid an error.
  12140. Use char because int might match the return type of a GCC
  12141. builtin and then its argument prototype would still apply. */
  12142. #ifdef __cplusplus
  12143. extern "C"
  12144. #endif
  12145. char ev_time ();
  12146. int
  12147. main ()
  12148. {
  12149. return ev_time ();
  12150. ;
  12151. return 0;
  12152. }
  12153. _ACEOF
  12154. if ac_fn_c_try_link "$LINENO"; then :
  12155. ac_cv_lib_ev_ev_time=yes
  12156. else
  12157. ac_cv_lib_ev_ev_time=no
  12158. fi
  12159. rm -f core conftest.err conftest.$ac_objext \
  12160. conftest$ac_exeext conftest.$ac_ext
  12161. LIBS=$ac_check_lib_save_LIBS
  12162. fi
  12163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
  12164. $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
  12165. if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
  12166. LIBEV_CFLAGS=""
  12167. LIBEV_LIBS="-lev"
  12168. else
  12169. as_fn_error $? "libev not found" "$LINENO" 5
  12170. fi
  12171. else
  12172. as_fn_error $? "libev not found" "$LINENO" 5
  12173. fi
  12174. done
  12175. fi
  12176. else
  12177. LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS
  12178. LIBEV_LIBS=$pkg_cv_LIBEV_LIBS
  12179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12180. $as_echo "yes" >&6; }
  12181. fi
  12182. $as_echo "@%:@define HAVE_LIBEV 1" >>confdefs.h
  12183. fi
  12184. MYSQL_INCLUDE=""
  12185. MYSQL_LIBS=""
  12186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
  12187. $as_echo_n "checking for MySQL support... " >&6; }
  12188. @%:@ Check whether --with-mysql was given.
  12189. if test "${with_mysql+set}" = set; then :
  12190. withval=$with_mysql; WITH_MYSQL=$withval
  12191. else
  12192. WITH_MYSQL=no
  12193. fi
  12194. if test "$WITH_MYSQL" != "no"; then
  12195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12196. $as_echo "yes" >&6; }
  12197. if test "$WITH_MYSQL" = "yes"; then
  12198. # Extract the first word of "mysql_config", so it can be a program name with args.
  12199. set dummy mysql_config; ac_word=$2
  12200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12201. $as_echo_n "checking for $ac_word... " >&6; }
  12202. if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
  12203. $as_echo_n "(cached) " >&6
  12204. else
  12205. case $MYSQL_CONFIG in
  12206. [\\/]* | ?:[\\/]*)
  12207. ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
  12208. ;;
  12209. *)
  12210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12211. for as_dir in $PATH
  12212. do
  12213. IFS=$as_save_IFS
  12214. test -z "$as_dir" && as_dir=.
  12215. for ac_exec_ext in '' $ac_executable_extensions; do
  12216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12217. ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12219. break 2
  12220. fi
  12221. done
  12222. done
  12223. IFS=$as_save_IFS
  12224. ;;
  12225. esac
  12226. fi
  12227. MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
  12228. if test -n "$MYSQL_CONFIG"; then
  12229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
  12230. $as_echo "$MYSQL_CONFIG" >&6; }
  12231. else
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12233. $as_echo "no" >&6; }
  12234. fi
  12235. else
  12236. MYSQL_CONFIG=$WITH_MYSQL
  12237. fi
  12238. if test "$MYSQL_CONFIG" = ""; then
  12239. as_fn_error $? "mysql_config is not found" "$LINENO" 5
  12240. fi
  12241. if test \! -x $MYSQL_CONFIG; then
  12242. as_fn_error use --with-mysql=path-to-mysql_config "mysql_config not exists or not executable" "$LINENO" 5
  12243. fi
  12244. if $MYSQL_CONFIG | grep -- '--include' > /dev/null ; then
  12245. MYSQL_INCLUDE="`$MYSQL_CONFIG --include | sed s/\'//g`"
  12246. else
  12247. MYSQL_INCLUDE="`$MYSQL_CONFIG --cflags | sed s/\'//g`"
  12248. fi
  12249. MYSQL_LIBS="`$MYSQL_CONFIG --libs | sed s/\'//g`"
  12250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes at" >&5
  12251. $as_echo_n "checking for MySQL includes at... " >&6; }
  12252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDE" >&5
  12253. $as_echo "$MYSQL_INCLUDE" >&6; }
  12254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries at" >&5
  12255. $as_echo_n "checking for MySQL libraries at... " >&6; }
  12256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
  12257. $as_echo "$MYSQL_LIBS" >&6; }
  12258. old_CPPFLAGS="$CPPFLAGS"
  12259. CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE"
  12260. for ac_header in errmsg.h mysql.h
  12261. do :
  12262. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12263. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12264. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12265. cat >>confdefs.h <<_ACEOF
  12266. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12267. _ACEOF
  12268. fi
  12269. done
  12270. CPPFLAGS="$old_CPPFLAGS"
  12271. $as_echo "@%:@define HAVE_MYSQL 1" >>confdefs.h
  12272. else
  12273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12274. $as_echo "no" >&6; }
  12275. fi
  12276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
  12277. $as_echo_n "checking for LDAP support... " >&6; }
  12278. @%:@ Check whether --with-ldap was given.
  12279. if test "${with_ldap+set}" = set; then :
  12280. withval=$with_ldap; WITH_LDAP=$withval
  12281. else
  12282. WITH_LDAP=no
  12283. fi
  12284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  12285. $as_echo "$withval" >&6; }
  12286. if test "$WITH_LDAP" != "no"; then
  12287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
  12288. $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
  12289. if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
  12290. $as_echo_n "(cached) " >&6
  12291. else
  12292. ac_check_lib_save_LIBS=$LIBS
  12293. LIBS="-lldap $LIBS"
  12294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12295. /* end confdefs.h. */
  12296. /* Override any GCC internal prototype to avoid an error.
  12297. Use char because int might match the return type of a GCC
  12298. builtin and then its argument prototype would still apply. */
  12299. #ifdef __cplusplus
  12300. extern "C"
  12301. #endif
  12302. char ldap_bind ();
  12303. int
  12304. main ()
  12305. {
  12306. return ldap_bind ();
  12307. ;
  12308. return 0;
  12309. }
  12310. _ACEOF
  12311. if ac_fn_c_try_link "$LINENO"; then :
  12312. ac_cv_lib_ldap_ldap_bind=yes
  12313. else
  12314. ac_cv_lib_ldap_ldap_bind=no
  12315. fi
  12316. rm -f core conftest.err conftest.$ac_objext \
  12317. conftest$ac_exeext conftest.$ac_ext
  12318. LIBS=$ac_check_lib_save_LIBS
  12319. fi
  12320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
  12321. $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
  12322. if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
  12323. for ac_header in ldap.h
  12324. do :
  12325. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  12326. if test "x$ac_cv_header_ldap_h" = xyes; then :
  12327. cat >>confdefs.h <<_ACEOF
  12328. @%:@define HAVE_LDAP_H 1
  12329. _ACEOF
  12330. LDAP_LIB=-lldap
  12331. $as_echo "@%:@define HAVE_LIBLDAP 1" >>confdefs.h
  12332. $as_echo "@%:@define HAVE_LDAP_H 1" >>confdefs.h
  12333. $as_echo "@%:@define LDAP_DEPRECATED 1" >>confdefs.h
  12334. fi
  12335. done
  12336. fi
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_printf in -llber" >&5
  12338. $as_echo_n "checking for ber_printf in -llber... " >&6; }
  12339. if ${ac_cv_lib_lber_ber_printf+:} false; then :
  12340. $as_echo_n "(cached) " >&6
  12341. else
  12342. ac_check_lib_save_LIBS=$LIBS
  12343. LIBS="-llber $LIBS"
  12344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12345. /* end confdefs.h. */
  12346. /* Override any GCC internal prototype to avoid an error.
  12347. Use char because int might match the return type of a GCC
  12348. builtin and then its argument prototype would still apply. */
  12349. #ifdef __cplusplus
  12350. extern "C"
  12351. #endif
  12352. char ber_printf ();
  12353. int
  12354. main ()
  12355. {
  12356. return ber_printf ();
  12357. ;
  12358. return 0;
  12359. }
  12360. _ACEOF
  12361. if ac_fn_c_try_link "$LINENO"; then :
  12362. ac_cv_lib_lber_ber_printf=yes
  12363. else
  12364. ac_cv_lib_lber_ber_printf=no
  12365. fi
  12366. rm -f core conftest.err conftest.$ac_objext \
  12367. conftest$ac_exeext conftest.$ac_ext
  12368. LIBS=$ac_check_lib_save_LIBS
  12369. fi
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_printf" >&5
  12371. $as_echo "$ac_cv_lib_lber_ber_printf" >&6; }
  12372. if test "x$ac_cv_lib_lber_ber_printf" = xyes; then :
  12373. for ac_header in lber.h
  12374. do :
  12375. ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
  12376. if test "x$ac_cv_header_lber_h" = xyes; then :
  12377. cat >>confdefs.h <<_ACEOF
  12378. @%:@define HAVE_LBER_H 1
  12379. _ACEOF
  12380. LBER_LIB=-llber
  12381. $as_echo "@%:@define HAVE_LIBLBER 1" >>confdefs.h
  12382. $as_echo "@%:@define HAVE_LBER_H 1" >>confdefs.h
  12383. fi
  12384. done
  12385. fi
  12386. fi
  12387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
  12388. $as_echo_n "checking for extended attributes support... " >&6; }
  12389. @%:@ Check whether --with-attr was given.
  12390. if test "${with_attr+set}" = set; then :
  12391. withval=$with_attr; WITH_ATTR=$withval
  12392. else
  12393. WITH_ATTR=no
  12394. fi
  12395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  12396. $as_echo "$withval" >&6; }
  12397. if test "$WITH_ATTR" != "no"; then
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for attr_get in -lattr" >&5
  12399. $as_echo_n "checking for attr_get in -lattr... " >&6; }
  12400. if ${ac_cv_lib_attr_attr_get+:} false; then :
  12401. $as_echo_n "(cached) " >&6
  12402. else
  12403. ac_check_lib_save_LIBS=$LIBS
  12404. LIBS="-lattr $LIBS"
  12405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12406. /* end confdefs.h. */
  12407. /* Override any GCC internal prototype to avoid an error.
  12408. Use char because int might match the return type of a GCC
  12409. builtin and then its argument prototype would still apply. */
  12410. #ifdef __cplusplus
  12411. extern "C"
  12412. #endif
  12413. char attr_get ();
  12414. int
  12415. main ()
  12416. {
  12417. return attr_get ();
  12418. ;
  12419. return 0;
  12420. }
  12421. _ACEOF
  12422. if ac_fn_c_try_link "$LINENO"; then :
  12423. ac_cv_lib_attr_attr_get=yes
  12424. else
  12425. ac_cv_lib_attr_attr_get=no
  12426. fi
  12427. rm -f core conftest.err conftest.$ac_objext \
  12428. conftest$ac_exeext conftest.$ac_ext
  12429. LIBS=$ac_check_lib_save_LIBS
  12430. fi
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_attr_get" >&5
  12432. $as_echo "$ac_cv_lib_attr_attr_get" >&6; }
  12433. if test "x$ac_cv_lib_attr_attr_get" = xyes; then :
  12434. for ac_header in attr/attributes.h
  12435. do :
  12436. ac_fn_c_check_header_mongrel "$LINENO" "attr/attributes.h" "ac_cv_header_attr_attributes_h" "$ac_includes_default"
  12437. if test "x$ac_cv_header_attr_attributes_h" = xyes; then :
  12438. cat >>confdefs.h <<_ACEOF
  12439. @%:@define HAVE_ATTR_ATTRIBUTES_H 1
  12440. _ACEOF
  12441. ATTR_LIB=-lattr
  12442. $as_echo "@%:@define HAVE_XATTR 1" >>confdefs.h
  12443. $as_echo "@%:@define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h
  12444. fi
  12445. done
  12446. fi
  12447. fi
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  12449. $as_echo_n "checking for library containing socket... " >&6; }
  12450. if ${ac_cv_search_socket+:} false; then :
  12451. $as_echo_n "(cached) " >&6
  12452. else
  12453. ac_func_search_save_LIBS=$LIBS
  12454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12455. /* end confdefs.h. */
  12456. /* Override any GCC internal prototype to avoid an error.
  12457. Use char because int might match the return type of a GCC
  12458. builtin and then its argument prototype would still apply. */
  12459. #ifdef __cplusplus
  12460. extern "C"
  12461. #endif
  12462. char socket ();
  12463. int
  12464. main ()
  12465. {
  12466. return socket ();
  12467. ;
  12468. return 0;
  12469. }
  12470. _ACEOF
  12471. for ac_lib in '' socket; do
  12472. if test -z "$ac_lib"; then
  12473. ac_res="none required"
  12474. else
  12475. ac_res=-l$ac_lib
  12476. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12477. fi
  12478. if ac_fn_c_try_link "$LINENO"; then :
  12479. ac_cv_search_socket=$ac_res
  12480. fi
  12481. rm -f core conftest.err conftest.$ac_objext \
  12482. conftest$ac_exeext
  12483. if ${ac_cv_search_socket+:} false; then :
  12484. break
  12485. fi
  12486. done
  12487. if ${ac_cv_search_socket+:} false; then :
  12488. else
  12489. ac_cv_search_socket=no
  12490. fi
  12491. rm conftest.$ac_ext
  12492. LIBS=$ac_func_search_save_LIBS
  12493. fi
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  12495. $as_echo "$ac_cv_search_socket" >&6; }
  12496. ac_res=$ac_cv_search_socket
  12497. if test "$ac_res" != no; then :
  12498. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12499. fi
  12500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  12501. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  12502. if ${ac_cv_search_gethostbyname+:} false; then :
  12503. $as_echo_n "(cached) " >&6
  12504. else
  12505. ac_func_search_save_LIBS=$LIBS
  12506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12507. /* end confdefs.h. */
  12508. /* Override any GCC internal prototype to avoid an error.
  12509. Use char because int might match the return type of a GCC
  12510. builtin and then its argument prototype would still apply. */
  12511. #ifdef __cplusplus
  12512. extern "C"
  12513. #endif
  12514. char gethostbyname ();
  12515. int
  12516. main ()
  12517. {
  12518. return gethostbyname ();
  12519. ;
  12520. return 0;
  12521. }
  12522. _ACEOF
  12523. for ac_lib in '' nsl socket; do
  12524. if test -z "$ac_lib"; then
  12525. ac_res="none required"
  12526. else
  12527. ac_res=-l$ac_lib
  12528. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12529. fi
  12530. if ac_fn_c_try_link "$LINENO"; then :
  12531. ac_cv_search_gethostbyname=$ac_res
  12532. fi
  12533. rm -f core conftest.err conftest.$ac_objext \
  12534. conftest$ac_exeext
  12535. if ${ac_cv_search_gethostbyname+:} false; then :
  12536. break
  12537. fi
  12538. done
  12539. if ${ac_cv_search_gethostbyname+:} false; then :
  12540. else
  12541. ac_cv_search_gethostbyname=no
  12542. fi
  12543. rm conftest.$ac_ext
  12544. LIBS=$ac_func_search_save_LIBS
  12545. fi
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  12547. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  12548. ac_res=$ac_cv_search_gethostbyname
  12549. if test "$ac_res" != no; then :
  12550. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12551. fi
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
  12553. $as_echo_n "checking for library containing hstrerror... " >&6; }
  12554. if ${ac_cv_search_hstrerror+:} false; then :
  12555. $as_echo_n "(cached) " >&6
  12556. else
  12557. ac_func_search_save_LIBS=$LIBS
  12558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12559. /* end confdefs.h. */
  12560. /* Override any GCC internal prototype to avoid an error.
  12561. Use char because int might match the return type of a GCC
  12562. builtin and then its argument prototype would still apply. */
  12563. #ifdef __cplusplus
  12564. extern "C"
  12565. #endif
  12566. char hstrerror ();
  12567. int
  12568. main ()
  12569. {
  12570. return hstrerror ();
  12571. ;
  12572. return 0;
  12573. }
  12574. _ACEOF
  12575. for ac_lib in '' resolv; do
  12576. if test -z "$ac_lib"; then
  12577. ac_res="none required"
  12578. else
  12579. ac_res=-l$ac_lib
  12580. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12581. fi
  12582. if ac_fn_c_try_link "$LINENO"; then :
  12583. ac_cv_search_hstrerror=$ac_res
  12584. fi
  12585. rm -f core conftest.err conftest.$ac_objext \
  12586. conftest$ac_exeext
  12587. if ${ac_cv_search_hstrerror+:} false; then :
  12588. break
  12589. fi
  12590. done
  12591. if ${ac_cv_search_hstrerror+:} false; then :
  12592. else
  12593. ac_cv_search_hstrerror=no
  12594. fi
  12595. rm conftest.$ac_ext
  12596. LIBS=$ac_func_search_save_LIBS
  12597. fi
  12598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
  12599. $as_echo "$ac_cv_search_hstrerror" >&6; }
  12600. ac_res=$ac_cv_search_hstrerror
  12601. if test "$ac_res" != no; then :
  12602. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12603. fi
  12604. save_LIBS=$LIBS
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  12606. $as_echo_n "checking for library containing dlopen... " >&6; }
  12607. if ${ac_cv_search_dlopen+:} false; then :
  12608. $as_echo_n "(cached) " >&6
  12609. else
  12610. ac_func_search_save_LIBS=$LIBS
  12611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12612. /* end confdefs.h. */
  12613. /* Override any GCC internal prototype to avoid an error.
  12614. Use char because int might match the return type of a GCC
  12615. builtin and then its argument prototype would still apply. */
  12616. #ifdef __cplusplus
  12617. extern "C"
  12618. #endif
  12619. char dlopen ();
  12620. int
  12621. main ()
  12622. {
  12623. return dlopen ();
  12624. ;
  12625. return 0;
  12626. }
  12627. _ACEOF
  12628. for ac_lib in '' dl; do
  12629. if test -z "$ac_lib"; then
  12630. ac_res="none required"
  12631. else
  12632. ac_res=-l$ac_lib
  12633. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12634. fi
  12635. if ac_fn_c_try_link "$LINENO"; then :
  12636. ac_cv_search_dlopen=$ac_res
  12637. fi
  12638. rm -f core conftest.err conftest.$ac_objext \
  12639. conftest$ac_exeext
  12640. if ${ac_cv_search_dlopen+:} false; then :
  12641. break
  12642. fi
  12643. done
  12644. if ${ac_cv_search_dlopen+:} false; then :
  12645. else
  12646. ac_cv_search_dlopen=no
  12647. fi
  12648. rm conftest.$ac_ext
  12649. LIBS=$ac_func_search_save_LIBS
  12650. fi
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  12652. $as_echo "$ac_cv_search_dlopen" >&6; }
  12653. ac_res=$ac_cv_search_dlopen
  12654. if test "$ac_res" != no; then :
  12655. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12656. for ac_header in dlfcn.h
  12657. do :
  12658. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  12659. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  12660. cat >>confdefs.h <<_ACEOF
  12661. @%:@define HAVE_DLFCN_H 1
  12662. _ACEOF
  12663. if test "$ac_cv_search_dlopen" != no; then
  12664. test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen"
  12665. fi
  12666. $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
  12667. $as_echo "@%:@define HAVE_DLFCN_H 1" >>confdefs.h
  12668. fi
  12669. done
  12670. fi
  12671. LIBS=$save_LIBS
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
  12673. $as_echo_n "checking for valgrind... " >&6; }
  12674. @%:@ Check whether --with-valgrind was given.
  12675. if test "${with_valgrind+set}" = set; then :
  12676. withval=$with_valgrind; WITH_VALGRIND=$withval
  12677. else
  12678. WITH_VALGRIND=no
  12679. fi
  12680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_VALGRIND" >&5
  12681. $as_echo "$WITH_VALGRIND" >&6; }
  12682. if test "$WITH_VALGRIND" != "no"; then
  12683. for ac_header in valgrind/valgrind.h
  12684. do :
  12685. ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
  12686. if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
  12687. cat >>confdefs.h <<_ACEOF
  12688. @%:@define HAVE_VALGRIND_VALGRIND_H 1
  12689. _ACEOF
  12690. fi
  12691. done
  12692. fi
  12693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
  12694. $as_echo_n "checking for OpenSSL... " >&6; }
  12695. @%:@ Check whether --with-openssl was given.
  12696. if test "${with_openssl+set}" = set; then :
  12697. withval=$with_openssl; WITH_OPENSSL=$withval
  12698. else
  12699. WITH_OPENSSL=no
  12700. fi
  12701. if test "$WITH_OPENSSL" != "no"; then
  12702. use_openssl=yes
  12703. if test "$WITH_OPENSSL" != "yes"; then
  12704. CPPFLAGS="$CPPFLAGS -I$WITH_OPENSSL/include"
  12705. LDFLAGS="$LDFLAGS -L$WITH_OPENSSL/lib"
  12706. fi
  12707. else
  12708. use_openssl=no
  12709. fi
  12710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openssl" >&5
  12711. $as_echo "$use_openssl" >&6; }
  12712. @%:@ Check whether --with-openssl-includes was given.
  12713. if test "${with_openssl_includes+set}" = set; then :
  12714. withval=$with_openssl_includes; use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval"
  12715. fi
  12716. @%:@ Check whether --with-openssl-libs was given.
  12717. if test "${with_openssl_libs+set}" = set; then :
  12718. withval=$with_openssl_libs; use_openssl=yes LDFLAGS="$LDFLAGS -L$withval"
  12719. fi
  12720. @%:@ Check whether --with-kerberos5 was given.
  12721. if test "${with_kerberos5+set}" = set; then :
  12722. withval=$with_kerberos5; use_kerberos=yes
  12723. else
  12724. use_kerberos=no
  12725. fi
  12726. if test "x$use_openssl" = "xyes"; then
  12727. if test "x$use_kerberos" != "xyes"; then
  12728. CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
  12729. fi
  12730. for ac_header in openssl/ssl.h
  12731. do :
  12732. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  12733. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  12734. cat >>confdefs.h <<_ACEOF
  12735. @%:@define HAVE_OPENSSL_SSL_H 1
  12736. _ACEOF
  12737. fi
  12738. done
  12739. OLDLIBS="$LIBS"
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_f_base64 in -lcrypto" >&5
  12741. $as_echo_n "checking for BIO_f_base64 in -lcrypto... " >&6; }
  12742. if ${ac_cv_lib_crypto_BIO_f_base64+:} false; then :
  12743. $as_echo_n "(cached) " >&6
  12744. else
  12745. ac_check_lib_save_LIBS=$LIBS
  12746. LIBS="-lcrypto $LIBS"
  12747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12748. /* end confdefs.h. */
  12749. /* Override any GCC internal prototype to avoid an error.
  12750. Use char because int might match the return type of a GCC
  12751. builtin and then its argument prototype would still apply. */
  12752. #ifdef __cplusplus
  12753. extern "C"
  12754. #endif
  12755. char BIO_f_base64 ();
  12756. int
  12757. main ()
  12758. {
  12759. return BIO_f_base64 ();
  12760. ;
  12761. return 0;
  12762. }
  12763. _ACEOF
  12764. if ac_fn_c_try_link "$LINENO"; then :
  12765. ac_cv_lib_crypto_BIO_f_base64=yes
  12766. else
  12767. ac_cv_lib_crypto_BIO_f_base64=no
  12768. fi
  12769. rm -f core conftest.err conftest.$ac_objext \
  12770. conftest$ac_exeext conftest.$ac_ext
  12771. LIBS=$ac_check_lib_save_LIBS
  12772. fi
  12773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_f_base64" >&5
  12774. $as_echo "$ac_cv_lib_crypto_BIO_f_base64" >&6; }
  12775. if test "x$ac_cv_lib_crypto_BIO_f_base64" = xyes; then :
  12776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
  12777. $as_echo_n "checking for SSL_new in -lssl... " >&6; }
  12778. if ${ac_cv_lib_ssl_SSL_new+:} false; then :
  12779. $as_echo_n "(cached) " >&6
  12780. else
  12781. ac_check_lib_save_LIBS=$LIBS
  12782. LIBS="-lssl -lcrypto "$DL_LIB" $LIBS"
  12783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12784. /* end confdefs.h. */
  12785. /* Override any GCC internal prototype to avoid an error.
  12786. Use char because int might match the return type of a GCC
  12787. builtin and then its argument prototype would still apply. */
  12788. #ifdef __cplusplus
  12789. extern "C"
  12790. #endif
  12791. char SSL_new ();
  12792. int
  12793. main ()
  12794. {
  12795. return SSL_new ();
  12796. ;
  12797. return 0;
  12798. }
  12799. _ACEOF
  12800. if ac_fn_c_try_link "$LINENO"; then :
  12801. ac_cv_lib_ssl_SSL_new=yes
  12802. else
  12803. ac_cv_lib_ssl_SSL_new=no
  12804. fi
  12805. rm -f core conftest.err conftest.$ac_objext \
  12806. conftest$ac_exeext conftest.$ac_ext
  12807. LIBS=$ac_check_lib_save_LIBS
  12808. fi
  12809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
  12810. $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
  12811. if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
  12812. SSL_LIB="-lssl -lcrypto"
  12813. $as_echo "@%:@define HAVE_LIBSSL /**/" >>confdefs.h
  12814. fi
  12815. fi
  12816. LIBS="$OLDLIBS"
  12817. fi
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5
  12819. $as_echo_n "checking for perl regular expressions support... " >&6; }
  12820. @%:@ Check whether --with-pcre was given.
  12821. if test "${with_pcre+set}" = set; then :
  12822. withval=$with_pcre; WITH_PCRE=$withval
  12823. else
  12824. WITH_PCRE=yes
  12825. fi
  12826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5
  12827. $as_echo "$WITH_PCRE" >&6; }
  12828. if test "$WITH_PCRE" != "no"; then
  12829. # Extract the first word of "pcre-config", so it can be a program name with args.
  12830. set dummy pcre-config; ac_word=$2
  12831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12832. $as_echo_n "checking for $ac_word... " >&6; }
  12833. if ${ac_cv_path_PCRECONFIG+:} false; then :
  12834. $as_echo_n "(cached) " >&6
  12835. else
  12836. case $PCRECONFIG in
  12837. [\\/]* | ?:[\\/]*)
  12838. ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path.
  12839. ;;
  12840. *)
  12841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12842. for as_dir in $PATH
  12843. do
  12844. IFS=$as_save_IFS
  12845. test -z "$as_dir" && as_dir=.
  12846. for ac_exec_ext in '' $ac_executable_extensions; do
  12847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12848. ac_cv_path_PCRECONFIG="$as_dir/$ac_word$ac_exec_ext"
  12849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12850. break 2
  12851. fi
  12852. done
  12853. done
  12854. IFS=$as_save_IFS
  12855. ;;
  12856. esac
  12857. fi
  12858. PCRECONFIG=$ac_cv_path_PCRECONFIG
  12859. if test -n "$PCRECONFIG"; then
  12860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONFIG" >&5
  12861. $as_echo "$PCRECONFIG" >&6; }
  12862. else
  12863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12864. $as_echo "no" >&6; }
  12865. fi
  12866. if test x"$PCRECONFIG" != x; then
  12867. PCRE_LIB=`$PCRECONFIG --libs`
  12868. CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
  12869. $as_echo "@%:@define HAVE_LIBPCRE 1" >>confdefs.h
  12870. $as_echo "@%:@define HAVE_PCRE_H 1" >>confdefs.h
  12871. else
  12872. as_fn_error $? "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5
  12873. fi
  12874. fi
  12875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  12876. $as_echo_n "checking for zlib support... " >&6; }
  12877. @%:@ Check whether --with-zlib was given.
  12878. if test "${with_zlib+set}" = set; then :
  12879. withval=$with_zlib; WITH_ZLIB=$withval
  12880. else
  12881. WITH_ZLIB=yes
  12882. fi
  12883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5
  12884. $as_echo "$WITH_ZLIB" >&6; }
  12885. if test "$WITH_ZLIB" != "no"; then
  12886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  12887. $as_echo_n "checking for deflate in -lz... " >&6; }
  12888. if ${ac_cv_lib_z_deflate+:} false; then :
  12889. $as_echo_n "(cached) " >&6
  12890. else
  12891. ac_check_lib_save_LIBS=$LIBS
  12892. LIBS="-lz $LIBS"
  12893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12894. /* end confdefs.h. */
  12895. /* Override any GCC internal prototype to avoid an error.
  12896. Use char because int might match the return type of a GCC
  12897. builtin and then its argument prototype would still apply. */
  12898. #ifdef __cplusplus
  12899. extern "C"
  12900. #endif
  12901. char deflate ();
  12902. int
  12903. main ()
  12904. {
  12905. return deflate ();
  12906. ;
  12907. return 0;
  12908. }
  12909. _ACEOF
  12910. if ac_fn_c_try_link "$LINENO"; then :
  12911. ac_cv_lib_z_deflate=yes
  12912. else
  12913. ac_cv_lib_z_deflate=no
  12914. fi
  12915. rm -f core conftest.err conftest.$ac_objext \
  12916. conftest$ac_exeext conftest.$ac_ext
  12917. LIBS=$ac_check_lib_save_LIBS
  12918. fi
  12919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  12920. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  12921. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  12922. for ac_header in zlib.h
  12923. do :
  12924. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  12925. if test "x$ac_cv_header_zlib_h" = xyes; then :
  12926. cat >>confdefs.h <<_ACEOF
  12927. @%:@define HAVE_ZLIB_H 1
  12928. _ACEOF
  12929. Z_LIB=-lz
  12930. $as_echo "@%:@define HAVE_LIBZ 1" >>confdefs.h
  12931. $as_echo "@%:@define HAVE_ZLIB_H 1" >>confdefs.h
  12932. fi
  12933. done
  12934. fi
  12935. if test x$Z_LIB = x; then
  12936. as_fn_error $? "zlib-headers and/or libs where not found, install them or build with --without-zlib" "$LINENO" 5
  12937. fi
  12938. fi
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5
  12940. $as_echo_n "checking for bzip2 support... " >&6; }
  12941. @%:@ Check whether --with-bzip2 was given.
  12942. if test "${with_bzip2+set}" = set; then :
  12943. withval=$with_bzip2; WITH_BZIP2=$withval
  12944. else
  12945. WITH_BZIP2=yes
  12946. fi
  12947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5
  12948. $as_echo "$WITH_BZIP2" >&6; }
  12949. if test "$WITH_BZIP2" != "no"; then
  12950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
  12951. $as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
  12952. if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
  12953. $as_echo_n "(cached) " >&6
  12954. else
  12955. ac_check_lib_save_LIBS=$LIBS
  12956. LIBS="-lbz2 $LIBS"
  12957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12958. /* end confdefs.h. */
  12959. /* Override any GCC internal prototype to avoid an error.
  12960. Use char because int might match the return type of a GCC
  12961. builtin and then its argument prototype would still apply. */
  12962. #ifdef __cplusplus
  12963. extern "C"
  12964. #endif
  12965. char BZ2_bzCompress ();
  12966. int
  12967. main ()
  12968. {
  12969. return BZ2_bzCompress ();
  12970. ;
  12971. return 0;
  12972. }
  12973. _ACEOF
  12974. if ac_fn_c_try_link "$LINENO"; then :
  12975. ac_cv_lib_bz2_BZ2_bzCompress=yes
  12976. else
  12977. ac_cv_lib_bz2_BZ2_bzCompress=no
  12978. fi
  12979. rm -f core conftest.err conftest.$ac_objext \
  12980. conftest$ac_exeext conftest.$ac_ext
  12981. LIBS=$ac_check_lib_save_LIBS
  12982. fi
  12983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
  12984. $as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
  12985. if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
  12986. for ac_header in bzlib.h
  12987. do :
  12988. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  12989. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  12990. cat >>confdefs.h <<_ACEOF
  12991. @%:@define HAVE_BZLIB_H 1
  12992. _ACEOF
  12993. BZ_LIB=-lbz2
  12994. $as_echo "@%:@define HAVE_LIBBZ2 1" >>confdefs.h
  12995. $as_echo "@%:@define HAVE_BZLIB_H 1" >>confdefs.h
  12996. fi
  12997. done
  12998. fi
  12999. if test x$BZ_LIB = x; then
  13000. as_fn_error $? "bzip2-headers and/or libs where not found, install them or build with --without-bzip2" "$LINENO" 5
  13001. fi
  13002. fi
  13003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
  13004. $as_echo_n "checking for FAM... " >&6; }
  13005. @%:@ Check whether --with-fam was given.
  13006. if test "${with_fam+set}" = set; then :
  13007. withval=$with_fam; WITH_FAM=$withval
  13008. else
  13009. WITH_FAM=no
  13010. fi
  13011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5
  13012. $as_echo "$WITH_FAM" >&6; }
  13013. if test "$WITH_FAM" != "no"; then
  13014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen2 in -lfam" >&5
  13015. $as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
  13016. if ${ac_cv_lib_fam_FAMOpen2+:} false; then :
  13017. $as_echo_n "(cached) " >&6
  13018. else
  13019. ac_check_lib_save_LIBS=$LIBS
  13020. LIBS="-lfam $LIBS"
  13021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13022. /* end confdefs.h. */
  13023. /* Override any GCC internal prototype to avoid an error.
  13024. Use char because int might match the return type of a GCC
  13025. builtin and then its argument prototype would still apply. */
  13026. #ifdef __cplusplus
  13027. extern "C"
  13028. #endif
  13029. char FAMOpen2 ();
  13030. int
  13031. main ()
  13032. {
  13033. return FAMOpen2 ();
  13034. ;
  13035. return 0;
  13036. }
  13037. _ACEOF
  13038. if ac_fn_c_try_link "$LINENO"; then :
  13039. ac_cv_lib_fam_FAMOpen2=yes
  13040. else
  13041. ac_cv_lib_fam_FAMOpen2=no
  13042. fi
  13043. rm -f core conftest.err conftest.$ac_objext \
  13044. conftest$ac_exeext conftest.$ac_ext
  13045. LIBS=$ac_check_lib_save_LIBS
  13046. fi
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen2" >&5
  13048. $as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; }
  13049. if test "x$ac_cv_lib_fam_FAMOpen2" = xyes; then :
  13050. for ac_header in fam.h
  13051. do :
  13052. ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
  13053. if test "x$ac_cv_header_fam_h" = xyes; then :
  13054. cat >>confdefs.h <<_ACEOF
  13055. @%:@define HAVE_FAM_H 1
  13056. _ACEOF
  13057. FAM_LIBS=-lfam
  13058. $as_echo "@%:@define HAVE_LIBFAM 1" >>confdefs.h
  13059. $as_echo "@%:@define HAVE_FAM_H 1" >>confdefs.h
  13060. fi
  13061. done
  13062. fi
  13063. if test "x$FAM_LIBS" = x; then
  13064. pkg_failed=no
  13065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
  13066. $as_echo_n "checking for FAM... " >&6; }
  13067. if test -n "$FAM_CFLAGS"; then
  13068. pkg_cv_FAM_CFLAGS="$FAM_CFLAGS"
  13069. elif test -n "$PKG_CONFIG"; then
  13070. if test -n "$PKG_CONFIG" && \
  13071. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
  13072. ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
  13073. ac_status=$?
  13074. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13075. test $ac_status = 0; }; then
  13076. pkg_cv_FAM_CFLAGS=`$PKG_CONFIG --cflags "gamin >= 0.1.0" 2>/dev/null`
  13077. test "x$?" != "x0" && pkg_failed=yes
  13078. else
  13079. pkg_failed=yes
  13080. fi
  13081. else
  13082. pkg_failed=untried
  13083. fi
  13084. if test -n "$FAM_LIBS"; then
  13085. pkg_cv_FAM_LIBS="$FAM_LIBS"
  13086. elif test -n "$PKG_CONFIG"; then
  13087. if test -n "$PKG_CONFIG" && \
  13088. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
  13089. ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
  13090. ac_status=$?
  13091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13092. test $ac_status = 0; }; then
  13093. pkg_cv_FAM_LIBS=`$PKG_CONFIG --libs "gamin >= 0.1.0" 2>/dev/null`
  13094. test "x$?" != "x0" && pkg_failed=yes
  13095. else
  13096. pkg_failed=yes
  13097. fi
  13098. else
  13099. pkg_failed=untried
  13100. fi
  13101. if test $pkg_failed = yes; then
  13102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13103. $as_echo "no" >&6; }
  13104. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13105. _pkg_short_errors_supported=yes
  13106. else
  13107. _pkg_short_errors_supported=no
  13108. fi
  13109. if test $_pkg_short_errors_supported = yes; then
  13110. FAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
  13111. else
  13112. FAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
  13113. fi
  13114. # Put the nasty error message in config.log where it belongs
  13115. echo "$FAM_PKG_ERRORS" >&5
  13116. as_fn_error $? "Package requirements (gamin >= 0.1.0) were not met:
  13117. $FAM_PKG_ERRORS
  13118. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13119. installed software in a non-standard prefix.
  13120. Alternatively, you may set the environment variables FAM_CFLAGS
  13121. and FAM_LIBS to avoid the need to call pkg-config.
  13122. See the pkg-config man page for more details." "$LINENO" 5
  13123. elif test $pkg_failed = untried; then
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13125. $as_echo "no" >&6; }
  13126. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13127. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13128. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13129. is in your PATH or set the PKG_CONFIG environment variable to the full
  13130. path to pkg-config.
  13131. Alternatively, you may set the environment variables FAM_CFLAGS
  13132. and FAM_LIBS to avoid the need to call pkg-config.
  13133. See the pkg-config man page for more details.
  13134. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13135. See \`config.log' for more details" "$LINENO" 5; }
  13136. else
  13137. FAM_CFLAGS=$pkg_cv_FAM_CFLAGS
  13138. FAM_LIBS=$pkg_cv_FAM_LIBS
  13139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13140. $as_echo "yes" >&6; }
  13141. $as_echo "@%:@define HAVE_LIBFAM 1" >>confdefs.h
  13142. $as_echo "@%:@define HAVE_FAM_H 1" >>confdefs.h
  13143. fi
  13144. fi
  13145. OLD_LIBS=$LIBS
  13146. LIBS=$FAM_LIBS
  13147. for ac_func in FAMNoExists
  13148. do :
  13149. ac_fn_c_check_func "$LINENO" "FAMNoExists" "ac_cv_func_FAMNoExists"
  13150. if test "x$ac_cv_func_FAMNoExists" = xyes; then :
  13151. cat >>confdefs.h <<_ACEOF
  13152. @%:@define HAVE_FAMNOEXISTS 1
  13153. _ACEOF
  13154. fi
  13155. done
  13156. LIBS=$OLD_LIBS
  13157. if test x$FAM_LIBS = x; then
  13158. as_fn_error $? "fam/gamin-headers and/or libs where not found, install them or build with --without-fam" "$LINENO" 5
  13159. fi
  13160. fi
  13161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_webdav" >&5
  13162. $as_echo_n "checking for properties in mod_webdav... " >&6; }
  13163. @%:@ Check whether --with-webdav-props was given.
  13164. if test "${with_webdav_props+set}" = set; then :
  13165. withval=$with_webdav_props; WITH_WEBDAV_PROPS=$withval
  13166. else
  13167. WITH_WEBDAV_PROPS=no
  13168. fi
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5
  13170. $as_echo "$WITH_WEBDAV_PROPS" >&6; }
  13171. if test "$WITH_WEBDAV_PROPS" != "no"; then
  13172. pkg_failed=no
  13173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
  13174. $as_echo_n "checking for XML... " >&6; }
  13175. if test -n "$XML_CFLAGS"; then
  13176. pkg_cv_XML_CFLAGS="$XML_CFLAGS"
  13177. elif test -n "$PKG_CONFIG"; then
  13178. if test -n "$PKG_CONFIG" && \
  13179. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  13180. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  13181. ac_status=$?
  13182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13183. test $ac_status = 0; }; then
  13184. pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
  13185. test "x$?" != "x0" && pkg_failed=yes
  13186. else
  13187. pkg_failed=yes
  13188. fi
  13189. else
  13190. pkg_failed=untried
  13191. fi
  13192. if test -n "$XML_LIBS"; then
  13193. pkg_cv_XML_LIBS="$XML_LIBS"
  13194. elif test -n "$PKG_CONFIG"; then
  13195. if test -n "$PKG_CONFIG" && \
  13196. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  13197. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  13198. ac_status=$?
  13199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13200. test $ac_status = 0; }; then
  13201. pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
  13202. test "x$?" != "x0" && pkg_failed=yes
  13203. else
  13204. pkg_failed=yes
  13205. fi
  13206. else
  13207. pkg_failed=untried
  13208. fi
  13209. if test $pkg_failed = yes; then
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13211. $as_echo "no" >&6; }
  13212. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13213. _pkg_short_errors_supported=yes
  13214. else
  13215. _pkg_short_errors_supported=no
  13216. fi
  13217. if test $_pkg_short_errors_supported = yes; then
  13218. XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
  13219. else
  13220. XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
  13221. fi
  13222. # Put the nasty error message in config.log where it belongs
  13223. echo "$XML_PKG_ERRORS" >&5
  13224. as_fn_error $? "Package requirements (libxml-2.0) were not met:
  13225. $XML_PKG_ERRORS
  13226. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13227. installed software in a non-standard prefix.
  13228. Alternatively, you may set the environment variables XML_CFLAGS
  13229. and XML_LIBS to avoid the need to call pkg-config.
  13230. See the pkg-config man page for more details." "$LINENO" 5
  13231. elif test $pkg_failed = untried; then
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13233. $as_echo "no" >&6; }
  13234. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13235. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13236. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13237. is in your PATH or set the PKG_CONFIG environment variable to the full
  13238. path to pkg-config.
  13239. Alternatively, you may set the environment variables XML_CFLAGS
  13240. and XML_LIBS to avoid the need to call pkg-config.
  13241. See the pkg-config man page for more details.
  13242. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13243. See \`config.log' for more details" "$LINENO" 5; }
  13244. else
  13245. XML_CFLAGS=$pkg_cv_XML_CFLAGS
  13246. XML_LIBS=$pkg_cv_XML_LIBS
  13247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13248. $as_echo "yes" >&6; }
  13249. $as_echo "@%:@define HAVE_LIBXML2 1" >>confdefs.h
  13250. $as_echo "@%:@define HAVE_LIBXML_H 1" >>confdefs.h
  13251. fi
  13252. pkg_failed=no
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
  13254. $as_echo_n "checking for SQLITE... " >&6; }
  13255. if test -n "$SQLITE_CFLAGS"; then
  13256. pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
  13257. elif test -n "$PKG_CONFIG"; then
  13258. if test -n "$PKG_CONFIG" && \
  13259. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  13260. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  13261. ac_status=$?
  13262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13263. test $ac_status = 0; }; then
  13264. pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  13265. test "x$?" != "x0" && pkg_failed=yes
  13266. else
  13267. pkg_failed=yes
  13268. fi
  13269. else
  13270. pkg_failed=untried
  13271. fi
  13272. if test -n "$SQLITE_LIBS"; then
  13273. pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
  13274. elif test -n "$PKG_CONFIG"; then
  13275. if test -n "$PKG_CONFIG" && \
  13276. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  13277. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  13278. ac_status=$?
  13279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13280. test $ac_status = 0; }; then
  13281. pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  13282. test "x$?" != "x0" && pkg_failed=yes
  13283. else
  13284. pkg_failed=yes
  13285. fi
  13286. else
  13287. pkg_failed=untried
  13288. fi
  13289. if test $pkg_failed = yes; then
  13290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13291. $as_echo "no" >&6; }
  13292. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13293. _pkg_short_errors_supported=yes
  13294. else
  13295. _pkg_short_errors_supported=no
  13296. fi
  13297. if test $_pkg_short_errors_supported = yes; then
  13298. SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
  13299. else
  13300. SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
  13301. fi
  13302. # Put the nasty error message in config.log where it belongs
  13303. echo "$SQLITE_PKG_ERRORS" >&5
  13304. as_fn_error $? "Package requirements (sqlite3) were not met:
  13305. $SQLITE_PKG_ERRORS
  13306. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13307. installed software in a non-standard prefix.
  13308. Alternatively, you may set the environment variables SQLITE_CFLAGS
  13309. and SQLITE_LIBS to avoid the need to call pkg-config.
  13310. See the pkg-config man page for more details." "$LINENO" 5
  13311. elif test $pkg_failed = untried; then
  13312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13313. $as_echo "no" >&6; }
  13314. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13315. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13316. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13317. is in your PATH or set the PKG_CONFIG environment variable to the full
  13318. path to pkg-config.
  13319. Alternatively, you may set the environment variables SQLITE_CFLAGS
  13320. and SQLITE_LIBS to avoid the need to call pkg-config.
  13321. See the pkg-config man page for more details.
  13322. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13323. See \`config.log' for more details" "$LINENO" 5; }
  13324. else
  13325. SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
  13326. SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
  13327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13328. $as_echo "yes" >&6; }
  13329. $as_echo "@%:@define HAVE_SQLITE3 1" >>confdefs.h
  13330. $as_echo "@%:@define HAVE_SQLITE3_H 1" >>confdefs.h
  13331. fi
  13332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_webdav" >&5
  13333. $as_echo_n "checking for locks in mod_webdav... " >&6; }
  13334. @%:@ Check whether --with-webdav-locks was given.
  13335. if test "${with_webdav_locks+set}" = set; then :
  13336. withval=$with_webdav_locks; WITH_WEBDAV_LOCKS=$withval
  13337. else
  13338. WITH_WEBDAV_LOCKS=no
  13339. fi
  13340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5
  13341. $as_echo "$WITH_WEBDAV_LOCKS" >&6; }
  13342. if test "$WITH_WEBDAV_LOCKS" != "no"; then
  13343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5
  13344. $as_echo_n "checking for uuid_unparse in -luuid... " >&6; }
  13345. if ${ac_cv_lib_uuid_uuid_unparse+:} false; then :
  13346. $as_echo_n "(cached) " >&6
  13347. else
  13348. ac_check_lib_save_LIBS=$LIBS
  13349. LIBS="-luuid $LIBS"
  13350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13351. /* end confdefs.h. */
  13352. /* Override any GCC internal prototype to avoid an error.
  13353. Use char because int might match the return type of a GCC
  13354. builtin and then its argument prototype would still apply. */
  13355. #ifdef __cplusplus
  13356. extern "C"
  13357. #endif
  13358. char uuid_unparse ();
  13359. int
  13360. main ()
  13361. {
  13362. return uuid_unparse ();
  13363. ;
  13364. return 0;
  13365. }
  13366. _ACEOF
  13367. if ac_fn_c_try_link "$LINENO"; then :
  13368. ac_cv_lib_uuid_uuid_unparse=yes
  13369. else
  13370. ac_cv_lib_uuid_uuid_unparse=no
  13371. fi
  13372. rm -f core conftest.err conftest.$ac_objext \
  13373. conftest$ac_exeext conftest.$ac_ext
  13374. LIBS=$ac_check_lib_save_LIBS
  13375. fi
  13376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5
  13377. $as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; }
  13378. if test "x$ac_cv_lib_uuid_uuid_unparse" = xyes; then :
  13379. for ac_header in uuid/uuid.h
  13380. do :
  13381. ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  13382. if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
  13383. cat >>confdefs.h <<_ACEOF
  13384. @%:@define HAVE_UUID_UUID_H 1
  13385. _ACEOF
  13386. UUID_LIBS=-luuid
  13387. $as_echo "@%:@define HAVE_UUID 1" >>confdefs.h
  13388. $as_echo "@%:@define HAVE_UUID_H 1" >>confdefs.h
  13389. fi
  13390. done
  13391. fi
  13392. fi
  13393. fi
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm" >&5
  13395. $as_echo_n "checking for gdbm... " >&6; }
  13396. @%:@ Check whether --with-gdbm was given.
  13397. if test "${with_gdbm+set}" = set; then :
  13398. withval=$with_gdbm; WITH_GDBM=$withval
  13399. else
  13400. WITH_GDBM=no
  13401. fi
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_GDBM" >&5
  13403. $as_echo "$WITH_GDBM" >&6; }
  13404. if test "$WITH_GDBM" != "no"; then
  13405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
  13406. $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
  13407. if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
  13408. $as_echo_n "(cached) " >&6
  13409. else
  13410. ac_check_lib_save_LIBS=$LIBS
  13411. LIBS="-lgdbm $LIBS"
  13412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13413. /* end confdefs.h. */
  13414. /* Override any GCC internal prototype to avoid an error.
  13415. Use char because int might match the return type of a GCC
  13416. builtin and then its argument prototype would still apply. */
  13417. #ifdef __cplusplus
  13418. extern "C"
  13419. #endif
  13420. char gdbm_open ();
  13421. int
  13422. main ()
  13423. {
  13424. return gdbm_open ();
  13425. ;
  13426. return 0;
  13427. }
  13428. _ACEOF
  13429. if ac_fn_c_try_link "$LINENO"; then :
  13430. ac_cv_lib_gdbm_gdbm_open=yes
  13431. else
  13432. ac_cv_lib_gdbm_gdbm_open=no
  13433. fi
  13434. rm -f core conftest.err conftest.$ac_objext \
  13435. conftest$ac_exeext conftest.$ac_ext
  13436. LIBS=$ac_check_lib_save_LIBS
  13437. fi
  13438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
  13439. $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
  13440. if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
  13441. for ac_header in gdbm.h
  13442. do :
  13443. ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
  13444. if test "x$ac_cv_header_gdbm_h" = xyes; then :
  13445. cat >>confdefs.h <<_ACEOF
  13446. @%:@define HAVE_GDBM_H 1
  13447. _ACEOF
  13448. GDBM_LIB=-lgdbm
  13449. $as_echo "@%:@define HAVE_GDBM 1" >>confdefs.h
  13450. $as_echo "@%:@define HAVE_GDBM_H 1" >>confdefs.h
  13451. fi
  13452. done
  13453. fi
  13454. fi
  13455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcache" >&5
  13456. $as_echo_n "checking for memcache... " >&6; }
  13457. @%:@ Check whether --with-memcache was given.
  13458. if test "${with_memcache+set}" = set; then :
  13459. withval=$with_memcache; WITH_MEMCACHE=$withval
  13460. else
  13461. WITH_MEMCACHE=no
  13462. fi
  13463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MEMCACHE" >&5
  13464. $as_echo "$WITH_MEMCACHE" >&6; }
  13465. if test "$WITH_MEMCACHE" != "no"; then
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mc_new in -lmemcache" >&5
  13467. $as_echo_n "checking for mc_new in -lmemcache... " >&6; }
  13468. if ${ac_cv_lib_memcache_mc_new+:} false; then :
  13469. $as_echo_n "(cached) " >&6
  13470. else
  13471. ac_check_lib_save_LIBS=$LIBS
  13472. LIBS="-lmemcache $LIBS"
  13473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13474. /* end confdefs.h. */
  13475. /* Override any GCC internal prototype to avoid an error.
  13476. Use char because int might match the return type of a GCC
  13477. builtin and then its argument prototype would still apply. */
  13478. #ifdef __cplusplus
  13479. extern "C"
  13480. #endif
  13481. char mc_new ();
  13482. int
  13483. main ()
  13484. {
  13485. return mc_new ();
  13486. ;
  13487. return 0;
  13488. }
  13489. _ACEOF
  13490. if ac_fn_c_try_link "$LINENO"; then :
  13491. ac_cv_lib_memcache_mc_new=yes
  13492. else
  13493. ac_cv_lib_memcache_mc_new=no
  13494. fi
  13495. rm -f core conftest.err conftest.$ac_objext \
  13496. conftest$ac_exeext conftest.$ac_ext
  13497. LIBS=$ac_check_lib_save_LIBS
  13498. fi
  13499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcache_mc_new" >&5
  13500. $as_echo "$ac_cv_lib_memcache_mc_new" >&6; }
  13501. if test "x$ac_cv_lib_memcache_mc_new" = xyes; then :
  13502. for ac_header in memcache.h
  13503. do :
  13504. ac_fn_c_check_header_mongrel "$LINENO" "memcache.h" "ac_cv_header_memcache_h" "$ac_includes_default"
  13505. if test "x$ac_cv_header_memcache_h" = xyes; then :
  13506. cat >>confdefs.h <<_ACEOF
  13507. @%:@define HAVE_MEMCACHE_H 1
  13508. _ACEOF
  13509. MEMCACHE_LIB=-lmemcache
  13510. $as_echo "@%:@define HAVE_MEMCACHE 1" >>confdefs.h
  13511. $as_echo "@%:@define HAVE_MEMCACHE_H 1" >>confdefs.h
  13512. fi
  13513. done
  13514. fi
  13515. fi
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua-support is requested" >&5
  13517. $as_echo_n "checking if lua-support is requested... " >&6; }
  13518. @%:@ Check whether --with-lua was given.
  13519. if test "${with_lua+set}" = set; then :
  13520. withval=$with_lua; WITH_LUA=$withval
  13521. else
  13522. WITH_LUA=no
  13523. fi
  13524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LUA" >&5
  13525. $as_echo "$WITH_LUA" >&6; }
  13526. if test "$WITH_LUA" != "no"; then
  13527. if test "$WITH_LUA" = "yes"; then
  13528. WITH_LUA=lua
  13529. fi
  13530. pkg_failed=no
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13532. $as_echo_n "checking for LUA... " >&6; }
  13533. if test -n "$LUA_CFLAGS"; then
  13534. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13535. elif test -n "$PKG_CONFIG"; then
  13536. if test -n "$PKG_CONFIG" && \
  13537. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
  13538. ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
  13539. ac_status=$?
  13540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13541. test $ac_status = 0; }; then
  13542. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
  13543. test "x$?" != "x0" && pkg_failed=yes
  13544. else
  13545. pkg_failed=yes
  13546. fi
  13547. else
  13548. pkg_failed=untried
  13549. fi
  13550. if test -n "$LUA_LIBS"; then
  13551. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13552. elif test -n "$PKG_CONFIG"; then
  13553. if test -n "$PKG_CONFIG" && \
  13554. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
  13555. ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
  13556. ac_status=$?
  13557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13558. test $ac_status = 0; }; then
  13559. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
  13560. test "x$?" != "x0" && pkg_failed=yes
  13561. else
  13562. pkg_failed=yes
  13563. fi
  13564. else
  13565. pkg_failed=untried
  13566. fi
  13567. if test $pkg_failed = yes; then
  13568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13569. $as_echo "no" >&6; }
  13570. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13571. _pkg_short_errors_supported=yes
  13572. else
  13573. _pkg_short_errors_supported=no
  13574. fi
  13575. if test $_pkg_short_errors_supported = yes; then
  13576. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
  13577. else
  13578. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
  13579. fi
  13580. # Put the nasty error message in config.log where it belongs
  13581. echo "$LUA_PKG_ERRORS" >&5
  13582. pkg_failed=no
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13584. $as_echo_n "checking for LUA... " >&6; }
  13585. if test -n "$LUA_CFLAGS"; then
  13586. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13587. elif test -n "$PKG_CONFIG"; then
  13588. if test -n "$PKG_CONFIG" && \
  13589. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
  13590. ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
  13591. ac_status=$?
  13592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13593. test $ac_status = 0; }; then
  13594. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
  13595. test "x$?" != "x0" && pkg_failed=yes
  13596. else
  13597. pkg_failed=yes
  13598. fi
  13599. else
  13600. pkg_failed=untried
  13601. fi
  13602. if test -n "$LUA_LIBS"; then
  13603. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13604. elif test -n "$PKG_CONFIG"; then
  13605. if test -n "$PKG_CONFIG" && \
  13606. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
  13607. ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
  13608. ac_status=$?
  13609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13610. test $ac_status = 0; }; then
  13611. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
  13612. test "x$?" != "x0" && pkg_failed=yes
  13613. else
  13614. pkg_failed=yes
  13615. fi
  13616. else
  13617. pkg_failed=untried
  13618. fi
  13619. if test $pkg_failed = yes; then
  13620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13621. $as_echo "no" >&6; }
  13622. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13623. _pkg_short_errors_supported=yes
  13624. else
  13625. _pkg_short_errors_supported=no
  13626. fi
  13627. if test $_pkg_short_errors_supported = yes; then
  13628. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
  13629. else
  13630. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
  13631. fi
  13632. # Put the nasty error message in config.log where it belongs
  13633. echo "$LUA_PKG_ERRORS" >&5
  13634. pkg_failed=no
  13635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13636. $as_echo_n "checking for LUA... " >&6; }
  13637. if test -n "$LUA_CFLAGS"; then
  13638. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13639. elif test -n "$PKG_CONFIG"; then
  13640. if test -n "$PKG_CONFIG" && \
  13641. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13642. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13643. ac_status=$?
  13644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13645. test $ac_status = 0; }; then
  13646. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
  13647. test "x$?" != "x0" && pkg_failed=yes
  13648. else
  13649. pkg_failed=yes
  13650. fi
  13651. else
  13652. pkg_failed=untried
  13653. fi
  13654. if test -n "$LUA_LIBS"; then
  13655. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13656. elif test -n "$PKG_CONFIG"; then
  13657. if test -n "$PKG_CONFIG" && \
  13658. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13659. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13660. ac_status=$?
  13661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13662. test $ac_status = 0; }; then
  13663. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
  13664. test "x$?" != "x0" && pkg_failed=yes
  13665. else
  13666. pkg_failed=yes
  13667. fi
  13668. else
  13669. pkg_failed=untried
  13670. fi
  13671. if test $pkg_failed = yes; then
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13673. $as_echo "no" >&6; }
  13674. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13675. _pkg_short_errors_supported=yes
  13676. else
  13677. _pkg_short_errors_supported=no
  13678. fi
  13679. if test $_pkg_short_errors_supported = yes; then
  13680. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13681. else
  13682. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13683. fi
  13684. # Put the nasty error message in config.log where it belongs
  13685. echo "$LUA_PKG_ERRORS" >&5
  13686. as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
  13687. $LUA_PKG_ERRORS
  13688. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13689. installed software in a non-standard prefix.
  13690. Alternatively, you may set the environment variables LUA_CFLAGS
  13691. and LUA_LIBS to avoid the need to call pkg-config.
  13692. See the pkg-config man page for more details." "$LINENO" 5
  13693. elif test $pkg_failed = untried; then
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13695. $as_echo "no" >&6; }
  13696. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13697. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13698. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13699. is in your PATH or set the PKG_CONFIG environment variable to the full
  13700. path to pkg-config.
  13701. Alternatively, you may set the environment variables LUA_CFLAGS
  13702. and LUA_LIBS to avoid the need to call pkg-config.
  13703. See the pkg-config man page for more details.
  13704. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13705. See \`config.log' for more details" "$LINENO" 5; }
  13706. else
  13707. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13708. LUA_LIBS=$pkg_cv_LUA_LIBS
  13709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13710. $as_echo "yes" >&6; }
  13711. $as_echo "@%:@define HAVE_LUA 1" >>confdefs.h
  13712. $as_echo "@%:@define HAVE_LUA_H 1" >>confdefs.h
  13713. fi
  13714. elif test $pkg_failed = untried; then
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13716. $as_echo "no" >&6; }
  13717. pkg_failed=no
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13719. $as_echo_n "checking for LUA... " >&6; }
  13720. if test -n "$LUA_CFLAGS"; then
  13721. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13722. elif test -n "$PKG_CONFIG"; then
  13723. if test -n "$PKG_CONFIG" && \
  13724. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13725. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13726. ac_status=$?
  13727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13728. test $ac_status = 0; }; then
  13729. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
  13730. test "x$?" != "x0" && pkg_failed=yes
  13731. else
  13732. pkg_failed=yes
  13733. fi
  13734. else
  13735. pkg_failed=untried
  13736. fi
  13737. if test -n "$LUA_LIBS"; then
  13738. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13739. elif test -n "$PKG_CONFIG"; then
  13740. if test -n "$PKG_CONFIG" && \
  13741. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13742. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13743. ac_status=$?
  13744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13745. test $ac_status = 0; }; then
  13746. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
  13747. test "x$?" != "x0" && pkg_failed=yes
  13748. else
  13749. pkg_failed=yes
  13750. fi
  13751. else
  13752. pkg_failed=untried
  13753. fi
  13754. if test $pkg_failed = yes; then
  13755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13756. $as_echo "no" >&6; }
  13757. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13758. _pkg_short_errors_supported=yes
  13759. else
  13760. _pkg_short_errors_supported=no
  13761. fi
  13762. if test $_pkg_short_errors_supported = yes; then
  13763. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13764. else
  13765. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13766. fi
  13767. # Put the nasty error message in config.log where it belongs
  13768. echo "$LUA_PKG_ERRORS" >&5
  13769. as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
  13770. $LUA_PKG_ERRORS
  13771. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13772. installed software in a non-standard prefix.
  13773. Alternatively, you may set the environment variables LUA_CFLAGS
  13774. and LUA_LIBS to avoid the need to call pkg-config.
  13775. See the pkg-config man page for more details." "$LINENO" 5
  13776. elif test $pkg_failed = untried; then
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13778. $as_echo "no" >&6; }
  13779. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13780. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13781. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13782. is in your PATH or set the PKG_CONFIG environment variable to the full
  13783. path to pkg-config.
  13784. Alternatively, you may set the environment variables LUA_CFLAGS
  13785. and LUA_LIBS to avoid the need to call pkg-config.
  13786. See the pkg-config man page for more details.
  13787. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13788. See \`config.log' for more details" "$LINENO" 5; }
  13789. else
  13790. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13791. LUA_LIBS=$pkg_cv_LUA_LIBS
  13792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13793. $as_echo "yes" >&6; }
  13794. $as_echo "@%:@define HAVE_LUA 1" >>confdefs.h
  13795. $as_echo "@%:@define HAVE_LUA_H 1" >>confdefs.h
  13796. fi
  13797. else
  13798. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13799. LUA_LIBS=$pkg_cv_LUA_LIBS
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13801. $as_echo "yes" >&6; }
  13802. $as_echo "@%:@define HAVE_LUA 1" >>confdefs.h
  13803. $as_echo "@%:@define HAVE_LUA_H 1" >>confdefs.h
  13804. fi
  13805. elif test $pkg_failed = untried; then
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13807. $as_echo "no" >&6; }
  13808. pkg_failed=no
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13810. $as_echo_n "checking for LUA... " >&6; }
  13811. if test -n "$LUA_CFLAGS"; then
  13812. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13813. elif test -n "$PKG_CONFIG"; then
  13814. if test -n "$PKG_CONFIG" && \
  13815. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
  13816. ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
  13817. ac_status=$?
  13818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13819. test $ac_status = 0; }; then
  13820. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
  13821. test "x$?" != "x0" && pkg_failed=yes
  13822. else
  13823. pkg_failed=yes
  13824. fi
  13825. else
  13826. pkg_failed=untried
  13827. fi
  13828. if test -n "$LUA_LIBS"; then
  13829. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13830. elif test -n "$PKG_CONFIG"; then
  13831. if test -n "$PKG_CONFIG" && \
  13832. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
  13833. ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
  13834. ac_status=$?
  13835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13836. test $ac_status = 0; }; then
  13837. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
  13838. test "x$?" != "x0" && pkg_failed=yes
  13839. else
  13840. pkg_failed=yes
  13841. fi
  13842. else
  13843. pkg_failed=untried
  13844. fi
  13845. if test $pkg_failed = yes; then
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13847. $as_echo "no" >&6; }
  13848. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13849. _pkg_short_errors_supported=yes
  13850. else
  13851. _pkg_short_errors_supported=no
  13852. fi
  13853. if test $_pkg_short_errors_supported = yes; then
  13854. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
  13855. else
  13856. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
  13857. fi
  13858. # Put the nasty error message in config.log where it belongs
  13859. echo "$LUA_PKG_ERRORS" >&5
  13860. pkg_failed=no
  13861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13862. $as_echo_n "checking for LUA... " >&6; }
  13863. if test -n "$LUA_CFLAGS"; then
  13864. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13865. elif test -n "$PKG_CONFIG"; then
  13866. if test -n "$PKG_CONFIG" && \
  13867. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13868. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13869. ac_status=$?
  13870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13871. test $ac_status = 0; }; then
  13872. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
  13873. test "x$?" != "x0" && pkg_failed=yes
  13874. else
  13875. pkg_failed=yes
  13876. fi
  13877. else
  13878. pkg_failed=untried
  13879. fi
  13880. if test -n "$LUA_LIBS"; then
  13881. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13882. elif test -n "$PKG_CONFIG"; then
  13883. if test -n "$PKG_CONFIG" && \
  13884. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13885. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13886. ac_status=$?
  13887. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13888. test $ac_status = 0; }; then
  13889. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
  13890. test "x$?" != "x0" && pkg_failed=yes
  13891. else
  13892. pkg_failed=yes
  13893. fi
  13894. else
  13895. pkg_failed=untried
  13896. fi
  13897. if test $pkg_failed = yes; then
  13898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13899. $as_echo "no" >&6; }
  13900. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13901. _pkg_short_errors_supported=yes
  13902. else
  13903. _pkg_short_errors_supported=no
  13904. fi
  13905. if test $_pkg_short_errors_supported = yes; then
  13906. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13907. else
  13908. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13909. fi
  13910. # Put the nasty error message in config.log where it belongs
  13911. echo "$LUA_PKG_ERRORS" >&5
  13912. as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
  13913. $LUA_PKG_ERRORS
  13914. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13915. installed software in a non-standard prefix.
  13916. Alternatively, you may set the environment variables LUA_CFLAGS
  13917. and LUA_LIBS to avoid the need to call pkg-config.
  13918. See the pkg-config man page for more details." "$LINENO" 5
  13919. elif test $pkg_failed = untried; then
  13920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13921. $as_echo "no" >&6; }
  13922. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13923. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13924. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13925. is in your PATH or set the PKG_CONFIG environment variable to the full
  13926. path to pkg-config.
  13927. Alternatively, you may set the environment variables LUA_CFLAGS
  13928. and LUA_LIBS to avoid the need to call pkg-config.
  13929. See the pkg-config man page for more details.
  13930. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13931. See \`config.log' for more details" "$LINENO" 5; }
  13932. else
  13933. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13934. LUA_LIBS=$pkg_cv_LUA_LIBS
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13936. $as_echo "yes" >&6; }
  13937. $as_echo "@%:@define HAVE_LUA 1" >>confdefs.h
  13938. $as_echo "@%:@define HAVE_LUA_H 1" >>confdefs.h
  13939. fi
  13940. elif test $pkg_failed = untried; then
  13941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13942. $as_echo "no" >&6; }
  13943. pkg_failed=no
  13944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13945. $as_echo_n "checking for LUA... " >&6; }
  13946. if test -n "$LUA_CFLAGS"; then
  13947. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13948. elif test -n "$PKG_CONFIG"; then
  13949. if test -n "$PKG_CONFIG" && \
  13950. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13951. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13952. ac_status=$?
  13953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13954. test $ac_status = 0; }; then
  13955. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
  13956. test "x$?" != "x0" && pkg_failed=yes
  13957. else
  13958. pkg_failed=yes
  13959. fi
  13960. else
  13961. pkg_failed=untried
  13962. fi
  13963. if test -n "$LUA_LIBS"; then
  13964. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13965. elif test -n "$PKG_CONFIG"; then
  13966. if test -n "$PKG_CONFIG" && \
  13967. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13968. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13969. ac_status=$?
  13970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13971. test $ac_status = 0; }; then
  13972. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
  13973. test "x$?" != "x0" && pkg_failed=yes
  13974. else
  13975. pkg_failed=yes
  13976. fi
  13977. else
  13978. pkg_failed=untried
  13979. fi
  13980. if test $pkg_failed = yes; then
  13981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13982. $as_echo "no" >&6; }
  13983. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13984. _pkg_short_errors_supported=yes
  13985. else
  13986. _pkg_short_errors_supported=no
  13987. fi
  13988. if test $_pkg_short_errors_supported = yes; then
  13989. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13990. else
  13991. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13992. fi
  13993. # Put the nasty error message in config.log where it belongs
  13994. echo "$LUA_PKG_ERRORS" >&5
  13995. as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
  13996. $LUA_PKG_ERRORS
  13997. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13998. installed software in a non-standard prefix.
  13999. Alternatively, you may set the environment variables LUA_CFLAGS
  14000. and LUA_LIBS to avoid the need to call pkg-config.
  14001. See the pkg-config man page for more details." "$LINENO" 5
  14002. elif test $pkg_failed = untried; then
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14004. $as_echo "no" >&6; }
  14005. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14006. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14007. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14008. is in your PATH or set the PKG_CONFIG environment variable to the full
  14009. path to pkg-config.
  14010. Alternatively, you may set the environment variables LUA_CFLAGS
  14011. and LUA_LIBS to avoid the need to call pkg-config.
  14012. See the pkg-config man page for more details.
  14013. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14014. See \`config.log' for more details" "$LINENO" 5; }
  14015. else
  14016. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  14017. LUA_LIBS=$pkg_cv_LUA_LIBS
  14018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14019. $as_echo "yes" >&6; }
  14020. $as_echo "@%:@define HAVE_LUA 1" >>confdefs.h
  14021. $as_echo "@%:@define HAVE_LUA_H 1" >>confdefs.h
  14022. fi
  14023. else
  14024. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  14025. LUA_LIBS=$pkg_cv_LUA_LIBS
  14026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14027. $as_echo "yes" >&6; }
  14028. $as_echo "@%:@define HAVE_LUA 1" >>confdefs.h
  14029. $as_echo "@%:@define HAVE_LUA_H 1" >>confdefs.h
  14030. fi
  14031. else
  14032. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  14033. LUA_LIBS=$pkg_cv_LUA_LIBS
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14035. $as_echo "yes" >&6; }
  14036. $as_echo "@%:@define HAVE_LUA 1" >>confdefs.h
  14037. $as_echo "@%:@define HAVE_LUA_H 1" >>confdefs.h
  14038. fi
  14039. fi
  14040. save_LIBS=$LIBS
  14041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
  14042. $as_echo_n "checking for library containing crypt... " >&6; }
  14043. if ${ac_cv_search_crypt+:} false; then :
  14044. $as_echo_n "(cached) " >&6
  14045. else
  14046. ac_func_search_save_LIBS=$LIBS
  14047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14048. /* end confdefs.h. */
  14049. /* Override any GCC internal prototype to avoid an error.
  14050. Use char because int might match the return type of a GCC
  14051. builtin and then its argument prototype would still apply. */
  14052. #ifdef __cplusplus
  14053. extern "C"
  14054. #endif
  14055. char crypt ();
  14056. int
  14057. main ()
  14058. {
  14059. return crypt ();
  14060. ;
  14061. return 0;
  14062. }
  14063. _ACEOF
  14064. for ac_lib in '' crypt; do
  14065. if test -z "$ac_lib"; then
  14066. ac_res="none required"
  14067. else
  14068. ac_res=-l$ac_lib
  14069. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14070. fi
  14071. if ac_fn_c_try_link "$LINENO"; then :
  14072. ac_cv_search_crypt=$ac_res
  14073. fi
  14074. rm -f core conftest.err conftest.$ac_objext \
  14075. conftest$ac_exeext
  14076. if ${ac_cv_search_crypt+:} false; then :
  14077. break
  14078. fi
  14079. done
  14080. if ${ac_cv_search_crypt+:} false; then :
  14081. else
  14082. ac_cv_search_crypt=no
  14083. fi
  14084. rm conftest.$ac_ext
  14085. LIBS=$ac_func_search_save_LIBS
  14086. fi
  14087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
  14088. $as_echo "$ac_cv_search_crypt" >&6; }
  14089. ac_res=$ac_cv_search_crypt
  14090. if test "$ac_res" != no; then :
  14091. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14092. for ac_header in crypt.h
  14093. do :
  14094. ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
  14095. if test "x$ac_cv_header_crypt_h" = xyes; then :
  14096. cat >>confdefs.h <<_ACEOF
  14097. @%:@define HAVE_CRYPT_H 1
  14098. _ACEOF
  14099. $as_echo "@%:@define HAVE_CRYPT_H 1" >>confdefs.h
  14100. fi
  14101. done
  14102. $as_echo "@%:@define HAVE_LIBCRYPT 1" >>confdefs.h
  14103. if test "$ac_cv_search_crypt" != no; then
  14104. test "$ac_cv_search_crypt" = "none required" || CRYPT_LIB="$ac_cv_search_crypt"
  14105. fi
  14106. fi
  14107. LIBS=$save_LIBS
  14108. save_LIBS=$LIBS
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfilev" >&5
  14110. $as_echo_n "checking for library containing sendfilev... " >&6; }
  14111. if ${ac_cv_search_sendfilev+:} false; then :
  14112. $as_echo_n "(cached) " >&6
  14113. else
  14114. ac_func_search_save_LIBS=$LIBS
  14115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14116. /* end confdefs.h. */
  14117. /* Override any GCC internal prototype to avoid an error.
  14118. Use char because int might match the return type of a GCC
  14119. builtin and then its argument prototype would still apply. */
  14120. #ifdef __cplusplus
  14121. extern "C"
  14122. #endif
  14123. char sendfilev ();
  14124. int
  14125. main ()
  14126. {
  14127. return sendfilev ();
  14128. ;
  14129. return 0;
  14130. }
  14131. _ACEOF
  14132. for ac_lib in '' sendfile; do
  14133. if test -z "$ac_lib"; then
  14134. ac_res="none required"
  14135. else
  14136. ac_res=-l$ac_lib
  14137. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14138. fi
  14139. if ac_fn_c_try_link "$LINENO"; then :
  14140. ac_cv_search_sendfilev=$ac_res
  14141. fi
  14142. rm -f core conftest.err conftest.$ac_objext \
  14143. conftest$ac_exeext
  14144. if ${ac_cv_search_sendfilev+:} false; then :
  14145. break
  14146. fi
  14147. done
  14148. if ${ac_cv_search_sendfilev+:} false; then :
  14149. else
  14150. ac_cv_search_sendfilev=no
  14151. fi
  14152. rm conftest.$ac_ext
  14153. LIBS=$ac_func_search_save_LIBS
  14154. fi
  14155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfilev" >&5
  14156. $as_echo "$ac_cv_search_sendfilev" >&6; }
  14157. ac_res=$ac_cv_search_sendfilev
  14158. if test "$ac_res" != no; then :
  14159. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14160. if test "$ac_cv_search_sendfilev" != no; then
  14161. test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev"
  14162. $as_echo "@%:@define HAVE_SENDFILEV 1" >>confdefs.h
  14163. fi
  14164. fi
  14165. LIBS=$save_LIBS
  14166. case $host_os in
  14167. *mingw* ) LIBS="$LIBS -lwsock32";;
  14168. * ) ;;
  14169. esac
  14170. for ac_func in dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
  14171. strdup strerror strstr strtol sendfile getopt socket lstat \
  14172. gethostbyname poll epoll_ctl getrlimit chroot \
  14173. getuid select signal pathconf madvise posix_fadvise posix_madvise \
  14174. writev sigaction sendfile64 send_file kqueue port_create localtime_r gmtime_r
  14175. do :
  14176. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14177. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14178. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14179. cat >>confdefs.h <<_ACEOF
  14180. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14181. _ACEOF
  14182. fi
  14183. done
  14184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Large File System support" >&5
  14185. $as_echo_n "checking for Large File System support... " >&6; }
  14186. @%:@ Check whether --enable-lfs was given.
  14187. if test "${enable_lfs+set}" = set; then :
  14188. enableval=$enable_lfs; case "${enableval}" in
  14189. yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;;
  14190. no) ;;
  14191. *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;;
  14192. esac
  14193. else
  14194. CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
  14195. enable_lfs=yes
  14196. fi
  14197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  14198. $as_echo "$enableval" >&6; }
  14199. # The cast to long int works around a bug in the HP C Compiler
  14200. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14201. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14202. # This bug is HP SR number 8606223364.
  14203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14204. $as_echo_n "checking size of long... " >&6; }
  14205. if ${ac_cv_sizeof_long+:} false; then :
  14206. $as_echo_n "(cached) " >&6
  14207. else
  14208. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14209. else
  14210. if test "$ac_cv_type_long" = yes; then
  14211. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14213. as_fn_error 77 "cannot compute sizeof (long)
  14214. See \`config.log' for more details" "$LINENO" 5; }
  14215. else
  14216. ac_cv_sizeof_long=0
  14217. fi
  14218. fi
  14219. fi
  14220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14221. $as_echo "$ac_cv_sizeof_long" >&6; }
  14222. cat >>confdefs.h <<_ACEOF
  14223. @%:@define SIZEOF_LONG $ac_cv_sizeof_long
  14224. _ACEOF
  14225. # The cast to long int works around a bug in the HP C Compiler
  14226. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14227. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14228. # This bug is HP SR number 8606223364.
  14229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  14230. $as_echo_n "checking size of off_t... " >&6; }
  14231. if ${ac_cv_sizeof_off_t+:} false; then :
  14232. $as_echo_n "(cached) " >&6
  14233. else
  14234. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  14235. else
  14236. if test "$ac_cv_type_off_t" = yes; then
  14237. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14239. as_fn_error 77 "cannot compute sizeof (off_t)
  14240. See \`config.log' for more details" "$LINENO" 5; }
  14241. else
  14242. ac_cv_sizeof_off_t=0
  14243. fi
  14244. fi
  14245. fi
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  14247. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  14248. cat >>confdefs.h <<_ACEOF
  14249. @%:@define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  14250. _ACEOF
  14251. if test "x$ac_cv_func_sendfile" = xyes; then
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sendfile works" >&5
  14253. $as_echo_n "checking if sendfile works... " >&6; }
  14254. if test "x$cross_compiling" = xno; then
  14255. if test "$cross_compiling" = yes; then :
  14256. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14257. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14258. as_fn_error $? "cannot run test program while cross compiling
  14259. See \`config.log' for more details" "$LINENO" 5; }
  14260. else
  14261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14262. /* end confdefs.h. */
  14263. #ifdef HAVE_SYS_SENDFILE_H
  14264. #include <sys/sendfile.h>
  14265. #endif /* HAVE_SYS_SENDFILE_H */
  14266. #include <errno.h>
  14267. int main() {
  14268. int o = 0;
  14269. if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1;
  14270. return 0;
  14271. }
  14272. _ACEOF
  14273. if ac_fn_c_try_run "$LINENO"; then :
  14274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14275. $as_echo "yes" >&6; }
  14276. else
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14278. $as_echo "no" >&6; }
  14279. $as_echo "@%:@define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
  14280. fi
  14281. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14282. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14283. fi
  14284. else
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14286. $as_echo "no" >&6; }
  14287. $as_echo "@%:@define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
  14288. fi
  14289. fi
  14290. @%:@ Check whether --enable-ipv6 was given.
  14291. if test "${enable_ipv6+set}" = set; then :
  14292. enableval=$enable_ipv6; case "${enableval}" in
  14293. yes) ipv6=true ;;
  14294. no) ipv6=false ;;
  14295. *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
  14296. esac
  14297. else
  14298. ipv6=true
  14299. fi
  14300. if test x$ipv6 = xtrue; then
  14301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
  14302. $as_echo_n "checking for IPv6 support... " >&6; }
  14303. if ${ac_cv_ipv6_support+:} false; then :
  14304. $as_echo_n "(cached) " >&6
  14305. else
  14306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14307. /* end confdefs.h. */
  14308. #include <sys/types.h>
  14309. #include <sys/socket.h>
  14310. #include <netinet/in.h>
  14311. int
  14312. main ()
  14313. {
  14314. struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
  14315. ;
  14316. return 0;
  14317. }
  14318. _ACEOF
  14319. if ac_fn_c_try_link "$LINENO"; then :
  14320. ac_cv_ipv6_support=yes
  14321. else
  14322. ac_cv_ipv6_support=no
  14323. fi
  14324. rm -f core conftest.err conftest.$ac_objext \
  14325. conftest$ac_exeext conftest.$ac_ext
  14326. fi
  14327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
  14328. $as_echo "$ac_cv_ipv6_support" >&6; }
  14329. if test "$ac_cv_ipv6_support" = yes; then
  14330. $as_echo "@%:@define HAVE_IPV6 1" >>confdefs.h
  14331. fi
  14332. fi
  14333. # disable mmap by default; if a mmapped file gets truncated, the process gets a SIGBUS signal
  14334. # on reading the truncated area which we can't handle (yet).
  14335. # lighttpd may always use mmap with files it owns (created tmp files)
  14336. @%:@ Check whether --enable-mmap was given.
  14337. if test "${enable_mmap+set}" = set; then :
  14338. enableval=$enable_mmap; case "${enableval}" in
  14339. yes) mmap=true ;;
  14340. no) mmap=false ;;
  14341. *) as_fn_error $? "bad value ${enableval} for --enable-mmap" "$LINENO" 5 ;;
  14342. esac
  14343. else
  14344. mmap=false
  14345. fi
  14346. if test x$mmap = xtrue; then
  14347. $as_echo "@%:@define ENABLE_MMAP 1" >>confdefs.h
  14348. fi
  14349. if test "x$cross_compiling" = xyes; then
  14350. CROSS_COMPILING_TRUE=
  14351. CROSS_COMPILING_FALSE='#'
  14352. else
  14353. CROSS_COMPILING_TRUE='#'
  14354. CROSS_COMPILING_FALSE=
  14355. fi
  14356. fastcgi_found=no
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGI_Accept in -lfcgi" >&5
  14358. $as_echo_n "checking for FCGI_Accept in -lfcgi... " >&6; }
  14359. if ${ac_cv_lib_fcgi_FCGI_Accept+:} false; then :
  14360. $as_echo_n "(cached) " >&6
  14361. else
  14362. ac_check_lib_save_LIBS=$LIBS
  14363. LIBS="-lfcgi $LIBS"
  14364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14365. /* end confdefs.h. */
  14366. /* Override any GCC internal prototype to avoid an error.
  14367. Use char because int might match the return type of a GCC
  14368. builtin and then its argument prototype would still apply. */
  14369. #ifdef __cplusplus
  14370. extern "C"
  14371. #endif
  14372. char FCGI_Accept ();
  14373. int
  14374. main ()
  14375. {
  14376. return FCGI_Accept ();
  14377. ;
  14378. return 0;
  14379. }
  14380. _ACEOF
  14381. if ac_fn_c_try_link "$LINENO"; then :
  14382. ac_cv_lib_fcgi_FCGI_Accept=yes
  14383. else
  14384. ac_cv_lib_fcgi_FCGI_Accept=no
  14385. fi
  14386. rm -f core conftest.err conftest.$ac_objext \
  14387. conftest$ac_exeext conftest.$ac_ext
  14388. LIBS=$ac_check_lib_save_LIBS
  14389. fi
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcgi_FCGI_Accept" >&5
  14391. $as_echo "$ac_cv_lib_fcgi_FCGI_Accept" >&6; }
  14392. if test "x$ac_cv_lib_fcgi_FCGI_Accept" = xyes; then :
  14393. for ac_header in fastcgi.h fastcgi/fastcgi.h
  14394. do :
  14395. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14396. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14397. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14398. cat >>confdefs.h <<_ACEOF
  14399. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14400. _ACEOF
  14401. fastcgi_found=yes
  14402. fi
  14403. done
  14404. fi
  14405. if test "x$fastcgi_found" = xyes; then
  14406. CHECK_WITH_FASTCGI_TRUE=
  14407. CHECK_WITH_FASTCGI_FALSE='#'
  14408. else
  14409. CHECK_WITH_FASTCGI_TRUE='#'
  14410. CHECK_WITH_FASTCGI_FALSE=
  14411. fi
  14412. if test "${GCC}" = "yes"; then
  14413. CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
  14414. fi
  14415. @%:@ Check whether --enable-extra-warnings was given.
  14416. if test "${enable_extra_warnings+set}" = set; then :
  14417. enableval=$enable_extra_warnings; case "${enableval}" in
  14418. yes) extrawarnings=true ;;
  14419. no) extrawarnings=false ;;
  14420. *) as_fn_error $? "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5 ;;
  14421. esac
  14422. else
  14423. extrawarnings=false
  14424. fi
  14425. if test x$extrawarnings = xtrue; then
  14426. CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -Wformat-security"
  14427. fi
  14428. LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
  14429. cat >>confdefs.h <<_ACEOF
  14430. @%:@define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
  14431. _ACEOF
  14432. ac_config_files="$ac_config_files Makefile src/Makefile doc/config/conf.d/Makefile doc/config/vhosts.d/Makefile doc/config/Makefile doc/scripts/Makefile doc/initscripts/Makefile doc/systemd/Makefile doc/outdated/Makefile doc/Makefile tests/Makefile tests/docroot/Makefile tests/docroot/123/Makefile tests/docroot/www/Makefile tests/docroot/www/go/Makefile tests/docroot/www/indexfile/Makefile tests/docroot/www/expire/Makefile distribute.sh"
  14433. cat >confcache <<\_ACEOF
  14434. # This file is a shell script that caches the results of configure
  14435. # tests run on this system so they can be shared between configure
  14436. # scripts and configure runs, see configure's option --config-cache.
  14437. # It is not useful on other systems. If it contains results you don't
  14438. # want to keep, you may remove or edit it.
  14439. #
  14440. # config.status only pays attention to the cache file if you give it
  14441. # the --recheck option to rerun configure.
  14442. #
  14443. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14444. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14445. # following values.
  14446. _ACEOF
  14447. # The following way of writing the cache mishandles newlines in values,
  14448. # but we know of no workaround that is simple, portable, and efficient.
  14449. # So, we kill variables containing newlines.
  14450. # Ultrix sh set writes to stderr and can't be redirected directly,
  14451. # and sets the high bit in the cache file unless we assign to the vars.
  14452. (
  14453. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14454. eval ac_val=\$$ac_var
  14455. case $ac_val in #(
  14456. *${as_nl}*)
  14457. case $ac_var in #(
  14458. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14459. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14460. esac
  14461. case $ac_var in #(
  14462. _ | IFS | as_nl) ;; #(
  14463. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14464. *) { eval $ac_var=; unset $ac_var;} ;;
  14465. esac ;;
  14466. esac
  14467. done
  14468. (set) 2>&1 |
  14469. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14470. *${as_nl}ac_space=\ *)
  14471. # `set' does not quote correctly, so add quotes: double-quote
  14472. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14473. sed -n \
  14474. "s/'/'\\\\''/g;
  14475. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14476. ;; #(
  14477. *)
  14478. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14479. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14480. ;;
  14481. esac |
  14482. sort
  14483. ) |
  14484. sed '
  14485. /^ac_cv_env_/b end
  14486. t clear
  14487. :clear
  14488. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14489. t end
  14490. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14491. :end' >>confcache
  14492. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14493. if test -w "$cache_file"; then
  14494. if test "x$cache_file" != "x/dev/null"; then
  14495. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14496. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14497. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14498. cat confcache >"$cache_file"
  14499. else
  14500. case $cache_file in #(
  14501. */* | ?:*)
  14502. mv -f confcache "$cache_file"$$ &&
  14503. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14504. *)
  14505. mv -f confcache "$cache_file" ;;
  14506. esac
  14507. fi
  14508. fi
  14509. else
  14510. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14511. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14512. fi
  14513. fi
  14514. rm -f confcache
  14515. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14516. # Let make expand exec_prefix.
  14517. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14518. DEFS=-DHAVE_CONFIG_H
  14519. ac_libobjs=
  14520. ac_ltlibobjs=
  14521. U=
  14522. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  14523. # 1. Remove the extension, and $U if already installed.
  14524. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14525. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14526. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14527. # will be set to the directory where LIBOBJS objects are built.
  14528. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14529. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14530. done
  14531. LIB@&t@OBJS=$ac_libobjs
  14532. LTLIBOBJS=$ac_ltlibobjs
  14533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14534. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14535. if test -n "$am_sleep_pid"; then
  14536. # Hide warnings about reused PIDs.
  14537. wait $am_sleep_pid 2>/dev/null
  14538. fi
  14539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14540. $as_echo "done" >&6; }
  14541. if test -n "$EXEEXT"; then
  14542. am__EXEEXT_TRUE=
  14543. am__EXEEXT_FALSE='#'
  14544. else
  14545. am__EXEEXT_TRUE='#'
  14546. am__EXEEXT_FALSE=
  14547. fi
  14548. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14549. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14550. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14551. fi
  14552. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14553. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14554. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14555. fi
  14556. if test -z "${NO_RDYNAMIC_TRUE}" && test -z "${NO_RDYNAMIC_FALSE}"; then
  14557. as_fn_error $? "conditional \"NO_RDYNAMIC\" was never defined.
  14558. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14559. fi
  14560. if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
  14561. as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
  14562. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14563. fi
  14564. if test -z "${CHECK_WITH_FASTCGI_TRUE}" && test -z "${CHECK_WITH_FASTCGI_FALSE}"; then
  14565. as_fn_error $? "conditional \"CHECK_WITH_FASTCGI\" was never defined.
  14566. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14567. fi
  14568. : "${CONFIG_STATUS=./config.status}"
  14569. ac_write_fail=0
  14570. ac_clean_files_save=$ac_clean_files
  14571. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14572. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14573. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14574. as_write_fail=0
  14575. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14576. #! $SHELL
  14577. # Generated by $as_me.
  14578. # Run this file to recreate the current configuration.
  14579. # Compiler output produced by configure, useful for debugging
  14580. # configure, is in config.log if it exists.
  14581. debug=false
  14582. ac_cs_recheck=false
  14583. ac_cs_silent=false
  14584. SHELL=\${CONFIG_SHELL-$SHELL}
  14585. export SHELL
  14586. _ASEOF
  14587. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14588. ## -------------------- ##
  14589. ## M4sh Initialization. ##
  14590. ## -------------------- ##
  14591. # Be more Bourne compatible
  14592. DUALCASE=1; export DUALCASE # for MKS sh
  14593. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14594. emulate sh
  14595. NULLCMD=:
  14596. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14597. # is contrary to our usage. Disable this feature.
  14598. alias -g '${1+"$@"}'='"$@"'
  14599. setopt NO_GLOB_SUBST
  14600. else
  14601. case `(set -o) 2>/dev/null` in @%:@(
  14602. *posix*) :
  14603. set -o posix ;; @%:@(
  14604. *) :
  14605. ;;
  14606. esac
  14607. fi
  14608. as_nl='
  14609. '
  14610. export as_nl
  14611. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14612. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14613. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14614. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14615. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14616. # but without wasting forks for bash or zsh.
  14617. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14618. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14619. as_echo='print -r --'
  14620. as_echo_n='print -rn --'
  14621. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14622. as_echo='printf %s\n'
  14623. as_echo_n='printf %s'
  14624. else
  14625. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14626. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14627. as_echo_n='/usr/ucb/echo -n'
  14628. else
  14629. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14630. as_echo_n_body='eval
  14631. arg=$1;
  14632. case $arg in @%:@(
  14633. *"$as_nl"*)
  14634. expr "X$arg" : "X\\(.*\\)$as_nl";
  14635. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14636. esac;
  14637. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14638. '
  14639. export as_echo_n_body
  14640. as_echo_n='sh -c $as_echo_n_body as_echo'
  14641. fi
  14642. export as_echo_body
  14643. as_echo='sh -c $as_echo_body as_echo'
  14644. fi
  14645. # The user is always right.
  14646. if test "${PATH_SEPARATOR+set}" != set; then
  14647. PATH_SEPARATOR=:
  14648. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14649. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14650. PATH_SEPARATOR=';'
  14651. }
  14652. fi
  14653. # IFS
  14654. # We need space, tab and new line, in precisely that order. Quoting is
  14655. # there to prevent editors from complaining about space-tab.
  14656. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14657. # splitting by setting IFS to empty value.)
  14658. IFS=" "" $as_nl"
  14659. # Find who we are. Look in the path if we contain no directory separator.
  14660. as_myself=
  14661. case $0 in @%:@((
  14662. *[\\/]* ) as_myself=$0 ;;
  14663. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14664. for as_dir in $PATH
  14665. do
  14666. IFS=$as_save_IFS
  14667. test -z "$as_dir" && as_dir=.
  14668. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14669. done
  14670. IFS=$as_save_IFS
  14671. ;;
  14672. esac
  14673. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14674. # in which case we are not to be found in the path.
  14675. if test "x$as_myself" = x; then
  14676. as_myself=$0
  14677. fi
  14678. if test ! -f "$as_myself"; then
  14679. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14680. exit 1
  14681. fi
  14682. # Unset variables that we do not need and which cause bugs (e.g. in
  14683. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14684. # suppresses any "Segmentation fault" message there. '((' could
  14685. # trigger a bug in pdksh 5.2.14.
  14686. for as_var in BASH_ENV ENV MAIL MAILPATH
  14687. do eval test x\${$as_var+set} = xset \
  14688. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14689. done
  14690. PS1='$ '
  14691. PS2='> '
  14692. PS4='+ '
  14693. # NLS nuisances.
  14694. LC_ALL=C
  14695. export LC_ALL
  14696. LANGUAGE=C
  14697. export LANGUAGE
  14698. # CDPATH.
  14699. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14700. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  14701. @%:@ ----------------------------------------
  14702. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14703. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14704. @%:@ script with STATUS, using 1 if that was 0.
  14705. as_fn_error ()
  14706. {
  14707. as_status=$1; test $as_status -eq 0 && as_status=1
  14708. if test "$4"; then
  14709. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14710. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14711. fi
  14712. $as_echo "$as_me: error: $2" >&2
  14713. as_fn_exit $as_status
  14714. } @%:@ as_fn_error
  14715. @%:@ as_fn_set_status STATUS
  14716. @%:@ -----------------------
  14717. @%:@ Set @S|@? to STATUS, without forking.
  14718. as_fn_set_status ()
  14719. {
  14720. return $1
  14721. } @%:@ as_fn_set_status
  14722. @%:@ as_fn_exit STATUS
  14723. @%:@ -----------------
  14724. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14725. as_fn_exit ()
  14726. {
  14727. set +e
  14728. as_fn_set_status $1
  14729. exit $1
  14730. } @%:@ as_fn_exit
  14731. @%:@ as_fn_unset VAR
  14732. @%:@ ---------------
  14733. @%:@ Portably unset VAR.
  14734. as_fn_unset ()
  14735. {
  14736. { eval $1=; unset $1;}
  14737. }
  14738. as_unset=as_fn_unset
  14739. @%:@ as_fn_append VAR VALUE
  14740. @%:@ ----------------------
  14741. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  14742. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  14743. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  14744. @%:@ implementations.
  14745. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14746. eval 'as_fn_append ()
  14747. {
  14748. eval $1+=\$2
  14749. }'
  14750. else
  14751. as_fn_append ()
  14752. {
  14753. eval $1=\$$1\$2
  14754. }
  14755. fi # as_fn_append
  14756. @%:@ as_fn_arith ARG...
  14757. @%:@ ------------------
  14758. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  14759. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  14760. @%:@ must be portable across @S|@(()) and expr.
  14761. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14762. eval 'as_fn_arith ()
  14763. {
  14764. as_val=$(( $* ))
  14765. }'
  14766. else
  14767. as_fn_arith ()
  14768. {
  14769. as_val=`expr "$@" || test $? -eq 1`
  14770. }
  14771. fi # as_fn_arith
  14772. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14773. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14774. as_expr=expr
  14775. else
  14776. as_expr=false
  14777. fi
  14778. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14779. as_basename=basename
  14780. else
  14781. as_basename=false
  14782. fi
  14783. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14784. as_dirname=dirname
  14785. else
  14786. as_dirname=false
  14787. fi
  14788. as_me=`$as_basename -- "$0" ||
  14789. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14790. X"$0" : 'X\(//\)$' \| \
  14791. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14792. $as_echo X/"$0" |
  14793. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14794. s//\1/
  14795. q
  14796. }
  14797. /^X\/\(\/\/\)$/{
  14798. s//\1/
  14799. q
  14800. }
  14801. /^X\/\(\/\).*/{
  14802. s//\1/
  14803. q
  14804. }
  14805. s/.*/./; q'`
  14806. # Avoid depending upon Character Ranges.
  14807. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14808. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14809. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14810. as_cr_digits='0123456789'
  14811. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14812. ECHO_C= ECHO_N= ECHO_T=
  14813. case `echo -n x` in @%:@(((((
  14814. -n*)
  14815. case `echo 'xy\c'` in
  14816. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14817. xy) ECHO_C='\c';;
  14818. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14819. ECHO_T=' ';;
  14820. esac;;
  14821. *)
  14822. ECHO_N='-n';;
  14823. esac
  14824. rm -f conf$$ conf$$.exe conf$$.file
  14825. if test -d conf$$.dir; then
  14826. rm -f conf$$.dir/conf$$.file
  14827. else
  14828. rm -f conf$$.dir
  14829. mkdir conf$$.dir 2>/dev/null
  14830. fi
  14831. if (echo >conf$$.file) 2>/dev/null; then
  14832. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14833. as_ln_s='ln -s'
  14834. # ... but there are two gotchas:
  14835. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14836. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14837. # In both cases, we have to default to `cp -pR'.
  14838. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14839. as_ln_s='cp -pR'
  14840. elif ln conf$$.file conf$$ 2>/dev/null; then
  14841. as_ln_s=ln
  14842. else
  14843. as_ln_s='cp -pR'
  14844. fi
  14845. else
  14846. as_ln_s='cp -pR'
  14847. fi
  14848. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14849. rmdir conf$$.dir 2>/dev/null
  14850. @%:@ as_fn_mkdir_p
  14851. @%:@ -------------
  14852. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  14853. as_fn_mkdir_p ()
  14854. {
  14855. case $as_dir in #(
  14856. -*) as_dir=./$as_dir;;
  14857. esac
  14858. test -d "$as_dir" || eval $as_mkdir_p || {
  14859. as_dirs=
  14860. while :; do
  14861. case $as_dir in #(
  14862. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14863. *) as_qdir=$as_dir;;
  14864. esac
  14865. as_dirs="'$as_qdir' $as_dirs"
  14866. as_dir=`$as_dirname -- "$as_dir" ||
  14867. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14868. X"$as_dir" : 'X\(//\)[^/]' \| \
  14869. X"$as_dir" : 'X\(//\)$' \| \
  14870. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14871. $as_echo X"$as_dir" |
  14872. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14873. s//\1/
  14874. q
  14875. }
  14876. /^X\(\/\/\)[^/].*/{
  14877. s//\1/
  14878. q
  14879. }
  14880. /^X\(\/\/\)$/{
  14881. s//\1/
  14882. q
  14883. }
  14884. /^X\(\/\).*/{
  14885. s//\1/
  14886. q
  14887. }
  14888. s/.*/./; q'`
  14889. test -d "$as_dir" && break
  14890. done
  14891. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14892. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14893. } @%:@ as_fn_mkdir_p
  14894. if mkdir -p . 2>/dev/null; then
  14895. as_mkdir_p='mkdir -p "$as_dir"'
  14896. else
  14897. test -d ./-p && rmdir ./-p
  14898. as_mkdir_p=false
  14899. fi
  14900. @%:@ as_fn_executable_p FILE
  14901. @%:@ -----------------------
  14902. @%:@ Test if FILE is an executable regular file.
  14903. as_fn_executable_p ()
  14904. {
  14905. test -f "$1" && test -x "$1"
  14906. } @%:@ as_fn_executable_p
  14907. as_test_x='test -x'
  14908. as_executable_p=as_fn_executable_p
  14909. # Sed expression to map a string onto a valid CPP name.
  14910. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14911. # Sed expression to map a string onto a valid variable name.
  14912. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14913. exec 6>&1
  14914. ## ----------------------------------- ##
  14915. ## Main body of $CONFIG_STATUS script. ##
  14916. ## ----------------------------------- ##
  14917. _ASEOF
  14918. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14919. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14920. # Save the log message, to keep $0 and so on meaningful, and to
  14921. # report actual input values of CONFIG_FILES etc. instead of their
  14922. # values after options handling.
  14923. ac_log="
  14924. This file was extended by lighttpd $as_me 1.4.33, which was
  14925. generated by GNU Autoconf 2.69. Invocation command line was
  14926. CONFIG_FILES = $CONFIG_FILES
  14927. CONFIG_HEADERS = $CONFIG_HEADERS
  14928. CONFIG_LINKS = $CONFIG_LINKS
  14929. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14930. $ $0 $@
  14931. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14932. "
  14933. _ACEOF
  14934. case $ac_config_files in *"
  14935. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14936. esac
  14937. case $ac_config_headers in *"
  14938. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14939. esac
  14940. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14941. # Files that config.status was made for.
  14942. config_files="$ac_config_files"
  14943. config_headers="$ac_config_headers"
  14944. config_commands="$ac_config_commands"
  14945. _ACEOF
  14946. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14947. ac_cs_usage="\
  14948. \`$as_me' instantiates files and other configuration actions
  14949. from templates according to the current configuration. Unless the files
  14950. and actions are specified as TAGs, all are instantiated by default.
  14951. Usage: $0 [OPTION]... [TAG]...
  14952. -h, --help print this help, then exit
  14953. -V, --version print version number and configuration settings, then exit
  14954. --config print configuration, then exit
  14955. -q, --quiet, --silent
  14956. do not print progress messages
  14957. -d, --debug don't remove temporary files
  14958. --recheck update $as_me by reconfiguring in the same conditions
  14959. --file=FILE[:TEMPLATE]
  14960. instantiate the configuration file FILE
  14961. --header=FILE[:TEMPLATE]
  14962. instantiate the configuration header FILE
  14963. Configuration files:
  14964. $config_files
  14965. Configuration headers:
  14966. $config_headers
  14967. Configuration commands:
  14968. $config_commands
  14969. Report bugs to <contact@lighttpd.net>."
  14970. _ACEOF
  14971. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14972. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14973. ac_cs_version="\\
  14974. lighttpd config.status 1.4.33
  14975. configured by $0, generated by GNU Autoconf 2.69,
  14976. with options \\"\$ac_cs_config\\"
  14977. Copyright (C) 2012 Free Software Foundation, Inc.
  14978. This config.status script is free software; the Free Software Foundation
  14979. gives unlimited permission to copy, distribute and modify it."
  14980. ac_pwd='$ac_pwd'
  14981. srcdir='$srcdir'
  14982. INSTALL='$INSTALL'
  14983. MKDIR_P='$MKDIR_P'
  14984. AWK='$AWK'
  14985. test -n "\$AWK" || AWK=awk
  14986. _ACEOF
  14987. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14988. # The default lists apply if the user does not specify any file.
  14989. ac_need_defaults=:
  14990. while test $# != 0
  14991. do
  14992. case $1 in
  14993. --*=?*)
  14994. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14995. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14996. ac_shift=:
  14997. ;;
  14998. --*=)
  14999. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15000. ac_optarg=
  15001. ac_shift=:
  15002. ;;
  15003. *)
  15004. ac_option=$1
  15005. ac_optarg=$2
  15006. ac_shift=shift
  15007. ;;
  15008. esac
  15009. case $ac_option in
  15010. # Handling of the options.
  15011. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15012. ac_cs_recheck=: ;;
  15013. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15014. $as_echo "$ac_cs_version"; exit ;;
  15015. --config | --confi | --conf | --con | --co | --c )
  15016. $as_echo "$ac_cs_config"; exit ;;
  15017. --debug | --debu | --deb | --de | --d | -d )
  15018. debug=: ;;
  15019. --file | --fil | --fi | --f )
  15020. $ac_shift
  15021. case $ac_optarg in
  15022. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15023. '') as_fn_error $? "missing file argument" ;;
  15024. esac
  15025. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15026. ac_need_defaults=false;;
  15027. --header | --heade | --head | --hea )
  15028. $ac_shift
  15029. case $ac_optarg in
  15030. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15031. esac
  15032. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15033. ac_need_defaults=false;;
  15034. --he | --h)
  15035. # Conflict between --help and --header
  15036. as_fn_error $? "ambiguous option: \`$1'
  15037. Try \`$0 --help' for more information.";;
  15038. --help | --hel | -h )
  15039. $as_echo "$ac_cs_usage"; exit ;;
  15040. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15041. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15042. ac_cs_silent=: ;;
  15043. # This is an error.
  15044. -*) as_fn_error $? "unrecognized option: \`$1'
  15045. Try \`$0 --help' for more information." ;;
  15046. *) as_fn_append ac_config_targets " $1"
  15047. ac_need_defaults=false ;;
  15048. esac
  15049. shift
  15050. done
  15051. ac_configure_extra_args=
  15052. if $ac_cs_silent; then
  15053. exec 6>/dev/null
  15054. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15055. fi
  15056. _ACEOF
  15057. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15058. if \$ac_cs_recheck; then
  15059. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15060. shift
  15061. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15062. CONFIG_SHELL='$SHELL'
  15063. export CONFIG_SHELL
  15064. exec "\$@"
  15065. fi
  15066. _ACEOF
  15067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15068. exec 5>>config.log
  15069. {
  15070. echo
  15071. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  15072. @%:@@%:@ Running $as_me. @%:@@%:@
  15073. _ASBOX
  15074. $as_echo "$ac_log"
  15075. } >&5
  15076. _ACEOF
  15077. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15078. #
  15079. # INIT-COMMANDS
  15080. #
  15081. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15082. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15083. # if CDPATH is set.
  15084. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15085. sed_quote_subst='$sed_quote_subst'
  15086. double_quote_subst='$double_quote_subst'
  15087. delay_variable_subst='$delay_variable_subst'
  15088. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15089. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15090. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15091. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15092. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15093. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15094. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15095. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15096. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15097. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15098. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15099. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15100. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15101. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15102. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  15103. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15104. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15105. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15106. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15107. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15108. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15109. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15110. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15111. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15112. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15113. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15114. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15115. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15116. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15117. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15118. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15119. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15120. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15121. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15122. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15123. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15124. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15125. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15126. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15127. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15128. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15129. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15130. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15131. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15132. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15133. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15134. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15135. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15136. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15137. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15138. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15139. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15140. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15141. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15142. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15143. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15144. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  15145. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15146. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15147. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  15148. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15149. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15150. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  15151. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15152. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15153. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15154. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15155. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15156. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15157. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15158. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15159. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15160. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15161. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15162. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15163. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15164. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15165. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15166. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15167. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15168. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15169. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15170. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15171. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15172. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15173. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15174. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15175. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15176. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15177. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15178. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15179. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15180. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15181. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15182. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15183. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15184. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15185. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15186. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15187. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15188. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15189. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15190. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15191. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15192. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15193. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15194. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15195. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15196. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15197. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15198. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15199. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15200. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15201. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15202. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15203. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15204. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15205. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15206. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15207. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15208. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15209. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15210. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15211. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15212. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15213. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15214. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15215. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  15216. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  15217. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15218. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15219. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15220. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15221. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15222. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15223. LTCC='$LTCC'
  15224. LTCFLAGS='$LTCFLAGS'
  15225. compiler='$compiler_DEFAULT'
  15226. # A function that is used when there is no print builtin or printf.
  15227. func_fallback_echo ()
  15228. {
  15229. eval 'cat <<_LTECHO_EOF
  15230. \$1
  15231. _LTECHO_EOF'
  15232. }
  15233. # Quote evaled strings.
  15234. for var in SED \
  15235. GREP \
  15236. EGREP \
  15237. FGREP \
  15238. SHELL \
  15239. ECHO \
  15240. LD \
  15241. PATH_SEPARATOR \
  15242. NM \
  15243. LN_S \
  15244. lt_SP2NL \
  15245. lt_NL2SP \
  15246. reload_flag \
  15247. OBJDUMP \
  15248. deplibs_check_method \
  15249. file_magic_cmd \
  15250. file_magic_glob \
  15251. want_nocaseglob \
  15252. DLLTOOL \
  15253. sharedlib_from_linklib_cmd \
  15254. AR \
  15255. AR_FLAGS \
  15256. archiver_list_spec \
  15257. STRIP \
  15258. RANLIB \
  15259. CC \
  15260. CFLAGS \
  15261. compiler \
  15262. lt_cv_sys_global_symbol_pipe \
  15263. lt_cv_sys_global_symbol_to_cdecl \
  15264. lt_cv_sys_global_symbol_to_import \
  15265. lt_cv_sys_global_symbol_to_c_name_address \
  15266. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15267. lt_cv_nm_interface \
  15268. nm_file_list_spec \
  15269. lt_cv_truncate_bin \
  15270. lt_prog_compiler_no_builtin_flag \
  15271. lt_prog_compiler_pic \
  15272. lt_prog_compiler_wl \
  15273. lt_prog_compiler_static \
  15274. lt_cv_prog_compiler_c_o \
  15275. need_locks \
  15276. MANIFEST_TOOL \
  15277. DSYMUTIL \
  15278. NMEDIT \
  15279. LIPO \
  15280. OTOOL \
  15281. OTOOL64 \
  15282. shrext_cmds \
  15283. export_dynamic_flag_spec \
  15284. whole_archive_flag_spec \
  15285. compiler_needs_object \
  15286. with_gnu_ld \
  15287. allow_undefined_flag \
  15288. no_undefined_flag \
  15289. hardcode_libdir_flag_spec \
  15290. hardcode_libdir_separator \
  15291. exclude_expsyms \
  15292. include_expsyms \
  15293. file_list_spec \
  15294. variables_saved_for_relink \
  15295. libname_spec \
  15296. library_names_spec \
  15297. soname_spec \
  15298. install_override_mode \
  15299. finish_eval \
  15300. old_striplib \
  15301. striplib; do
  15302. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15303. *[\\\\\\\`\\"\\\$]*)
  15304. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15305. ;;
  15306. *)
  15307. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15308. ;;
  15309. esac
  15310. done
  15311. # Double-quote double-evaled strings.
  15312. for var in reload_cmds \
  15313. old_postinstall_cmds \
  15314. old_postuninstall_cmds \
  15315. old_archive_cmds \
  15316. extract_expsyms_cmds \
  15317. old_archive_from_new_cmds \
  15318. old_archive_from_expsyms_cmds \
  15319. archive_cmds \
  15320. archive_expsym_cmds \
  15321. module_cmds \
  15322. module_expsym_cmds \
  15323. export_symbols_cmds \
  15324. prelink_cmds \
  15325. postlink_cmds \
  15326. postinstall_cmds \
  15327. postuninstall_cmds \
  15328. finish_cmds \
  15329. sys_lib_search_path_spec \
  15330. configure_time_dlsearch_path \
  15331. configure_time_lt_sys_library_path; do
  15332. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15333. *[\\\\\\\`\\"\\\$]*)
  15334. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15335. ;;
  15336. *)
  15337. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15338. ;;
  15339. esac
  15340. done
  15341. ac_aux_dir='$ac_aux_dir'
  15342. # See if we are running on zsh, and set the options that allow our
  15343. # commands through without removal of \ escapes INIT.
  15344. if test -n "\${ZSH_VERSION+set}"; then
  15345. setopt NO_GLOB_SUBST
  15346. fi
  15347. PACKAGE='$PACKAGE'
  15348. VERSION='$VERSION'
  15349. RM='$RM'
  15350. ofile='$ofile'
  15351. _ACEOF
  15352. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15353. # Handling of arguments.
  15354. for ac_config_target in $ac_config_targets
  15355. do
  15356. case $ac_config_target in
  15357. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15358. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15359. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15360. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15361. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15362. "doc/config/conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/conf.d/Makefile" ;;
  15363. "doc/config/vhosts.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/vhosts.d/Makefile" ;;
  15364. "doc/config/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/Makefile" ;;
  15365. "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
  15366. "doc/initscripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/initscripts/Makefile" ;;
  15367. "doc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES doc/systemd/Makefile" ;;
  15368. "doc/outdated/Makefile") CONFIG_FILES="$CONFIG_FILES doc/outdated/Makefile" ;;
  15369. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  15370. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  15371. "tests/docroot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/Makefile" ;;
  15372. "tests/docroot/123/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/123/Makefile" ;;
  15373. "tests/docroot/www/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/Makefile" ;;
  15374. "tests/docroot/www/go/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/go/Makefile" ;;
  15375. "tests/docroot/www/indexfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/indexfile/Makefile" ;;
  15376. "tests/docroot/www/expire/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/expire/Makefile" ;;
  15377. "distribute.sh") CONFIG_FILES="$CONFIG_FILES distribute.sh" ;;
  15378. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15379. esac
  15380. done
  15381. # If the user did not use the arguments to specify the items to instantiate,
  15382. # then the envvar interface is used. Set only those that are not.
  15383. # We use the long form for the default assignment because of an extremely
  15384. # bizarre bug on SunOS 4.1.3.
  15385. if $ac_need_defaults; then
  15386. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15387. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15388. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15389. fi
  15390. # Have a temporary directory for convenience. Make it in the build tree
  15391. # simply because there is no reason against having it here, and in addition,
  15392. # creating and moving files from /tmp can sometimes cause problems.
  15393. # Hook for its removal unless debugging.
  15394. # Note that there is a small window in which the directory will not be cleaned:
  15395. # after its creation but before its name has been assigned to `$tmp'.
  15396. $debug ||
  15397. {
  15398. tmp= ac_tmp=
  15399. trap 'exit_status=$?
  15400. : "${ac_tmp:=$tmp}"
  15401. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15402. ' 0
  15403. trap 'as_fn_exit 1' 1 2 13 15
  15404. }
  15405. # Create a (secure) tmp directory for tmp files.
  15406. {
  15407. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15408. test -d "$tmp"
  15409. } ||
  15410. {
  15411. tmp=./conf$$-$RANDOM
  15412. (umask 077 && mkdir "$tmp")
  15413. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15414. ac_tmp=$tmp
  15415. # Set up the scripts for CONFIG_FILES section.
  15416. # No need to generate them if there are no CONFIG_FILES.
  15417. # This happens for instance with `./config.status config.h'.
  15418. if test -n "$CONFIG_FILES"; then
  15419. ac_cr=`echo X | tr X '\015'`
  15420. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15421. # But we know of no other shell where ac_cr would be empty at this
  15422. # point, so we can use a bashism as a fallback.
  15423. if test "x$ac_cr" = x; then
  15424. eval ac_cr=\$\'\\r\'
  15425. fi
  15426. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15427. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15428. ac_cs_awk_cr='\\r'
  15429. else
  15430. ac_cs_awk_cr=$ac_cr
  15431. fi
  15432. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15433. _ACEOF
  15434. {
  15435. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15436. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15437. echo "_ACEOF"
  15438. } >conf$$subs.sh ||
  15439. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15440. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15441. ac_delim='%!_!# '
  15442. for ac_last_try in false false false false false :; do
  15443. . ./conf$$subs.sh ||
  15444. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15445. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15446. if test $ac_delim_n = $ac_delim_num; then
  15447. break
  15448. elif $ac_last_try; then
  15449. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15450. else
  15451. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15452. fi
  15453. done
  15454. rm -f conf$$subs.sh
  15455. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15456. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15457. _ACEOF
  15458. sed -n '
  15459. h
  15460. s/^/S["/; s/!.*/"]=/
  15461. p
  15462. g
  15463. s/^[^!]*!//
  15464. :repl
  15465. t repl
  15466. s/'"$ac_delim"'$//
  15467. t delim
  15468. :nl
  15469. h
  15470. s/\(.\{148\}\)..*/\1/
  15471. t more1
  15472. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15473. p
  15474. n
  15475. b repl
  15476. :more1
  15477. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15478. p
  15479. g
  15480. s/.\{148\}//
  15481. t nl
  15482. :delim
  15483. h
  15484. s/\(.\{148\}\)..*/\1/
  15485. t more2
  15486. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15487. p
  15488. b
  15489. :more2
  15490. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15491. p
  15492. g
  15493. s/.\{148\}//
  15494. t delim
  15495. ' <conf$$subs.awk | sed '
  15496. /^[^""]/{
  15497. N
  15498. s/\n//
  15499. }
  15500. ' >>$CONFIG_STATUS || ac_write_fail=1
  15501. rm -f conf$$subs.awk
  15502. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15503. _ACAWK
  15504. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15505. for (key in S) S_is_set[key] = 1
  15506. FS = ""
  15507. }
  15508. {
  15509. line = $ 0
  15510. nfields = split(line, field, "@")
  15511. substed = 0
  15512. len = length(field[1])
  15513. for (i = 2; i < nfields; i++) {
  15514. key = field[i]
  15515. keylen = length(key)
  15516. if (S_is_set[key]) {
  15517. value = S[key]
  15518. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15519. len += length(value) + length(field[++i])
  15520. substed = 1
  15521. } else
  15522. len += 1 + keylen
  15523. }
  15524. print line
  15525. }
  15526. _ACAWK
  15527. _ACEOF
  15528. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15529. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15530. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15531. else
  15532. cat
  15533. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15534. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15535. _ACEOF
  15536. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15537. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15538. # trailing colons and then remove the whole line if VPATH becomes empty
  15539. # (actually we leave an empty line to preserve line numbers).
  15540. if test "x$srcdir" = x.; then
  15541. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15542. h
  15543. s///
  15544. s/^/:/
  15545. s/[ ]*$/:/
  15546. s/:\$(srcdir):/:/g
  15547. s/:\${srcdir}:/:/g
  15548. s/:@srcdir@:/:/g
  15549. s/^:*//
  15550. s/:*$//
  15551. x
  15552. s/\(=[ ]*\).*/\1/
  15553. G
  15554. s/\n//
  15555. s/^[^=]*=[ ]*$//
  15556. }'
  15557. fi
  15558. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15559. fi # test -n "$CONFIG_FILES"
  15560. # Set up the scripts for CONFIG_HEADERS section.
  15561. # No need to generate them if there are no CONFIG_HEADERS.
  15562. # This happens for instance with `./config.status Makefile'.
  15563. if test -n "$CONFIG_HEADERS"; then
  15564. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15565. BEGIN {
  15566. _ACEOF
  15567. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15568. # here-document in config.status, that substitutes the proper values into
  15569. # config.h.in to produce config.h.
  15570. # Create a delimiter string that does not exist in confdefs.h, to ease
  15571. # handling of long lines.
  15572. ac_delim='%!_!# '
  15573. for ac_last_try in false false :; do
  15574. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15575. if test -z "$ac_tt"; then
  15576. break
  15577. elif $ac_last_try; then
  15578. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15579. else
  15580. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15581. fi
  15582. done
  15583. # For the awk script, D is an array of macro values keyed by name,
  15584. # likewise P contains macro parameters if any. Preserve backslash
  15585. # newline sequences.
  15586. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15587. sed -n '
  15588. s/.\{148\}/&'"$ac_delim"'/g
  15589. t rset
  15590. :rset
  15591. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15592. t def
  15593. d
  15594. :def
  15595. s/\\$//
  15596. t bsnl
  15597. s/["\\]/\\&/g
  15598. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15599. D["\1"]=" \3"/p
  15600. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15601. d
  15602. :bsnl
  15603. s/["\\]/\\&/g
  15604. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15605. D["\1"]=" \3\\\\\\n"\\/p
  15606. t cont
  15607. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15608. t cont
  15609. d
  15610. :cont
  15611. n
  15612. s/.\{148\}/&'"$ac_delim"'/g
  15613. t clear
  15614. :clear
  15615. s/\\$//
  15616. t bsnlc
  15617. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15618. d
  15619. :bsnlc
  15620. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15621. b cont
  15622. ' <confdefs.h | sed '
  15623. s/'"$ac_delim"'/"\\\
  15624. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15625. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15626. for (key in D) D_is_set[key] = 1
  15627. FS = ""
  15628. }
  15629. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15630. line = \$ 0
  15631. split(line, arg, " ")
  15632. if (arg[1] == "#") {
  15633. defundef = arg[2]
  15634. mac1 = arg[3]
  15635. } else {
  15636. defundef = substr(arg[1], 2)
  15637. mac1 = arg[2]
  15638. }
  15639. split(mac1, mac2, "(") #)
  15640. macro = mac2[1]
  15641. prefix = substr(line, 1, index(line, defundef) - 1)
  15642. if (D_is_set[macro]) {
  15643. # Preserve the white space surrounding the "#".
  15644. print prefix "define", macro P[macro] D[macro]
  15645. next
  15646. } else {
  15647. # Replace #undef with comments. This is necessary, for example,
  15648. # in the case of _POSIX_SOURCE, which is predefined and required
  15649. # on some systems where configure will not decide to define it.
  15650. if (defundef == "undef") {
  15651. print "/*", prefix defundef, macro, "*/"
  15652. next
  15653. }
  15654. }
  15655. }
  15656. { print }
  15657. _ACAWK
  15658. _ACEOF
  15659. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15660. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15661. fi # test -n "$CONFIG_HEADERS"
  15662. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15663. shift
  15664. for ac_tag
  15665. do
  15666. case $ac_tag in
  15667. :[FHLC]) ac_mode=$ac_tag; continue;;
  15668. esac
  15669. case $ac_mode$ac_tag in
  15670. :[FHL]*:*);;
  15671. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15672. :[FH]-) ac_tag=-:-;;
  15673. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15674. esac
  15675. ac_save_IFS=$IFS
  15676. IFS=:
  15677. set x $ac_tag
  15678. IFS=$ac_save_IFS
  15679. shift
  15680. ac_file=$1
  15681. shift
  15682. case $ac_mode in
  15683. :L) ac_source=$1;;
  15684. :[FH])
  15685. ac_file_inputs=
  15686. for ac_f
  15687. do
  15688. case $ac_f in
  15689. -) ac_f="$ac_tmp/stdin";;
  15690. *) # Look for the file first in the build tree, then in the source tree
  15691. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15692. # because $ac_f cannot contain `:'.
  15693. test -f "$ac_f" ||
  15694. case $ac_f in
  15695. [\\/$]*) false;;
  15696. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15697. esac ||
  15698. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15699. esac
  15700. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15701. as_fn_append ac_file_inputs " '$ac_f'"
  15702. done
  15703. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15704. # use $as_me), people would be surprised to read:
  15705. # /* config.h. Generated by config.status. */
  15706. configure_input='Generated from '`
  15707. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15708. `' by configure.'
  15709. if test x"$ac_file" != x-; then
  15710. configure_input="$ac_file. $configure_input"
  15711. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15712. $as_echo "$as_me: creating $ac_file" >&6;}
  15713. fi
  15714. # Neutralize special characters interpreted by sed in replacement strings.
  15715. case $configure_input in #(
  15716. *\&* | *\|* | *\\* )
  15717. ac_sed_conf_input=`$as_echo "$configure_input" |
  15718. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15719. *) ac_sed_conf_input=$configure_input;;
  15720. esac
  15721. case $ac_tag in
  15722. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15723. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15724. esac
  15725. ;;
  15726. esac
  15727. ac_dir=`$as_dirname -- "$ac_file" ||
  15728. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15729. X"$ac_file" : 'X\(//\)[^/]' \| \
  15730. X"$ac_file" : 'X\(//\)$' \| \
  15731. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15732. $as_echo X"$ac_file" |
  15733. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15734. s//\1/
  15735. q
  15736. }
  15737. /^X\(\/\/\)[^/].*/{
  15738. s//\1/
  15739. q
  15740. }
  15741. /^X\(\/\/\)$/{
  15742. s//\1/
  15743. q
  15744. }
  15745. /^X\(\/\).*/{
  15746. s//\1/
  15747. q
  15748. }
  15749. s/.*/./; q'`
  15750. as_dir="$ac_dir"; as_fn_mkdir_p
  15751. ac_builddir=.
  15752. case "$ac_dir" in
  15753. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15754. *)
  15755. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15756. # A ".." for each directory in $ac_dir_suffix.
  15757. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15758. case $ac_top_builddir_sub in
  15759. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15760. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15761. esac ;;
  15762. esac
  15763. ac_abs_top_builddir=$ac_pwd
  15764. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15765. # for backward compatibility:
  15766. ac_top_builddir=$ac_top_build_prefix
  15767. case $srcdir in
  15768. .) # We are building in place.
  15769. ac_srcdir=.
  15770. ac_top_srcdir=$ac_top_builddir_sub
  15771. ac_abs_top_srcdir=$ac_pwd ;;
  15772. [\\/]* | ?:[\\/]* ) # Absolute name.
  15773. ac_srcdir=$srcdir$ac_dir_suffix;
  15774. ac_top_srcdir=$srcdir
  15775. ac_abs_top_srcdir=$srcdir ;;
  15776. *) # Relative name.
  15777. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15778. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15779. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15780. esac
  15781. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15782. case $ac_mode in
  15783. :F)
  15784. #
  15785. # CONFIG_FILE
  15786. #
  15787. case $INSTALL in
  15788. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15789. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15790. esac
  15791. ac_MKDIR_P=$MKDIR_P
  15792. case $MKDIR_P in
  15793. [\\/$]* | ?:[\\/]* ) ;;
  15794. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15795. esac
  15796. _ACEOF
  15797. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15798. # If the template does not know about datarootdir, expand it.
  15799. # FIXME: This hack should be removed a few years after 2.60.
  15800. ac_datarootdir_hack=; ac_datarootdir_seen=
  15801. ac_sed_dataroot='
  15802. /datarootdir/ {
  15803. p
  15804. q
  15805. }
  15806. /@datadir@/p
  15807. /@docdir@/p
  15808. /@infodir@/p
  15809. /@localedir@/p
  15810. /@mandir@/p'
  15811. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15812. *datarootdir*) ac_datarootdir_seen=yes;;
  15813. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15815. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15816. _ACEOF
  15817. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15818. ac_datarootdir_hack='
  15819. s&@datadir@&$datadir&g
  15820. s&@docdir@&$docdir&g
  15821. s&@infodir@&$infodir&g
  15822. s&@localedir@&$localedir&g
  15823. s&@mandir@&$mandir&g
  15824. s&\\\${datarootdir}&$datarootdir&g' ;;
  15825. esac
  15826. _ACEOF
  15827. # Neutralize VPATH when `$srcdir' = `.'.
  15828. # Shell code in configure.ac might set extrasub.
  15829. # FIXME: do we really want to maintain this feature?
  15830. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15831. ac_sed_extra="$ac_vpsub
  15832. $extrasub
  15833. _ACEOF
  15834. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15835. :t
  15836. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15837. s|@configure_input@|$ac_sed_conf_input|;t t
  15838. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15839. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15840. s&@srcdir@&$ac_srcdir&;t t
  15841. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15842. s&@top_srcdir@&$ac_top_srcdir&;t t
  15843. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15844. s&@builddir@&$ac_builddir&;t t
  15845. s&@abs_builddir@&$ac_abs_builddir&;t t
  15846. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15847. s&@INSTALL@&$ac_INSTALL&;t t
  15848. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15849. $ac_datarootdir_hack
  15850. "
  15851. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15852. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15853. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15854. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15855. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15856. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15858. which seems to be undefined. Please make sure it is defined" >&5
  15859. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15860. which seems to be undefined. Please make sure it is defined" >&2;}
  15861. rm -f "$ac_tmp/stdin"
  15862. case $ac_file in
  15863. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15864. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15865. esac \
  15866. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15867. ;;
  15868. :H)
  15869. #
  15870. # CONFIG_HEADER
  15871. #
  15872. if test x"$ac_file" != x-; then
  15873. {
  15874. $as_echo "/* $configure_input */" \
  15875. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15876. } >"$ac_tmp/config.h" \
  15877. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15878. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15879. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15880. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15881. else
  15882. rm -f "$ac_file"
  15883. mv "$ac_tmp/config.h" "$ac_file" \
  15884. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15885. fi
  15886. else
  15887. $as_echo "/* $configure_input */" \
  15888. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15889. || as_fn_error $? "could not create -" "$LINENO" 5
  15890. fi
  15891. # Compute "$ac_file"'s index in $config_headers.
  15892. _am_arg="$ac_file"
  15893. _am_stamp_count=1
  15894. for _am_header in $config_headers :; do
  15895. case $_am_header in
  15896. $_am_arg | $_am_arg:* )
  15897. break ;;
  15898. * )
  15899. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15900. esac
  15901. done
  15902. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15903. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15904. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15905. X"$_am_arg" : 'X\(//\)$' \| \
  15906. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15907. $as_echo X"$_am_arg" |
  15908. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15909. s//\1/
  15910. q
  15911. }
  15912. /^X\(\/\/\)[^/].*/{
  15913. s//\1/
  15914. q
  15915. }
  15916. /^X\(\/\/\)$/{
  15917. s//\1/
  15918. q
  15919. }
  15920. /^X\(\/\).*/{
  15921. s//\1/
  15922. q
  15923. }
  15924. s/.*/./; q'`/stamp-h$_am_stamp_count
  15925. ;;
  15926. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15927. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15928. ;;
  15929. esac
  15930. case $ac_file$ac_mode in
  15931. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15932. # Older Autoconf quotes --file arguments for eval, but not when files
  15933. # are listed without --file. Let's play safe and only enable the eval
  15934. # if we detect the quoting.
  15935. case $CONFIG_FILES in
  15936. *\'*) eval set x "$CONFIG_FILES" ;;
  15937. *) set x $CONFIG_FILES ;;
  15938. esac
  15939. shift
  15940. for mf
  15941. do
  15942. # Strip MF so we end up with the name of the file.
  15943. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15944. # Check whether this is an Automake generated Makefile or not.
  15945. # We used to match only the files named 'Makefile.in', but
  15946. # some people rename them; so instead we look at the file content.
  15947. # Grep'ing the first line is not enough: some people post-process
  15948. # each Makefile.in and add a new line on top of each file to say so.
  15949. # Grep'ing the whole file is not good either: AIX grep has a line
  15950. # limit of 2048, but all sed's we know have understand at least 4000.
  15951. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15952. dirpart=`$as_dirname -- "$mf" ||
  15953. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15954. X"$mf" : 'X\(//\)[^/]' \| \
  15955. X"$mf" : 'X\(//\)$' \| \
  15956. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15957. $as_echo X"$mf" |
  15958. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15959. s//\1/
  15960. q
  15961. }
  15962. /^X\(\/\/\)[^/].*/{
  15963. s//\1/
  15964. q
  15965. }
  15966. /^X\(\/\/\)$/{
  15967. s//\1/
  15968. q
  15969. }
  15970. /^X\(\/\).*/{
  15971. s//\1/
  15972. q
  15973. }
  15974. s/.*/./; q'`
  15975. else
  15976. continue
  15977. fi
  15978. # Extract the definition of DEPDIR, am__include, and am__quote
  15979. # from the Makefile without running 'make'.
  15980. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15981. test -z "$DEPDIR" && continue
  15982. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15983. test -z "$am__include" && continue
  15984. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15985. # Find all dependency output files, they are included files with
  15986. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15987. # simplest approach to changing $(DEPDIR) to its actual value in the
  15988. # expansion.
  15989. for file in `sed -n "
  15990. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15991. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15992. # Make sure the directory exists.
  15993. test -f "$dirpart/$file" && continue
  15994. fdir=`$as_dirname -- "$file" ||
  15995. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15996. X"$file" : 'X\(//\)[^/]' \| \
  15997. X"$file" : 'X\(//\)$' \| \
  15998. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15999. $as_echo X"$file" |
  16000. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16001. s//\1/
  16002. q
  16003. }
  16004. /^X\(\/\/\)[^/].*/{
  16005. s//\1/
  16006. q
  16007. }
  16008. /^X\(\/\/\)$/{
  16009. s//\1/
  16010. q
  16011. }
  16012. /^X\(\/\).*/{
  16013. s//\1/
  16014. q
  16015. }
  16016. s/.*/./; q'`
  16017. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16018. # echo "creating $dirpart/$file"
  16019. echo '# dummy' > "$dirpart/$file"
  16020. done
  16021. done
  16022. }
  16023. ;;
  16024. "libtool":C)
  16025. # See if we are running on zsh, and set the options that allow our
  16026. # commands through without removal of \ escapes.
  16027. if test -n "${ZSH_VERSION+set}"; then
  16028. setopt NO_GLOB_SUBST
  16029. fi
  16030. cfgfile=${ofile}T
  16031. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16032. $RM "$cfgfile"
  16033. cat <<_LT_EOF >> "$cfgfile"
  16034. #! $SHELL
  16035. # Generated automatically by $as_me ($PACKAGE) $VERSION
  16036. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16037. # Provide generalized library-building support services.
  16038. # Written by Gordon Matzigkeit, 1996
  16039. # Copyright (C) 2014 Free Software Foundation, Inc.
  16040. # This is free software; see the source for copying conditions. There is NO
  16041. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16042. # GNU Libtool is free software; you can redistribute it and/or modify
  16043. # it under the terms of the GNU General Public License as published by
  16044. # the Free Software Foundation; either version 2 of of the License, or
  16045. # (at your option) any later version.
  16046. #
  16047. # As a special exception to the GNU General Public License, if you
  16048. # distribute this file as part of a program or library that is built
  16049. # using GNU Libtool, you may include this file under the same
  16050. # distribution terms that you use for the rest of that program.
  16051. #
  16052. # GNU Libtool is distributed in the hope that it will be useful, but
  16053. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16054. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16055. # GNU General Public License for more details.
  16056. #
  16057. # You should have received a copy of the GNU General Public License
  16058. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16059. # The names of the tagged configurations supported by this script.
  16060. available_tags=''
  16061. # Configured defaults for sys_lib_dlsearch_path munging.
  16062. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  16063. # ### BEGIN LIBTOOL CONFIG
  16064. # A sed program that does not truncate output.
  16065. SED=$lt_SED
  16066. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16067. Xsed="\$SED -e 1s/^X//"
  16068. # A grep program that handles long lines.
  16069. GREP=$lt_GREP
  16070. # An ERE matcher.
  16071. EGREP=$lt_EGREP
  16072. # A literal string matcher.
  16073. FGREP=$lt_FGREP
  16074. # Shell to use when invoking shell scripts.
  16075. SHELL=$lt_SHELL
  16076. # An echo program that protects backslashes.
  16077. ECHO=$lt_ECHO
  16078. # Whether or not to build static libraries.
  16079. build_old_libs=$enable_static
  16080. # Whether or not to build shared libraries.
  16081. build_libtool_libs=$enable_shared
  16082. # Which release of libtool.m4 was used?
  16083. macro_version=$macro_version
  16084. macro_revision=$macro_revision
  16085. # What type of objects to build.
  16086. pic_mode=$pic_mode
  16087. # Whether or not to optimize for fast installation.
  16088. fast_install=$enable_fast_install
  16089. # Shared archive member basename,for filename based shared library versioning on AIX.
  16090. shared_archive_member_spec=$shared_archive_member_spec
  16091. # The PATH separator for the build system.
  16092. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16093. # The host system.
  16094. host_alias=$host_alias
  16095. host=$host
  16096. host_os=$host_os
  16097. # The build system.
  16098. build_alias=$build_alias
  16099. build=$build
  16100. build_os=$build_os
  16101. # A BSD- or MS-compatible name lister.
  16102. NM=$lt_NM
  16103. # Whether we need soft or hard links.
  16104. LN_S=$lt_LN_S
  16105. # What is the maximum length of a command?
  16106. max_cmd_len=$max_cmd_len
  16107. # Object file suffix (normally "o").
  16108. objext=$ac_objext
  16109. # Executable file suffix (normally "").
  16110. exeext=$exeext
  16111. # whether the shell understands "unset".
  16112. lt_unset=$lt_unset
  16113. # turn spaces into newlines.
  16114. SP2NL=$lt_lt_SP2NL
  16115. # turn newlines into spaces.
  16116. NL2SP=$lt_lt_NL2SP
  16117. # convert \$build file names to \$host format.
  16118. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16119. # convert \$build files to toolchain format.
  16120. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16121. # An object symbol dumper.
  16122. OBJDUMP=$lt_OBJDUMP
  16123. # Method to check whether dependent libraries are shared objects.
  16124. deplibs_check_method=$lt_deplibs_check_method
  16125. # Command to use when deplibs_check_method = "file_magic".
  16126. file_magic_cmd=$lt_file_magic_cmd
  16127. # How to find potential files when deplibs_check_method = "file_magic".
  16128. file_magic_glob=$lt_file_magic_glob
  16129. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16130. want_nocaseglob=$lt_want_nocaseglob
  16131. # DLL creation program.
  16132. DLLTOOL=$lt_DLLTOOL
  16133. # Command to associate shared and link libraries.
  16134. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16135. # The archiver.
  16136. AR=$lt_AR
  16137. # Flags to create an archive.
  16138. AR_FLAGS=$lt_AR_FLAGS
  16139. # How to feed a file listing to the archiver.
  16140. archiver_list_spec=$lt_archiver_list_spec
  16141. # A symbol stripping program.
  16142. STRIP=$lt_STRIP
  16143. # Commands used to install an old-style archive.
  16144. RANLIB=$lt_RANLIB
  16145. old_postinstall_cmds=$lt_old_postinstall_cmds
  16146. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16147. # Whether to use a lock for old archive extraction.
  16148. lock_old_archive_extraction=$lock_old_archive_extraction
  16149. # A C compiler.
  16150. LTCC=$lt_CC
  16151. # LTCC compiler flags.
  16152. LTCFLAGS=$lt_CFLAGS
  16153. # Take the output of nm and produce a listing of raw symbols and C names.
  16154. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16155. # Transform the output of nm in a proper C declaration.
  16156. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16157. # Transform the output of nm into a list of symbols to manually relocate.
  16158. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  16159. # Transform the output of nm in a C name address pair.
  16160. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16161. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16162. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16163. # The name lister interface.
  16164. nm_interface=$lt_lt_cv_nm_interface
  16165. # Specify filename containing input files for \$NM.
  16166. nm_file_list_spec=$lt_nm_file_list_spec
  16167. # The root where to search for dependent libraries,and where our libraries should be installed.
  16168. lt_sysroot=$lt_sysroot
  16169. # Command to truncate a binary pipe.
  16170. lt_truncate_bin=$lt_lt_cv_truncate_bin
  16171. # The name of the directory that contains temporary libtool files.
  16172. objdir=$objdir
  16173. # Used to examine libraries when file_magic_cmd begins with "file".
  16174. MAGIC_CMD=$MAGIC_CMD
  16175. # Must we lock files when doing compilation?
  16176. need_locks=$lt_need_locks
  16177. # Manifest tool.
  16178. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16179. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16180. DSYMUTIL=$lt_DSYMUTIL
  16181. # Tool to change global to local symbols on Mac OS X.
  16182. NMEDIT=$lt_NMEDIT
  16183. # Tool to manipulate fat objects and archives on Mac OS X.
  16184. LIPO=$lt_LIPO
  16185. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16186. OTOOL=$lt_OTOOL
  16187. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16188. OTOOL64=$lt_OTOOL64
  16189. # Old archive suffix (normally "a").
  16190. libext=$libext
  16191. # Shared library suffix (normally ".so").
  16192. shrext_cmds=$lt_shrext_cmds
  16193. # The commands to extract the exported symbol list from a shared archive.
  16194. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16195. # Variables whose values should be saved in libtool wrapper scripts and
  16196. # restored at link time.
  16197. variables_saved_for_relink=$lt_variables_saved_for_relink
  16198. # Do we need the "lib" prefix for modules?
  16199. need_lib_prefix=$need_lib_prefix
  16200. # Do we need a version for libraries?
  16201. need_version=$need_version
  16202. # Library versioning type.
  16203. version_type=$version_type
  16204. # Shared library runtime path variable.
  16205. runpath_var=$runpath_var
  16206. # Shared library path variable.
  16207. shlibpath_var=$shlibpath_var
  16208. # Is shlibpath searched before the hard-coded library search path?
  16209. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16210. # Format of library name prefix.
  16211. libname_spec=$lt_libname_spec
  16212. # List of archive names. First name is the real one, the rest are links.
  16213. # The last name is the one that the linker finds with -lNAME
  16214. library_names_spec=$lt_library_names_spec
  16215. # The coded name of the library, if different from the real name.
  16216. soname_spec=$lt_soname_spec
  16217. # Permission mode override for installation of shared libraries.
  16218. install_override_mode=$lt_install_override_mode
  16219. # Command to use after installation of a shared archive.
  16220. postinstall_cmds=$lt_postinstall_cmds
  16221. # Command to use after uninstallation of a shared archive.
  16222. postuninstall_cmds=$lt_postuninstall_cmds
  16223. # Commands used to finish a libtool library installation in a directory.
  16224. finish_cmds=$lt_finish_cmds
  16225. # As "finish_cmds", except a single script fragment to be evaled but
  16226. # not shown.
  16227. finish_eval=$lt_finish_eval
  16228. # Whether we should hardcode library paths into libraries.
  16229. hardcode_into_libs=$hardcode_into_libs
  16230. # Compile-time system search path for libraries.
  16231. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16232. # Detected run-time system search path for libraries.
  16233. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  16234. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  16235. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  16236. # Whether dlopen is supported.
  16237. dlopen_support=$enable_dlopen
  16238. # Whether dlopen of programs is supported.
  16239. dlopen_self=$enable_dlopen_self
  16240. # Whether dlopen of statically linked programs is supported.
  16241. dlopen_self_static=$enable_dlopen_self_static
  16242. # Commands to strip libraries.
  16243. old_striplib=$lt_old_striplib
  16244. striplib=$lt_striplib
  16245. # The linker used to build libraries.
  16246. LD=$lt_LD
  16247. # How to create reloadable object files.
  16248. reload_flag=$lt_reload_flag
  16249. reload_cmds=$lt_reload_cmds
  16250. # Commands used to build an old-style archive.
  16251. old_archive_cmds=$lt_old_archive_cmds
  16252. # A language specific compiler.
  16253. CC=$lt_compiler
  16254. # Is the compiler the GNU compiler?
  16255. with_gcc=$GCC
  16256. # Compiler flag to turn off builtin functions.
  16257. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16258. # Additional compiler flags for building library objects.
  16259. pic_flag=$lt_lt_prog_compiler_pic
  16260. # How to pass a linker flag through the compiler.
  16261. wl=$lt_lt_prog_compiler_wl
  16262. # Compiler flag to prevent dynamic linking.
  16263. link_static_flag=$lt_lt_prog_compiler_static
  16264. # Does compiler simultaneously support -c and -o options?
  16265. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16266. # Whether or not to add -lc for building shared libraries.
  16267. build_libtool_need_lc=$archive_cmds_need_lc
  16268. # Whether or not to disallow shared libs when runtime libs are static.
  16269. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16270. # Compiler flag to allow reflexive dlopens.
  16271. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16272. # Compiler flag to generate shared objects directly from archives.
  16273. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16274. # Whether the compiler copes with passing no objects directly.
  16275. compiler_needs_object=$lt_compiler_needs_object
  16276. # Create an old-style archive from a shared archive.
  16277. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16278. # Create a temporary old-style archive to link instead of a shared archive.
  16279. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16280. # Commands used to build a shared archive.
  16281. archive_cmds=$lt_archive_cmds
  16282. archive_expsym_cmds=$lt_archive_expsym_cmds
  16283. # Commands used to build a loadable module if different from building
  16284. # a shared archive.
  16285. module_cmds=$lt_module_cmds
  16286. module_expsym_cmds=$lt_module_expsym_cmds
  16287. # Whether we are building with GNU ld or not.
  16288. with_gnu_ld=$lt_with_gnu_ld
  16289. # Flag that allows shared libraries with undefined symbols to be built.
  16290. allow_undefined_flag=$lt_allow_undefined_flag
  16291. # Flag that enforces no undefined symbols.
  16292. no_undefined_flag=$lt_no_undefined_flag
  16293. # Flag to hardcode \$libdir into a binary during linking.
  16294. # This must work even if \$libdir does not exist
  16295. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16296. # Whether we need a single "-rpath" flag with a separated argument.
  16297. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16298. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16299. # DIR into the resulting binary.
  16300. hardcode_direct=$hardcode_direct
  16301. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16302. # DIR into the resulting binary and the resulting library dependency is
  16303. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  16304. # library is relocated.
  16305. hardcode_direct_absolute=$hardcode_direct_absolute
  16306. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16307. # into the resulting binary.
  16308. hardcode_minus_L=$hardcode_minus_L
  16309. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16310. # into the resulting binary.
  16311. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16312. # Set to "yes" if building a shared library automatically hardcodes DIR
  16313. # into the library and all subsequent libraries and executables linked
  16314. # against it.
  16315. hardcode_automatic=$hardcode_automatic
  16316. # Set to yes if linker adds runtime paths of dependent libraries
  16317. # to runtime path list.
  16318. inherit_rpath=$inherit_rpath
  16319. # Whether libtool must link a program against all its dependency libraries.
  16320. link_all_deplibs=$link_all_deplibs
  16321. # Set to "yes" if exported symbols are required.
  16322. always_export_symbols=$always_export_symbols
  16323. # The commands to list exported symbols.
  16324. export_symbols_cmds=$lt_export_symbols_cmds
  16325. # Symbols that should not be listed in the preloaded symbols.
  16326. exclude_expsyms=$lt_exclude_expsyms
  16327. # Symbols that must always be exported.
  16328. include_expsyms=$lt_include_expsyms
  16329. # Commands necessary for linking programs (against libraries) with templates.
  16330. prelink_cmds=$lt_prelink_cmds
  16331. # Commands necessary for finishing linking programs.
  16332. postlink_cmds=$lt_postlink_cmds
  16333. # Specify filename containing input files.
  16334. file_list_spec=$lt_file_list_spec
  16335. # How to hardcode a shared library path into an executable.
  16336. hardcode_action=$hardcode_action
  16337. # ### END LIBTOOL CONFIG
  16338. _LT_EOF
  16339. cat <<'_LT_EOF' >> "$cfgfile"
  16340. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  16341. # func_munge_path_list VARIABLE PATH
  16342. # -----------------------------------
  16343. # VARIABLE is name of variable containing _space_ separated list of
  16344. # directories to be munged by the contents of PATH, which is string
  16345. # having a format:
  16346. # "DIR[:DIR]:"
  16347. # string "DIR[ DIR]" will be prepended to VARIABLE
  16348. # ":DIR[:DIR]"
  16349. # string "DIR[ DIR]" will be appended to VARIABLE
  16350. # "DIRP[:DIRP]::[DIRA:]DIRA"
  16351. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  16352. # "DIRA[ DIRA]" will be appended to VARIABLE
  16353. # "DIR[:DIR]"
  16354. # VARIABLE will be replaced by "DIR[ DIR]"
  16355. func_munge_path_list ()
  16356. {
  16357. case x@S|@2 in
  16358. x)
  16359. ;;
  16360. *:)
  16361. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
  16362. ;;
  16363. x:*)
  16364. eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
  16365. ;;
  16366. *::*)
  16367. eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  16368. eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
  16369. ;;
  16370. *)
  16371. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
  16372. ;;
  16373. esac
  16374. }
  16375. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  16376. func_cc_basename ()
  16377. {
  16378. for cc_temp in @S|@*""; do
  16379. case $cc_temp in
  16380. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16381. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16382. \-*) ;;
  16383. *) break;;
  16384. esac
  16385. done
  16386. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  16387. }
  16388. # ### END FUNCTIONS SHARED WITH CONFIGURE
  16389. _LT_EOF
  16390. case $host_os in
  16391. aix3*)
  16392. cat <<\_LT_EOF >> "$cfgfile"
  16393. # AIX sometimes has problems with the GCC collect2 program. For some
  16394. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16395. # vanish in a puff of smoke.
  16396. if test set != "${COLLECT_NAMES+set}"; then
  16397. COLLECT_NAMES=
  16398. export COLLECT_NAMES
  16399. fi
  16400. _LT_EOF
  16401. ;;
  16402. esac
  16403. ltmain=$ac_aux_dir/ltmain.sh
  16404. # We use sed instead of cat because bash on DJGPP gets confused if
  16405. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16406. # text mode, it properly converts lines to CR/LF. This bash problem
  16407. # is reportedly fixed, but why not run on old versions too?
  16408. sed '$q' "$ltmain" >> "$cfgfile" \
  16409. || (rm -f "$cfgfile"; exit 1)
  16410. mv -f "$cfgfile" "$ofile" ||
  16411. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16412. chmod +x "$ofile"
  16413. ;;
  16414. esac
  16415. done # for ac_tag
  16416. as_fn_exit 0
  16417. _ACEOF
  16418. ac_clean_files=$ac_clean_files_save
  16419. test $ac_write_fail = 0 ||
  16420. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16421. # configure is writing to config.log, and then calls config.status.
  16422. # config.status does its own redirection, appending to config.log.
  16423. # Unfortunately, on DOS this fails, as config.log is still kept open
  16424. # by configure, so config.status won't be able to write to it; its
  16425. # output is simply discarded. So we exec the FD to /dev/null,
  16426. # effectively closing config.log, so it can be properly (re)opened and
  16427. # appended to by config.status. When coming back to configure, we
  16428. # need to make the FD available again.
  16429. if test "$no_create" != yes; then
  16430. ac_cs_success=:
  16431. ac_config_status_args=
  16432. test "$silent" = yes &&
  16433. ac_config_status_args="$ac_config_status_args --quiet"
  16434. exec 5>/dev/null
  16435. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16436. exec 5>>config.log
  16437. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16438. # would make configure fail if this is the last instruction.
  16439. $ac_cs_success || as_fn_exit 1
  16440. fi
  16441. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16443. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16444. fi
  16445. do_build="mod_cgi mod_fastcgi mod_extforward mod_proxy mod_evhost mod_simple_vhost mod_access mod_alias mod_setenv mod_usertrack mod_auth mod_status mod_accesslog"
  16446. do_build="$do_build mod_rrdtool mod_secdownload mod_expire mod_compress mod_dirlisting mod_indexfile mod_userdir mod_webdav mod_staticfile mod_scgi mod_flv_streaming"
  16447. plugins="mod_rewrite mod_redirect mod_ssi mod_trigger_b4_dl"
  16448. features="regex-conditionals"
  16449. if test ! "x$PCRE_LIB" = x; then
  16450. do_build="$do_build $plugins"
  16451. enable_feature="$features"
  16452. else
  16453. no_build="$no_build $plugins"
  16454. disable_feature="$features"
  16455. fi
  16456. plugins="mod_mysql_vhost"
  16457. if test ! "x$MYSQL_LIBS" = x; then
  16458. do_build="$do_build $plugins"
  16459. else
  16460. no_build="$no_build $plugins"
  16461. fi
  16462. plugins="mod_cml mod_magnet"
  16463. if test ! "x$LUA_LIBS" = x; then
  16464. do_build="$do_build $plugins"
  16465. else
  16466. no_build="$no_build $plugins"
  16467. fi
  16468. features="storage-gdbm"
  16469. if test ! "x$GDBM_LIB" = x; then
  16470. enable_feature="$enable_feature $features"
  16471. else
  16472. disable_feature="$disable_feature $features"
  16473. fi
  16474. features="storage-memcache"
  16475. if test ! "x$MEMCACHE_LIB" = x; then
  16476. enable_feature="$enable_feature $features"
  16477. else
  16478. disable_feature="$disable_feature $features"
  16479. fi
  16480. features="compress-gzip compress-deflate"
  16481. if test ! "x$Z_LIB" = x; then
  16482. enable_feature="$enable_feature $features"
  16483. else
  16484. disable_feature="$disable_feature $features"
  16485. fi
  16486. features="compress-bzip2"
  16487. if test ! "x$BZ_LIB" = x; then
  16488. enable_feature="$enable_feature $features"
  16489. else
  16490. disable_feature="$disable_feature $features"
  16491. fi
  16492. features="auth-ldap"
  16493. if test ! "x$LDAP_LIB" = x; then
  16494. enable_feature="$enable_feature $features"
  16495. else
  16496. disable_feature="$disable_feature $features"
  16497. fi
  16498. features="network-openssl"
  16499. if test ! "x$SSL_LIB" = x; then
  16500. enable_feature="$enable_feature $features"
  16501. else
  16502. disable_feature="$disable_feature $features"
  16503. fi
  16504. features="auth-crypt"
  16505. if test "$ac_cv_search_crypt" = no; then
  16506. disable_feature="$disable_feature $features"
  16507. else
  16508. enable_feature="$enable_feature $features"
  16509. fi
  16510. features="network-ipv6"
  16511. if test "$ac_cv_ipv6_support" = yes; then
  16512. enable_feature="$enable_feature $features"
  16513. else
  16514. disable_feature="$disable_feature $features"
  16515. fi
  16516. features="large-files"
  16517. if test "$enable_lfs" = yes; then
  16518. enable_feature="$enable_feature $features"
  16519. else
  16520. disable_feature="$disable_feature $features"
  16521. fi
  16522. features="stat-cache-fam"
  16523. if test ! "x$FAM_LIBS" = x; then
  16524. enable_feature="$enable_feature $features"
  16525. else
  16526. disable_feature="$disable_feature $features"
  16527. fi
  16528. features="webdav-properties"
  16529. if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then
  16530. enable_feature="$enable_feature $features"
  16531. else
  16532. disable_feature="$disable_feature $features"
  16533. fi
  16534. features="webdav-locks"
  16535. if test "x$UUID_LIBS" \!= x; then
  16536. enable_feature="$enable_feature $features"
  16537. else
  16538. disable_feature="$disable_feature $features"
  16539. fi
  16540. $ECHO
  16541. $ECHO "Plugins:"
  16542. $ECHO
  16543. $ECHO "enabled: "
  16544. for p in $do_build; do
  16545. $ECHO " $p"
  16546. done | sort
  16547. $ECHO "disabled: "
  16548. for p in $no_build; do
  16549. $ECHO " $p"
  16550. done | sort
  16551. $ECHO
  16552. $ECHO "Features:"
  16553. $ECHO
  16554. $ECHO "enabled: "
  16555. for p in $enable_feature; do
  16556. $ECHO " $p"
  16557. done | sort
  16558. $ECHO "disabled: "
  16559. for p in $disable_feature; do
  16560. $ECHO " $p"
  16561. done | sort
  16562. $ECHO