configure 189 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for fixincludes .
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. exec 7<&0 </dev/null 6>&1
  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=
  499. # Identity of this package.
  500. PACKAGE_NAME='fixincludes'
  501. PACKAGE_TARNAME='fixincludes'
  502. PACKAGE_VERSION=' '
  503. PACKAGE_STRING='fixincludes '
  504. PACKAGE_BUGREPORT=''
  505. PACKAGE_URL=''
  506. ac_unique_file="inclhack.def"
  507. # Factoring default headers for most tests.
  508. ac_includes_default="\
  509. #include <stdio.h>
  510. #ifdef HAVE_SYS_TYPES_H
  511. # include <sys/types.h>
  512. #endif
  513. #ifdef HAVE_SYS_STAT_H
  514. # include <sys/stat.h>
  515. #endif
  516. #ifdef STDC_HEADERS
  517. # include <stdlib.h>
  518. # include <stddef.h>
  519. #else
  520. # ifdef HAVE_STDLIB_H
  521. # include <stdlib.h>
  522. # endif
  523. #endif
  524. #ifdef HAVE_STRING_H
  525. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  526. # include <memory.h>
  527. # endif
  528. # include <string.h>
  529. #endif
  530. #ifdef HAVE_STRINGS_H
  531. # include <strings.h>
  532. #endif
  533. #ifdef HAVE_INTTYPES_H
  534. # include <inttypes.h>
  535. #endif
  536. #ifdef HAVE_STDINT_H
  537. # include <stdint.h>
  538. #endif
  539. #ifdef HAVE_UNISTD_H
  540. # include <unistd.h>
  541. #endif"
  542. ac_subst_vars='LTLIBOBJS
  543. LIBOBJS
  544. MAINT
  545. TARGET
  546. target_noncanonical
  547. WERROR
  548. WARN_PEDANTIC
  549. WARN_CFLAGS
  550. SED
  551. EGREP
  552. GREP
  553. CPP
  554. OBJEXT
  555. EXEEXT
  556. ac_ct_CC
  557. CPPFLAGS
  558. LDFLAGS
  559. CFLAGS
  560. CC
  561. target_os
  562. target_vendor
  563. target_cpu
  564. target
  565. host_os
  566. host_vendor
  567. host_cpu
  568. host
  569. build_os
  570. build_vendor
  571. build_cpu
  572. build
  573. target_alias
  574. host_alias
  575. build_alias
  576. LIBS
  577. ECHO_T
  578. ECHO_N
  579. ECHO_C
  580. DEFS
  581. mandir
  582. localedir
  583. libdir
  584. psdir
  585. pdfdir
  586. dvidir
  587. htmldir
  588. infodir
  589. docdir
  590. oldincludedir
  591. includedir
  592. localstatedir
  593. sharedstatedir
  594. sysconfdir
  595. datadir
  596. datarootdir
  597. libexecdir
  598. sbindir
  599. bindir
  600. program_transform_name
  601. prefix
  602. exec_prefix
  603. PACKAGE_URL
  604. PACKAGE_BUGREPORT
  605. PACKAGE_STRING
  606. PACKAGE_VERSION
  607. PACKAGE_TARNAME
  608. PACKAGE_NAME
  609. PATH_SEPARATOR
  610. SHELL'
  611. ac_subst_files=''
  612. ac_user_opts='
  613. enable_option_checking
  614. enable_werror_always
  615. with_local_prefix
  616. enable_twoprocess
  617. enable_maintainer_mode
  618. '
  619. ac_precious_vars='build_alias
  620. host_alias
  621. target_alias
  622. CC
  623. CFLAGS
  624. LDFLAGS
  625. LIBS
  626. CPPFLAGS
  627. CPP'
  628. # Initialize some variables set by options.
  629. ac_init_help=
  630. ac_init_version=false
  631. ac_unrecognized_opts=
  632. ac_unrecognized_sep=
  633. # The variables have the same names as the options, with
  634. # dashes changed to underlines.
  635. cache_file=/dev/null
  636. exec_prefix=NONE
  637. no_create=
  638. no_recursion=
  639. prefix=NONE
  640. program_prefix=NONE
  641. program_suffix=NONE
  642. program_transform_name=s,x,x,
  643. silent=
  644. site=
  645. srcdir=
  646. verbose=
  647. x_includes=NONE
  648. x_libraries=NONE
  649. # Installation directory options.
  650. # These are left unexpanded so users can "make install exec_prefix=/foo"
  651. # and all the variables that are supposed to be based on exec_prefix
  652. # by default will actually change.
  653. # Use braces instead of parens because sh, perl, etc. also accept them.
  654. # (The list follows the same order as the GNU Coding Standards.)
  655. bindir='${exec_prefix}/bin'
  656. sbindir='${exec_prefix}/sbin'
  657. libexecdir='${exec_prefix}/libexec'
  658. datarootdir='${prefix}/share'
  659. datadir='${datarootdir}'
  660. sysconfdir='${prefix}/etc'
  661. sharedstatedir='${prefix}/com'
  662. localstatedir='${prefix}/var'
  663. includedir='${prefix}/include'
  664. oldincludedir='/usr/include'
  665. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  666. infodir='${datarootdir}/info'
  667. htmldir='${docdir}'
  668. dvidir='${docdir}'
  669. pdfdir='${docdir}'
  670. psdir='${docdir}'
  671. libdir='${exec_prefix}/lib'
  672. localedir='${datarootdir}/locale'
  673. mandir='${datarootdir}/man'
  674. ac_prev=
  675. ac_dashdash=
  676. for ac_option
  677. do
  678. # If the previous option needs an argument, assign it.
  679. if test -n "$ac_prev"; then
  680. eval $ac_prev=\$ac_option
  681. ac_prev=
  682. continue
  683. fi
  684. case $ac_option in
  685. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  686. *) ac_optarg=yes ;;
  687. esac
  688. # Accept the important Cygnus configure options, so we can diagnose typos.
  689. case $ac_dashdash$ac_option in
  690. --)
  691. ac_dashdash=yes ;;
  692. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  693. ac_prev=bindir ;;
  694. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  695. bindir=$ac_optarg ;;
  696. -build | --build | --buil | --bui | --bu)
  697. ac_prev=build_alias ;;
  698. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  699. build_alias=$ac_optarg ;;
  700. -cache-file | --cache-file | --cache-fil | --cache-fi \
  701. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  702. ac_prev=cache_file ;;
  703. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  704. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  705. cache_file=$ac_optarg ;;
  706. --config-cache | -C)
  707. cache_file=config.cache ;;
  708. -datadir | --datadir | --datadi | --datad)
  709. ac_prev=datadir ;;
  710. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  711. datadir=$ac_optarg ;;
  712. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  713. | --dataroo | --dataro | --datar)
  714. ac_prev=datarootdir ;;
  715. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  716. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  717. datarootdir=$ac_optarg ;;
  718. -disable-* | --disable-*)
  719. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  720. # Reject names that are not valid shell variable names.
  721. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  722. as_fn_error "invalid feature name: $ac_useropt"
  723. ac_useropt_orig=$ac_useropt
  724. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  725. case $ac_user_opts in
  726. *"
  727. "enable_$ac_useropt"
  728. "*) ;;
  729. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  730. ac_unrecognized_sep=', ';;
  731. esac
  732. eval enable_$ac_useropt=no ;;
  733. -docdir | --docdir | --docdi | --doc | --do)
  734. ac_prev=docdir ;;
  735. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  736. docdir=$ac_optarg ;;
  737. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  738. ac_prev=dvidir ;;
  739. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  740. dvidir=$ac_optarg ;;
  741. -enable-* | --enable-*)
  742. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  743. # Reject names that are not valid shell variable names.
  744. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  745. as_fn_error "invalid feature name: $ac_useropt"
  746. ac_useropt_orig=$ac_useropt
  747. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  748. case $ac_user_opts in
  749. *"
  750. "enable_$ac_useropt"
  751. "*) ;;
  752. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  753. ac_unrecognized_sep=', ';;
  754. esac
  755. eval enable_$ac_useropt=\$ac_optarg ;;
  756. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  757. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  758. | --exec | --exe | --ex)
  759. ac_prev=exec_prefix ;;
  760. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  761. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  762. | --exec=* | --exe=* | --ex=*)
  763. exec_prefix=$ac_optarg ;;
  764. -gas | --gas | --ga | --g)
  765. # Obsolete; use --with-gas.
  766. with_gas=yes ;;
  767. -help | --help | --hel | --he | -h)
  768. ac_init_help=long ;;
  769. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  770. ac_init_help=recursive ;;
  771. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  772. ac_init_help=short ;;
  773. -host | --host | --hos | --ho)
  774. ac_prev=host_alias ;;
  775. -host=* | --host=* | --hos=* | --ho=*)
  776. host_alias=$ac_optarg ;;
  777. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  778. ac_prev=htmldir ;;
  779. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  780. | --ht=*)
  781. htmldir=$ac_optarg ;;
  782. -includedir | --includedir | --includedi | --included | --include \
  783. | --includ | --inclu | --incl | --inc)
  784. ac_prev=includedir ;;
  785. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  786. | --includ=* | --inclu=* | --incl=* | --inc=*)
  787. includedir=$ac_optarg ;;
  788. -infodir | --infodir | --infodi | --infod | --info | --inf)
  789. ac_prev=infodir ;;
  790. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  791. infodir=$ac_optarg ;;
  792. -libdir | --libdir | --libdi | --libd)
  793. ac_prev=libdir ;;
  794. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  795. libdir=$ac_optarg ;;
  796. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  797. | --libexe | --libex | --libe)
  798. ac_prev=libexecdir ;;
  799. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  800. | --libexe=* | --libex=* | --libe=*)
  801. libexecdir=$ac_optarg ;;
  802. -localedir | --localedir | --localedi | --localed | --locale)
  803. ac_prev=localedir ;;
  804. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  805. localedir=$ac_optarg ;;
  806. -localstatedir | --localstatedir | --localstatedi | --localstated \
  807. | --localstate | --localstat | --localsta | --localst | --locals)
  808. ac_prev=localstatedir ;;
  809. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  810. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  811. localstatedir=$ac_optarg ;;
  812. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  813. ac_prev=mandir ;;
  814. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  815. mandir=$ac_optarg ;;
  816. -nfp | --nfp | --nf)
  817. # Obsolete; use --without-fp.
  818. with_fp=no ;;
  819. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  820. | --no-cr | --no-c | -n)
  821. no_create=yes ;;
  822. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  823. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  824. no_recursion=yes ;;
  825. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  826. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  827. | --oldin | --oldi | --old | --ol | --o)
  828. ac_prev=oldincludedir ;;
  829. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  830. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  831. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  832. oldincludedir=$ac_optarg ;;
  833. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  834. ac_prev=prefix ;;
  835. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  836. prefix=$ac_optarg ;;
  837. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  838. | --program-pre | --program-pr | --program-p)
  839. ac_prev=program_prefix ;;
  840. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  841. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  842. program_prefix=$ac_optarg ;;
  843. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  844. | --program-suf | --program-su | --program-s)
  845. ac_prev=program_suffix ;;
  846. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  847. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  848. program_suffix=$ac_optarg ;;
  849. -program-transform-name | --program-transform-name \
  850. | --program-transform-nam | --program-transform-na \
  851. | --program-transform-n | --program-transform- \
  852. | --program-transform | --program-transfor \
  853. | --program-transfo | --program-transf \
  854. | --program-trans | --program-tran \
  855. | --progr-tra | --program-tr | --program-t)
  856. ac_prev=program_transform_name ;;
  857. -program-transform-name=* | --program-transform-name=* \
  858. | --program-transform-nam=* | --program-transform-na=* \
  859. | --program-transform-n=* | --program-transform-=* \
  860. | --program-transform=* | --program-transfor=* \
  861. | --program-transfo=* | --program-transf=* \
  862. | --program-trans=* | --program-tran=* \
  863. | --progr-tra=* | --program-tr=* | --program-t=*)
  864. program_transform_name=$ac_optarg ;;
  865. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  866. ac_prev=pdfdir ;;
  867. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  868. pdfdir=$ac_optarg ;;
  869. -psdir | --psdir | --psdi | --psd | --ps)
  870. ac_prev=psdir ;;
  871. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  872. psdir=$ac_optarg ;;
  873. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  874. | -silent | --silent | --silen | --sile | --sil)
  875. silent=yes ;;
  876. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  877. ac_prev=sbindir ;;
  878. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  879. | --sbi=* | --sb=*)
  880. sbindir=$ac_optarg ;;
  881. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  882. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  883. | --sharedst | --shareds | --shared | --share | --shar \
  884. | --sha | --sh)
  885. ac_prev=sharedstatedir ;;
  886. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  887. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  888. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  889. | --sha=* | --sh=*)
  890. sharedstatedir=$ac_optarg ;;
  891. -site | --site | --sit)
  892. ac_prev=site ;;
  893. -site=* | --site=* | --sit=*)
  894. site=$ac_optarg ;;
  895. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  896. ac_prev=srcdir ;;
  897. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  898. srcdir=$ac_optarg ;;
  899. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  900. | --syscon | --sysco | --sysc | --sys | --sy)
  901. ac_prev=sysconfdir ;;
  902. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  903. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  904. sysconfdir=$ac_optarg ;;
  905. -target | --target | --targe | --targ | --tar | --ta | --t)
  906. ac_prev=target_alias ;;
  907. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  908. target_alias=$ac_optarg ;;
  909. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  910. verbose=yes ;;
  911. -version | --version | --versio | --versi | --vers | -V)
  912. ac_init_version=: ;;
  913. -with-* | --with-*)
  914. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  915. # Reject names that are not valid shell variable names.
  916. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  917. as_fn_error "invalid package name: $ac_useropt"
  918. ac_useropt_orig=$ac_useropt
  919. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  920. case $ac_user_opts in
  921. *"
  922. "with_$ac_useropt"
  923. "*) ;;
  924. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  925. ac_unrecognized_sep=', ';;
  926. esac
  927. eval with_$ac_useropt=\$ac_optarg ;;
  928. -without-* | --without-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error "invalid package name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "with_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval with_$ac_useropt=no ;;
  943. --x)
  944. # Obsolete; use --with-x.
  945. with_x=yes ;;
  946. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  947. | --x-incl | --x-inc | --x-in | --x-i)
  948. ac_prev=x_includes ;;
  949. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  950. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  951. x_includes=$ac_optarg ;;
  952. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  953. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  954. ac_prev=x_libraries ;;
  955. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  956. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  957. x_libraries=$ac_optarg ;;
  958. -*) as_fn_error "unrecognized option: \`$ac_option'
  959. Try \`$0 --help' for more information."
  960. ;;
  961. *=*)
  962. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  963. # Reject names that are not valid shell variable names.
  964. case $ac_envvar in #(
  965. '' | [0-9]* | *[!_$as_cr_alnum]* )
  966. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  967. esac
  968. eval $ac_envvar=\$ac_optarg
  969. export $ac_envvar ;;
  970. *)
  971. # FIXME: should be removed in autoconf 3.0.
  972. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  973. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  974. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  975. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  976. ;;
  977. esac
  978. done
  979. if test -n "$ac_prev"; then
  980. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  981. as_fn_error "missing argument to $ac_option"
  982. fi
  983. if test -n "$ac_unrecognized_opts"; then
  984. case $enable_option_checking in
  985. no) ;;
  986. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  987. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  988. esac
  989. fi
  990. # Check all directory arguments for consistency.
  991. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  992. datadir sysconfdir sharedstatedir localstatedir includedir \
  993. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  994. libdir localedir mandir
  995. do
  996. eval ac_val=\$$ac_var
  997. # Remove trailing slashes.
  998. case $ac_val in
  999. */ )
  1000. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1001. eval $ac_var=\$ac_val;;
  1002. esac
  1003. # Be sure to have absolute directory names.
  1004. case $ac_val in
  1005. [\\/$]* | ?:[\\/]* ) continue;;
  1006. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1007. esac
  1008. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1009. done
  1010. # There might be people who depend on the old broken behavior: `$host'
  1011. # used to hold the argument of --host etc.
  1012. # FIXME: To remove some day.
  1013. build=$build_alias
  1014. host=$host_alias
  1015. target=$target_alias
  1016. # FIXME: To remove some day.
  1017. if test "x$host_alias" != x; then
  1018. if test "x$build_alias" = x; then
  1019. cross_compiling=maybe
  1020. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1021. If a cross compiler is detected then cross compile mode will be used." >&2
  1022. elif test "x$build_alias" != "x$host_alias"; then
  1023. cross_compiling=yes
  1024. fi
  1025. fi
  1026. ac_tool_prefix=
  1027. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1028. test "$silent" = yes && exec 6>/dev/null
  1029. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1030. ac_ls_di=`ls -di .` &&
  1031. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1032. as_fn_error "working directory cannot be determined"
  1033. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1034. as_fn_error "pwd does not report name of working directory"
  1035. # Find the source files, if location was not specified.
  1036. if test -z "$srcdir"; then
  1037. ac_srcdir_defaulted=yes
  1038. # Try the directory containing this script, then the parent directory.
  1039. ac_confdir=`$as_dirname -- "$as_myself" ||
  1040. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1041. X"$as_myself" : 'X\(//\)[^/]' \| \
  1042. X"$as_myself" : 'X\(//\)$' \| \
  1043. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1044. $as_echo X"$as_myself" |
  1045. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1046. s//\1/
  1047. q
  1048. }
  1049. /^X\(\/\/\)[^/].*/{
  1050. s//\1/
  1051. q
  1052. }
  1053. /^X\(\/\/\)$/{
  1054. s//\1/
  1055. q
  1056. }
  1057. /^X\(\/\).*/{
  1058. s//\1/
  1059. q
  1060. }
  1061. s/.*/./; q'`
  1062. srcdir=$ac_confdir
  1063. if test ! -r "$srcdir/$ac_unique_file"; then
  1064. srcdir=..
  1065. fi
  1066. else
  1067. ac_srcdir_defaulted=no
  1068. fi
  1069. if test ! -r "$srcdir/$ac_unique_file"; then
  1070. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1071. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1072. fi
  1073. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1074. ac_abs_confdir=`(
  1075. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1076. pwd)`
  1077. # When building in place, set srcdir=.
  1078. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1079. srcdir=.
  1080. fi
  1081. # Remove unnecessary trailing slashes from srcdir.
  1082. # Double slashes in file names in object file debugging info
  1083. # mess up M-x gdb in Emacs.
  1084. case $srcdir in
  1085. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1086. esac
  1087. for ac_var in $ac_precious_vars; do
  1088. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1089. eval ac_env_${ac_var}_value=\$${ac_var}
  1090. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1091. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1092. done
  1093. #
  1094. # Report the --help message.
  1095. #
  1096. if test "$ac_init_help" = "long"; then
  1097. # Omit some internal or obsolete options to make the list less imposing.
  1098. # This message is too long to be a string in the A/UX 3.1 sh.
  1099. cat <<_ACEOF
  1100. \`configure' configures fixincludes to adapt to many kinds of systems.
  1101. Usage: $0 [OPTION]... [VAR=VALUE]...
  1102. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1103. VAR=VALUE. See below for descriptions of some of the useful variables.
  1104. Defaults for the options are specified in brackets.
  1105. Configuration:
  1106. -h, --help display this help and exit
  1107. --help=short display options specific to this package
  1108. --help=recursive display the short help of all the included packages
  1109. -V, --version display version information and exit
  1110. -q, --quiet, --silent do not print \`checking...' messages
  1111. --cache-file=FILE cache test results in FILE [disabled]
  1112. -C, --config-cache alias for \`--cache-file=config.cache'
  1113. -n, --no-create do not create output files
  1114. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1115. Installation directories:
  1116. --prefix=PREFIX install architecture-independent files in PREFIX
  1117. [$ac_default_prefix]
  1118. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1119. [PREFIX]
  1120. By default, \`make install' will install all the files in
  1121. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1122. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1123. for instance \`--prefix=\$HOME'.
  1124. For better control, use the options below.
  1125. Fine tuning of the installation directories:
  1126. --bindir=DIR user executables [EPREFIX/bin]
  1127. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1128. --libexecdir=DIR program executables [EPREFIX/libexec]
  1129. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1130. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1131. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1132. --libdir=DIR object code libraries [EPREFIX/lib]
  1133. --includedir=DIR C header files [PREFIX/include]
  1134. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1135. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1136. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1137. --infodir=DIR info documentation [DATAROOTDIR/info]
  1138. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1139. --mandir=DIR man documentation [DATAROOTDIR/man]
  1140. --docdir=DIR documentation root [DATAROOTDIR/doc/fixincludes]
  1141. --htmldir=DIR html documentation [DOCDIR]
  1142. --dvidir=DIR dvi documentation [DOCDIR]
  1143. --pdfdir=DIR pdf documentation [DOCDIR]
  1144. --psdir=DIR ps documentation [DOCDIR]
  1145. _ACEOF
  1146. cat <<\_ACEOF
  1147. System types:
  1148. --build=BUILD configure for building on BUILD [guessed]
  1149. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1150. --target=TARGET configure for building compilers for TARGET [HOST]
  1151. _ACEOF
  1152. fi
  1153. if test -n "$ac_init_help"; then
  1154. case $ac_init_help in
  1155. short | recursive ) echo "Configuration of fixincludes :";;
  1156. esac
  1157. cat <<\_ACEOF
  1158. Optional Features:
  1159. --disable-option-checking ignore unrecognized --enable/--with options
  1160. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1161. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1162. --enable-werror-always enable -Werror despite compiler version
  1163. --enable-twoprocess Use a separate process to apply the fixes
  1164. --enable-maintainer-mode enable make rules and dependencies not useful
  1165. (and sometimes confusing) to the casual installer
  1166. Optional Packages:
  1167. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1168. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1169. --with-local-prefix=DIR specifies directory to put local include
  1170. Some influential environment variables:
  1171. CC C compiler command
  1172. CFLAGS C compiler flags
  1173. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1174. nonstandard directory <lib dir>
  1175. LIBS libraries to pass to the linker, e.g. -l<library>
  1176. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1177. you have headers in a nonstandard directory <include dir>
  1178. CPP C preprocessor
  1179. Use these variables to override the choices made by `configure' or to help
  1180. it to find libraries and programs with nonstandard names/locations.
  1181. Report bugs to the package provider.
  1182. _ACEOF
  1183. ac_status=$?
  1184. fi
  1185. if test "$ac_init_help" = "recursive"; then
  1186. # If there are subdirs, report their specific --help.
  1187. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1188. test -d "$ac_dir" ||
  1189. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1190. continue
  1191. ac_builddir=.
  1192. case "$ac_dir" in
  1193. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1194. *)
  1195. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1196. # A ".." for each directory in $ac_dir_suffix.
  1197. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1198. case $ac_top_builddir_sub in
  1199. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1200. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1201. esac ;;
  1202. esac
  1203. ac_abs_top_builddir=$ac_pwd
  1204. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1205. # for backward compatibility:
  1206. ac_top_builddir=$ac_top_build_prefix
  1207. case $srcdir in
  1208. .) # We are building in place.
  1209. ac_srcdir=.
  1210. ac_top_srcdir=$ac_top_builddir_sub
  1211. ac_abs_top_srcdir=$ac_pwd ;;
  1212. [\\/]* | ?:[\\/]* ) # Absolute name.
  1213. ac_srcdir=$srcdir$ac_dir_suffix;
  1214. ac_top_srcdir=$srcdir
  1215. ac_abs_top_srcdir=$srcdir ;;
  1216. *) # Relative name.
  1217. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1218. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1219. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1220. esac
  1221. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1222. cd "$ac_dir" || { ac_status=$?; continue; }
  1223. # Check for guested configure.
  1224. if test -f "$ac_srcdir/configure.gnu"; then
  1225. echo &&
  1226. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1227. elif test -f "$ac_srcdir/configure"; then
  1228. echo &&
  1229. $SHELL "$ac_srcdir/configure" --help=recursive
  1230. else
  1231. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1232. fi || ac_status=$?
  1233. cd "$ac_pwd" || { ac_status=$?; break; }
  1234. done
  1235. fi
  1236. test -n "$ac_init_help" && exit $ac_status
  1237. if $ac_init_version; then
  1238. cat <<\_ACEOF
  1239. fixincludes configure
  1240. generated by GNU Autoconf 2.64
  1241. Copyright (C) 2009 Free Software Foundation, Inc.
  1242. This configure script is free software; the Free Software Foundation
  1243. gives unlimited permission to copy, distribute and modify it.
  1244. _ACEOF
  1245. exit
  1246. fi
  1247. ## ------------------------ ##
  1248. ## Autoconf initialization. ##
  1249. ## ------------------------ ##
  1250. # ac_fn_c_try_compile LINENO
  1251. # --------------------------
  1252. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1253. ac_fn_c_try_compile ()
  1254. {
  1255. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1256. rm -f conftest.$ac_objext
  1257. if { { ac_try="$ac_compile"
  1258. case "(($ac_try" in
  1259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1260. *) ac_try_echo=$ac_try;;
  1261. esac
  1262. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1263. $as_echo "$ac_try_echo"; } >&5
  1264. (eval "$ac_compile") 2>conftest.err
  1265. ac_status=$?
  1266. if test -s conftest.err; then
  1267. grep -v '^ *+' conftest.err >conftest.er1
  1268. cat conftest.er1 >&5
  1269. mv -f conftest.er1 conftest.err
  1270. fi
  1271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1272. test $ac_status = 0; } && {
  1273. test -z "$ac_c_werror_flag" ||
  1274. test ! -s conftest.err
  1275. } && test -s conftest.$ac_objext; then :
  1276. ac_retval=0
  1277. else
  1278. $as_echo "$as_me: failed program was:" >&5
  1279. sed 's/^/| /' conftest.$ac_ext >&5
  1280. ac_retval=1
  1281. fi
  1282. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1283. return $ac_retval
  1284. } # ac_fn_c_try_compile
  1285. # ac_fn_c_try_cpp LINENO
  1286. # ----------------------
  1287. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1288. ac_fn_c_try_cpp ()
  1289. {
  1290. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1291. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1292. case "(($ac_try" in
  1293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1294. *) ac_try_echo=$ac_try;;
  1295. esac
  1296. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1297. $as_echo "$ac_try_echo"; } >&5
  1298. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1299. ac_status=$?
  1300. if test -s conftest.err; then
  1301. grep -v '^ *+' conftest.err >conftest.er1
  1302. cat conftest.er1 >&5
  1303. mv -f conftest.er1 conftest.err
  1304. fi
  1305. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1306. test $ac_status = 0; } >/dev/null && {
  1307. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1308. test ! -s conftest.err
  1309. }; then :
  1310. ac_retval=0
  1311. else
  1312. $as_echo "$as_me: failed program was:" >&5
  1313. sed 's/^/| /' conftest.$ac_ext >&5
  1314. ac_retval=1
  1315. fi
  1316. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1317. return $ac_retval
  1318. } # ac_fn_c_try_cpp
  1319. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1320. # -------------------------------------------------------
  1321. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1322. # the include files in INCLUDES and setting the cache variable VAR
  1323. # accordingly.
  1324. ac_fn_c_check_header_mongrel ()
  1325. {
  1326. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1327. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1329. $as_echo_n "checking for $2... " >&6; }
  1330. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1331. $as_echo_n "(cached) " >&6
  1332. fi
  1333. eval ac_res=\$$3
  1334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1335. $as_echo "$ac_res" >&6; }
  1336. else
  1337. # Is the header compilable?
  1338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1339. $as_echo_n "checking $2 usability... " >&6; }
  1340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1341. /* end confdefs.h. */
  1342. $4
  1343. #include <$2>
  1344. _ACEOF
  1345. if ac_fn_c_try_compile "$LINENO"; then :
  1346. ac_header_compiler=yes
  1347. else
  1348. ac_header_compiler=no
  1349. fi
  1350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1352. $as_echo "$ac_header_compiler" >&6; }
  1353. # Is the header present?
  1354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1355. $as_echo_n "checking $2 presence... " >&6; }
  1356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1357. /* end confdefs.h. */
  1358. #include <$2>
  1359. _ACEOF
  1360. if ac_fn_c_try_cpp "$LINENO"; then :
  1361. ac_header_preproc=yes
  1362. else
  1363. ac_header_preproc=no
  1364. fi
  1365. rm -f conftest.err conftest.$ac_ext
  1366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1367. $as_echo "$ac_header_preproc" >&6; }
  1368. # So? What about this header?
  1369. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1370. yes:no: )
  1371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1372. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1374. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1375. ;;
  1376. no:yes:* )
  1377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1378. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1380. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1382. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1384. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1386. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1387. ;;
  1388. esac
  1389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1390. $as_echo_n "checking for $2... " >&6; }
  1391. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1392. $as_echo_n "(cached) " >&6
  1393. else
  1394. eval "$3=\$ac_header_compiler"
  1395. fi
  1396. eval ac_res=\$$3
  1397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1398. $as_echo "$ac_res" >&6; }
  1399. fi
  1400. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1401. } # ac_fn_c_check_header_mongrel
  1402. # ac_fn_c_try_run LINENO
  1403. # ----------------------
  1404. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1405. # that executables *can* be run.
  1406. ac_fn_c_try_run ()
  1407. {
  1408. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1409. if { { ac_try="$ac_link"
  1410. case "(($ac_try" in
  1411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1412. *) ac_try_echo=$ac_try;;
  1413. esac
  1414. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1415. $as_echo "$ac_try_echo"; } >&5
  1416. (eval "$ac_link") 2>&5
  1417. ac_status=$?
  1418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1419. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1420. { { case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_try") 2>&5
  1427. ac_status=$?
  1428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1429. test $ac_status = 0; }; }; then :
  1430. ac_retval=0
  1431. else
  1432. $as_echo "$as_me: program exited with status $ac_status" >&5
  1433. $as_echo "$as_me: failed program was:" >&5
  1434. sed 's/^/| /' conftest.$ac_ext >&5
  1435. ac_retval=$ac_status
  1436. fi
  1437. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1438. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1439. return $ac_retval
  1440. } # ac_fn_c_try_run
  1441. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1442. # -------------------------------------------------------
  1443. # Tests whether HEADER exists and can be compiled using the include files in
  1444. # INCLUDES, setting the cache variable VAR accordingly.
  1445. ac_fn_c_check_header_compile ()
  1446. {
  1447. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1449. $as_echo_n "checking for $2... " >&6; }
  1450. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1451. $as_echo_n "(cached) " >&6
  1452. else
  1453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1454. /* end confdefs.h. */
  1455. $4
  1456. #include <$2>
  1457. _ACEOF
  1458. if ac_fn_c_try_compile "$LINENO"; then :
  1459. eval "$3=yes"
  1460. else
  1461. eval "$3=no"
  1462. fi
  1463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1464. fi
  1465. eval ac_res=\$$3
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1467. $as_echo "$ac_res" >&6; }
  1468. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1469. } # ac_fn_c_check_header_compile
  1470. # ac_fn_c_try_link LINENO
  1471. # -----------------------
  1472. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1473. ac_fn_c_try_link ()
  1474. {
  1475. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1476. rm -f conftest.$ac_objext conftest$ac_exeext
  1477. if { { ac_try="$ac_link"
  1478. case "(($ac_try" in
  1479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1480. *) ac_try_echo=$ac_try;;
  1481. esac
  1482. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1483. $as_echo "$ac_try_echo"; } >&5
  1484. (eval "$ac_link") 2>conftest.err
  1485. ac_status=$?
  1486. if test -s conftest.err; then
  1487. grep -v '^ *+' conftest.err >conftest.er1
  1488. cat conftest.er1 >&5
  1489. mv -f conftest.er1 conftest.err
  1490. fi
  1491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1492. test $ac_status = 0; } && {
  1493. test -z "$ac_c_werror_flag" ||
  1494. test ! -s conftest.err
  1495. } && test -s conftest$ac_exeext && {
  1496. test "$cross_compiling" = yes ||
  1497. $as_test_x conftest$ac_exeext
  1498. }; then :
  1499. ac_retval=0
  1500. else
  1501. $as_echo "$as_me: failed program was:" >&5
  1502. sed 's/^/| /' conftest.$ac_ext >&5
  1503. ac_retval=1
  1504. fi
  1505. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1506. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1507. # interfere with the next link command; also delete a directory that is
  1508. # left behind by Apple's compiler. We do this before executing the actions.
  1509. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1510. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1511. return $ac_retval
  1512. } # ac_fn_c_try_link
  1513. # ac_fn_c_check_func LINENO FUNC VAR
  1514. # ----------------------------------
  1515. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1516. ac_fn_c_check_func ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1520. $as_echo_n "checking for $2... " >&6; }
  1521. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1522. $as_echo_n "(cached) " >&6
  1523. else
  1524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1525. /* end confdefs.h. */
  1526. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1527. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1528. #define $2 innocuous_$2
  1529. /* System header to define __stub macros and hopefully few prototypes,
  1530. which can conflict with char $2 (); below.
  1531. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1532. <limits.h> exists even on freestanding compilers. */
  1533. #ifdef __STDC__
  1534. # include <limits.h>
  1535. #else
  1536. # include <assert.h>
  1537. #endif
  1538. #undef $2
  1539. /* Override any GCC internal prototype to avoid an error.
  1540. Use char because int might match the return type of a GCC
  1541. builtin and then its argument prototype would still apply. */
  1542. #ifdef __cplusplus
  1543. extern "C"
  1544. #endif
  1545. char $2 ();
  1546. /* The GNU C library defines this for functions which it implements
  1547. to always fail with ENOSYS. Some functions are actually named
  1548. something starting with __ and the normal name is an alias. */
  1549. #if defined __stub_$2 || defined __stub___$2
  1550. choke me
  1551. #endif
  1552. int
  1553. main ()
  1554. {
  1555. return $2 ();
  1556. ;
  1557. return 0;
  1558. }
  1559. _ACEOF
  1560. if ac_fn_c_try_link "$LINENO"; then :
  1561. eval "$3=yes"
  1562. else
  1563. eval "$3=no"
  1564. fi
  1565. rm -f core conftest.err conftest.$ac_objext \
  1566. conftest$ac_exeext conftest.$ac_ext
  1567. fi
  1568. eval ac_res=\$$3
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1570. $as_echo "$ac_res" >&6; }
  1571. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1572. } # ac_fn_c_check_func
  1573. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1574. # ------------------------------------
  1575. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1576. ac_fn_c_check_decl ()
  1577. {
  1578. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1579. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1580. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1582. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1583. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1584. $as_echo_n "(cached) " >&6
  1585. else
  1586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1587. /* end confdefs.h. */
  1588. $4
  1589. int
  1590. main ()
  1591. {
  1592. #ifndef $as_decl_name
  1593. #ifdef __cplusplus
  1594. (void) $as_decl_use;
  1595. #else
  1596. (void) $as_decl_name;
  1597. #endif
  1598. #endif
  1599. ;
  1600. return 0;
  1601. }
  1602. _ACEOF
  1603. if ac_fn_c_try_compile "$LINENO"; then :
  1604. eval "$3=yes"
  1605. else
  1606. eval "$3=no"
  1607. fi
  1608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1609. fi
  1610. eval ac_res=\$$3
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1612. $as_echo "$ac_res" >&6; }
  1613. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1614. } # ac_fn_c_check_decl
  1615. cat >config.log <<_ACEOF
  1616. This file contains any messages produced by compilers while
  1617. running configure, to aid debugging if configure makes a mistake.
  1618. It was created by fixincludes $as_me , which was
  1619. generated by GNU Autoconf 2.64. Invocation command line was
  1620. $ $0 $@
  1621. _ACEOF
  1622. exec 5>>config.log
  1623. {
  1624. cat <<_ASUNAME
  1625. ## --------- ##
  1626. ## Platform. ##
  1627. ## --------- ##
  1628. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1629. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1630. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1631. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1632. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1633. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1634. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1635. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1636. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1637. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1638. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1639. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1640. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1641. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1642. _ASUNAME
  1643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1644. for as_dir in $PATH
  1645. do
  1646. IFS=$as_save_IFS
  1647. test -z "$as_dir" && as_dir=.
  1648. $as_echo "PATH: $as_dir"
  1649. done
  1650. IFS=$as_save_IFS
  1651. } >&5
  1652. cat >&5 <<_ACEOF
  1653. ## ----------- ##
  1654. ## Core tests. ##
  1655. ## ----------- ##
  1656. _ACEOF
  1657. # Keep a trace of the command line.
  1658. # Strip out --no-create and --no-recursion so they do not pile up.
  1659. # Strip out --silent because we don't want to record it for future runs.
  1660. # Also quote any args containing shell meta-characters.
  1661. # Make two passes to allow for proper duplicate-argument suppression.
  1662. ac_configure_args=
  1663. ac_configure_args0=
  1664. ac_configure_args1=
  1665. ac_must_keep_next=false
  1666. for ac_pass in 1 2
  1667. do
  1668. for ac_arg
  1669. do
  1670. case $ac_arg in
  1671. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1672. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1673. | -silent | --silent | --silen | --sile | --sil)
  1674. continue ;;
  1675. *\'*)
  1676. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1677. esac
  1678. case $ac_pass in
  1679. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1680. 2)
  1681. as_fn_append ac_configure_args1 " '$ac_arg'"
  1682. if test $ac_must_keep_next = true; then
  1683. ac_must_keep_next=false # Got value, back to normal.
  1684. else
  1685. case $ac_arg in
  1686. *=* | --config-cache | -C | -disable-* | --disable-* \
  1687. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1688. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1689. | -with-* | --with-* | -without-* | --without-* | --x)
  1690. case "$ac_configure_args0 " in
  1691. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1692. esac
  1693. ;;
  1694. -* ) ac_must_keep_next=true ;;
  1695. esac
  1696. fi
  1697. as_fn_append ac_configure_args " '$ac_arg'"
  1698. ;;
  1699. esac
  1700. done
  1701. done
  1702. { ac_configure_args0=; unset ac_configure_args0;}
  1703. { ac_configure_args1=; unset ac_configure_args1;}
  1704. # When interrupted or exit'd, cleanup temporary files, and complete
  1705. # config.log. We remove comments because anyway the quotes in there
  1706. # would cause problems or look ugly.
  1707. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1708. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1709. trap 'exit_status=$?
  1710. # Save into config.log some information that might help in debugging.
  1711. {
  1712. echo
  1713. cat <<\_ASBOX
  1714. ## ---------------- ##
  1715. ## Cache variables. ##
  1716. ## ---------------- ##
  1717. _ASBOX
  1718. echo
  1719. # The following way of writing the cache mishandles newlines in values,
  1720. (
  1721. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1722. eval ac_val=\$$ac_var
  1723. case $ac_val in #(
  1724. *${as_nl}*)
  1725. case $ac_var in #(
  1726. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1727. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1728. esac
  1729. case $ac_var in #(
  1730. _ | IFS | as_nl) ;; #(
  1731. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1732. *) { eval $ac_var=; unset $ac_var;} ;;
  1733. esac ;;
  1734. esac
  1735. done
  1736. (set) 2>&1 |
  1737. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1738. *${as_nl}ac_space=\ *)
  1739. sed -n \
  1740. "s/'\''/'\''\\\\'\'''\''/g;
  1741. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1742. ;; #(
  1743. *)
  1744. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1745. ;;
  1746. esac |
  1747. sort
  1748. )
  1749. echo
  1750. cat <<\_ASBOX
  1751. ## ----------------- ##
  1752. ## Output variables. ##
  1753. ## ----------------- ##
  1754. _ASBOX
  1755. echo
  1756. for ac_var in $ac_subst_vars
  1757. do
  1758. eval ac_val=\$$ac_var
  1759. case $ac_val in
  1760. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1761. esac
  1762. $as_echo "$ac_var='\''$ac_val'\''"
  1763. done | sort
  1764. echo
  1765. if test -n "$ac_subst_files"; then
  1766. cat <<\_ASBOX
  1767. ## ------------------- ##
  1768. ## File substitutions. ##
  1769. ## ------------------- ##
  1770. _ASBOX
  1771. echo
  1772. for ac_var in $ac_subst_files
  1773. do
  1774. eval ac_val=\$$ac_var
  1775. case $ac_val in
  1776. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1777. esac
  1778. $as_echo "$ac_var='\''$ac_val'\''"
  1779. done | sort
  1780. echo
  1781. fi
  1782. if test -s confdefs.h; then
  1783. cat <<\_ASBOX
  1784. ## ----------- ##
  1785. ## confdefs.h. ##
  1786. ## ----------- ##
  1787. _ASBOX
  1788. echo
  1789. cat confdefs.h
  1790. echo
  1791. fi
  1792. test "$ac_signal" != 0 &&
  1793. $as_echo "$as_me: caught signal $ac_signal"
  1794. $as_echo "$as_me: exit $exit_status"
  1795. } >&5
  1796. rm -f core *.core core.conftest.* &&
  1797. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1798. exit $exit_status
  1799. ' 0
  1800. for ac_signal in 1 2 13 15; do
  1801. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1802. done
  1803. ac_signal=0
  1804. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1805. rm -f -r conftest* confdefs.h
  1806. $as_echo "/* confdefs.h */" > confdefs.h
  1807. # Predefined preprocessor variables.
  1808. cat >>confdefs.h <<_ACEOF
  1809. #define PACKAGE_NAME "$PACKAGE_NAME"
  1810. _ACEOF
  1811. cat >>confdefs.h <<_ACEOF
  1812. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1813. _ACEOF
  1814. cat >>confdefs.h <<_ACEOF
  1815. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1816. _ACEOF
  1817. cat >>confdefs.h <<_ACEOF
  1818. #define PACKAGE_STRING "$PACKAGE_STRING"
  1819. _ACEOF
  1820. cat >>confdefs.h <<_ACEOF
  1821. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1822. _ACEOF
  1823. cat >>confdefs.h <<_ACEOF
  1824. #define PACKAGE_URL "$PACKAGE_URL"
  1825. _ACEOF
  1826. # Let the site file select an alternate cache file if it wants to.
  1827. # Prefer an explicitly selected file to automatically selected ones.
  1828. ac_site_file1=NONE
  1829. ac_site_file2=NONE
  1830. if test -n "$CONFIG_SITE"; then
  1831. ac_site_file1=$CONFIG_SITE
  1832. elif test "x$prefix" != xNONE; then
  1833. ac_site_file1=$prefix/share/config.site
  1834. ac_site_file2=$prefix/etc/config.site
  1835. else
  1836. ac_site_file1=$ac_default_prefix/share/config.site
  1837. ac_site_file2=$ac_default_prefix/etc/config.site
  1838. fi
  1839. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1840. do
  1841. test "x$ac_site_file" = xNONE && continue
  1842. if test -r "$ac_site_file"; then
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1844. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1845. sed 's/^/| /' "$ac_site_file" >&5
  1846. . "$ac_site_file"
  1847. fi
  1848. done
  1849. if test -r "$cache_file"; then
  1850. # Some versions of bash will fail to source /dev/null (special
  1851. # files actually), so we avoid doing that.
  1852. if test -f "$cache_file"; then
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1854. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1855. case $cache_file in
  1856. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1857. *) . "./$cache_file";;
  1858. esac
  1859. fi
  1860. else
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1862. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1863. >$cache_file
  1864. fi
  1865. # Check that the precious variables saved in the cache have kept the same
  1866. # value.
  1867. ac_cache_corrupted=false
  1868. for ac_var in $ac_precious_vars; do
  1869. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1870. eval ac_new_set=\$ac_env_${ac_var}_set
  1871. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1872. eval ac_new_val=\$ac_env_${ac_var}_value
  1873. case $ac_old_set,$ac_new_set in
  1874. set,)
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1876. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1877. ac_cache_corrupted=: ;;
  1878. ,set)
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1880. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1881. ac_cache_corrupted=: ;;
  1882. ,);;
  1883. *)
  1884. if test "x$ac_old_val" != "x$ac_new_val"; then
  1885. # differences in whitespace do not lead to failure.
  1886. ac_old_val_w=`echo x $ac_old_val`
  1887. ac_new_val_w=`echo x $ac_new_val`
  1888. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1890. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1891. ac_cache_corrupted=:
  1892. else
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1894. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1895. eval $ac_var=\$ac_old_val
  1896. fi
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1898. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1900. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1901. fi;;
  1902. esac
  1903. # Pass precious variables to config.status.
  1904. if test "$ac_new_set" = set; then
  1905. case $ac_new_val in
  1906. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1907. *) ac_arg=$ac_var=$ac_new_val ;;
  1908. esac
  1909. case " $ac_configure_args " in
  1910. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1911. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1912. esac
  1913. fi
  1914. done
  1915. if $ac_cache_corrupted; then
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1919. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1920. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1921. fi
  1922. ## -------------------- ##
  1923. ## Main body of script. ##
  1924. ## -------------------- ##
  1925. ac_ext=c
  1926. ac_cpp='$CPP $CPPFLAGS'
  1927. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1928. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1929. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1930. ac_aux_dir=
  1931. for ac_dir in .. "$srcdir"/..; do
  1932. for ac_t in install-sh install.sh shtool; do
  1933. if test -f "$ac_dir/$ac_t"; then
  1934. ac_aux_dir=$ac_dir
  1935. ac_install_sh="$ac_aux_dir/$ac_t -c"
  1936. break 2
  1937. fi
  1938. done
  1939. done
  1940. if test -z "$ac_aux_dir"; then
  1941. as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
  1942. fi
  1943. # These three variables are undocumented and unsupported,
  1944. # and are intended to be withdrawn in a future Autoconf release.
  1945. # They can cause serious problems if a builder's source tree is in a directory
  1946. # whose full name contains unusual characters.
  1947. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1948. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1949. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1950. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  1951. #
  1952. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  1953. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  1954. # Written by Gordon Matzigkeit, 1996
  1955. #
  1956. # This file is free software; the Free Software Foundation gives
  1957. # unlimited permission to copy and/or distribute it, with or without
  1958. # modifications, as long as this notice is preserved.
  1959. # serial 56 LT_INIT
  1960. # LT_PREREQ(VERSION)
  1961. # ------------------
  1962. # Complain and exit if this libtool version is less that VERSION.
  1963. # _LT_CHECK_BUILDDIR
  1964. # ------------------
  1965. # Complain if the absolute build directory name contains unusual characters
  1966. # LT_INIT([OPTIONS])
  1967. # ------------------
  1968. # LT_INIT
  1969. # Old names:
  1970. # This is what autoupdate's m4 run will expand. It fires
  1971. # the warning (with _au_warn_XXX), outputs it into the
  1972. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  1973. # the replacement expansion.
  1974. # This is an auxiliary macro that is also run when
  1975. # autoupdate runs m4. It simply calls m4_warning, but
  1976. # we need a wrapper so that each warning is emitted only
  1977. # once. We break the quoting in m4_warning's argument in
  1978. # order to expand this macro's arguments, not AU_DEFUN's.
  1979. # Finally, this is the expansion that is picked up by
  1980. # autoconf. It tells the user to run autoupdate, and
  1981. # then outputs the replacement expansion. We do not care
  1982. # about autoupdate's warning because that contains
  1983. # information on what to do *after* running autoupdate.
  1984. # This is what autoupdate's m4 run will expand. It fires
  1985. # the warning (with _au_warn_XXX), outputs it into the
  1986. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  1987. # the replacement expansion.
  1988. # This is an auxiliary macro that is also run when
  1989. # autoupdate runs m4. It simply calls m4_warning, but
  1990. # we need a wrapper so that each warning is emitted only
  1991. # once. We break the quoting in m4_warning's argument in
  1992. # order to expand this macro's arguments, not AU_DEFUN's.
  1993. # Finally, this is the expansion that is picked up by
  1994. # autoconf. It tells the user to run autoupdate, and
  1995. # then outputs the replacement expansion. We do not care
  1996. # about autoupdate's warning because that contains
  1997. # information on what to do *after* running autoupdate.
  1998. # _LT_CC_BASENAME(CC)
  1999. # -------------------
  2000. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2001. # _LT_FILEUTILS_DEFAULTS
  2002. # ----------------------
  2003. # It is okay to use these file commands and assume they have been set
  2004. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2005. # _LT_FILEUTILS_DEFAULTS
  2006. # _LT_SETUP
  2007. # ---------
  2008. # _LT_SETUP
  2009. # _LT_PREPARE_SED_QUOTE_VARS
  2010. # --------------------------
  2011. # Define a few sed substitution that help us do robust quoting.
  2012. # _LT_PROG_LTMAIN
  2013. # ---------------
  2014. # Note that this code is called both from `configure', and `config.status'
  2015. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2016. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2017. # so we pass a copy along to make sure it has a sensible value anyway.
  2018. # _LT_PROG_LTMAIN
  2019. ## ------------------------------------- ##
  2020. ## Accumulate code for creating libtool. ##
  2021. ## ------------------------------------- ##
  2022. # So that we can recreate a full libtool script including additional
  2023. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2024. # in macros and then make a single call at the end using the `libtool'
  2025. # label.
  2026. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2027. # ----------------------------------------
  2028. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2029. # Initialize.
  2030. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2031. # ------------------------------
  2032. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2033. # Initialize.
  2034. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2035. # -----------------------------------------------------
  2036. # _LT_FORMAT_COMMENT([COMMENT])
  2037. # -----------------------------
  2038. # Add leading comment marks to the start of each line, and a trailing
  2039. # full-stop to the whole comment if one is not present already.
  2040. ## ------------------------ ##
  2041. ## FIXME: Eliminate VARNAME ##
  2042. ## ------------------------ ##
  2043. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2044. # -------------------------------------------------------------------
  2045. # CONFIGNAME is the name given to the value in the libtool script.
  2046. # VARNAME is the (base) name used in the configure script.
  2047. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2048. # VARNAME. Any other value will be used directly.
  2049. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2050. # --------------------------------------------------------
  2051. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2052. # ------------------------------------------------
  2053. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2054. # ---------------------------------------------------------
  2055. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2056. # --------------------------------------------------
  2057. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2058. # ---------------------------------------------------
  2059. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2060. # ---------------------------------------------------
  2061. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2062. # ------------------------------------------------
  2063. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2064. # ------------------------------------
  2065. # Quote a variable value, and forward it to `config.status' so that its
  2066. # declaration there will have the same value as in `configure'. VARNAME
  2067. # must have a single quote delimited value for this to work.
  2068. # _LT_CONFIG_STATUS_DECLARATIONS
  2069. # ------------------------------
  2070. # We delimit libtool config variables with single quotes, so when
  2071. # we write them to config.status, we have to be sure to quote all
  2072. # embedded single quotes properly. In configure, this macro expands
  2073. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2074. #
  2075. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2076. # _LT_LIBTOOL_TAGS
  2077. # ----------------
  2078. # Output comment and list of tags supported by the script
  2079. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2080. # -----------------------------------
  2081. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2082. # expand to a commented shell variable setting:
  2083. #
  2084. # # Some comment about what VAR is for.
  2085. # visible_name=$lt_internal_name
  2086. # _LT_LIBTOOL_CONFIG_VARS
  2087. # -----------------------
  2088. # Produce commented declarations of non-tagged libtool config variables
  2089. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2090. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2091. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2092. # _LT_LIBTOOL_TAG_VARS(TAG)
  2093. # -------------------------
  2094. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2095. # ------------------------------
  2096. # _LT_CONFIG_COMMANDS
  2097. # -------------------
  2098. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2099. # variables for single and double quote escaping we saved from calls
  2100. # to _LT_DECL, we can put quote escaped variables declarations
  2101. # into `config.status', and then the shell code to quote escape them in
  2102. # for loops in `config.status'. Finally, any additional code accumulated
  2103. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2104. #_LT_CONFIG_COMMANDS
  2105. # Initialize.
  2106. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2107. # ------------------------------------
  2108. # Generate a child script FILE with all initialization necessary to
  2109. # reuse the environment learned by the parent script, and make the
  2110. # file executable. If COMMENT is supplied, it is inserted after the
  2111. # `#!' sequence but before initialization text begins. After this
  2112. # macro, additional text can be appended to FILE to form the body of
  2113. # the child script. The macro ends with non-zero status if the
  2114. # file could not be fully written (such as if the disk is full).
  2115. # _LT_GENERATED_FILE_INIT
  2116. # LT_OUTPUT
  2117. # ---------
  2118. # This macro allows early generation of the libtool script (before
  2119. # AC_OUTPUT is called), incase it is used in configure for compilation
  2120. # tests.
  2121. # LT_OUTPUT
  2122. # _LT_CONFIG(TAG)
  2123. # ---------------
  2124. # If TAG is the built-in tag, create an initial libtool script with a
  2125. # default configuration from the untagged config vars. Otherwise add code
  2126. # to config.status for appending the configuration named by TAG from the
  2127. # matching tagged config vars.
  2128. # _LT_CONFIG
  2129. # LT_SUPPORTED_TAG(TAG)
  2130. # ---------------------
  2131. # Trace this macro to discover what tags are supported by the libtool
  2132. # --tag option, using:
  2133. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2134. # C support is built-in for now
  2135. # LT_LANG(LANG)
  2136. # -------------
  2137. # Enable libtool support for the given language if not already enabled.
  2138. # LT_LANG
  2139. # _LT_LANG(LANGNAME)
  2140. # ------------------
  2141. # _LT_LANG
  2142. # _LT_LANG_DEFAULT_CONFIG
  2143. # -----------------------
  2144. # _LT_LANG_DEFAULT_CONFIG
  2145. # Obsolete macros:
  2146. # This is what autoupdate's m4 run will expand. It fires
  2147. # the warning (with _au_warn_XXX), outputs it into the
  2148. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2149. # the replacement expansion.
  2150. # This is an auxiliary macro that is also run when
  2151. # autoupdate runs m4. It simply calls m4_warning, but
  2152. # we need a wrapper so that each warning is emitted only
  2153. # once. We break the quoting in m4_warning's argument in
  2154. # order to expand this macro's arguments, not AU_DEFUN's.
  2155. # Finally, this is the expansion that is picked up by
  2156. # autoconf. It tells the user to run autoupdate, and
  2157. # then outputs the replacement expansion. We do not care
  2158. # about autoupdate's warning because that contains
  2159. # information on what to do *after* running autoupdate.
  2160. # This is what autoupdate's m4 run will expand. It fires
  2161. # the warning (with _au_warn_XXX), outputs it into the
  2162. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2163. # the replacement expansion.
  2164. # This is an auxiliary macro that is also run when
  2165. # autoupdate runs m4. It simply calls m4_warning, but
  2166. # we need a wrapper so that each warning is emitted only
  2167. # once. We break the quoting in m4_warning's argument in
  2168. # order to expand this macro's arguments, not AU_DEFUN's.
  2169. # Finally, this is the expansion that is picked up by
  2170. # autoconf. It tells the user to run autoupdate, and
  2171. # then outputs the replacement expansion. We do not care
  2172. # about autoupdate's warning because that contains
  2173. # information on what to do *after* running autoupdate.
  2174. # This is what autoupdate's m4 run will expand. It fires
  2175. # the warning (with _au_warn_XXX), outputs it into the
  2176. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2177. # the replacement expansion.
  2178. # This is an auxiliary macro that is also run when
  2179. # autoupdate runs m4. It simply calls m4_warning, but
  2180. # we need a wrapper so that each warning is emitted only
  2181. # once. We break the quoting in m4_warning's argument in
  2182. # order to expand this macro's arguments, not AU_DEFUN's.
  2183. # Finally, this is the expansion that is picked up by
  2184. # autoconf. It tells the user to run autoupdate, and
  2185. # then outputs the replacement expansion. We do not care
  2186. # about autoupdate's warning because that contains
  2187. # information on what to do *after* running autoupdate.
  2188. # This is what autoupdate's m4 run will expand. It fires
  2189. # the warning (with _au_warn_XXX), outputs it into the
  2190. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2191. # the replacement expansion.
  2192. # This is an auxiliary macro that is also run when
  2193. # autoupdate runs m4. It simply calls m4_warning, but
  2194. # we need a wrapper so that each warning is emitted only
  2195. # once. We break the quoting in m4_warning's argument in
  2196. # order to expand this macro's arguments, not AU_DEFUN's.
  2197. # Finally, this is the expansion that is picked up by
  2198. # autoconf. It tells the user to run autoupdate, and
  2199. # then outputs the replacement expansion. We do not care
  2200. # about autoupdate's warning because that contains
  2201. # information on what to do *after* running autoupdate.
  2202. # This is what autoupdate's m4 run will expand. It fires
  2203. # the warning (with _au_warn_XXX), outputs it into the
  2204. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2205. # the replacement expansion.
  2206. # This is an auxiliary macro that is also run when
  2207. # autoupdate runs m4. It simply calls m4_warning, but
  2208. # we need a wrapper so that each warning is emitted only
  2209. # once. We break the quoting in m4_warning's argument in
  2210. # order to expand this macro's arguments, not AU_DEFUN's.
  2211. # Finally, this is the expansion that is picked up by
  2212. # autoconf. It tells the user to run autoupdate, and
  2213. # then outputs the replacement expansion. We do not care
  2214. # about autoupdate's warning because that contains
  2215. # information on what to do *after* running autoupdate.
  2216. # _LT_TAG_COMPILER
  2217. # ----------------
  2218. # _LT_TAG_COMPILER
  2219. # _LT_COMPILER_BOILERPLATE
  2220. # ------------------------
  2221. # Check for compiler boilerplate output or warnings with
  2222. # the simple compiler test code.
  2223. # _LT_COMPILER_BOILERPLATE
  2224. # _LT_LINKER_BOILERPLATE
  2225. # ----------------------
  2226. # Check for linker boilerplate output or warnings with
  2227. # the simple link test code.
  2228. # _LT_LINKER_BOILERPLATE
  2229. # _LT_REQUIRED_DARWIN_CHECKS
  2230. # -------------------------
  2231. # _LT_DARWIN_LINKER_FEATURES
  2232. # --------------------------
  2233. # Checks for linker and compiler features on darwin
  2234. # _LT_SYS_MODULE_PATH_AIX
  2235. # -----------------------
  2236. # Links a minimal program and checks the executable
  2237. # for the system default hardcoded library path. In most cases,
  2238. # this is /usr/lib:/lib, but when the MPI compilers are used
  2239. # the location of the communication and MPI libs are included too.
  2240. # If we don't find anything, use the default library path according
  2241. # to the aix ld manual.
  2242. # _LT_SYS_MODULE_PATH_AIX
  2243. # _LT_SHELL_INIT(ARG)
  2244. # -------------------
  2245. # _LT_SHELL_INIT
  2246. # _LT_PROG_ECHO_BACKSLASH
  2247. # -----------------------
  2248. # Find how we can fake an echo command that does not interpret backslash.
  2249. # In particular, with Autoconf 2.60 or later we add some code to the start
  2250. # of the generated configure script which will find a shell with a builtin
  2251. # printf (which we can use as an echo command).
  2252. # _LT_PROG_ECHO_BACKSLASH
  2253. # _LT_ENABLE_LOCK
  2254. # ---------------
  2255. # _LT_ENABLE_LOCK
  2256. # _LT_CMD_OLD_ARCHIVE
  2257. # -------------------
  2258. # _LT_CMD_OLD_ARCHIVE
  2259. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2260. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2261. # ----------------------------------------------------------------
  2262. # Check whether the given compiler option works
  2263. # _LT_COMPILER_OPTION
  2264. # Old name:
  2265. # This is what autoupdate's m4 run will expand. It fires
  2266. # the warning (with _au_warn_XXX), outputs it into the
  2267. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2268. # the replacement expansion.
  2269. # This is an auxiliary macro that is also run when
  2270. # autoupdate runs m4. It simply calls m4_warning, but
  2271. # we need a wrapper so that each warning is emitted only
  2272. # once. We break the quoting in m4_warning's argument in
  2273. # order to expand this macro's arguments, not AU_DEFUN's.
  2274. # Finally, this is the expansion that is picked up by
  2275. # autoconf. It tells the user to run autoupdate, and
  2276. # then outputs the replacement expansion. We do not care
  2277. # about autoupdate's warning because that contains
  2278. # information on what to do *after* running autoupdate.
  2279. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2280. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2281. # ----------------------------------------------------
  2282. # Check whether the given linker option works
  2283. # _LT_LINKER_OPTION
  2284. # Old name:
  2285. # This is what autoupdate's m4 run will expand. It fires
  2286. # the warning (with _au_warn_XXX), outputs it into the
  2287. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2288. # the replacement expansion.
  2289. # This is an auxiliary macro that is also run when
  2290. # autoupdate runs m4. It simply calls m4_warning, but
  2291. # we need a wrapper so that each warning is emitted only
  2292. # once. We break the quoting in m4_warning's argument in
  2293. # order to expand this macro's arguments, not AU_DEFUN's.
  2294. # Finally, this is the expansion that is picked up by
  2295. # autoconf. It tells the user to run autoupdate, and
  2296. # then outputs the replacement expansion. We do not care
  2297. # about autoupdate's warning because that contains
  2298. # information on what to do *after* running autoupdate.
  2299. # LT_CMD_MAX_LEN
  2300. #---------------
  2301. # LT_CMD_MAX_LEN
  2302. # Old name:
  2303. # This is what autoupdate's m4 run will expand. It fires
  2304. # the warning (with _au_warn_XXX), outputs it into the
  2305. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2306. # the replacement expansion.
  2307. # This is an auxiliary macro that is also run when
  2308. # autoupdate runs m4. It simply calls m4_warning, but
  2309. # we need a wrapper so that each warning is emitted only
  2310. # once. We break the quoting in m4_warning's argument in
  2311. # order to expand this macro's arguments, not AU_DEFUN's.
  2312. # Finally, this is the expansion that is picked up by
  2313. # autoconf. It tells the user to run autoupdate, and
  2314. # then outputs the replacement expansion. We do not care
  2315. # about autoupdate's warning because that contains
  2316. # information on what to do *after* running autoupdate.
  2317. # _LT_HEADER_DLFCN
  2318. # ----------------
  2319. # _LT_HEADER_DLFCN
  2320. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2321. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2322. # ----------------------------------------------------------------
  2323. # _LT_TRY_DLOPEN_SELF
  2324. # LT_SYS_DLOPEN_SELF
  2325. # ------------------
  2326. # LT_SYS_DLOPEN_SELF
  2327. # Old name:
  2328. # This is what autoupdate's m4 run will expand. It fires
  2329. # the warning (with _au_warn_XXX), outputs it into the
  2330. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2331. # the replacement expansion.
  2332. # This is an auxiliary macro that is also run when
  2333. # autoupdate runs m4. It simply calls m4_warning, but
  2334. # we need a wrapper so that each warning is emitted only
  2335. # once. We break the quoting in m4_warning's argument in
  2336. # order to expand this macro's arguments, not AU_DEFUN's.
  2337. # Finally, this is the expansion that is picked up by
  2338. # autoconf. It tells the user to run autoupdate, and
  2339. # then outputs the replacement expansion. We do not care
  2340. # about autoupdate's warning because that contains
  2341. # information on what to do *after* running autoupdate.
  2342. # _LT_COMPILER_C_O([TAGNAME])
  2343. # ---------------------------
  2344. # Check to see if options -c and -o are simultaneously supported by compiler.
  2345. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2346. # _LT_COMPILER_C_O
  2347. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2348. # ----------------------------------
  2349. # Check to see if we can do hard links to lock some files if needed
  2350. # _LT_COMPILER_FILE_LOCKS
  2351. # _LT_CHECK_OBJDIR
  2352. # ----------------
  2353. # _LT_CHECK_OBJDIR
  2354. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2355. # --------------------------------------
  2356. # Check hardcoding attributes.
  2357. # _LT_LINKER_HARDCODE_LIBPATH
  2358. # _LT_CMD_STRIPLIB
  2359. # ----------------
  2360. # _LT_CMD_STRIPLIB
  2361. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2362. # -----------------------------
  2363. # PORTME Fill in your ld.so characteristics
  2364. # _LT_SYS_DYNAMIC_LINKER
  2365. # _LT_PATH_TOOL_PREFIX(TOOL)
  2366. # --------------------------
  2367. # find a file program which can recognize shared library
  2368. # _LT_PATH_TOOL_PREFIX
  2369. # Old name:
  2370. # This is what autoupdate's m4 run will expand. It fires
  2371. # the warning (with _au_warn_XXX), outputs it into the
  2372. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2373. # the replacement expansion.
  2374. # This is an auxiliary macro that is also run when
  2375. # autoupdate runs m4. It simply calls m4_warning, but
  2376. # we need a wrapper so that each warning is emitted only
  2377. # once. We break the quoting in m4_warning's argument in
  2378. # order to expand this macro's arguments, not AU_DEFUN's.
  2379. # Finally, this is the expansion that is picked up by
  2380. # autoconf. It tells the user to run autoupdate, and
  2381. # then outputs the replacement expansion. We do not care
  2382. # about autoupdate's warning because that contains
  2383. # information on what to do *after* running autoupdate.
  2384. # _LT_PATH_MAGIC
  2385. # --------------
  2386. # find a file program which can recognize a shared library
  2387. # _LT_PATH_MAGIC
  2388. # LT_PATH_LD
  2389. # ----------
  2390. # find the pathname to the GNU or non-GNU linker
  2391. # LT_PATH_LD
  2392. # Old names:
  2393. # This is what autoupdate's m4 run will expand. It fires
  2394. # the warning (with _au_warn_XXX), outputs it into the
  2395. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2396. # the replacement expansion.
  2397. # This is an auxiliary macro that is also run when
  2398. # autoupdate runs m4. It simply calls m4_warning, but
  2399. # we need a wrapper so that each warning is emitted only
  2400. # once. We break the quoting in m4_warning's argument in
  2401. # order to expand this macro's arguments, not AU_DEFUN's.
  2402. # Finally, this is the expansion that is picked up by
  2403. # autoconf. It tells the user to run autoupdate, and
  2404. # then outputs the replacement expansion. We do not care
  2405. # about autoupdate's warning because that contains
  2406. # information on what to do *after* running autoupdate.
  2407. # This is what autoupdate's m4 run will expand. It fires
  2408. # the warning (with _au_warn_XXX), outputs it into the
  2409. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2410. # the replacement expansion.
  2411. # This is an auxiliary macro that is also run when
  2412. # autoupdate runs m4. It simply calls m4_warning, but
  2413. # we need a wrapper so that each warning is emitted only
  2414. # once. We break the quoting in m4_warning's argument in
  2415. # order to expand this macro's arguments, not AU_DEFUN's.
  2416. # Finally, this is the expansion that is picked up by
  2417. # autoconf. It tells the user to run autoupdate, and
  2418. # then outputs the replacement expansion. We do not care
  2419. # about autoupdate's warning because that contains
  2420. # information on what to do *after* running autoupdate.
  2421. # _LT_PATH_LD_GNU
  2422. #- --------------
  2423. # _LT_PATH_LD_GNU
  2424. # _LT_CMD_RELOAD
  2425. # --------------
  2426. # find reload flag for linker
  2427. # -- PORTME Some linkers may need a different reload flag.
  2428. # _LT_CMD_RELOAD
  2429. # _LT_CHECK_MAGIC_METHOD
  2430. # ----------------------
  2431. # how to check for library dependencies
  2432. # -- PORTME fill in with the dynamic library characteristics
  2433. # _LT_CHECK_MAGIC_METHOD
  2434. # LT_PATH_NM
  2435. # ----------
  2436. # find the pathname to a BSD- or MS-compatible name lister
  2437. # LT_PATH_NM
  2438. # Old names:
  2439. # This is what autoupdate's m4 run will expand. It fires
  2440. # the warning (with _au_warn_XXX), outputs it into the
  2441. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2442. # the replacement expansion.
  2443. # This is an auxiliary macro that is also run when
  2444. # autoupdate runs m4. It simply calls m4_warning, but
  2445. # we need a wrapper so that each warning is emitted only
  2446. # once. We break the quoting in m4_warning's argument in
  2447. # order to expand this macro's arguments, not AU_DEFUN's.
  2448. # Finally, this is the expansion that is picked up by
  2449. # autoconf. It tells the user to run autoupdate, and
  2450. # then outputs the replacement expansion. We do not care
  2451. # about autoupdate's warning because that contains
  2452. # information on what to do *after* running autoupdate.
  2453. # This is what autoupdate's m4 run will expand. It fires
  2454. # the warning (with _au_warn_XXX), outputs it into the
  2455. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2456. # the replacement expansion.
  2457. # This is an auxiliary macro that is also run when
  2458. # autoupdate runs m4. It simply calls m4_warning, but
  2459. # we need a wrapper so that each warning is emitted only
  2460. # once. We break the quoting in m4_warning's argument in
  2461. # order to expand this macro's arguments, not AU_DEFUN's.
  2462. # Finally, this is the expansion that is picked up by
  2463. # autoconf. It tells the user to run autoupdate, and
  2464. # then outputs the replacement expansion. We do not care
  2465. # about autoupdate's warning because that contains
  2466. # information on what to do *after* running autoupdate.
  2467. # LT_LIB_M
  2468. # --------
  2469. # check for math library
  2470. # LT_LIB_M
  2471. # Old name:
  2472. # This is what autoupdate's m4 run will expand. It fires
  2473. # the warning (with _au_warn_XXX), outputs it into the
  2474. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2475. # the replacement expansion.
  2476. # This is an auxiliary macro that is also run when
  2477. # autoupdate runs m4. It simply calls m4_warning, but
  2478. # we need a wrapper so that each warning is emitted only
  2479. # once. We break the quoting in m4_warning's argument in
  2480. # order to expand this macro's arguments, not AU_DEFUN's.
  2481. # Finally, this is the expansion that is picked up by
  2482. # autoconf. It tells the user to run autoupdate, and
  2483. # then outputs the replacement expansion. We do not care
  2484. # about autoupdate's warning because that contains
  2485. # information on what to do *after* running autoupdate.
  2486. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2487. # -------------------------------
  2488. # _LT_COMPILER_NO_RTTI
  2489. # _LT_CMD_GLOBAL_SYMBOLS
  2490. # ----------------------
  2491. # _LT_CMD_GLOBAL_SYMBOLS
  2492. # _LT_COMPILER_PIC([TAGNAME])
  2493. # ---------------------------
  2494. # _LT_COMPILER_PIC
  2495. # _LT_LINKER_SHLIBS([TAGNAME])
  2496. # ----------------------------
  2497. # See if the linker supports building shared libraries.
  2498. # _LT_LINKER_SHLIBS
  2499. # _LT_LANG_C_CONFIG([TAG])
  2500. # ------------------------
  2501. # Ensure that the configuration variables for a C compiler are suitably
  2502. # defined. These variables are subsequently used by _LT_CONFIG to write
  2503. # the compiler configuration to `libtool'.
  2504. # _LT_LANG_C_CONFIG
  2505. # _LT_LANG_CXX_CONFIG([TAG])
  2506. # --------------------------
  2507. # Ensure that the configuration variables for a C++ compiler are suitably
  2508. # defined. These variables are subsequently used by _LT_CONFIG to write
  2509. # the compiler configuration to `libtool'.
  2510. # _LT_LANG_CXX_CONFIG
  2511. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  2512. # ---------------------------------
  2513. # Figure out "hidden" library dependencies from verbose
  2514. # compiler output when linking a shared library.
  2515. # Parse the compiler output and extract the necessary
  2516. # objects, libraries and library flags.
  2517. # _LT_SYS_HIDDEN_LIBDEPS
  2518. # _LT_LANG_F77_CONFIG([TAG])
  2519. # --------------------------
  2520. # Ensure that the configuration variables for a Fortran 77 compiler are
  2521. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2522. # to write the compiler configuration to `libtool'.
  2523. # _LT_LANG_F77_CONFIG
  2524. # _LT_LANG_FC_CONFIG([TAG])
  2525. # -------------------------
  2526. # Ensure that the configuration variables for a Fortran compiler are
  2527. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2528. # to write the compiler configuration to `libtool'.
  2529. # _LT_LANG_FC_CONFIG
  2530. # _LT_LANG_GCJ_CONFIG([TAG])
  2531. # --------------------------
  2532. # Ensure that the configuration variables for the GNU Java Compiler compiler
  2533. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2534. # to write the compiler configuration to `libtool'.
  2535. # _LT_LANG_GCJ_CONFIG
  2536. # _LT_LANG_RC_CONFIG([TAG])
  2537. # -------------------------
  2538. # Ensure that the configuration variables for the Windows resource compiler
  2539. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2540. # to write the compiler configuration to `libtool'.
  2541. # _LT_LANG_RC_CONFIG
  2542. # LT_PROG_GCJ
  2543. # -----------
  2544. # Old name:
  2545. # This is what autoupdate's m4 run will expand. It fires
  2546. # the warning (with _au_warn_XXX), outputs it into the
  2547. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2548. # the replacement expansion.
  2549. # This is an auxiliary macro that is also run when
  2550. # autoupdate runs m4. It simply calls m4_warning, but
  2551. # we need a wrapper so that each warning is emitted only
  2552. # once. We break the quoting in m4_warning's argument in
  2553. # order to expand this macro's arguments, not AU_DEFUN's.
  2554. # Finally, this is the expansion that is picked up by
  2555. # autoconf. It tells the user to run autoupdate, and
  2556. # then outputs the replacement expansion. We do not care
  2557. # about autoupdate's warning because that contains
  2558. # information on what to do *after* running autoupdate.
  2559. # LT_PROG_RC
  2560. # ----------
  2561. # Old name:
  2562. # This is what autoupdate's m4 run will expand. It fires
  2563. # the warning (with _au_warn_XXX), outputs it into the
  2564. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2565. # the replacement expansion.
  2566. # This is an auxiliary macro that is also run when
  2567. # autoupdate runs m4. It simply calls m4_warning, but
  2568. # we need a wrapper so that each warning is emitted only
  2569. # once. We break the quoting in m4_warning's argument in
  2570. # order to expand this macro's arguments, not AU_DEFUN's.
  2571. # Finally, this is the expansion that is picked up by
  2572. # autoconf. It tells the user to run autoupdate, and
  2573. # then outputs the replacement expansion. We do not care
  2574. # about autoupdate's warning because that contains
  2575. # information on what to do *after* running autoupdate.
  2576. # _LT_DECL_EGREP
  2577. # --------------
  2578. # If we don't have a new enough Autoconf to choose the best grep
  2579. # available, choose the one first in the user's PATH.
  2580. # _LT_DECL_OBJDUMP
  2581. # --------------
  2582. # If we don't have a new enough Autoconf to choose the best objdump
  2583. # available, choose the one first in the user's PATH.
  2584. # _LT_DECL_SED
  2585. # ------------
  2586. # Check for a fully-functional sed program, that truncates
  2587. # as few characters as possible. Prefer GNU sed if found.
  2588. # _LT_DECL_SED
  2589. #m4_ifndef
  2590. # Old name:
  2591. # This is what autoupdate's m4 run will expand. It fires
  2592. # the warning (with _au_warn_XXX), outputs it into the
  2593. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2594. # the replacement expansion.
  2595. # This is an auxiliary macro that is also run when
  2596. # autoupdate runs m4. It simply calls m4_warning, but
  2597. # we need a wrapper so that each warning is emitted only
  2598. # once. We break the quoting in m4_warning's argument in
  2599. # order to expand this macro's arguments, not AU_DEFUN's.
  2600. # Finally, this is the expansion that is picked up by
  2601. # autoconf. It tells the user to run autoupdate, and
  2602. # then outputs the replacement expansion. We do not care
  2603. # about autoupdate's warning because that contains
  2604. # information on what to do *after* running autoupdate.
  2605. # _LT_CHECK_SHELL_FEATURES
  2606. # ------------------------
  2607. # Find out whether the shell is Bourne or XSI compatible,
  2608. # or has some other useful features.
  2609. # _LT_CHECK_SHELL_FEATURES
  2610. # _LT_PROG_XSI_SHELLFNS
  2611. # ---------------------
  2612. # Bourne and XSI compatible variants of some useful shell functions.
  2613. # Make sure we can run config.sub.
  2614. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2615. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2617. $as_echo_n "checking build system type... " >&6; }
  2618. if test "${ac_cv_build+set}" = set; then :
  2619. $as_echo_n "(cached) " >&6
  2620. else
  2621. ac_build_alias=$build_alias
  2622. test "x$ac_build_alias" = x &&
  2623. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2624. test "x$ac_build_alias" = x &&
  2625. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2626. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2627. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2628. fi
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2630. $as_echo "$ac_cv_build" >&6; }
  2631. case $ac_cv_build in
  2632. *-*-*) ;;
  2633. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2634. esac
  2635. build=$ac_cv_build
  2636. ac_save_IFS=$IFS; IFS='-'
  2637. set x $ac_cv_build
  2638. shift
  2639. build_cpu=$1
  2640. build_vendor=$2
  2641. shift; shift
  2642. # Remember, the first character of IFS is used to create $*,
  2643. # except with old shells:
  2644. build_os=$*
  2645. IFS=$ac_save_IFS
  2646. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2648. $as_echo_n "checking host system type... " >&6; }
  2649. if test "${ac_cv_host+set}" = set; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test "x$host_alias" = x; then
  2653. ac_cv_host=$ac_cv_build
  2654. else
  2655. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2656. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2657. fi
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2660. $as_echo "$ac_cv_host" >&6; }
  2661. case $ac_cv_host in
  2662. *-*-*) ;;
  2663. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2664. esac
  2665. host=$ac_cv_host
  2666. ac_save_IFS=$IFS; IFS='-'
  2667. set x $ac_cv_host
  2668. shift
  2669. host_cpu=$1
  2670. host_vendor=$2
  2671. shift; shift
  2672. # Remember, the first character of IFS is used to create $*,
  2673. # except with old shells:
  2674. host_os=$*
  2675. IFS=$ac_save_IFS
  2676. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2678. $as_echo_n "checking target system type... " >&6; }
  2679. if test "${ac_cv_target+set}" = set; then :
  2680. $as_echo_n "(cached) " >&6
  2681. else
  2682. if test "x$target_alias" = x; then
  2683. ac_cv_target=$ac_cv_host
  2684. else
  2685. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2686. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2687. fi
  2688. fi
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2690. $as_echo "$ac_cv_target" >&6; }
  2691. case $ac_cv_target in
  2692. *-*-*) ;;
  2693. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2694. esac
  2695. target=$ac_cv_target
  2696. ac_save_IFS=$IFS; IFS='-'
  2697. set x $ac_cv_target
  2698. shift
  2699. target_cpu=$1
  2700. target_vendor=$2
  2701. shift; shift
  2702. # Remember, the first character of IFS is used to create $*,
  2703. # except with old shells:
  2704. target_os=$*
  2705. IFS=$ac_save_IFS
  2706. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2707. # The aliases save the names the user supplied, while $host etc.
  2708. # will get canonicalized.
  2709. test -n "$target_alias" &&
  2710. test "$program_prefix$program_suffix$program_transform_name" = \
  2711. NONENONEs,x,x, &&
  2712. program_prefix=${target_alias}-
  2713. ac_ext=c
  2714. ac_cpp='$CPP $CPPFLAGS'
  2715. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2716. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2717. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2718. if test -n "$ac_tool_prefix"; then
  2719. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2720. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2722. $as_echo_n "checking for $ac_word... " >&6; }
  2723. if test "${ac_cv_prog_CC+set}" = set; then :
  2724. $as_echo_n "(cached) " >&6
  2725. else
  2726. if test -n "$CC"; then
  2727. ac_cv_prog_CC="$CC" # Let the user override the test.
  2728. else
  2729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2730. for as_dir in $PATH
  2731. do
  2732. IFS=$as_save_IFS
  2733. test -z "$as_dir" && as_dir=.
  2734. for ac_exec_ext in '' $ac_executable_extensions; do
  2735. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2736. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2738. break 2
  2739. fi
  2740. done
  2741. done
  2742. IFS=$as_save_IFS
  2743. fi
  2744. fi
  2745. CC=$ac_cv_prog_CC
  2746. if test -n "$CC"; then
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2748. $as_echo "$CC" >&6; }
  2749. else
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. fi
  2753. fi
  2754. if test -z "$ac_cv_prog_CC"; then
  2755. ac_ct_CC=$CC
  2756. # Extract the first word of "gcc", so it can be a program name with args.
  2757. set dummy gcc; ac_word=$2
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2759. $as_echo_n "checking for $ac_word... " >&6; }
  2760. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2761. $as_echo_n "(cached) " >&6
  2762. else
  2763. if test -n "$ac_ct_CC"; then
  2764. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2765. else
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2773. ac_cv_prog_ac_ct_CC="gcc"
  2774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2775. break 2
  2776. fi
  2777. done
  2778. done
  2779. IFS=$as_save_IFS
  2780. fi
  2781. fi
  2782. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2783. if test -n "$ac_ct_CC"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2785. $as_echo "$ac_ct_CC" >&6; }
  2786. else
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790. if test "x$ac_ct_CC" = x; then
  2791. CC=""
  2792. else
  2793. case $cross_compiling:$ac_tool_warned in
  2794. yes:)
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2797. ac_tool_warned=yes ;;
  2798. esac
  2799. CC=$ac_ct_CC
  2800. fi
  2801. else
  2802. CC="$ac_cv_prog_CC"
  2803. fi
  2804. if test -z "$CC"; then
  2805. if test -n "$ac_tool_prefix"; then
  2806. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2807. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2809. $as_echo_n "checking for $ac_word... " >&6; }
  2810. if test "${ac_cv_prog_CC+set}" = set; then :
  2811. $as_echo_n "(cached) " >&6
  2812. else
  2813. if test -n "$CC"; then
  2814. ac_cv_prog_CC="$CC" # Let the user override the test.
  2815. else
  2816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2817. for as_dir in $PATH
  2818. do
  2819. IFS=$as_save_IFS
  2820. test -z "$as_dir" && as_dir=.
  2821. for ac_exec_ext in '' $ac_executable_extensions; do
  2822. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2823. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2825. break 2
  2826. fi
  2827. done
  2828. done
  2829. IFS=$as_save_IFS
  2830. fi
  2831. fi
  2832. CC=$ac_cv_prog_CC
  2833. if test -n "$CC"; then
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2835. $as_echo "$CC" >&6; }
  2836. else
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2838. $as_echo "no" >&6; }
  2839. fi
  2840. fi
  2841. fi
  2842. if test -z "$CC"; then
  2843. # Extract the first word of "cc", so it can be a program name with args.
  2844. set dummy cc; ac_word=$2
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2846. $as_echo_n "checking for $ac_word... " >&6; }
  2847. if test "${ac_cv_prog_CC+set}" = set; then :
  2848. $as_echo_n "(cached) " >&6
  2849. else
  2850. if test -n "$CC"; then
  2851. ac_cv_prog_CC="$CC" # Let the user override the test.
  2852. else
  2853. ac_prog_rejected=no
  2854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2855. for as_dir in $PATH
  2856. do
  2857. IFS=$as_save_IFS
  2858. test -z "$as_dir" && as_dir=.
  2859. for ac_exec_ext in '' $ac_executable_extensions; do
  2860. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2861. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2862. ac_prog_rejected=yes
  2863. continue
  2864. fi
  2865. ac_cv_prog_CC="cc"
  2866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2867. break 2
  2868. fi
  2869. done
  2870. done
  2871. IFS=$as_save_IFS
  2872. if test $ac_prog_rejected = yes; then
  2873. # We found a bogon in the path, so make sure we never use it.
  2874. set dummy $ac_cv_prog_CC
  2875. shift
  2876. if test $# != 0; then
  2877. # We chose a different compiler from the bogus one.
  2878. # However, it has the same basename, so the bogon will be chosen
  2879. # first if we set CC to just the basename; use the full file name.
  2880. shift
  2881. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2882. fi
  2883. fi
  2884. fi
  2885. fi
  2886. CC=$ac_cv_prog_CC
  2887. if test -n "$CC"; then
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2889. $as_echo "$CC" >&6; }
  2890. else
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fi
  2894. fi
  2895. if test -z "$CC"; then
  2896. if test -n "$ac_tool_prefix"; then
  2897. for ac_prog in cl.exe
  2898. do
  2899. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2900. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2902. $as_echo_n "checking for $ac_word... " >&6; }
  2903. if test "${ac_cv_prog_CC+set}" = set; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. if test -n "$CC"; then
  2907. ac_cv_prog_CC="$CC" # Let the user override the test.
  2908. else
  2909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2910. for as_dir in $PATH
  2911. do
  2912. IFS=$as_save_IFS
  2913. test -z "$as_dir" && as_dir=.
  2914. for ac_exec_ext in '' $ac_executable_extensions; do
  2915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2916. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2918. break 2
  2919. fi
  2920. done
  2921. done
  2922. IFS=$as_save_IFS
  2923. fi
  2924. fi
  2925. CC=$ac_cv_prog_CC
  2926. if test -n "$CC"; then
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2928. $as_echo "$CC" >&6; }
  2929. else
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2931. $as_echo "no" >&6; }
  2932. fi
  2933. test -n "$CC" && break
  2934. done
  2935. fi
  2936. if test -z "$CC"; then
  2937. ac_ct_CC=$CC
  2938. for ac_prog in cl.exe
  2939. do
  2940. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2941. set dummy $ac_prog; ac_word=$2
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2943. $as_echo_n "checking for $ac_word... " >&6; }
  2944. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2945. $as_echo_n "(cached) " >&6
  2946. else
  2947. if test -n "$ac_ct_CC"; then
  2948. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2949. else
  2950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2951. for as_dir in $PATH
  2952. do
  2953. IFS=$as_save_IFS
  2954. test -z "$as_dir" && as_dir=.
  2955. for ac_exec_ext in '' $ac_executable_extensions; do
  2956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2957. ac_cv_prog_ac_ct_CC="$ac_prog"
  2958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2959. break 2
  2960. fi
  2961. done
  2962. done
  2963. IFS=$as_save_IFS
  2964. fi
  2965. fi
  2966. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2967. if test -n "$ac_ct_CC"; then
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2969. $as_echo "$ac_ct_CC" >&6; }
  2970. else
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2972. $as_echo "no" >&6; }
  2973. fi
  2974. test -n "$ac_ct_CC" && break
  2975. done
  2976. if test "x$ac_ct_CC" = x; then
  2977. CC=""
  2978. else
  2979. case $cross_compiling:$ac_tool_warned in
  2980. yes:)
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2982. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2983. ac_tool_warned=yes ;;
  2984. esac
  2985. CC=$ac_ct_CC
  2986. fi
  2987. fi
  2988. fi
  2989. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2991. as_fn_error "no acceptable C compiler found in \$PATH
  2992. See \`config.log' for more details." "$LINENO" 5; }
  2993. # Provide some information about the compiler.
  2994. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2995. set X $ac_compile
  2996. ac_compiler=$2
  2997. for ac_option in --version -v -V -qversion; do
  2998. { { ac_try="$ac_compiler $ac_option >&5"
  2999. case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3004. $as_echo "$ac_try_echo"; } >&5
  3005. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3006. ac_status=$?
  3007. if test -s conftest.err; then
  3008. sed '10a\
  3009. ... rest of stderr output deleted ...
  3010. 10q' conftest.err >conftest.er1
  3011. cat conftest.er1 >&5
  3012. rm -f conftest.er1 conftest.err
  3013. fi
  3014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3015. test $ac_status = 0; }
  3016. done
  3017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3018. /* end confdefs.h. */
  3019. int
  3020. main ()
  3021. {
  3022. ;
  3023. return 0;
  3024. }
  3025. _ACEOF
  3026. ac_clean_files_save=$ac_clean_files
  3027. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3028. # Try to create an executable without -o first, disregard a.out.
  3029. # It will help us diagnose broken compilers, and finding out an intuition
  3030. # of exeext.
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3032. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3033. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3034. # The possible output files:
  3035. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3036. ac_rmfiles=
  3037. for ac_file in $ac_files
  3038. do
  3039. case $ac_file in
  3040. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3041. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3042. esac
  3043. done
  3044. rm -f $ac_rmfiles
  3045. if { { ac_try="$ac_link_default"
  3046. case "(($ac_try" in
  3047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3048. *) ac_try_echo=$ac_try;;
  3049. esac
  3050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3051. $as_echo "$ac_try_echo"; } >&5
  3052. (eval "$ac_link_default") 2>&5
  3053. ac_status=$?
  3054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3055. test $ac_status = 0; }; then :
  3056. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3057. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3058. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3059. # so that the user can short-circuit this test for compilers unknown to
  3060. # Autoconf.
  3061. for ac_file in $ac_files ''
  3062. do
  3063. test -f "$ac_file" || continue
  3064. case $ac_file in
  3065. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3066. ;;
  3067. [ab].out )
  3068. # We found the default executable, but exeext='' is most
  3069. # certainly right.
  3070. break;;
  3071. *.* )
  3072. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3073. then :; else
  3074. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3075. fi
  3076. # We set ac_cv_exeext here because the later test for it is not
  3077. # safe: cross compilers may not add the suffix if given an `-o'
  3078. # argument, so we may need to know it at that point already.
  3079. # Even if this section looks crufty: it has the advantage of
  3080. # actually working.
  3081. break;;
  3082. * )
  3083. break;;
  3084. esac
  3085. done
  3086. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3087. else
  3088. ac_file=''
  3089. fi
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3091. $as_echo "$ac_file" >&6; }
  3092. if test -z "$ac_file"; then :
  3093. $as_echo "$as_me: failed program was:" >&5
  3094. sed 's/^/| /' conftest.$ac_ext >&5
  3095. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3096. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3097. { as_fn_set_status 77
  3098. as_fn_error "C compiler cannot create executables
  3099. See \`config.log' for more details." "$LINENO" 5; }; }
  3100. fi
  3101. ac_exeext=$ac_cv_exeext
  3102. # Check that the compiler produces executables we can run. If not, either
  3103. # the compiler is broken, or we cross compile.
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3105. $as_echo_n "checking whether the C compiler works... " >&6; }
  3106. # If not cross compiling, check that we can run a simple program.
  3107. if test "$cross_compiling" != yes; then
  3108. if { ac_try='./$ac_file'
  3109. { { case "(($ac_try" in
  3110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3111. *) ac_try_echo=$ac_try;;
  3112. esac
  3113. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3114. $as_echo "$ac_try_echo"; } >&5
  3115. (eval "$ac_try") 2>&5
  3116. ac_status=$?
  3117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3118. test $ac_status = 0; }; }; then
  3119. cross_compiling=no
  3120. else
  3121. if test "$cross_compiling" = maybe; then
  3122. cross_compiling=yes
  3123. else
  3124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3126. as_fn_error "cannot run C compiled programs.
  3127. If you meant to cross compile, use \`--host'.
  3128. See \`config.log' for more details." "$LINENO" 5; }
  3129. fi
  3130. fi
  3131. fi
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3133. $as_echo "yes" >&6; }
  3134. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3135. ac_clean_files=$ac_clean_files_save
  3136. # Check that the compiler produces executables we can run. If not, either
  3137. # the compiler is broken, or we cross compile.
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3139. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3141. $as_echo "$cross_compiling" >&6; }
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3143. $as_echo_n "checking for suffix of executables... " >&6; }
  3144. if { { ac_try="$ac_link"
  3145. case "(($ac_try" in
  3146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3147. *) ac_try_echo=$ac_try;;
  3148. esac
  3149. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3150. $as_echo "$ac_try_echo"; } >&5
  3151. (eval "$ac_link") 2>&5
  3152. ac_status=$?
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3154. test $ac_status = 0; }; then :
  3155. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3156. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3157. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3158. # `rm'.
  3159. for ac_file in conftest.exe conftest conftest.*; do
  3160. test -f "$ac_file" || continue
  3161. case $ac_file in
  3162. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3163. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3164. break;;
  3165. * ) break;;
  3166. esac
  3167. done
  3168. else
  3169. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3170. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3171. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3172. See \`config.log' for more details." "$LINENO" 5; }
  3173. fi
  3174. rm -f conftest$ac_cv_exeext
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3176. $as_echo "$ac_cv_exeext" >&6; }
  3177. rm -f conftest.$ac_ext
  3178. EXEEXT=$ac_cv_exeext
  3179. ac_exeext=$EXEEXT
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3181. $as_echo_n "checking for suffix of object files... " >&6; }
  3182. if test "${ac_cv_objext+set}" = set; then :
  3183. $as_echo_n "(cached) " >&6
  3184. else
  3185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3186. /* end confdefs.h. */
  3187. int
  3188. main ()
  3189. {
  3190. ;
  3191. return 0;
  3192. }
  3193. _ACEOF
  3194. rm -f conftest.o conftest.obj
  3195. if { { ac_try="$ac_compile"
  3196. case "(($ac_try" in
  3197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3198. *) ac_try_echo=$ac_try;;
  3199. esac
  3200. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3201. $as_echo "$ac_try_echo"; } >&5
  3202. (eval "$ac_compile") 2>&5
  3203. ac_status=$?
  3204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3205. test $ac_status = 0; }; then :
  3206. for ac_file in conftest.o conftest.obj conftest.*; do
  3207. test -f "$ac_file" || continue;
  3208. case $ac_file in
  3209. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3210. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3211. break;;
  3212. esac
  3213. done
  3214. else
  3215. $as_echo "$as_me: failed program was:" >&5
  3216. sed 's/^/| /' conftest.$ac_ext >&5
  3217. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3219. as_fn_error "cannot compute suffix of object files: cannot compile
  3220. See \`config.log' for more details." "$LINENO" 5; }
  3221. fi
  3222. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3223. fi
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3225. $as_echo "$ac_cv_objext" >&6; }
  3226. OBJEXT=$ac_cv_objext
  3227. ac_objext=$OBJEXT
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3229. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3230. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3231. $as_echo_n "(cached) " >&6
  3232. else
  3233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3234. /* end confdefs.h. */
  3235. int
  3236. main ()
  3237. {
  3238. #ifndef __GNUC__
  3239. choke me
  3240. #endif
  3241. ;
  3242. return 0;
  3243. }
  3244. _ACEOF
  3245. if ac_fn_c_try_compile "$LINENO"; then :
  3246. ac_compiler_gnu=yes
  3247. else
  3248. ac_compiler_gnu=no
  3249. fi
  3250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3251. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3252. fi
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3254. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3255. if test $ac_compiler_gnu = yes; then
  3256. GCC=yes
  3257. else
  3258. GCC=
  3259. fi
  3260. ac_test_CFLAGS=${CFLAGS+set}
  3261. ac_save_CFLAGS=$CFLAGS
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3263. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3264. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3265. $as_echo_n "(cached) " >&6
  3266. else
  3267. ac_save_c_werror_flag=$ac_c_werror_flag
  3268. ac_c_werror_flag=yes
  3269. ac_cv_prog_cc_g=no
  3270. CFLAGS="-g"
  3271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3272. /* end confdefs.h. */
  3273. int
  3274. main ()
  3275. {
  3276. ;
  3277. return 0;
  3278. }
  3279. _ACEOF
  3280. if ac_fn_c_try_compile "$LINENO"; then :
  3281. ac_cv_prog_cc_g=yes
  3282. else
  3283. CFLAGS=""
  3284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3285. /* end confdefs.h. */
  3286. int
  3287. main ()
  3288. {
  3289. ;
  3290. return 0;
  3291. }
  3292. _ACEOF
  3293. if ac_fn_c_try_compile "$LINENO"; then :
  3294. else
  3295. ac_c_werror_flag=$ac_save_c_werror_flag
  3296. CFLAGS="-g"
  3297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3298. /* end confdefs.h. */
  3299. int
  3300. main ()
  3301. {
  3302. ;
  3303. return 0;
  3304. }
  3305. _ACEOF
  3306. if ac_fn_c_try_compile "$LINENO"; then :
  3307. ac_cv_prog_cc_g=yes
  3308. fi
  3309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3310. fi
  3311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3312. fi
  3313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3314. ac_c_werror_flag=$ac_save_c_werror_flag
  3315. fi
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3317. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3318. if test "$ac_test_CFLAGS" = set; then
  3319. CFLAGS=$ac_save_CFLAGS
  3320. elif test $ac_cv_prog_cc_g = yes; then
  3321. if test "$GCC" = yes; then
  3322. CFLAGS="-g -O2"
  3323. else
  3324. CFLAGS="-g"
  3325. fi
  3326. else
  3327. if test "$GCC" = yes; then
  3328. CFLAGS="-O2"
  3329. else
  3330. CFLAGS=
  3331. fi
  3332. fi
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3334. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3335. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. ac_cv_prog_cc_c89=no
  3339. ac_save_CC=$CC
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. #include <stdarg.h>
  3343. #include <stdio.h>
  3344. #include <sys/types.h>
  3345. #include <sys/stat.h>
  3346. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3347. struct buf { int x; };
  3348. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3349. static char *e (p, i)
  3350. char **p;
  3351. int i;
  3352. {
  3353. return p[i];
  3354. }
  3355. static char *f (char * (*g) (char **, int), char **p, ...)
  3356. {
  3357. char *s;
  3358. va_list v;
  3359. va_start (v,p);
  3360. s = g (p, va_arg (v,int));
  3361. va_end (v);
  3362. return s;
  3363. }
  3364. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3365. function prototypes and stuff, but not '\xHH' hex character constants.
  3366. These don't provoke an error unfortunately, instead are silently treated
  3367. as 'x'. The following induces an error, until -std is added to get
  3368. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3369. array size at least. It's necessary to write '\x00'==0 to get something
  3370. that's true only with -std. */
  3371. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3372. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3373. inside strings and character constants. */
  3374. #define FOO(x) 'x'
  3375. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3376. int test (int i, double x);
  3377. struct s1 {int (*f) (int a);};
  3378. struct s2 {int (*f) (double a);};
  3379. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3380. int argc;
  3381. char **argv;
  3382. int
  3383. main ()
  3384. {
  3385. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3386. ;
  3387. return 0;
  3388. }
  3389. _ACEOF
  3390. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3391. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3392. do
  3393. CC="$ac_save_CC $ac_arg"
  3394. if ac_fn_c_try_compile "$LINENO"; then :
  3395. ac_cv_prog_cc_c89=$ac_arg
  3396. fi
  3397. rm -f core conftest.err conftest.$ac_objext
  3398. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3399. done
  3400. rm -f conftest.$ac_ext
  3401. CC=$ac_save_CC
  3402. fi
  3403. # AC_CACHE_VAL
  3404. case "x$ac_cv_prog_cc_c89" in
  3405. x)
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3407. $as_echo "none needed" >&6; } ;;
  3408. xno)
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3410. $as_echo "unsupported" >&6; } ;;
  3411. *)
  3412. CC="$CC $ac_cv_prog_cc_c89"
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3414. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3415. esac
  3416. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3417. fi
  3418. ac_ext=c
  3419. ac_cpp='$CPP $CPPFLAGS'
  3420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3423. ac_ext=c
  3424. ac_cpp='$CPP $CPPFLAGS'
  3425. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3426. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3427. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3429. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3430. # On Suns, sometimes $CPP names a directory.
  3431. if test -n "$CPP" && test -d "$CPP"; then
  3432. CPP=
  3433. fi
  3434. if test -z "$CPP"; then
  3435. if test "${ac_cv_prog_CPP+set}" = set; then :
  3436. $as_echo_n "(cached) " >&6
  3437. else
  3438. # Double quotes because CPP needs to be expanded
  3439. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3440. do
  3441. ac_preproc_ok=false
  3442. for ac_c_preproc_warn_flag in '' yes
  3443. do
  3444. # Use a header file that comes with gcc, so configuring glibc
  3445. # with a fresh cross-compiler works.
  3446. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3447. # <limits.h> exists even on freestanding compilers.
  3448. # On the NeXT, cc -E runs the code through the compiler's parser,
  3449. # not just through cpp. "Syntax error" is here to catch this case.
  3450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3451. /* end confdefs.h. */
  3452. #ifdef __STDC__
  3453. # include <limits.h>
  3454. #else
  3455. # include <assert.h>
  3456. #endif
  3457. Syntax error
  3458. _ACEOF
  3459. if ac_fn_c_try_cpp "$LINENO"; then :
  3460. else
  3461. # Broken: fails on valid input.
  3462. continue
  3463. fi
  3464. rm -f conftest.err conftest.$ac_ext
  3465. # OK, works on sane cases. Now check whether nonexistent headers
  3466. # can be detected and how.
  3467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3468. /* end confdefs.h. */
  3469. #include <ac_nonexistent.h>
  3470. _ACEOF
  3471. if ac_fn_c_try_cpp "$LINENO"; then :
  3472. # Broken: success on invalid input.
  3473. continue
  3474. else
  3475. # Passes both tests.
  3476. ac_preproc_ok=:
  3477. break
  3478. fi
  3479. rm -f conftest.err conftest.$ac_ext
  3480. done
  3481. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3482. rm -f conftest.err conftest.$ac_ext
  3483. if $ac_preproc_ok; then :
  3484. break
  3485. fi
  3486. done
  3487. ac_cv_prog_CPP=$CPP
  3488. fi
  3489. CPP=$ac_cv_prog_CPP
  3490. else
  3491. ac_cv_prog_CPP=$CPP
  3492. fi
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3494. $as_echo "$CPP" >&6; }
  3495. ac_preproc_ok=false
  3496. for ac_c_preproc_warn_flag in '' yes
  3497. do
  3498. # Use a header file that comes with gcc, so configuring glibc
  3499. # with a fresh cross-compiler works.
  3500. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3501. # <limits.h> exists even on freestanding compilers.
  3502. # On the NeXT, cc -E runs the code through the compiler's parser,
  3503. # not just through cpp. "Syntax error" is here to catch this case.
  3504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3505. /* end confdefs.h. */
  3506. #ifdef __STDC__
  3507. # include <limits.h>
  3508. #else
  3509. # include <assert.h>
  3510. #endif
  3511. Syntax error
  3512. _ACEOF
  3513. if ac_fn_c_try_cpp "$LINENO"; then :
  3514. else
  3515. # Broken: fails on valid input.
  3516. continue
  3517. fi
  3518. rm -f conftest.err conftest.$ac_ext
  3519. # OK, works on sane cases. Now check whether nonexistent headers
  3520. # can be detected and how.
  3521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3522. /* end confdefs.h. */
  3523. #include <ac_nonexistent.h>
  3524. _ACEOF
  3525. if ac_fn_c_try_cpp "$LINENO"; then :
  3526. # Broken: success on invalid input.
  3527. continue
  3528. else
  3529. # Passes both tests.
  3530. ac_preproc_ok=:
  3531. break
  3532. fi
  3533. rm -f conftest.err conftest.$ac_ext
  3534. done
  3535. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3536. rm -f conftest.err conftest.$ac_ext
  3537. if $ac_preproc_ok; then :
  3538. else
  3539. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3540. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3541. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3542. See \`config.log' for more details." "$LINENO" 5; }
  3543. fi
  3544. ac_ext=c
  3545. ac_cpp='$CPP $CPPFLAGS'
  3546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3550. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3551. if test "${ac_cv_path_GREP+set}" = set; then :
  3552. $as_echo_n "(cached) " >&6
  3553. else
  3554. if test -z "$GREP"; then
  3555. ac_path_GREP_found=false
  3556. # Loop through the user's path and test for each of PROGNAME-LIST
  3557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3558. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3559. do
  3560. IFS=$as_save_IFS
  3561. test -z "$as_dir" && as_dir=.
  3562. for ac_prog in grep ggrep; do
  3563. for ac_exec_ext in '' $ac_executable_extensions; do
  3564. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3565. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3566. # Check for GNU ac_path_GREP and select it if it is found.
  3567. # Check for GNU $ac_path_GREP
  3568. case `"$ac_path_GREP" --version 2>&1` in
  3569. *GNU*)
  3570. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3571. *)
  3572. ac_count=0
  3573. $as_echo_n 0123456789 >"conftest.in"
  3574. while :
  3575. do
  3576. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3577. mv "conftest.tmp" "conftest.in"
  3578. cp "conftest.in" "conftest.nl"
  3579. $as_echo 'GREP' >> "conftest.nl"
  3580. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3581. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3582. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3583. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3584. # Best one so far, save it but keep looking for a better one
  3585. ac_cv_path_GREP="$ac_path_GREP"
  3586. ac_path_GREP_max=$ac_count
  3587. fi
  3588. # 10*(2^10) chars as input seems more than enough
  3589. test $ac_count -gt 10 && break
  3590. done
  3591. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3592. esac
  3593. $ac_path_GREP_found && break 3
  3594. done
  3595. done
  3596. done
  3597. IFS=$as_save_IFS
  3598. if test -z "$ac_cv_path_GREP"; then
  3599. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3600. fi
  3601. else
  3602. ac_cv_path_GREP=$GREP
  3603. fi
  3604. fi
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3606. $as_echo "$ac_cv_path_GREP" >&6; }
  3607. GREP="$ac_cv_path_GREP"
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3609. $as_echo_n "checking for egrep... " >&6; }
  3610. if test "${ac_cv_path_EGREP+set}" = set; then :
  3611. $as_echo_n "(cached) " >&6
  3612. else
  3613. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3614. then ac_cv_path_EGREP="$GREP -E"
  3615. else
  3616. if test -z "$EGREP"; then
  3617. ac_path_EGREP_found=false
  3618. # Loop through the user's path and test for each of PROGNAME-LIST
  3619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3620. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3621. do
  3622. IFS=$as_save_IFS
  3623. test -z "$as_dir" && as_dir=.
  3624. for ac_prog in egrep; do
  3625. for ac_exec_ext in '' $ac_executable_extensions; do
  3626. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3627. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3628. # Check for GNU ac_path_EGREP and select it if it is found.
  3629. # Check for GNU $ac_path_EGREP
  3630. case `"$ac_path_EGREP" --version 2>&1` in
  3631. *GNU*)
  3632. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3633. *)
  3634. ac_count=0
  3635. $as_echo_n 0123456789 >"conftest.in"
  3636. while :
  3637. do
  3638. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3639. mv "conftest.tmp" "conftest.in"
  3640. cp "conftest.in" "conftest.nl"
  3641. $as_echo 'EGREP' >> "conftest.nl"
  3642. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3643. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3644. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3645. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3646. # Best one so far, save it but keep looking for a better one
  3647. ac_cv_path_EGREP="$ac_path_EGREP"
  3648. ac_path_EGREP_max=$ac_count
  3649. fi
  3650. # 10*(2^10) chars as input seems more than enough
  3651. test $ac_count -gt 10 && break
  3652. done
  3653. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3654. esac
  3655. $ac_path_EGREP_found && break 3
  3656. done
  3657. done
  3658. done
  3659. IFS=$as_save_IFS
  3660. if test -z "$ac_cv_path_EGREP"; then
  3661. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3662. fi
  3663. else
  3664. ac_cv_path_EGREP=$EGREP
  3665. fi
  3666. fi
  3667. fi
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3669. $as_echo "$ac_cv_path_EGREP" >&6; }
  3670. EGREP="$ac_cv_path_EGREP"
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3672. $as_echo_n "checking for ANSI C header files... " >&6; }
  3673. if test "${ac_cv_header_stdc+set}" = set; then :
  3674. $as_echo_n "(cached) " >&6
  3675. else
  3676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3677. /* end confdefs.h. */
  3678. #include <stdlib.h>
  3679. #include <stdarg.h>
  3680. #include <string.h>
  3681. #include <float.h>
  3682. int
  3683. main ()
  3684. {
  3685. ;
  3686. return 0;
  3687. }
  3688. _ACEOF
  3689. if ac_fn_c_try_compile "$LINENO"; then :
  3690. ac_cv_header_stdc=yes
  3691. else
  3692. ac_cv_header_stdc=no
  3693. fi
  3694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3695. if test $ac_cv_header_stdc = yes; then
  3696. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3698. /* end confdefs.h. */
  3699. #include <string.h>
  3700. _ACEOF
  3701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3702. $EGREP "memchr" >/dev/null 2>&1; then :
  3703. else
  3704. ac_cv_header_stdc=no
  3705. fi
  3706. rm -f conftest*
  3707. fi
  3708. if test $ac_cv_header_stdc = yes; then
  3709. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3711. /* end confdefs.h. */
  3712. #include <stdlib.h>
  3713. _ACEOF
  3714. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3715. $EGREP "free" >/dev/null 2>&1; then :
  3716. else
  3717. ac_cv_header_stdc=no
  3718. fi
  3719. rm -f conftest*
  3720. fi
  3721. if test $ac_cv_header_stdc = yes; then
  3722. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3723. if test "$cross_compiling" = yes; then :
  3724. :
  3725. else
  3726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3727. /* end confdefs.h. */
  3728. #include <ctype.h>
  3729. #include <stdlib.h>
  3730. #if ((' ' & 0x0FF) == 0x020)
  3731. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3732. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3733. #else
  3734. # define ISLOWER(c) \
  3735. (('a' <= (c) && (c) <= 'i') \
  3736. || ('j' <= (c) && (c) <= 'r') \
  3737. || ('s' <= (c) && (c) <= 'z'))
  3738. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3739. #endif
  3740. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3741. int
  3742. main ()
  3743. {
  3744. int i;
  3745. for (i = 0; i < 256; i++)
  3746. if (XOR (islower (i), ISLOWER (i))
  3747. || toupper (i) != TOUPPER (i))
  3748. return 2;
  3749. return 0;
  3750. }
  3751. _ACEOF
  3752. if ac_fn_c_try_run "$LINENO"; then :
  3753. else
  3754. ac_cv_header_stdc=no
  3755. fi
  3756. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3757. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3758. fi
  3759. fi
  3760. fi
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3762. $as_echo "$ac_cv_header_stdc" >&6; }
  3763. if test $ac_cv_header_stdc = yes; then
  3764. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3765. fi
  3766. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3767. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3768. inttypes.h stdint.h unistd.h
  3769. do :
  3770. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3771. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3772. "
  3773. eval as_val=\$$as_ac_Header
  3774. if test "x$as_val" = x""yes; then :
  3775. cat >>confdefs.h <<_ACEOF
  3776. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3777. _ACEOF
  3778. fi
  3779. done
  3780. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3781. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3782. MINIX=yes
  3783. else
  3784. MINIX=
  3785. fi
  3786. if test "$MINIX" = yes; then
  3787. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3788. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3789. $as_echo "#define _MINIX 1" >>confdefs.h
  3790. fi
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3792. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3793. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3794. $as_echo_n "(cached) " >&6
  3795. else
  3796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3797. /* end confdefs.h. */
  3798. # define __EXTENSIONS__ 1
  3799. $ac_includes_default
  3800. int
  3801. main ()
  3802. {
  3803. ;
  3804. return 0;
  3805. }
  3806. _ACEOF
  3807. if ac_fn_c_try_compile "$LINENO"; then :
  3808. ac_cv_safe_to_define___extensions__=yes
  3809. else
  3810. ac_cv_safe_to_define___extensions__=no
  3811. fi
  3812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3813. fi
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3815. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3816. test $ac_cv_safe_to_define___extensions__ = yes &&
  3817. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3818. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3819. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3820. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3821. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3823. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3824. if test "${ac_cv_path_SED+set}" = set; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3828. for ac_i in 1 2 3 4 5 6 7; do
  3829. ac_script="$ac_script$as_nl$ac_script"
  3830. done
  3831. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3832. { ac_script=; unset ac_script;}
  3833. if test -z "$SED"; then
  3834. ac_path_SED_found=false
  3835. # Loop through the user's path and test for each of PROGNAME-LIST
  3836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3837. for as_dir in $PATH
  3838. do
  3839. IFS=$as_save_IFS
  3840. test -z "$as_dir" && as_dir=.
  3841. for ac_prog in sed gsed; do
  3842. for ac_exec_ext in '' $ac_executable_extensions; do
  3843. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3844. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3845. # Check for GNU ac_path_SED and select it if it is found.
  3846. # Check for GNU $ac_path_SED
  3847. case `"$ac_path_SED" --version 2>&1` in
  3848. *GNU*)
  3849. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3850. *)
  3851. ac_count=0
  3852. $as_echo_n 0123456789 >"conftest.in"
  3853. while :
  3854. do
  3855. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3856. mv "conftest.tmp" "conftest.in"
  3857. cp "conftest.in" "conftest.nl"
  3858. $as_echo '' >> "conftest.nl"
  3859. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3860. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3861. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3862. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3863. # Best one so far, save it but keep looking for a better one
  3864. ac_cv_path_SED="$ac_path_SED"
  3865. ac_path_SED_max=$ac_count
  3866. fi
  3867. # 10*(2^10) chars as input seems more than enough
  3868. test $ac_count -gt 10 && break
  3869. done
  3870. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3871. esac
  3872. $ac_path_SED_found && break 3
  3873. done
  3874. done
  3875. done
  3876. IFS=$as_save_IFS
  3877. if test -z "$ac_cv_path_SED"; then
  3878. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3879. fi
  3880. else
  3881. ac_cv_path_SED=$SED
  3882. fi
  3883. fi
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3885. $as_echo "$ac_cv_path_SED" >&6; }
  3886. SED="$ac_cv_path_SED"
  3887. rm -f conftest.sed
  3888. # Figure out what compiler warnings we can enable.
  3889. # See config/warnings.m4 for details.
  3890. WARN_CFLAGS=
  3891. save_CFLAGS="$CFLAGS"
  3892. for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
  3893. -Wmissing-prototypes -Wold-style-definition \
  3894. -Wmissing-format-attribute -Wno-overlength-strings; do
  3895. # Do the check with the no- prefix removed since gcc silently
  3896. # accepts any -Wno-* option on purpose
  3897. case $real_option in
  3898. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  3899. *) option=$real_option ;;
  3900. esac
  3901. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  3903. $as_echo_n "checking whether $CC supports $option... " >&6; }
  3904. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. CFLAGS="$option"
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. int
  3911. main ()
  3912. {
  3913. ;
  3914. return 0;
  3915. }
  3916. _ACEOF
  3917. if ac_fn_c_try_compile "$LINENO"; then :
  3918. eval "$as_acx_Woption=yes"
  3919. else
  3920. eval "$as_acx_Woption=no"
  3921. fi
  3922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3923. fi
  3924. eval ac_res=\$$as_acx_Woption
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3926. $as_echo "$ac_res" >&6; }
  3927. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  3928. WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$real_option"
  3929. fi
  3930. done
  3931. CFLAGS="$save_CFLAGS"
  3932. WARN_PEDANTIC=
  3933. # Do the check with the no- prefix removed from the warning options
  3934. # since gcc silently accepts any -Wno-* option on purpose
  3935. if test "$GCC" = yes; then :
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
  3937. $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
  3938. if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
  3939. $as_echo_n "(cached) " >&6
  3940. else
  3941. save_CFLAGS="$CFLAGS"
  3942. CFLAGS="-pedantic -Wlong-long"
  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. if ac_fn_c_try_compile "$LINENO"; then :
  3953. acx_cv_prog_cc_pedantic__Wlong_long=yes
  3954. else
  3955. acx_cv_prog_cc_pedantic__Wlong_long=no
  3956. fi
  3957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3958. CFLAGS="$save_CFLAGS"
  3959. fi
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
  3961. $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
  3962. if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
  3963. WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
  3964. fi
  3965. fi
  3966. # Only enable with --enable-werror-always until existing warnings are
  3967. # corrected.
  3968. WERROR=
  3969. # Check whether --enable-werror-always was given.
  3970. if test "${enable_werror_always+set}" = set; then :
  3971. enableval=$enable_werror_always;
  3972. else
  3973. enable_werror_always=no
  3974. fi
  3975. if test $enable_werror_always = yes; then :
  3976. WERROR="$WERROR${WERROR:+ }-Werror"
  3977. fi
  3978. # Determine the noncanonical target name, for directory use.
  3979. case ${build_alias} in
  3980. "") build_noncanonical=${build} ;;
  3981. *) build_noncanonical=${build_alias} ;;
  3982. esac
  3983. case ${host_alias} in
  3984. "") host_noncanonical=${build_noncanonical} ;;
  3985. *) host_noncanonical=${host_alias} ;;
  3986. esac
  3987. case ${target_alias} in
  3988. "") target_noncanonical=${host_noncanonical} ;;
  3989. *) target_noncanonical=${target_alias} ;;
  3990. esac
  3991. # Specify the local prefix
  3992. local_prefix=
  3993. # Check whether --with-local-prefix was given.
  3994. if test "${with_local_prefix+set}" = set; then :
  3995. withval=$with_local_prefix; case "${withval}" in
  3996. yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
  3997. no) ;;
  3998. *) local_prefix=$with_local_prefix ;;
  3999. esac
  4000. fi
  4001. # Default local prefix if it is empty
  4002. if test x$local_prefix = x; then
  4003. local_prefix=/usr/local
  4004. fi
  4005. # Choose one or two-process fix methodology. Systems that cannot handle
  4006. # bi-directional pipes must use the two process method.
  4007. #
  4008. # Check whether --enable-twoprocess was given.
  4009. if test "${enable_twoprocess+set}" = set; then :
  4010. enableval=$enable_twoprocess; if test "x$enable_twoprocess" = xyes; then
  4011. TARGET=twoprocess
  4012. else
  4013. TARGET=oneprocess
  4014. fi
  4015. else
  4016. case $host in
  4017. i?86-*-msdosdjgpp* | \
  4018. i?86-*-mingw32* | \
  4019. x86_64-*-mingw32* | \
  4020. *-*-beos* | \
  4021. *-*-*vms*)
  4022. TARGET=twoprocess
  4023. ;;
  4024. * )
  4025. TARGET=oneprocess
  4026. ;;
  4027. esac
  4028. fi
  4029. if test $TARGET = twoprocess; then
  4030. $as_echo "#define SEPARATE_FIX_PROC 1" >>confdefs.h
  4031. fi
  4032. case $host in
  4033. vax-dec-bsd* )
  4034. $as_echo "#define exit xexit" >>confdefs.h
  4035. $as_echo "#define atexit xatexit" >>confdefs.h
  4036. ;;
  4037. esac
  4038. cat >>confdefs.h <<_ACEOF
  4039. #define EXE_EXT "$ac_exeext"
  4040. _ACEOF
  4041. # Checks for header files.
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4043. $as_echo_n "checking for ANSI C header files... " >&6; }
  4044. if test "${ac_cv_header_stdc+set}" = set; then :
  4045. $as_echo_n "(cached) " >&6
  4046. else
  4047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4048. /* end confdefs.h. */
  4049. #include <stdlib.h>
  4050. #include <stdarg.h>
  4051. #include <string.h>
  4052. #include <float.h>
  4053. int
  4054. main ()
  4055. {
  4056. ;
  4057. return 0;
  4058. }
  4059. _ACEOF
  4060. if ac_fn_c_try_compile "$LINENO"; then :
  4061. ac_cv_header_stdc=yes
  4062. else
  4063. ac_cv_header_stdc=no
  4064. fi
  4065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4066. if test $ac_cv_header_stdc = yes; then
  4067. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4069. /* end confdefs.h. */
  4070. #include <string.h>
  4071. _ACEOF
  4072. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4073. $EGREP "memchr" >/dev/null 2>&1; then :
  4074. else
  4075. ac_cv_header_stdc=no
  4076. fi
  4077. rm -f conftest*
  4078. fi
  4079. if test $ac_cv_header_stdc = yes; then
  4080. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4082. /* end confdefs.h. */
  4083. #include <stdlib.h>
  4084. _ACEOF
  4085. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4086. $EGREP "free" >/dev/null 2>&1; then :
  4087. else
  4088. ac_cv_header_stdc=no
  4089. fi
  4090. rm -f conftest*
  4091. fi
  4092. if test $ac_cv_header_stdc = yes; then
  4093. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4094. if test "$cross_compiling" = yes; then :
  4095. :
  4096. else
  4097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4098. /* end confdefs.h. */
  4099. #include <ctype.h>
  4100. #include <stdlib.h>
  4101. #if ((' ' & 0x0FF) == 0x020)
  4102. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4103. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4104. #else
  4105. # define ISLOWER(c) \
  4106. (('a' <= (c) && (c) <= 'i') \
  4107. || ('j' <= (c) && (c) <= 'r') \
  4108. || ('s' <= (c) && (c) <= 'z'))
  4109. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4110. #endif
  4111. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4112. int
  4113. main ()
  4114. {
  4115. int i;
  4116. for (i = 0; i < 256; i++)
  4117. if (XOR (islower (i), ISLOWER (i))
  4118. || toupper (i) != TOUPPER (i))
  4119. return 2;
  4120. return 0;
  4121. }
  4122. _ACEOF
  4123. if ac_fn_c_try_run "$LINENO"; then :
  4124. else
  4125. ac_cv_header_stdc=no
  4126. fi
  4127. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4128. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4129. fi
  4130. fi
  4131. fi
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4133. $as_echo "$ac_cv_header_stdc" >&6; }
  4134. if test $ac_cv_header_stdc = yes; then
  4135. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4136. fi
  4137. for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
  4138. sys/stat.h
  4139. do :
  4140. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4141. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4142. eval as_val=\$$as_ac_Header
  4143. if test "x$as_val" = x""yes; then :
  4144. cat >>confdefs.h <<_ACEOF
  4145. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4146. _ACEOF
  4147. fi
  4148. done
  4149. for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
  4150. do :
  4151. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4152. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4153. eval as_val=\$$as_ac_var
  4154. if test "x$as_val" = x""yes; then :
  4155. cat >>confdefs.h <<_ACEOF
  4156. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4157. _ACEOF
  4158. fi
  4159. done
  4160. ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
  4161. if test "x$ac_cv_have_decl_abort" = x""yes; then :
  4162. ac_have_decl=1
  4163. else
  4164. ac_have_decl=0
  4165. fi
  4166. cat >>confdefs.h <<_ACEOF
  4167. #define HAVE_DECL_ABORT $ac_have_decl
  4168. _ACEOF
  4169. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  4170. if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
  4171. ac_have_decl=1
  4172. else
  4173. ac_have_decl=0
  4174. fi
  4175. cat >>confdefs.h <<_ACEOF
  4176. #define HAVE_DECL_ASPRINTF $ac_have_decl
  4177. _ACEOF
  4178. ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
  4179. if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
  4180. ac_have_decl=1
  4181. else
  4182. ac_have_decl=0
  4183. fi
  4184. cat >>confdefs.h <<_ACEOF
  4185. #define HAVE_DECL_BASENAME $ac_have_decl
  4186. _ACEOF
  4187. ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
  4188. if test "x$ac_cv_have_decl_errno" = x""yes; then :
  4189. ac_have_decl=1
  4190. else
  4191. ac_have_decl=0
  4192. fi
  4193. cat >>confdefs.h <<_ACEOF
  4194. #define HAVE_DECL_ERRNO $ac_have_decl
  4195. _ACEOF
  4196. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  4197. if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
  4198. ac_have_decl=1
  4199. else
  4200. ac_have_decl=0
  4201. fi
  4202. cat >>confdefs.h <<_ACEOF
  4203. #define HAVE_DECL_VASPRINTF $ac_have_decl
  4204. _ACEOF
  4205. ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
  4206. if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
  4207. ac_have_decl=1
  4208. else
  4209. ac_have_decl=0
  4210. fi
  4211. cat >>confdefs.h <<_ACEOF
  4212. #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
  4213. _ACEOF
  4214. ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
  4215. if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
  4216. ac_have_decl=1
  4217. else
  4218. ac_have_decl=0
  4219. fi
  4220. cat >>confdefs.h <<_ACEOF
  4221. #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
  4222. _ACEOF
  4223. ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
  4224. if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
  4225. ac_have_decl=1
  4226. else
  4227. ac_have_decl=0
  4228. fi
  4229. cat >>confdefs.h <<_ACEOF
  4230. #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
  4231. _ACEOF
  4232. ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
  4233. if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
  4234. ac_have_decl=1
  4235. else
  4236. ac_have_decl=0
  4237. fi
  4238. cat >>confdefs.h <<_ACEOF
  4239. #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
  4240. _ACEOF
  4241. ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
  4242. if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
  4243. ac_have_decl=1
  4244. else
  4245. ac_have_decl=0
  4246. fi
  4247. cat >>confdefs.h <<_ACEOF
  4248. #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
  4249. _ACEOF
  4250. ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
  4251. if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
  4252. ac_have_decl=1
  4253. else
  4254. ac_have_decl=0
  4255. fi
  4256. cat >>confdefs.h <<_ACEOF
  4257. #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
  4258. _ACEOF
  4259. ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
  4260. if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
  4261. ac_have_decl=1
  4262. else
  4263. ac_have_decl=0
  4264. fi
  4265. cat >>confdefs.h <<_ACEOF
  4266. #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
  4267. _ACEOF
  4268. ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
  4269. if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
  4270. ac_have_decl=1
  4271. else
  4272. ac_have_decl=0
  4273. fi
  4274. cat >>confdefs.h <<_ACEOF
  4275. #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
  4276. _ACEOF
  4277. ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
  4278. if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
  4279. ac_have_decl=1
  4280. else
  4281. ac_have_decl=0
  4282. fi
  4283. cat >>confdefs.h <<_ACEOF
  4284. #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
  4285. _ACEOF
  4286. ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
  4287. if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
  4288. ac_have_decl=1
  4289. else
  4290. ac_have_decl=0
  4291. fi
  4292. cat >>confdefs.h <<_ACEOF
  4293. #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
  4294. _ACEOF
  4295. ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
  4296. if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
  4297. ac_have_decl=1
  4298. else
  4299. ac_have_decl=0
  4300. fi
  4301. cat >>confdefs.h <<_ACEOF
  4302. #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
  4303. _ACEOF
  4304. ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
  4305. if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
  4306. ac_have_decl=1
  4307. else
  4308. ac_have_decl=0
  4309. fi
  4310. cat >>confdefs.h <<_ACEOF
  4311. #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
  4312. _ACEOF
  4313. ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
  4314. if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
  4315. ac_have_decl=1
  4316. else
  4317. ac_have_decl=0
  4318. fi
  4319. cat >>confdefs.h <<_ACEOF
  4320. #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
  4321. _ACEOF
  4322. ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
  4323. if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
  4324. ac_have_decl=1
  4325. else
  4326. ac_have_decl=0
  4327. fi
  4328. cat >>confdefs.h <<_ACEOF
  4329. #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
  4330. _ACEOF
  4331. ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
  4332. if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
  4333. ac_have_decl=1
  4334. else
  4335. ac_have_decl=0
  4336. fi
  4337. cat >>confdefs.h <<_ACEOF
  4338. #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
  4339. _ACEOF
  4340. ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
  4341. if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
  4342. ac_have_decl=1
  4343. else
  4344. ac_have_decl=0
  4345. fi
  4346. cat >>confdefs.h <<_ACEOF
  4347. #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
  4348. _ACEOF
  4349. # Checks for typedefs, structures, and compiler characteristics.
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4351. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4352. if test "${ac_cv_c_const+set}" = set; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4356. /* end confdefs.h. */
  4357. int
  4358. main ()
  4359. {
  4360. /* FIXME: Include the comments suggested by Paul. */
  4361. #ifndef __cplusplus
  4362. /* Ultrix mips cc rejects this. */
  4363. typedef int charset[2];
  4364. const charset cs;
  4365. /* SunOS 4.1.1 cc rejects this. */
  4366. char const *const *pcpcc;
  4367. char **ppc;
  4368. /* NEC SVR4.0.2 mips cc rejects this. */
  4369. struct point {int x, y;};
  4370. static struct point const zero = {0,0};
  4371. /* AIX XL C 1.02.0.0 rejects this.
  4372. It does not let you subtract one const X* pointer from another in
  4373. an arm of an if-expression whose if-part is not a constant
  4374. expression */
  4375. const char *g = "string";
  4376. pcpcc = &g + (g ? g-g : 0);
  4377. /* HPUX 7.0 cc rejects these. */
  4378. ++pcpcc;
  4379. ppc = (char**) pcpcc;
  4380. pcpcc = (char const *const *) ppc;
  4381. { /* SCO 3.2v4 cc rejects this. */
  4382. char *t;
  4383. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4384. *t++ = 0;
  4385. if (s) return 0;
  4386. }
  4387. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4388. int x[] = {25, 17};
  4389. const int *foo = &x[0];
  4390. ++foo;
  4391. }
  4392. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4393. typedef const int *iptr;
  4394. iptr p = 0;
  4395. ++p;
  4396. }
  4397. { /* AIX XL C 1.02.0.0 rejects this saying
  4398. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4399. struct s { int j; const int *ap[3]; };
  4400. struct s *b; b->j = 5;
  4401. }
  4402. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4403. const int foo = 10;
  4404. if (!foo) return 0;
  4405. }
  4406. return !cs[0] && !zero.x;
  4407. #endif
  4408. ;
  4409. return 0;
  4410. }
  4411. _ACEOF
  4412. if ac_fn_c_try_compile "$LINENO"; then :
  4413. ac_cv_c_const=yes
  4414. else
  4415. ac_cv_c_const=no
  4416. fi
  4417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4418. fi
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4420. $as_echo "$ac_cv_c_const" >&6; }
  4421. if test $ac_cv_c_const = no; then
  4422. $as_echo "#define const /**/" >>confdefs.h
  4423. fi
  4424. # Checks for library functions.
  4425. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  4426. if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  4427. gcc_header_sys_mman_h=yes
  4428. else
  4429. gcc_header_sys_mman_h=no
  4430. fi
  4431. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  4432. if test "x$ac_cv_func_mmap" = x""yes; then :
  4433. gcc_func_mmap=yes
  4434. else
  4435. gcc_func_mmap=no
  4436. fi
  4437. if test "$gcc_header_sys_mman_h" != yes \
  4438. || test "$gcc_func_mmap" != yes; then
  4439. gcc_cv_func_mmap_file=no
  4440. gcc_cv_func_mmap_dev_zero=no
  4441. gcc_cv_func_mmap_anon=no
  4442. else
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
  4444. $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
  4445. if test "${gcc_cv_func_mmap_file+set}" = set; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. # Add a system to this blacklist if
  4449. # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
  4450. # memory area containing the same data that you'd get if you applied
  4451. # read() to the same fd. The only system known to have a problem here
  4452. # is VMS, where text files have record structure.
  4453. case "$host_os" in
  4454. *vms* | ultrix*)
  4455. gcc_cv_func_mmap_file=no ;;
  4456. *)
  4457. gcc_cv_func_mmap_file=yes;;
  4458. esac
  4459. fi
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
  4461. $as_echo "$gcc_cv_func_mmap_file" >&6; }
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
  4463. $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
  4464. if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. # Add a system to this blacklist if it has mmap() but /dev/zero
  4468. # does not exist, or if mmapping /dev/zero does not give anonymous
  4469. # zeroed pages with both the following properties:
  4470. # 1. If you map N consecutive pages in with one call, and then
  4471. # unmap any subset of those pages, the pages that were not
  4472. # explicitly unmapped remain accessible.
  4473. # 2. If you map two adjacent blocks of memory and then unmap them
  4474. # both at once, they must both go away.
  4475. # Systems known to be in this category are Windows (all variants),
  4476. # VMS, and Darwin.
  4477. case "$host_os" in
  4478. *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
  4479. gcc_cv_func_mmap_dev_zero=no ;;
  4480. *)
  4481. gcc_cv_func_mmap_dev_zero=yes;;
  4482. esac
  4483. fi
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
  4485. $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
  4486. # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
  4488. $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
  4489. if test "${gcc_cv_decl_map_anon+set}" = set; then :
  4490. $as_echo_n "(cached) " >&6
  4491. else
  4492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4493. /* end confdefs.h. */
  4494. #include <sys/types.h>
  4495. #include <sys/mman.h>
  4496. #include <unistd.h>
  4497. #ifndef MAP_ANONYMOUS
  4498. #define MAP_ANONYMOUS MAP_ANON
  4499. #endif
  4500. int
  4501. main ()
  4502. {
  4503. int n = MAP_ANONYMOUS;
  4504. ;
  4505. return 0;
  4506. }
  4507. _ACEOF
  4508. if ac_fn_c_try_compile "$LINENO"; then :
  4509. gcc_cv_decl_map_anon=yes
  4510. else
  4511. gcc_cv_decl_map_anon=no
  4512. fi
  4513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4514. fi
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
  4516. $as_echo "$gcc_cv_decl_map_anon" >&6; }
  4517. if test $gcc_cv_decl_map_anon = no; then
  4518. gcc_cv_func_mmap_anon=no
  4519. else
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
  4521. $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
  4522. if test "${gcc_cv_func_mmap_anon+set}" = set; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. # Add a system to this blacklist if it has mmap() and MAP_ANON or
  4526. # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
  4527. # doesn't give anonymous zeroed pages with the same properties listed
  4528. # above for use of /dev/zero.
  4529. # Systems known to be in this category are Windows, VMS, and SCO Unix.
  4530. case "$host_os" in
  4531. *vms* | cygwin* | pe | mingw* | sco* | udk* )
  4532. gcc_cv_func_mmap_anon=no ;;
  4533. *)
  4534. gcc_cv_func_mmap_anon=yes;;
  4535. esac
  4536. fi
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
  4538. $as_echo "$gcc_cv_func_mmap_anon" >&6; }
  4539. fi
  4540. fi
  4541. if test $gcc_cv_func_mmap_file = yes; then
  4542. $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
  4543. fi
  4544. if test $gcc_cv_func_mmap_dev_zero = yes; then
  4545. $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
  4546. fi
  4547. if test $gcc_cv_func_mmap_anon = yes; then
  4548. $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4551. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4552. # Check whether --enable-maintainer-mode was given.
  4553. if test "${enable_maintainer_mode+set}" = set; then :
  4554. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4555. else
  4556. USE_MAINTAINER_MODE=no
  4557. fi
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4559. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4560. if test "$USE_MAINTAINER_MODE" = yes; then
  4561. MAINT=
  4562. else
  4563. MAINT='#'
  4564. fi
  4565. cat >>confdefs.h <<_ACEOF
  4566. #define SED_PROGRAM "${SED}"
  4567. _ACEOF
  4568. ac_config_headers="$ac_config_headers config.h"
  4569. ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in"
  4570. cat >confcache <<\_ACEOF
  4571. # This file is a shell script that caches the results of configure
  4572. # tests run on this system so they can be shared between configure
  4573. # scripts and configure runs, see configure's option --config-cache.
  4574. # It is not useful on other systems. If it contains results you don't
  4575. # want to keep, you may remove or edit it.
  4576. #
  4577. # config.status only pays attention to the cache file if you give it
  4578. # the --recheck option to rerun configure.
  4579. #
  4580. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4581. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4582. # following values.
  4583. _ACEOF
  4584. # The following way of writing the cache mishandles newlines in values,
  4585. # but we know of no workaround that is simple, portable, and efficient.
  4586. # So, we kill variables containing newlines.
  4587. # Ultrix sh set writes to stderr and can't be redirected directly,
  4588. # and sets the high bit in the cache file unless we assign to the vars.
  4589. (
  4590. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4591. eval ac_val=\$$ac_var
  4592. case $ac_val in #(
  4593. *${as_nl}*)
  4594. case $ac_var in #(
  4595. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4596. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4597. esac
  4598. case $ac_var in #(
  4599. _ | IFS | as_nl) ;; #(
  4600. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4601. *) { eval $ac_var=; unset $ac_var;} ;;
  4602. esac ;;
  4603. esac
  4604. done
  4605. (set) 2>&1 |
  4606. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4607. *${as_nl}ac_space=\ *)
  4608. # `set' does not quote correctly, so add quotes: double-quote
  4609. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4610. sed -n \
  4611. "s/'/'\\\\''/g;
  4612. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4613. ;; #(
  4614. *)
  4615. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4616. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4617. ;;
  4618. esac |
  4619. sort
  4620. ) |
  4621. sed '
  4622. /^ac_cv_env_/b end
  4623. t clear
  4624. :clear
  4625. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4626. t end
  4627. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4628. :end' >>confcache
  4629. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4630. if test -w "$cache_file"; then
  4631. test "x$cache_file" != "x/dev/null" &&
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4633. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4634. cat confcache >$cache_file
  4635. else
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4637. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4638. fi
  4639. fi
  4640. rm -f confcache
  4641. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4642. # Let make expand exec_prefix.
  4643. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4644. DEFS=-DHAVE_CONFIG_H
  4645. ac_libobjs=
  4646. ac_ltlibobjs=
  4647. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4648. # 1. Remove the extension, and $U if already installed.
  4649. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4650. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4651. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4652. # will be set to the directory where LIBOBJS objects are built.
  4653. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4654. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4655. done
  4656. LIBOBJS=$ac_libobjs
  4657. LTLIBOBJS=$ac_ltlibobjs
  4658. : ${CONFIG_STATUS=./config.status}
  4659. ac_write_fail=0
  4660. ac_clean_files_save=$ac_clean_files
  4661. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4663. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4664. as_write_fail=0
  4665. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4666. #! $SHELL
  4667. # Generated by $as_me.
  4668. # Run this file to recreate the current configuration.
  4669. # Compiler output produced by configure, useful for debugging
  4670. # configure, is in config.log if it exists.
  4671. debug=false
  4672. ac_cs_recheck=false
  4673. ac_cs_silent=false
  4674. SHELL=\${CONFIG_SHELL-$SHELL}
  4675. export SHELL
  4676. _ASEOF
  4677. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4678. ## -------------------- ##
  4679. ## M4sh Initialization. ##
  4680. ## -------------------- ##
  4681. # Be more Bourne compatible
  4682. DUALCASE=1; export DUALCASE # for MKS sh
  4683. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4684. emulate sh
  4685. NULLCMD=:
  4686. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4687. # is contrary to our usage. Disable this feature.
  4688. alias -g '${1+"$@"}'='"$@"'
  4689. setopt NO_GLOB_SUBST
  4690. else
  4691. case `(set -o) 2>/dev/null` in #(
  4692. *posix*) :
  4693. set -o posix ;; #(
  4694. *) :
  4695. ;;
  4696. esac
  4697. fi
  4698. as_nl='
  4699. '
  4700. export as_nl
  4701. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4702. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4703. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4704. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4705. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4706. # but without wasting forks for bash or zsh.
  4707. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4708. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4709. as_echo='print -r --'
  4710. as_echo_n='print -rn --'
  4711. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4712. as_echo='printf %s\n'
  4713. as_echo_n='printf %s'
  4714. else
  4715. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4716. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4717. as_echo_n='/usr/ucb/echo -n'
  4718. else
  4719. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4720. as_echo_n_body='eval
  4721. arg=$1;
  4722. case $arg in #(
  4723. *"$as_nl"*)
  4724. expr "X$arg" : "X\\(.*\\)$as_nl";
  4725. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4726. esac;
  4727. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4728. '
  4729. export as_echo_n_body
  4730. as_echo_n='sh -c $as_echo_n_body as_echo'
  4731. fi
  4732. export as_echo_body
  4733. as_echo='sh -c $as_echo_body as_echo'
  4734. fi
  4735. # The user is always right.
  4736. if test "${PATH_SEPARATOR+set}" != set; then
  4737. PATH_SEPARATOR=:
  4738. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4739. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4740. PATH_SEPARATOR=';'
  4741. }
  4742. fi
  4743. # IFS
  4744. # We need space, tab and new line, in precisely that order. Quoting is
  4745. # there to prevent editors from complaining about space-tab.
  4746. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4747. # splitting by setting IFS to empty value.)
  4748. IFS=" "" $as_nl"
  4749. # Find who we are. Look in the path if we contain no directory separator.
  4750. case $0 in #((
  4751. *[\\/]* ) as_myself=$0 ;;
  4752. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4753. for as_dir in $PATH
  4754. do
  4755. IFS=$as_save_IFS
  4756. test -z "$as_dir" && as_dir=.
  4757. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4758. done
  4759. IFS=$as_save_IFS
  4760. ;;
  4761. esac
  4762. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4763. # in which case we are not to be found in the path.
  4764. if test "x$as_myself" = x; then
  4765. as_myself=$0
  4766. fi
  4767. if test ! -f "$as_myself"; then
  4768. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4769. exit 1
  4770. fi
  4771. # Unset variables that we do not need and which cause bugs (e.g. in
  4772. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4773. # suppresses any "Segmentation fault" message there. '((' could
  4774. # trigger a bug in pdksh 5.2.14.
  4775. for as_var in BASH_ENV ENV MAIL MAILPATH
  4776. do eval test x\${$as_var+set} = xset \
  4777. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4778. done
  4779. PS1='$ '
  4780. PS2='> '
  4781. PS4='+ '
  4782. # NLS nuisances.
  4783. LC_ALL=C
  4784. export LC_ALL
  4785. LANGUAGE=C
  4786. export LANGUAGE
  4787. # CDPATH.
  4788. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4789. # as_fn_error ERROR [LINENO LOG_FD]
  4790. # ---------------------------------
  4791. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4792. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4793. # script with status $?, using 1 if that was 0.
  4794. as_fn_error ()
  4795. {
  4796. as_status=$?; test $as_status -eq 0 && as_status=1
  4797. if test "$3"; then
  4798. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4799. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  4800. fi
  4801. $as_echo "$as_me: error: $1" >&2
  4802. as_fn_exit $as_status
  4803. } # as_fn_error
  4804. # as_fn_set_status STATUS
  4805. # -----------------------
  4806. # Set $? to STATUS, without forking.
  4807. as_fn_set_status ()
  4808. {
  4809. return $1
  4810. } # as_fn_set_status
  4811. # as_fn_exit STATUS
  4812. # -----------------
  4813. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4814. as_fn_exit ()
  4815. {
  4816. set +e
  4817. as_fn_set_status $1
  4818. exit $1
  4819. } # as_fn_exit
  4820. # as_fn_unset VAR
  4821. # ---------------
  4822. # Portably unset VAR.
  4823. as_fn_unset ()
  4824. {
  4825. { eval $1=; unset $1;}
  4826. }
  4827. as_unset=as_fn_unset
  4828. # as_fn_append VAR VALUE
  4829. # ----------------------
  4830. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4831. # advantage of any shell optimizations that allow amortized linear growth over
  4832. # repeated appends, instead of the typical quadratic growth present in naive
  4833. # implementations.
  4834. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4835. eval 'as_fn_append ()
  4836. {
  4837. eval $1+=\$2
  4838. }'
  4839. else
  4840. as_fn_append ()
  4841. {
  4842. eval $1=\$$1\$2
  4843. }
  4844. fi # as_fn_append
  4845. # as_fn_arith ARG...
  4846. # ------------------
  4847. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4848. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4849. # must be portable across $(()) and expr.
  4850. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4851. eval 'as_fn_arith ()
  4852. {
  4853. as_val=$(( $* ))
  4854. }'
  4855. else
  4856. as_fn_arith ()
  4857. {
  4858. as_val=`expr "$@" || test $? -eq 1`
  4859. }
  4860. fi # as_fn_arith
  4861. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4862. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4863. as_expr=expr
  4864. else
  4865. as_expr=false
  4866. fi
  4867. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4868. as_basename=basename
  4869. else
  4870. as_basename=false
  4871. fi
  4872. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4873. as_dirname=dirname
  4874. else
  4875. as_dirname=false
  4876. fi
  4877. as_me=`$as_basename -- "$0" ||
  4878. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4879. X"$0" : 'X\(//\)$' \| \
  4880. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4881. $as_echo X/"$0" |
  4882. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4883. s//\1/
  4884. q
  4885. }
  4886. /^X\/\(\/\/\)$/{
  4887. s//\1/
  4888. q
  4889. }
  4890. /^X\/\(\/\).*/{
  4891. s//\1/
  4892. q
  4893. }
  4894. s/.*/./; q'`
  4895. # Avoid depending upon Character Ranges.
  4896. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4897. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4898. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4899. as_cr_digits='0123456789'
  4900. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4901. ECHO_C= ECHO_N= ECHO_T=
  4902. case `echo -n x` in #(((((
  4903. -n*)
  4904. case `echo 'xy\c'` in
  4905. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4906. xy) ECHO_C='\c';;
  4907. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4908. ECHO_T=' ';;
  4909. esac;;
  4910. *)
  4911. ECHO_N='-n';;
  4912. esac
  4913. rm -f conf$$ conf$$.exe conf$$.file
  4914. if test -d conf$$.dir; then
  4915. rm -f conf$$.dir/conf$$.file
  4916. else
  4917. rm -f conf$$.dir
  4918. mkdir conf$$.dir 2>/dev/null
  4919. fi
  4920. if (echo >conf$$.file) 2>/dev/null; then
  4921. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4922. as_ln_s='ln -s'
  4923. # ... but there are two gotchas:
  4924. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4925. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4926. # In both cases, we have to default to `cp -p'.
  4927. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4928. as_ln_s='cp -p'
  4929. elif ln conf$$.file conf$$ 2>/dev/null; then
  4930. as_ln_s=ln
  4931. else
  4932. as_ln_s='cp -p'
  4933. fi
  4934. else
  4935. as_ln_s='cp -p'
  4936. fi
  4937. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4938. rmdir conf$$.dir 2>/dev/null
  4939. # as_fn_mkdir_p
  4940. # -------------
  4941. # Create "$as_dir" as a directory, including parents if necessary.
  4942. as_fn_mkdir_p ()
  4943. {
  4944. case $as_dir in #(
  4945. -*) as_dir=./$as_dir;;
  4946. esac
  4947. test -d "$as_dir" || eval $as_mkdir_p || {
  4948. as_dirs=
  4949. while :; do
  4950. case $as_dir in #(
  4951. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4952. *) as_qdir=$as_dir;;
  4953. esac
  4954. as_dirs="'$as_qdir' $as_dirs"
  4955. as_dir=`$as_dirname -- "$as_dir" ||
  4956. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4957. X"$as_dir" : 'X\(//\)[^/]' \| \
  4958. X"$as_dir" : 'X\(//\)$' \| \
  4959. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4960. $as_echo X"$as_dir" |
  4961. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4962. s//\1/
  4963. q
  4964. }
  4965. /^X\(\/\/\)[^/].*/{
  4966. s//\1/
  4967. q
  4968. }
  4969. /^X\(\/\/\)$/{
  4970. s//\1/
  4971. q
  4972. }
  4973. /^X\(\/\).*/{
  4974. s//\1/
  4975. q
  4976. }
  4977. s/.*/./; q'`
  4978. test -d "$as_dir" && break
  4979. done
  4980. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4981. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  4982. } # as_fn_mkdir_p
  4983. if mkdir -p . 2>/dev/null; then
  4984. as_mkdir_p='mkdir -p "$as_dir"'
  4985. else
  4986. test -d ./-p && rmdir ./-p
  4987. as_mkdir_p=false
  4988. fi
  4989. if test -x / >/dev/null 2>&1; then
  4990. as_test_x='test -x'
  4991. else
  4992. if ls -dL / >/dev/null 2>&1; then
  4993. as_ls_L_option=L
  4994. else
  4995. as_ls_L_option=
  4996. fi
  4997. as_test_x='
  4998. eval sh -c '\''
  4999. if test -d "$1"; then
  5000. test -d "$1/.";
  5001. else
  5002. case $1 in #(
  5003. -*)set "./$1";;
  5004. esac;
  5005. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  5006. ???[sx]*):;;*)false;;esac;fi
  5007. '\'' sh
  5008. '
  5009. fi
  5010. as_executable_p=$as_test_x
  5011. # Sed expression to map a string onto a valid CPP name.
  5012. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5013. # Sed expression to map a string onto a valid variable name.
  5014. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5015. exec 6>&1
  5016. ## ----------------------------------- ##
  5017. ## Main body of $CONFIG_STATUS script. ##
  5018. ## ----------------------------------- ##
  5019. _ASEOF
  5020. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5021. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5022. # Save the log message, to keep $0 and so on meaningful, and to
  5023. # report actual input values of CONFIG_FILES etc. instead of their
  5024. # values after options handling.
  5025. ac_log="
  5026. This file was extended by fixincludes $as_me , which was
  5027. generated by GNU Autoconf 2.64. Invocation command line was
  5028. CONFIG_FILES = $CONFIG_FILES
  5029. CONFIG_HEADERS = $CONFIG_HEADERS
  5030. CONFIG_LINKS = $CONFIG_LINKS
  5031. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5032. $ $0 $@
  5033. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5034. "
  5035. _ACEOF
  5036. case $ac_config_files in *"
  5037. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5038. esac
  5039. case $ac_config_headers in *"
  5040. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5041. esac
  5042. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5043. # Files that config.status was made for.
  5044. config_files="$ac_config_files"
  5045. config_headers="$ac_config_headers"
  5046. _ACEOF
  5047. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5048. ac_cs_usage="\
  5049. \`$as_me' instantiates files and other configuration actions
  5050. from templates according to the current configuration. Unless the files
  5051. and actions are specified as TAGs, all are instantiated by default.
  5052. Usage: $0 [OPTION]... [TAG]...
  5053. -h, --help print this help, then exit
  5054. -V, --version print version number and configuration settings, then exit
  5055. -q, --quiet, --silent
  5056. do not print progress messages
  5057. -d, --debug don't remove temporary files
  5058. --recheck update $as_me by reconfiguring in the same conditions
  5059. --file=FILE[:TEMPLATE]
  5060. instantiate the configuration file FILE
  5061. --header=FILE[:TEMPLATE]
  5062. instantiate the configuration header FILE
  5063. Configuration files:
  5064. $config_files
  5065. Configuration headers:
  5066. $config_headers
  5067. Report bugs to the package provider."
  5068. _ACEOF
  5069. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5070. ac_cs_version="\\
  5071. fixincludes config.status
  5072. configured by $0, generated by GNU Autoconf 2.64,
  5073. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  5074. Copyright (C) 2009 Free Software Foundation, Inc.
  5075. This config.status script is free software; the Free Software Foundation
  5076. gives unlimited permission to copy, distribute and modify it."
  5077. ac_pwd='$ac_pwd'
  5078. srcdir='$srcdir'
  5079. test -n "\$AWK" || AWK=awk
  5080. _ACEOF
  5081. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5082. # The default lists apply if the user does not specify any file.
  5083. ac_need_defaults=:
  5084. while test $# != 0
  5085. do
  5086. case $1 in
  5087. --*=*)
  5088. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5089. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5090. ac_shift=:
  5091. ;;
  5092. *)
  5093. ac_option=$1
  5094. ac_optarg=$2
  5095. ac_shift=shift
  5096. ;;
  5097. esac
  5098. case $ac_option in
  5099. # Handling of the options.
  5100. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5101. ac_cs_recheck=: ;;
  5102. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5103. $as_echo "$ac_cs_version"; exit ;;
  5104. --debug | --debu | --deb | --de | --d | -d )
  5105. debug=: ;;
  5106. --file | --fil | --fi | --f )
  5107. $ac_shift
  5108. case $ac_optarg in
  5109. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5110. esac
  5111. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5112. ac_need_defaults=false;;
  5113. --header | --heade | --head | --hea )
  5114. $ac_shift
  5115. case $ac_optarg in
  5116. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5117. esac
  5118. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  5119. ac_need_defaults=false;;
  5120. --he | --h)
  5121. # Conflict between --help and --header
  5122. as_fn_error "ambiguous option: \`$1'
  5123. Try \`$0 --help' for more information.";;
  5124. --help | --hel | -h )
  5125. $as_echo "$ac_cs_usage"; exit ;;
  5126. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5127. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5128. ac_cs_silent=: ;;
  5129. # This is an error.
  5130. -*) as_fn_error "unrecognized option: \`$1'
  5131. Try \`$0 --help' for more information." ;;
  5132. *) as_fn_append ac_config_targets " $1"
  5133. ac_need_defaults=false ;;
  5134. esac
  5135. shift
  5136. done
  5137. ac_configure_extra_args=
  5138. if $ac_cs_silent; then
  5139. exec 6>/dev/null
  5140. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5141. fi
  5142. _ACEOF
  5143. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5144. if \$ac_cs_recheck; then
  5145. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5146. shift
  5147. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5148. CONFIG_SHELL='$SHELL'
  5149. export CONFIG_SHELL
  5150. exec "\$@"
  5151. fi
  5152. _ACEOF
  5153. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5154. exec 5>>config.log
  5155. {
  5156. echo
  5157. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5158. ## Running $as_me. ##
  5159. _ASBOX
  5160. $as_echo "$ac_log"
  5161. } >&5
  5162. _ACEOF
  5163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5164. _ACEOF
  5165. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5166. # Handling of arguments.
  5167. for ac_config_target in $ac_config_targets
  5168. do
  5169. case $ac_config_target in
  5170. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  5171. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5172. "mkheaders.almost") CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;;
  5173. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5174. esac
  5175. done
  5176. # If the user did not use the arguments to specify the items to instantiate,
  5177. # then the envvar interface is used. Set only those that are not.
  5178. # We use the long form for the default assignment because of an extremely
  5179. # bizarre bug on SunOS 4.1.3.
  5180. if $ac_need_defaults; then
  5181. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5182. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5183. fi
  5184. # Have a temporary directory for convenience. Make it in the build tree
  5185. # simply because there is no reason against having it here, and in addition,
  5186. # creating and moving files from /tmp can sometimes cause problems.
  5187. # Hook for its removal unless debugging.
  5188. # Note that there is a small window in which the directory will not be cleaned:
  5189. # after its creation but before its name has been assigned to `$tmp'.
  5190. $debug ||
  5191. {
  5192. tmp=
  5193. trap 'exit_status=$?
  5194. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  5195. ' 0
  5196. trap 'as_fn_exit 1' 1 2 13 15
  5197. }
  5198. # Create a (secure) tmp directory for tmp files.
  5199. {
  5200. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5201. test -n "$tmp" && test -d "$tmp"
  5202. } ||
  5203. {
  5204. tmp=./conf$$-$RANDOM
  5205. (umask 077 && mkdir "$tmp")
  5206. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  5207. # Set up the scripts for CONFIG_FILES section.
  5208. # No need to generate them if there are no CONFIG_FILES.
  5209. # This happens for instance with `./config.status config.h'.
  5210. if test -n "$CONFIG_FILES"; then
  5211. ac_cr=`echo X | tr X '\015'`
  5212. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5213. # But we know of no other shell where ac_cr would be empty at this
  5214. # point, so we can use a bashism as a fallback.
  5215. if test "x$ac_cr" = x; then
  5216. eval ac_cr=\$\'\\r\'
  5217. fi
  5218. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5219. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5220. ac_cs_awk_cr='\r'
  5221. else
  5222. ac_cs_awk_cr=$ac_cr
  5223. fi
  5224. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  5225. _ACEOF
  5226. {
  5227. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5228. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5229. echo "_ACEOF"
  5230. } >conf$$subs.sh ||
  5231. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  5232. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  5233. ac_delim='%!_!# '
  5234. for ac_last_try in false false false false false :; do
  5235. . ./conf$$subs.sh ||
  5236. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  5237. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5238. if test $ac_delim_n = $ac_delim_num; then
  5239. break
  5240. elif $ac_last_try; then
  5241. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  5242. else
  5243. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5244. fi
  5245. done
  5246. rm -f conf$$subs.sh
  5247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5248. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  5249. _ACEOF
  5250. sed -n '
  5251. h
  5252. s/^/S["/; s/!.*/"]=/
  5253. p
  5254. g
  5255. s/^[^!]*!//
  5256. :repl
  5257. t repl
  5258. s/'"$ac_delim"'$//
  5259. t delim
  5260. :nl
  5261. h
  5262. s/\(.\{148\}\).*/\1/
  5263. t more1
  5264. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5265. p
  5266. n
  5267. b repl
  5268. :more1
  5269. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5270. p
  5271. g
  5272. s/.\{148\}//
  5273. t nl
  5274. :delim
  5275. h
  5276. s/\(.\{148\}\).*/\1/
  5277. t more2
  5278. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5279. p
  5280. b
  5281. :more2
  5282. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5283. p
  5284. g
  5285. s/.\{148\}//
  5286. t delim
  5287. ' <conf$$subs.awk | sed '
  5288. /^[^""]/{
  5289. N
  5290. s/\n//
  5291. }
  5292. ' >>$CONFIG_STATUS || ac_write_fail=1
  5293. rm -f conf$$subs.awk
  5294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5295. _ACAWK
  5296. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  5297. for (key in S) S_is_set[key] = 1
  5298. FS = ""
  5299. }
  5300. {
  5301. line = $ 0
  5302. nfields = split(line, field, "@")
  5303. substed = 0
  5304. len = length(field[1])
  5305. for (i = 2; i < nfields; i++) {
  5306. key = field[i]
  5307. keylen = length(key)
  5308. if (S_is_set[key]) {
  5309. value = S[key]
  5310. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5311. len += length(value) + length(field[++i])
  5312. substed = 1
  5313. } else
  5314. len += 1 + keylen
  5315. }
  5316. print line
  5317. }
  5318. _ACAWK
  5319. _ACEOF
  5320. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5321. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5322. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5323. else
  5324. cat
  5325. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  5326. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  5327. _ACEOF
  5328. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5329. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5330. # trailing colons and then remove the whole line if VPATH becomes empty
  5331. # (actually we leave an empty line to preserve line numbers).
  5332. if test "x$srcdir" = x.; then
  5333. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5334. s/:*\$(srcdir):*/:/
  5335. s/:*\${srcdir}:*/:/
  5336. s/:*@srcdir@:*/:/
  5337. s/^\([^=]*=[ ]*\):*/\1/
  5338. s/:*$//
  5339. s/^[^=]*=[ ]*$//
  5340. }'
  5341. fi
  5342. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5343. fi # test -n "$CONFIG_FILES"
  5344. # Set up the scripts for CONFIG_HEADERS section.
  5345. # No need to generate them if there are no CONFIG_HEADERS.
  5346. # This happens for instance with `./config.status Makefile'.
  5347. if test -n "$CONFIG_HEADERS"; then
  5348. cat >"$tmp/defines.awk" <<\_ACAWK ||
  5349. BEGIN {
  5350. _ACEOF
  5351. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5352. # here-document in config.status, that substitutes the proper values into
  5353. # config.h.in to produce config.h.
  5354. # Create a delimiter string that does not exist in confdefs.h, to ease
  5355. # handling of long lines.
  5356. ac_delim='%!_!# '
  5357. for ac_last_try in false false :; do
  5358. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  5359. if test -z "$ac_t"; then
  5360. break
  5361. elif $ac_last_try; then
  5362. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  5363. else
  5364. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5365. fi
  5366. done
  5367. # For the awk script, D is an array of macro values keyed by name,
  5368. # likewise P contains macro parameters if any. Preserve backslash
  5369. # newline sequences.
  5370. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5371. sed -n '
  5372. s/.\{148\}/&'"$ac_delim"'/g
  5373. t rset
  5374. :rset
  5375. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5376. t def
  5377. d
  5378. :def
  5379. s/\\$//
  5380. t bsnl
  5381. s/["\\]/\\&/g
  5382. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5383. D["\1"]=" \3"/p
  5384. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5385. d
  5386. :bsnl
  5387. s/["\\]/\\&/g
  5388. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5389. D["\1"]=" \3\\\\\\n"\\/p
  5390. t cont
  5391. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5392. t cont
  5393. d
  5394. :cont
  5395. n
  5396. s/.\{148\}/&'"$ac_delim"'/g
  5397. t clear
  5398. :clear
  5399. s/\\$//
  5400. t bsnlc
  5401. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5402. d
  5403. :bsnlc
  5404. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5405. b cont
  5406. ' <confdefs.h | sed '
  5407. s/'"$ac_delim"'/"\\\
  5408. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5409. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5410. for (key in D) D_is_set[key] = 1
  5411. FS = ""
  5412. }
  5413. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5414. line = \$ 0
  5415. split(line, arg, " ")
  5416. if (arg[1] == "#") {
  5417. defundef = arg[2]
  5418. mac1 = arg[3]
  5419. } else {
  5420. defundef = substr(arg[1], 2)
  5421. mac1 = arg[2]
  5422. }
  5423. split(mac1, mac2, "(") #)
  5424. macro = mac2[1]
  5425. prefix = substr(line, 1, index(line, defundef) - 1)
  5426. if (D_is_set[macro]) {
  5427. # Preserve the white space surrounding the "#".
  5428. print prefix "define", macro P[macro] D[macro]
  5429. next
  5430. } else {
  5431. # Replace #undef with comments. This is necessary, for example,
  5432. # in the case of _POSIX_SOURCE, which is predefined and required
  5433. # on some systems where configure will not decide to define it.
  5434. if (defundef == "undef") {
  5435. print "/*", prefix defundef, macro, "*/"
  5436. next
  5437. }
  5438. }
  5439. }
  5440. { print }
  5441. _ACAWK
  5442. _ACEOF
  5443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5444. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  5445. fi # test -n "$CONFIG_HEADERS"
  5446. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5447. shift
  5448. for ac_tag
  5449. do
  5450. case $ac_tag in
  5451. :[FHLC]) ac_mode=$ac_tag; continue;;
  5452. esac
  5453. case $ac_mode$ac_tag in
  5454. :[FHL]*:*);;
  5455. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5456. :[FH]-) ac_tag=-:-;;
  5457. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5458. esac
  5459. ac_save_IFS=$IFS
  5460. IFS=:
  5461. set x $ac_tag
  5462. IFS=$ac_save_IFS
  5463. shift
  5464. ac_file=$1
  5465. shift
  5466. case $ac_mode in
  5467. :L) ac_source=$1;;
  5468. :[FH])
  5469. ac_file_inputs=
  5470. for ac_f
  5471. do
  5472. case $ac_f in
  5473. -) ac_f="$tmp/stdin";;
  5474. *) # Look for the file first in the build tree, then in the source tree
  5475. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5476. # because $ac_f cannot contain `:'.
  5477. test -f "$ac_f" ||
  5478. case $ac_f in
  5479. [\\/$]*) false;;
  5480. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5481. esac ||
  5482. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5483. esac
  5484. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5485. as_fn_append ac_file_inputs " '$ac_f'"
  5486. done
  5487. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5488. # use $as_me), people would be surprised to read:
  5489. # /* config.h. Generated by config.status. */
  5490. configure_input='Generated from '`
  5491. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5492. `' by configure.'
  5493. if test x"$ac_file" != x-; then
  5494. configure_input="$ac_file. $configure_input"
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5496. $as_echo "$as_me: creating $ac_file" >&6;}
  5497. fi
  5498. # Neutralize special characters interpreted by sed in replacement strings.
  5499. case $configure_input in #(
  5500. *\&* | *\|* | *\\* )
  5501. ac_sed_conf_input=`$as_echo "$configure_input" |
  5502. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5503. *) ac_sed_conf_input=$configure_input;;
  5504. esac
  5505. case $ac_tag in
  5506. *:-:* | *:-) cat >"$tmp/stdin" \
  5507. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  5508. esac
  5509. ;;
  5510. esac
  5511. ac_dir=`$as_dirname -- "$ac_file" ||
  5512. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5513. X"$ac_file" : 'X\(//\)[^/]' \| \
  5514. X"$ac_file" : 'X\(//\)$' \| \
  5515. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5516. $as_echo X"$ac_file" |
  5517. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5518. s//\1/
  5519. q
  5520. }
  5521. /^X\(\/\/\)[^/].*/{
  5522. s//\1/
  5523. q
  5524. }
  5525. /^X\(\/\/\)$/{
  5526. s//\1/
  5527. q
  5528. }
  5529. /^X\(\/\).*/{
  5530. s//\1/
  5531. q
  5532. }
  5533. s/.*/./; q'`
  5534. as_dir="$ac_dir"; as_fn_mkdir_p
  5535. ac_builddir=.
  5536. case "$ac_dir" in
  5537. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5538. *)
  5539. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5540. # A ".." for each directory in $ac_dir_suffix.
  5541. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5542. case $ac_top_builddir_sub in
  5543. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5544. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5545. esac ;;
  5546. esac
  5547. ac_abs_top_builddir=$ac_pwd
  5548. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5549. # for backward compatibility:
  5550. ac_top_builddir=$ac_top_build_prefix
  5551. case $srcdir in
  5552. .) # We are building in place.
  5553. ac_srcdir=.
  5554. ac_top_srcdir=$ac_top_builddir_sub
  5555. ac_abs_top_srcdir=$ac_pwd ;;
  5556. [\\/]* | ?:[\\/]* ) # Absolute name.
  5557. ac_srcdir=$srcdir$ac_dir_suffix;
  5558. ac_top_srcdir=$srcdir
  5559. ac_abs_top_srcdir=$srcdir ;;
  5560. *) # Relative name.
  5561. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5562. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5563. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5564. esac
  5565. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5566. case $ac_mode in
  5567. :F)
  5568. #
  5569. # CONFIG_FILE
  5570. #
  5571. _ACEOF
  5572. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5573. # If the template does not know about datarootdir, expand it.
  5574. # FIXME: This hack should be removed a few years after 2.60.
  5575. ac_datarootdir_hack=; ac_datarootdir_seen=
  5576. ac_sed_dataroot='
  5577. /datarootdir/ {
  5578. p
  5579. q
  5580. }
  5581. /@datadir@/p
  5582. /@docdir@/p
  5583. /@infodir@/p
  5584. /@localedir@/p
  5585. /@mandir@/p'
  5586. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5587. *datarootdir*) ac_datarootdir_seen=yes;;
  5588. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5590. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5591. _ACEOF
  5592. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5593. ac_datarootdir_hack='
  5594. s&@datadir@&$datadir&g
  5595. s&@docdir@&$docdir&g
  5596. s&@infodir@&$infodir&g
  5597. s&@localedir@&$localedir&g
  5598. s&@mandir@&$mandir&g
  5599. s&\\\${datarootdir}&$datarootdir&g' ;;
  5600. esac
  5601. _ACEOF
  5602. # Neutralize VPATH when `$srcdir' = `.'.
  5603. # Shell code in configure.ac might set extrasub.
  5604. # FIXME: do we really want to maintain this feature?
  5605. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5606. ac_sed_extra="$ac_vpsub
  5607. $extrasub
  5608. _ACEOF
  5609. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5610. :t
  5611. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5612. s|@configure_input@|$ac_sed_conf_input|;t t
  5613. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5614. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5615. s&@srcdir@&$ac_srcdir&;t t
  5616. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5617. s&@top_srcdir@&$ac_top_srcdir&;t t
  5618. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5619. s&@builddir@&$ac_builddir&;t t
  5620. s&@abs_builddir@&$ac_abs_builddir&;t t
  5621. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5622. $ac_datarootdir_hack
  5623. "
  5624. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  5625. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5626. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5627. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  5628. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5630. which seems to be undefined. Please make sure it is defined." >&5
  5631. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5632. which seems to be undefined. Please make sure it is defined." >&2;}
  5633. rm -f "$tmp/stdin"
  5634. case $ac_file in
  5635. -) cat "$tmp/out" && rm -f "$tmp/out";;
  5636. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  5637. esac \
  5638. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5639. ;;
  5640. :H)
  5641. #
  5642. # CONFIG_HEADER
  5643. #
  5644. if test x"$ac_file" != x-; then
  5645. {
  5646. $as_echo "/* $configure_input */" \
  5647. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  5648. } >"$tmp/config.h" \
  5649. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5650. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5652. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5653. else
  5654. rm -f "$ac_file"
  5655. mv "$tmp/config.h" "$ac_file" \
  5656. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5657. fi
  5658. else
  5659. $as_echo "/* $configure_input */" \
  5660. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  5661. || as_fn_error "could not create -" "$LINENO" 5
  5662. fi
  5663. ;;
  5664. esac
  5665. case $ac_file$ac_mode in
  5666. "config.h":H) echo timestamp > stamp-h ;;
  5667. esac
  5668. done # for ac_tag
  5669. as_fn_exit 0
  5670. _ACEOF
  5671. ac_clean_files=$ac_clean_files_save
  5672. test $ac_write_fail = 0 ||
  5673. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5674. # configure is writing to config.log, and then calls config.status.
  5675. # config.status does its own redirection, appending to config.log.
  5676. # Unfortunately, on DOS this fails, as config.log is still kept open
  5677. # by configure, so config.status won't be able to write to it; its
  5678. # output is simply discarded. So we exec the FD to /dev/null,
  5679. # effectively closing config.log, so it can be properly (re)opened and
  5680. # appended to by config.status. When coming back to configure, we
  5681. # need to make the FD available again.
  5682. if test "$no_create" != yes; then
  5683. ac_cs_success=:
  5684. ac_config_status_args=
  5685. test "$silent" = yes &&
  5686. ac_config_status_args="$ac_config_status_args --quiet"
  5687. exec 5>/dev/null
  5688. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5689. exec 5>>config.log
  5690. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5691. # would make configure fail if this is the last instruction.
  5692. $ac_cs_success || as_fn_exit $?
  5693. fi
  5694. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5696. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5697. fi