configure 445 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for file 5.12.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. # Preserve -v and -x to the replacement shell.
  204. BASH_ENV=/dev/null
  205. ENV=/dev/null
  206. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  207. export CONFIG_SHELL
  208. case $- in # ((((
  209. *v*x* | *x*v* ) as_opts=-vx ;;
  210. *v* ) as_opts=-v ;;
  211. *x* ) as_opts=-x ;;
  212. * ) as_opts= ;;
  213. esac
  214. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  215. fi
  216. if test x$as_have_required = xno; then :
  217. $as_echo "$0: This script requires a shell more modern than all"
  218. $as_echo "$0: the shells that I found on your system."
  219. if test x${ZSH_VERSION+set} = xset ; then
  220. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  221. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  222. else
  223. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  224. $0: christos@astron.com about your system, including any
  225. $0: error possibly output before this message. Then install
  226. $0: a modern shell, or manually run the script under such a
  227. $0: shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. # Check that we are running under the correct shell.
  497. SHELL=${CONFIG_SHELL-/bin/sh}
  498. case X$lt_ECHO in
  499. X*--fallback-echo)
  500. # Remove one level of quotation (which was required for Make).
  501. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  502. ;;
  503. esac
  504. ECHO=${lt_ECHO-echo}
  505. if test "X$1" = X--no-reexec; then
  506. # Discard the --no-reexec flag, and continue.
  507. shift
  508. elif test "X$1" = X--fallback-echo; then
  509. # Avoid inline document here, it may be left over
  510. :
  511. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  512. # Yippee, $ECHO works!
  513. :
  514. else
  515. # Restart under the correct shell.
  516. exec $SHELL "$0" --no-reexec ${1+"$@"}
  517. fi
  518. if test "X$1" = X--fallback-echo; then
  519. # used as fallback echo
  520. shift
  521. cat <<_LT_EOF
  522. $*
  523. _LT_EOF
  524. exit 0
  525. fi
  526. # The HP-UX ksh and POSIX shell print the target directory to stdout
  527. # if CDPATH is set.
  528. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  529. if test -z "$lt_ECHO"; then
  530. if test "X${echo_test_string+set}" != Xset; then
  531. # find a string as large as possible, as long as the shell can cope with it
  532. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  533. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  534. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  535. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  536. then
  537. break
  538. fi
  539. done
  540. fi
  541. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  542. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  543. test "X$echo_testing_string" = "X$echo_test_string"; then
  544. :
  545. else
  546. # The Solaris, AIX, and Digital Unix default echo programs unquote
  547. # backslashes. This makes it impossible to quote backslashes using
  548. # echo "$something" | sed 's/\\/\\\\/g'
  549. #
  550. # So, first we look for a working echo in the user's PATH.
  551. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  552. for dir in $PATH /usr/ucb; do
  553. IFS="$lt_save_ifs"
  554. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  555. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. ECHO="$dir/echo"
  559. break
  560. fi
  561. done
  562. IFS="$lt_save_ifs"
  563. if test "X$ECHO" = Xecho; then
  564. # We didn't find a better echo, so look for alternatives.
  565. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  566. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. # This shell has a builtin print -r that does the trick.
  569. ECHO='print -r'
  570. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  571. test "X$CONFIG_SHELL" != X/bin/ksh; then
  572. # If we have ksh, try running configure again with it.
  573. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  574. export ORIGINAL_CONFIG_SHELL
  575. CONFIG_SHELL=/bin/ksh
  576. export CONFIG_SHELL
  577. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  578. else
  579. # Try using printf.
  580. ECHO='printf %s\n'
  581. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  582. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  583. test "X$echo_testing_string" = "X$echo_test_string"; then
  584. # Cool, printf works
  585. :
  586. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  587. test "X$echo_testing_string" = 'X\t' &&
  588. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  589. test "X$echo_testing_string" = "X$echo_test_string"; then
  590. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  591. export CONFIG_SHELL
  592. SHELL="$CONFIG_SHELL"
  593. export SHELL
  594. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  595. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  596. test "X$echo_testing_string" = 'X\t' &&
  597. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  598. test "X$echo_testing_string" = "X$echo_test_string"; then
  599. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  600. else
  601. # maybe with a smaller string...
  602. prev=:
  603. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  604. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  605. then
  606. break
  607. fi
  608. prev="$cmd"
  609. done
  610. if test "$prev" != 'sed 50q "$0"'; then
  611. echo_test_string=`eval $prev`
  612. export echo_test_string
  613. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  614. else
  615. # Oops. We lost completely, so just stick with echo.
  616. ECHO=echo
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. # Copy echo and quote the copy suitably for passing to libtool from
  624. # the Makefile, instead of quoting the original, which is used later.
  625. lt_ECHO=$ECHO
  626. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  627. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  628. fi
  629. test -n "$DJDIR" || exec 7<&0 </dev/null
  630. exec 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. # Identity of this package.
  647. PACKAGE_NAME='file'
  648. PACKAGE_TARNAME='file'
  649. PACKAGE_VERSION='5.12'
  650. PACKAGE_STRING='file 5.12'
  651. PACKAGE_BUGREPORT='christos@astron.com'
  652. PACKAGE_URL=''
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_header_list=
  689. ac_subst_vars='am__EXEEXT_FALSE
  690. am__EXEEXT_TRUE
  691. LTLIBOBJS
  692. IS_CROSS_COMPILE_FALSE
  693. IS_CROSS_COMPILE_TRUE
  694. LIBOBJS
  695. HAVE_VISIBILITY
  696. CFLAG_VISIBILITY
  697. OTOOL64
  698. OTOOL
  699. LIPO
  700. NMEDIT
  701. DSYMUTIL
  702. lt_ECHO
  703. RANLIB
  704. AR
  705. OBJDUMP
  706. NM
  707. ac_ct_DUMPBIN
  708. DUMPBIN
  709. LD
  710. FGREP
  711. SED
  712. LIBTOOL
  713. LN_S
  714. EGREP
  715. GREP
  716. CPP
  717. am__fastdepCC_FALSE
  718. am__fastdepCC_TRUE
  719. CCDEPMODE
  720. AMDEPBACKSLASH
  721. AMDEP_FALSE
  722. AMDEP_TRUE
  723. am__quote
  724. am__include
  725. DEPDIR
  726. OBJEXT
  727. EXEEXT
  728. ac_ct_CC
  729. CPPFLAGS
  730. LDFLAGS
  731. CFLAGS
  732. CC
  733. WARNINGS
  734. FSECT5_FALSE
  735. FSECT5_TRUE
  736. fsect
  737. pkgdatadir
  738. MINGW_FALSE
  739. MINGW_TRUE
  740. MINGW
  741. host_os
  742. host_vendor
  743. host_cpu
  744. host
  745. build_os
  746. build_vendor
  747. build_cpu
  748. build
  749. AM_BACKSLASH
  750. AM_DEFAULT_VERBOSITY
  751. am__untar
  752. am__tar
  753. AMTAR
  754. am__leading_dot
  755. SET_MAKE
  756. AWK
  757. mkdir_p
  758. MKDIR_P
  759. INSTALL_STRIP_PROGRAM
  760. STRIP
  761. install_sh
  762. MAKEINFO
  763. AUTOHEADER
  764. AUTOMAKE
  765. AUTOCONF
  766. ACLOCAL
  767. VERSION
  768. PACKAGE
  769. CYGPATH_W
  770. am__isrc
  771. INSTALL_DATA
  772. INSTALL_SCRIPT
  773. INSTALL_PROGRAM
  774. target_alias
  775. host_alias
  776. build_alias
  777. LIBS
  778. ECHO_T
  779. ECHO_N
  780. ECHO_C
  781. DEFS
  782. mandir
  783. localedir
  784. libdir
  785. psdir
  786. pdfdir
  787. dvidir
  788. htmldir
  789. infodir
  790. docdir
  791. oldincludedir
  792. includedir
  793. localstatedir
  794. sharedstatedir
  795. sysconfdir
  796. datadir
  797. datarootdir
  798. libexecdir
  799. sbindir
  800. bindir
  801. program_transform_name
  802. prefix
  803. exec_prefix
  804. PACKAGE_URL
  805. PACKAGE_BUGREPORT
  806. PACKAGE_STRING
  807. PACKAGE_VERSION
  808. PACKAGE_TARNAME
  809. PACKAGE_NAME
  810. PATH_SEPARATOR
  811. SHELL'
  812. ac_subst_files=''
  813. ac_user_opts='
  814. enable_option_checking
  815. enable_silent_rules
  816. enable_elf
  817. enable_elf_core
  818. enable_fsect_man5
  819. enable_dependency_tracking
  820. enable_static
  821. with_pic
  822. enable_shared
  823. enable_fast_install
  824. with_gnu_ld
  825. enable_libtool_lock
  826. enable_largefile
  827. enable_warnings
  828. '
  829. ac_precious_vars='build_alias
  830. host_alias
  831. target_alias
  832. CC
  833. CFLAGS
  834. LDFLAGS
  835. LIBS
  836. CPPFLAGS
  837. CPP'
  838. # Initialize some variables set by options.
  839. ac_init_help=
  840. ac_init_version=false
  841. ac_unrecognized_opts=
  842. ac_unrecognized_sep=
  843. # The variables have the same names as the options, with
  844. # dashes changed to underlines.
  845. cache_file=/dev/null
  846. exec_prefix=NONE
  847. no_create=
  848. no_recursion=
  849. prefix=NONE
  850. program_prefix=NONE
  851. program_suffix=NONE
  852. program_transform_name=s,x,x,
  853. silent=
  854. site=
  855. srcdir=
  856. verbose=
  857. x_includes=NONE
  858. x_libraries=NONE
  859. # Installation directory options.
  860. # These are left unexpanded so users can "make install exec_prefix=/foo"
  861. # and all the variables that are supposed to be based on exec_prefix
  862. # by default will actually change.
  863. # Use braces instead of parens because sh, perl, etc. also accept them.
  864. # (The list follows the same order as the GNU Coding Standards.)
  865. bindir='${exec_prefix}/bin'
  866. sbindir='${exec_prefix}/sbin'
  867. libexecdir='${exec_prefix}/libexec'
  868. datarootdir='${prefix}/share'
  869. datadir='${datarootdir}'
  870. sysconfdir='${prefix}/etc'
  871. sharedstatedir='${prefix}/com'
  872. localstatedir='${prefix}/var'
  873. includedir='${prefix}/include'
  874. oldincludedir='/usr/include'
  875. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  876. infodir='${datarootdir}/info'
  877. htmldir='${docdir}'
  878. dvidir='${docdir}'
  879. pdfdir='${docdir}'
  880. psdir='${docdir}'
  881. libdir='${exec_prefix}/lib'
  882. localedir='${datarootdir}/locale'
  883. mandir='${datarootdir}/man'
  884. ac_prev=
  885. ac_dashdash=
  886. for ac_option
  887. do
  888. # If the previous option needs an argument, assign it.
  889. if test -n "$ac_prev"; then
  890. eval $ac_prev=\$ac_option
  891. ac_prev=
  892. continue
  893. fi
  894. case $ac_option in
  895. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  896. *=) ac_optarg= ;;
  897. *) ac_optarg=yes ;;
  898. esac
  899. # Accept the important Cygnus configure options, so we can diagnose typos.
  900. case $ac_dashdash$ac_option in
  901. --)
  902. ac_dashdash=yes ;;
  903. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  904. ac_prev=bindir ;;
  905. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  906. bindir=$ac_optarg ;;
  907. -build | --build | --buil | --bui | --bu)
  908. ac_prev=build_alias ;;
  909. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  910. build_alias=$ac_optarg ;;
  911. -cache-file | --cache-file | --cache-fil | --cache-fi \
  912. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  913. ac_prev=cache_file ;;
  914. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  915. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  916. cache_file=$ac_optarg ;;
  917. --config-cache | -C)
  918. cache_file=config.cache ;;
  919. -datadir | --datadir | --datadi | --datad)
  920. ac_prev=datadir ;;
  921. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  922. datadir=$ac_optarg ;;
  923. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  924. | --dataroo | --dataro | --datar)
  925. ac_prev=datarootdir ;;
  926. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  927. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  928. datarootdir=$ac_optarg ;;
  929. -disable-* | --disable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. as_fn_error $? "invalid feature name: $ac_useropt"
  934. ac_useropt_orig=$ac_useropt
  935. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  936. case $ac_user_opts in
  937. *"
  938. "enable_$ac_useropt"
  939. "*) ;;
  940. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  941. ac_unrecognized_sep=', ';;
  942. esac
  943. eval enable_$ac_useropt=no ;;
  944. -docdir | --docdir | --docdi | --doc | --do)
  945. ac_prev=docdir ;;
  946. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  947. docdir=$ac_optarg ;;
  948. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  949. ac_prev=dvidir ;;
  950. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  951. dvidir=$ac_optarg ;;
  952. -enable-* | --enable-*)
  953. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  954. # Reject names that are not valid shell variable names.
  955. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  956. as_fn_error $? "invalid feature name: $ac_useropt"
  957. ac_useropt_orig=$ac_useropt
  958. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  959. case $ac_user_opts in
  960. *"
  961. "enable_$ac_useropt"
  962. "*) ;;
  963. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  964. ac_unrecognized_sep=', ';;
  965. esac
  966. eval enable_$ac_useropt=\$ac_optarg ;;
  967. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  968. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  969. | --exec | --exe | --ex)
  970. ac_prev=exec_prefix ;;
  971. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  972. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  973. | --exec=* | --exe=* | --ex=*)
  974. exec_prefix=$ac_optarg ;;
  975. -gas | --gas | --ga | --g)
  976. # Obsolete; use --with-gas.
  977. with_gas=yes ;;
  978. -help | --help | --hel | --he | -h)
  979. ac_init_help=long ;;
  980. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  981. ac_init_help=recursive ;;
  982. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  983. ac_init_help=short ;;
  984. -host | --host | --hos | --ho)
  985. ac_prev=host_alias ;;
  986. -host=* | --host=* | --hos=* | --ho=*)
  987. host_alias=$ac_optarg ;;
  988. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  989. ac_prev=htmldir ;;
  990. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  991. | --ht=*)
  992. htmldir=$ac_optarg ;;
  993. -includedir | --includedir | --includedi | --included | --include \
  994. | --includ | --inclu | --incl | --inc)
  995. ac_prev=includedir ;;
  996. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  997. | --includ=* | --inclu=* | --incl=* | --inc=*)
  998. includedir=$ac_optarg ;;
  999. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1000. ac_prev=infodir ;;
  1001. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1002. infodir=$ac_optarg ;;
  1003. -libdir | --libdir | --libdi | --libd)
  1004. ac_prev=libdir ;;
  1005. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1006. libdir=$ac_optarg ;;
  1007. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1008. | --libexe | --libex | --libe)
  1009. ac_prev=libexecdir ;;
  1010. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1011. | --libexe=* | --libex=* | --libe=*)
  1012. libexecdir=$ac_optarg ;;
  1013. -localedir | --localedir | --localedi | --localed | --locale)
  1014. ac_prev=localedir ;;
  1015. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1016. localedir=$ac_optarg ;;
  1017. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1018. | --localstate | --localstat | --localsta | --localst | --locals)
  1019. ac_prev=localstatedir ;;
  1020. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1021. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1022. localstatedir=$ac_optarg ;;
  1023. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1024. ac_prev=mandir ;;
  1025. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1026. mandir=$ac_optarg ;;
  1027. -nfp | --nfp | --nf)
  1028. # Obsolete; use --without-fp.
  1029. with_fp=no ;;
  1030. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1031. | --no-cr | --no-c | -n)
  1032. no_create=yes ;;
  1033. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1034. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1035. no_recursion=yes ;;
  1036. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1037. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1038. | --oldin | --oldi | --old | --ol | --o)
  1039. ac_prev=oldincludedir ;;
  1040. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1041. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1042. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1043. oldincludedir=$ac_optarg ;;
  1044. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1045. ac_prev=prefix ;;
  1046. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1047. prefix=$ac_optarg ;;
  1048. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1049. | --program-pre | --program-pr | --program-p)
  1050. ac_prev=program_prefix ;;
  1051. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1052. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1053. program_prefix=$ac_optarg ;;
  1054. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1055. | --program-suf | --program-su | --program-s)
  1056. ac_prev=program_suffix ;;
  1057. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1058. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1059. program_suffix=$ac_optarg ;;
  1060. -program-transform-name | --program-transform-name \
  1061. | --program-transform-nam | --program-transform-na \
  1062. | --program-transform-n | --program-transform- \
  1063. | --program-transform | --program-transfor \
  1064. | --program-transfo | --program-transf \
  1065. | --program-trans | --program-tran \
  1066. | --progr-tra | --program-tr | --program-t)
  1067. ac_prev=program_transform_name ;;
  1068. -program-transform-name=* | --program-transform-name=* \
  1069. | --program-transform-nam=* | --program-transform-na=* \
  1070. | --program-transform-n=* | --program-transform-=* \
  1071. | --program-transform=* | --program-transfor=* \
  1072. | --program-transfo=* | --program-transf=* \
  1073. | --program-trans=* | --program-tran=* \
  1074. | --progr-tra=* | --program-tr=* | --program-t=*)
  1075. program_transform_name=$ac_optarg ;;
  1076. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1077. ac_prev=pdfdir ;;
  1078. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1079. pdfdir=$ac_optarg ;;
  1080. -psdir | --psdir | --psdi | --psd | --ps)
  1081. ac_prev=psdir ;;
  1082. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1083. psdir=$ac_optarg ;;
  1084. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1085. | -silent | --silent | --silen | --sile | --sil)
  1086. silent=yes ;;
  1087. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1088. ac_prev=sbindir ;;
  1089. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1090. | --sbi=* | --sb=*)
  1091. sbindir=$ac_optarg ;;
  1092. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1093. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1094. | --sharedst | --shareds | --shared | --share | --shar \
  1095. | --sha | --sh)
  1096. ac_prev=sharedstatedir ;;
  1097. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1098. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1099. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1100. | --sha=* | --sh=*)
  1101. sharedstatedir=$ac_optarg ;;
  1102. -site | --site | --sit)
  1103. ac_prev=site ;;
  1104. -site=* | --site=* | --sit=*)
  1105. site=$ac_optarg ;;
  1106. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1107. ac_prev=srcdir ;;
  1108. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1109. srcdir=$ac_optarg ;;
  1110. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1111. | --syscon | --sysco | --sysc | --sys | --sy)
  1112. ac_prev=sysconfdir ;;
  1113. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1114. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1115. sysconfdir=$ac_optarg ;;
  1116. -target | --target | --targe | --targ | --tar | --ta | --t)
  1117. ac_prev=target_alias ;;
  1118. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1119. target_alias=$ac_optarg ;;
  1120. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1121. verbose=yes ;;
  1122. -version | --version | --versio | --versi | --vers | -V)
  1123. ac_init_version=: ;;
  1124. -with-* | --with-*)
  1125. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1126. # Reject names that are not valid shell variable names.
  1127. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1128. as_fn_error $? "invalid package name: $ac_useropt"
  1129. ac_useropt_orig=$ac_useropt
  1130. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1131. case $ac_user_opts in
  1132. *"
  1133. "with_$ac_useropt"
  1134. "*) ;;
  1135. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1136. ac_unrecognized_sep=', ';;
  1137. esac
  1138. eval with_$ac_useropt=\$ac_optarg ;;
  1139. -without-* | --without-*)
  1140. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1141. # Reject names that are not valid shell variable names.
  1142. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1143. as_fn_error $? "invalid package name: $ac_useropt"
  1144. ac_useropt_orig=$ac_useropt
  1145. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1146. case $ac_user_opts in
  1147. *"
  1148. "with_$ac_useropt"
  1149. "*) ;;
  1150. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1151. ac_unrecognized_sep=', ';;
  1152. esac
  1153. eval with_$ac_useropt=no ;;
  1154. --x)
  1155. # Obsolete; use --with-x.
  1156. with_x=yes ;;
  1157. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1158. | --x-incl | --x-inc | --x-in | --x-i)
  1159. ac_prev=x_includes ;;
  1160. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1161. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1162. x_includes=$ac_optarg ;;
  1163. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1164. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1165. ac_prev=x_libraries ;;
  1166. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1167. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1168. x_libraries=$ac_optarg ;;
  1169. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1170. Try \`$0 --help' for more information"
  1171. ;;
  1172. *=*)
  1173. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1174. # Reject names that are not valid shell variable names.
  1175. case $ac_envvar in #(
  1176. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1177. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1178. esac
  1179. eval $ac_envvar=\$ac_optarg
  1180. export $ac_envvar ;;
  1181. *)
  1182. # FIXME: should be removed in autoconf 3.0.
  1183. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1184. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1185. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1186. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1187. ;;
  1188. esac
  1189. done
  1190. if test -n "$ac_prev"; then
  1191. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1192. as_fn_error $? "missing argument to $ac_option"
  1193. fi
  1194. if test -n "$ac_unrecognized_opts"; then
  1195. case $enable_option_checking in
  1196. no) ;;
  1197. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1198. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1199. esac
  1200. fi
  1201. # Check all directory arguments for consistency.
  1202. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1203. datadir sysconfdir sharedstatedir localstatedir includedir \
  1204. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1205. libdir localedir mandir
  1206. do
  1207. eval ac_val=\$$ac_var
  1208. # Remove trailing slashes.
  1209. case $ac_val in
  1210. */ )
  1211. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1212. eval $ac_var=\$ac_val;;
  1213. esac
  1214. # Be sure to have absolute directory names.
  1215. case $ac_val in
  1216. [\\/$]* | ?:[\\/]* ) continue;;
  1217. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1218. esac
  1219. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1220. done
  1221. # There might be people who depend on the old broken behavior: `$host'
  1222. # used to hold the argument of --host etc.
  1223. # FIXME: To remove some day.
  1224. build=$build_alias
  1225. host=$host_alias
  1226. target=$target_alias
  1227. # FIXME: To remove some day.
  1228. if test "x$host_alias" != x; then
  1229. if test "x$build_alias" = x; then
  1230. cross_compiling=maybe
  1231. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1232. If a cross compiler is detected then cross compile mode will be used" >&2
  1233. elif test "x$build_alias" != "x$host_alias"; then
  1234. cross_compiling=yes
  1235. fi
  1236. fi
  1237. ac_tool_prefix=
  1238. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1239. test "$silent" = yes && exec 6>/dev/null
  1240. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1241. ac_ls_di=`ls -di .` &&
  1242. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1243. as_fn_error $? "working directory cannot be determined"
  1244. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1245. as_fn_error $? "pwd does not report name of working directory"
  1246. # Find the source files, if location was not specified.
  1247. if test -z "$srcdir"; then
  1248. ac_srcdir_defaulted=yes
  1249. # Try the directory containing this script, then the parent directory.
  1250. ac_confdir=`$as_dirname -- "$as_myself" ||
  1251. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1252. X"$as_myself" : 'X\(//\)[^/]' \| \
  1253. X"$as_myself" : 'X\(//\)$' \| \
  1254. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1255. $as_echo X"$as_myself" |
  1256. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)[^/].*/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)$/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\).*/{
  1269. s//\1/
  1270. q
  1271. }
  1272. s/.*/./; q'`
  1273. srcdir=$ac_confdir
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275. srcdir=..
  1276. fi
  1277. else
  1278. ac_srcdir_defaulted=no
  1279. fi
  1280. if test ! -r "$srcdir/$ac_unique_file"; then
  1281. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1282. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1283. fi
  1284. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1285. ac_abs_confdir=`(
  1286. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1287. pwd)`
  1288. # When building in place, set srcdir=.
  1289. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1290. srcdir=.
  1291. fi
  1292. # Remove unnecessary trailing slashes from srcdir.
  1293. # Double slashes in file names in object file debugging info
  1294. # mess up M-x gdb in Emacs.
  1295. case $srcdir in
  1296. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1297. esac
  1298. for ac_var in $ac_precious_vars; do
  1299. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_env_${ac_var}_value=\$${ac_var}
  1301. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1303. done
  1304. #
  1305. # Report the --help message.
  1306. #
  1307. if test "$ac_init_help" = "long"; then
  1308. # Omit some internal or obsolete options to make the list less imposing.
  1309. # This message is too long to be a string in the A/UX 3.1 sh.
  1310. cat <<_ACEOF
  1311. \`configure' configures file 5.12 to adapt to many kinds of systems.
  1312. Usage: $0 [OPTION]... [VAR=VALUE]...
  1313. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1314. VAR=VALUE. See below for descriptions of some of the useful variables.
  1315. Defaults for the options are specified in brackets.
  1316. Configuration:
  1317. -h, --help display this help and exit
  1318. --help=short display options specific to this package
  1319. --help=recursive display the short help of all the included packages
  1320. -V, --version display version information and exit
  1321. -q, --quiet, --silent do not print \`checking ...' messages
  1322. --cache-file=FILE cache test results in FILE [disabled]
  1323. -C, --config-cache alias for \`--cache-file=config.cache'
  1324. -n, --no-create do not create output files
  1325. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1326. Installation directories:
  1327. --prefix=PREFIX install architecture-independent files in PREFIX
  1328. [$ac_default_prefix]
  1329. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1330. [PREFIX]
  1331. By default, \`make install' will install all the files in
  1332. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1333. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1334. for instance \`--prefix=\$HOME'.
  1335. For better control, use the options below.
  1336. Fine tuning of the installation directories:
  1337. --bindir=DIR user executables [EPREFIX/bin]
  1338. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1339. --libexecdir=DIR program executables [EPREFIX/libexec]
  1340. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1341. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1342. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1343. --libdir=DIR object code libraries [EPREFIX/lib]
  1344. --includedir=DIR C header files [PREFIX/include]
  1345. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1346. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1347. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1348. --infodir=DIR info documentation [DATAROOTDIR/info]
  1349. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1350. --mandir=DIR man documentation [DATAROOTDIR/man]
  1351. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1352. --htmldir=DIR html documentation [DOCDIR]
  1353. --dvidir=DIR dvi documentation [DOCDIR]
  1354. --pdfdir=DIR pdf documentation [DOCDIR]
  1355. --psdir=DIR ps documentation [DOCDIR]
  1356. _ACEOF
  1357. cat <<\_ACEOF
  1358. Program names:
  1359. --program-prefix=PREFIX prepend PREFIX to installed program names
  1360. --program-suffix=SUFFIX append SUFFIX to installed program names
  1361. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1362. System types:
  1363. --build=BUILD configure for building on BUILD [guessed]
  1364. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1365. _ACEOF
  1366. fi
  1367. if test -n "$ac_init_help"; then
  1368. case $ac_init_help in
  1369. short | recursive ) echo "Configuration of file 5.12:";;
  1370. esac
  1371. cat <<\_ACEOF
  1372. Optional Features:
  1373. --disable-option-checking ignore unrecognized --enable/--with options
  1374. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1375. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1376. --enable-silent-rules less verbose build output (undo: `make V=1')
  1377. --disable-silent-rules verbose build output (undo: `make V=0')
  1378. --disable-elf disable builtin ELF support
  1379. --disable-elf-core disable ELF core file support
  1380. --enable-fsect-man5 enable file formats in man section 5
  1381. --disable-dependency-tracking speeds up one-time build
  1382. --enable-dependency-tracking do not reject slow dependency extractors
  1383. --enable-static[=PKGS] build static libraries [default=no]
  1384. --enable-shared[=PKGS] build shared libraries [default=yes]
  1385. --enable-fast-install[=PKGS]
  1386. optimize for fast installation [default=yes]
  1387. --disable-libtool-lock avoid locking (might break parallel builds)
  1388. --disable-largefile omit support for large files
  1389. --disable-warnings disable compiler warnings
  1390. Optional Packages:
  1391. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1392. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1393. --with-pic try to use only PIC/non-PIC objects [default=use
  1394. both]
  1395. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1396. Some influential environment variables:
  1397. CC C compiler command
  1398. CFLAGS C compiler flags
  1399. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1400. nonstandard directory <lib dir>
  1401. LIBS libraries to pass to the linker, e.g. -l<library>
  1402. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1403. you have headers in a nonstandard directory <include dir>
  1404. CPP C preprocessor
  1405. Use these variables to override the choices made by `configure' or to help
  1406. it to find libraries and programs with nonstandard names/locations.
  1407. Report bugs to <christos@astron.com>.
  1408. _ACEOF
  1409. ac_status=$?
  1410. fi
  1411. if test "$ac_init_help" = "recursive"; then
  1412. # If there are subdirs, report their specific --help.
  1413. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1414. test -d "$ac_dir" ||
  1415. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1416. continue
  1417. ac_builddir=.
  1418. case "$ac_dir" in
  1419. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1420. *)
  1421. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1422. # A ".." for each directory in $ac_dir_suffix.
  1423. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1424. case $ac_top_builddir_sub in
  1425. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1426. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1427. esac ;;
  1428. esac
  1429. ac_abs_top_builddir=$ac_pwd
  1430. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1431. # for backward compatibility:
  1432. ac_top_builddir=$ac_top_build_prefix
  1433. case $srcdir in
  1434. .) # We are building in place.
  1435. ac_srcdir=.
  1436. ac_top_srcdir=$ac_top_builddir_sub
  1437. ac_abs_top_srcdir=$ac_pwd ;;
  1438. [\\/]* | ?:[\\/]* ) # Absolute name.
  1439. ac_srcdir=$srcdir$ac_dir_suffix;
  1440. ac_top_srcdir=$srcdir
  1441. ac_abs_top_srcdir=$srcdir ;;
  1442. *) # Relative name.
  1443. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1444. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1445. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1446. esac
  1447. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1448. cd "$ac_dir" || { ac_status=$?; continue; }
  1449. # Check for guested configure.
  1450. if test -f "$ac_srcdir/configure.gnu"; then
  1451. echo &&
  1452. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1453. elif test -f "$ac_srcdir/configure"; then
  1454. echo &&
  1455. $SHELL "$ac_srcdir/configure" --help=recursive
  1456. else
  1457. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1458. fi || ac_status=$?
  1459. cd "$ac_pwd" || { ac_status=$?; break; }
  1460. done
  1461. fi
  1462. test -n "$ac_init_help" && exit $ac_status
  1463. if $ac_init_version; then
  1464. cat <<\_ACEOF
  1465. file configure 5.12
  1466. generated by GNU Autoconf 2.68
  1467. Copyright (C) 2010 Free Software Foundation, Inc.
  1468. This configure script is free software; the Free Software Foundation
  1469. gives unlimited permission to copy, distribute and modify it.
  1470. _ACEOF
  1471. exit
  1472. fi
  1473. ## ------------------------ ##
  1474. ## Autoconf initialization. ##
  1475. ## ------------------------ ##
  1476. # ac_fn_c_try_compile LINENO
  1477. # --------------------------
  1478. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1479. ac_fn_c_try_compile ()
  1480. {
  1481. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1482. rm -f conftest.$ac_objext
  1483. if { { ac_try="$ac_compile"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_compile") 2>conftest.err
  1491. ac_status=$?
  1492. if test -s conftest.err; then
  1493. grep -v '^ *+' conftest.err >conftest.er1
  1494. cat conftest.er1 >&5
  1495. mv -f conftest.er1 conftest.err
  1496. fi
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } && {
  1499. test -z "$ac_c_werror_flag" ||
  1500. test ! -s conftest.err
  1501. } && test -s conftest.$ac_objext; then :
  1502. ac_retval=0
  1503. else
  1504. $as_echo "$as_me: failed program was:" >&5
  1505. sed 's/^/| /' conftest.$ac_ext >&5
  1506. ac_retval=1
  1507. fi
  1508. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1509. as_fn_set_status $ac_retval
  1510. } # ac_fn_c_try_compile
  1511. # ac_fn_c_try_cpp LINENO
  1512. # ----------------------
  1513. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1514. ac_fn_c_try_cpp ()
  1515. {
  1516. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1517. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1518. case "(($ac_try" in
  1519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1520. *) ac_try_echo=$ac_try;;
  1521. esac
  1522. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1523. $as_echo "$ac_try_echo"; } >&5
  1524. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1525. ac_status=$?
  1526. if test -s conftest.err; then
  1527. grep -v '^ *+' conftest.err >conftest.er1
  1528. cat conftest.er1 >&5
  1529. mv -f conftest.er1 conftest.err
  1530. fi
  1531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1532. test $ac_status = 0; } > conftest.i && {
  1533. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1534. test ! -s conftest.err
  1535. }; then :
  1536. ac_retval=0
  1537. else
  1538. $as_echo "$as_me: failed program was:" >&5
  1539. sed 's/^/| /' conftest.$ac_ext >&5
  1540. ac_retval=1
  1541. fi
  1542. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1543. as_fn_set_status $ac_retval
  1544. } # ac_fn_c_try_cpp
  1545. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1546. # -------------------------------------------------------
  1547. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1548. # the include files in INCLUDES and setting the cache variable VAR
  1549. # accordingly.
  1550. ac_fn_c_check_header_mongrel ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. if eval \${$3+:} false; then :
  1554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1555. $as_echo_n "checking for $2... " >&6; }
  1556. if eval \${$3+:} false; then :
  1557. $as_echo_n "(cached) " >&6
  1558. fi
  1559. eval ac_res=\$$3
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1561. $as_echo "$ac_res" >&6; }
  1562. else
  1563. # Is the header compilable?
  1564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1565. $as_echo_n "checking $2 usability... " >&6; }
  1566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1567. /* end confdefs.h. */
  1568. $4
  1569. #include <$2>
  1570. _ACEOF
  1571. if ac_fn_c_try_compile "$LINENO"; then :
  1572. ac_header_compiler=yes
  1573. else
  1574. ac_header_compiler=no
  1575. fi
  1576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1578. $as_echo "$ac_header_compiler" >&6; }
  1579. # Is the header present?
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1581. $as_echo_n "checking $2 presence... " >&6; }
  1582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1583. /* end confdefs.h. */
  1584. #include <$2>
  1585. _ACEOF
  1586. if ac_fn_c_try_cpp "$LINENO"; then :
  1587. ac_header_preproc=yes
  1588. else
  1589. ac_header_preproc=no
  1590. fi
  1591. rm -f conftest.err conftest.i conftest.$ac_ext
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1593. $as_echo "$ac_header_preproc" >&6; }
  1594. # So? What about this header?
  1595. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1596. yes:no: )
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1598. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1600. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1601. ;;
  1602. no:yes:* )
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1604. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1606. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1608. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1610. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1612. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1613. ( $as_echo "## ---------------------------------- ##
  1614. ## Report this to christos@astron.com ##
  1615. ## ---------------------------------- ##"
  1616. ) | sed "s/^/$as_me: WARNING: /" >&2
  1617. ;;
  1618. esac
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1620. $as_echo_n "checking for $2... " >&6; }
  1621. if eval \${$3+:} false; then :
  1622. $as_echo_n "(cached) " >&6
  1623. else
  1624. eval "$3=\$ac_header_compiler"
  1625. fi
  1626. eval ac_res=\$$3
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1628. $as_echo "$ac_res" >&6; }
  1629. fi
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. } # ac_fn_c_check_header_mongrel
  1632. # ac_fn_c_try_run LINENO
  1633. # ----------------------
  1634. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1635. # that executables *can* be run.
  1636. ac_fn_c_try_run ()
  1637. {
  1638. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1639. if { { ac_try="$ac_link"
  1640. case "(($ac_try" in
  1641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. *) ac_try_echo=$ac_try;;
  1643. esac
  1644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. $as_echo "$ac_try_echo"; } >&5
  1646. (eval "$ac_link") 2>&5
  1647. ac_status=$?
  1648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1649. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1650. { { case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. $as_echo "$ac_try_echo"; } >&5
  1656. (eval "$ac_try") 2>&5
  1657. ac_status=$?
  1658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1659. test $ac_status = 0; }; }; then :
  1660. ac_retval=0
  1661. else
  1662. $as_echo "$as_me: program exited with status $ac_status" >&5
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=$ac_status
  1666. fi
  1667. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1668. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1669. as_fn_set_status $ac_retval
  1670. } # ac_fn_c_try_run
  1671. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1672. # -------------------------------------------------------
  1673. # Tests whether HEADER exists and can be compiled using the include files in
  1674. # INCLUDES, setting the cache variable VAR accordingly.
  1675. ac_fn_c_check_header_compile ()
  1676. {
  1677. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1679. $as_echo_n "checking for $2... " >&6; }
  1680. if eval \${$3+:} false; then :
  1681. $as_echo_n "(cached) " >&6
  1682. else
  1683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1684. /* end confdefs.h. */
  1685. $4
  1686. #include <$2>
  1687. _ACEOF
  1688. if ac_fn_c_try_compile "$LINENO"; then :
  1689. eval "$3=yes"
  1690. else
  1691. eval "$3=no"
  1692. fi
  1693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1694. fi
  1695. eval ac_res=\$$3
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1697. $as_echo "$ac_res" >&6; }
  1698. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1699. } # ac_fn_c_check_header_compile
  1700. # ac_fn_c_try_link LINENO
  1701. # -----------------------
  1702. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1703. ac_fn_c_try_link ()
  1704. {
  1705. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706. rm -f conftest.$ac_objext conftest$ac_exeext
  1707. if { { ac_try="$ac_link"
  1708. case "(($ac_try" in
  1709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1710. *) ac_try_echo=$ac_try;;
  1711. esac
  1712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1713. $as_echo "$ac_try_echo"; } >&5
  1714. (eval "$ac_link") 2>conftest.err
  1715. ac_status=$?
  1716. if test -s conftest.err; then
  1717. grep -v '^ *+' conftest.err >conftest.er1
  1718. cat conftest.er1 >&5
  1719. mv -f conftest.er1 conftest.err
  1720. fi
  1721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1722. test $ac_status = 0; } && {
  1723. test -z "$ac_c_werror_flag" ||
  1724. test ! -s conftest.err
  1725. } && test -s conftest$ac_exeext && {
  1726. test "$cross_compiling" = yes ||
  1727. $as_test_x conftest$ac_exeext
  1728. }; then :
  1729. ac_retval=0
  1730. else
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=1
  1734. fi
  1735. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1736. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1737. # interfere with the next link command; also delete a directory that is
  1738. # left behind by Apple's compiler. We do this before executing the actions.
  1739. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1740. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1741. as_fn_set_status $ac_retval
  1742. } # ac_fn_c_try_link
  1743. # ac_fn_c_check_func LINENO FUNC VAR
  1744. # ----------------------------------
  1745. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1746. ac_fn_c_check_func ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1750. $as_echo_n "checking for $2... " >&6; }
  1751. if eval \${$3+:} false; then :
  1752. $as_echo_n "(cached) " >&6
  1753. else
  1754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1755. /* end confdefs.h. */
  1756. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1757. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1758. #define $2 innocuous_$2
  1759. /* System header to define __stub macros and hopefully few prototypes,
  1760. which can conflict with char $2 (); below.
  1761. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1762. <limits.h> exists even on freestanding compilers. */
  1763. #ifdef __STDC__
  1764. # include <limits.h>
  1765. #else
  1766. # include <assert.h>
  1767. #endif
  1768. #undef $2
  1769. /* Override any GCC internal prototype to avoid an error.
  1770. Use char because int might match the return type of a GCC
  1771. builtin and then its argument prototype would still apply. */
  1772. #ifdef __cplusplus
  1773. extern "C"
  1774. #endif
  1775. char $2 ();
  1776. /* The GNU C library defines this for functions which it implements
  1777. to always fail with ENOSYS. Some functions are actually named
  1778. something starting with __ and the normal name is an alias. */
  1779. #if defined __stub_$2 || defined __stub___$2
  1780. choke me
  1781. #endif
  1782. int
  1783. main ()
  1784. {
  1785. return $2 ();
  1786. ;
  1787. return 0;
  1788. }
  1789. _ACEOF
  1790. if ac_fn_c_try_link "$LINENO"; then :
  1791. eval "$3=yes"
  1792. else
  1793. eval "$3=no"
  1794. fi
  1795. rm -f core conftest.err conftest.$ac_objext \
  1796. conftest$ac_exeext conftest.$ac_ext
  1797. fi
  1798. eval ac_res=\$$3
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1800. $as_echo "$ac_res" >&6; }
  1801. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1802. } # ac_fn_c_check_func
  1803. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1804. # -------------------------------------------
  1805. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1806. # variable VAR accordingly.
  1807. ac_fn_c_check_type ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1811. $as_echo_n "checking for $2... " >&6; }
  1812. if eval \${$3+:} false; then :
  1813. $as_echo_n "(cached) " >&6
  1814. else
  1815. eval "$3=no"
  1816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1817. /* end confdefs.h. */
  1818. $4
  1819. int
  1820. main ()
  1821. {
  1822. if (sizeof ($2))
  1823. return 0;
  1824. ;
  1825. return 0;
  1826. }
  1827. _ACEOF
  1828. if ac_fn_c_try_compile "$LINENO"; then :
  1829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h. */
  1831. $4
  1832. int
  1833. main ()
  1834. {
  1835. if (sizeof (($2)))
  1836. return 0;
  1837. ;
  1838. return 0;
  1839. }
  1840. _ACEOF
  1841. if ac_fn_c_try_compile "$LINENO"; then :
  1842. else
  1843. eval "$3=yes"
  1844. fi
  1845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1846. fi
  1847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1848. fi
  1849. eval ac_res=\$$3
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1851. $as_echo "$ac_res" >&6; }
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. } # ac_fn_c_check_type
  1854. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1855. # ----------------------------------------------------
  1856. # Tries to find if the field MEMBER exists in type AGGR, after including
  1857. # INCLUDES, setting cache variable VAR accordingly.
  1858. ac_fn_c_check_member ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1862. $as_echo_n "checking for $2.$3... " >&6; }
  1863. if eval \${$4+:} false; then :
  1864. $as_echo_n "(cached) " >&6
  1865. else
  1866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1867. /* end confdefs.h. */
  1868. $5
  1869. int
  1870. main ()
  1871. {
  1872. static $2 ac_aggr;
  1873. if (ac_aggr.$3)
  1874. return 0;
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_c_try_compile "$LINENO"; then :
  1880. eval "$4=yes"
  1881. else
  1882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1883. /* end confdefs.h. */
  1884. $5
  1885. int
  1886. main ()
  1887. {
  1888. static $2 ac_aggr;
  1889. if (sizeof ac_aggr.$3)
  1890. return 0;
  1891. ;
  1892. return 0;
  1893. }
  1894. _ACEOF
  1895. if ac_fn_c_try_compile "$LINENO"; then :
  1896. eval "$4=yes"
  1897. else
  1898. eval "$4=no"
  1899. fi
  1900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1901. fi
  1902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1903. fi
  1904. eval ac_res=\$$4
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1906. $as_echo "$ac_res" >&6; }
  1907. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1908. } # ac_fn_c_check_member
  1909. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1910. # ---------------------------------------------
  1911. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1912. # accordingly.
  1913. ac_fn_c_check_decl ()
  1914. {
  1915. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1916. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1917. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1919. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1920. if eval \${$3+:} false; then :
  1921. $as_echo_n "(cached) " >&6
  1922. else
  1923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1924. /* end confdefs.h. */
  1925. $4
  1926. int
  1927. main ()
  1928. {
  1929. #ifndef $as_decl_name
  1930. #ifdef __cplusplus
  1931. (void) $as_decl_use;
  1932. #else
  1933. (void) $as_decl_name;
  1934. #endif
  1935. #endif
  1936. ;
  1937. return 0;
  1938. }
  1939. _ACEOF
  1940. if ac_fn_c_try_compile "$LINENO"; then :
  1941. eval "$3=yes"
  1942. else
  1943. eval "$3=no"
  1944. fi
  1945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1946. fi
  1947. eval ac_res=\$$3
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1949. $as_echo "$ac_res" >&6; }
  1950. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1951. } # ac_fn_c_check_decl
  1952. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1953. # ------------------------------------
  1954. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1955. # accordingly.
  1956. ac_fn_c_find_uintX_t ()
  1957. {
  1958. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1960. $as_echo_n "checking for uint$2_t... " >&6; }
  1961. if eval \${$3+:} false; then :
  1962. $as_echo_n "(cached) " >&6
  1963. else
  1964. eval "$3=no"
  1965. # Order is important - never check a type that is potentially smaller
  1966. # than half of the expected target width.
  1967. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1968. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1970. /* end confdefs.h. */
  1971. $ac_includes_default
  1972. int
  1973. main ()
  1974. {
  1975. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1976. test_array [0] = 0
  1977. ;
  1978. return 0;
  1979. }
  1980. _ACEOF
  1981. if ac_fn_c_try_compile "$LINENO"; then :
  1982. case $ac_type in #(
  1983. uint$2_t) :
  1984. eval "$3=yes" ;; #(
  1985. *) :
  1986. eval "$3=\$ac_type" ;;
  1987. esac
  1988. fi
  1989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1990. if eval test \"x\$"$3"\" = x"no"; then :
  1991. else
  1992. break
  1993. fi
  1994. done
  1995. fi
  1996. eval ac_res=\$$3
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1998. $as_echo "$ac_res" >&6; }
  1999. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2000. } # ac_fn_c_find_uintX_t
  2001. # ac_fn_c_find_intX_t LINENO BITS VAR
  2002. # -----------------------------------
  2003. # Finds a signed integer type with width BITS, setting cache variable VAR
  2004. # accordingly.
  2005. ac_fn_c_find_intX_t ()
  2006. {
  2007. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2009. $as_echo_n "checking for int$2_t... " >&6; }
  2010. if eval \${$3+:} false; then :
  2011. $as_echo_n "(cached) " >&6
  2012. else
  2013. eval "$3=no"
  2014. # Order is important - never check a type that is potentially smaller
  2015. # than half of the expected target width.
  2016. for ac_type in int$2_t 'int' 'long int' \
  2017. 'long long int' 'short int' 'signed char'; do
  2018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2019. /* end confdefs.h. */
  2020. $ac_includes_default
  2021. enum { N = $2 / 2 - 1 };
  2022. int
  2023. main ()
  2024. {
  2025. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2026. test_array [0] = 0
  2027. ;
  2028. return 0;
  2029. }
  2030. _ACEOF
  2031. if ac_fn_c_try_compile "$LINENO"; then :
  2032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2033. /* end confdefs.h. */
  2034. $ac_includes_default
  2035. enum { N = $2 / 2 - 1 };
  2036. int
  2037. main ()
  2038. {
  2039. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2040. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2041. test_array [0] = 0
  2042. ;
  2043. return 0;
  2044. }
  2045. _ACEOF
  2046. if ac_fn_c_try_compile "$LINENO"; then :
  2047. else
  2048. case $ac_type in #(
  2049. int$2_t) :
  2050. eval "$3=yes" ;; #(
  2051. *) :
  2052. eval "$3=\$ac_type" ;;
  2053. esac
  2054. fi
  2055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2056. fi
  2057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2058. if eval test \"x\$"$3"\" = x"no"; then :
  2059. else
  2060. break
  2061. fi
  2062. done
  2063. fi
  2064. eval ac_res=\$$3
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2066. $as_echo "$ac_res" >&6; }
  2067. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2068. } # ac_fn_c_find_intX_t
  2069. cat >config.log <<_ACEOF
  2070. This file contains any messages produced by compilers while
  2071. running configure, to aid debugging if configure makes a mistake.
  2072. It was created by file $as_me 5.12, which was
  2073. generated by GNU Autoconf 2.68. Invocation command line was
  2074. $ $0 $@
  2075. _ACEOF
  2076. exec 5>>config.log
  2077. {
  2078. cat <<_ASUNAME
  2079. ## --------- ##
  2080. ## Platform. ##
  2081. ## --------- ##
  2082. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2083. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2084. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2085. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2086. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2087. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2088. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2089. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2090. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2091. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2092. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2093. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2094. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2095. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2096. _ASUNAME
  2097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2098. for as_dir in $PATH
  2099. do
  2100. IFS=$as_save_IFS
  2101. test -z "$as_dir" && as_dir=.
  2102. $as_echo "PATH: $as_dir"
  2103. done
  2104. IFS=$as_save_IFS
  2105. } >&5
  2106. cat >&5 <<_ACEOF
  2107. ## ----------- ##
  2108. ## Core tests. ##
  2109. ## ----------- ##
  2110. _ACEOF
  2111. # Keep a trace of the command line.
  2112. # Strip out --no-create and --no-recursion so they do not pile up.
  2113. # Strip out --silent because we don't want to record it for future runs.
  2114. # Also quote any args containing shell meta-characters.
  2115. # Make two passes to allow for proper duplicate-argument suppression.
  2116. ac_configure_args=
  2117. ac_configure_args0=
  2118. ac_configure_args1=
  2119. ac_must_keep_next=false
  2120. for ac_pass in 1 2
  2121. do
  2122. for ac_arg
  2123. do
  2124. case $ac_arg in
  2125. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2126. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2127. | -silent | --silent | --silen | --sile | --sil)
  2128. continue ;;
  2129. *\'*)
  2130. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2131. esac
  2132. case $ac_pass in
  2133. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2134. 2)
  2135. as_fn_append ac_configure_args1 " '$ac_arg'"
  2136. if test $ac_must_keep_next = true; then
  2137. ac_must_keep_next=false # Got value, back to normal.
  2138. else
  2139. case $ac_arg in
  2140. *=* | --config-cache | -C | -disable-* | --disable-* \
  2141. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2142. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2143. | -with-* | --with-* | -without-* | --without-* | --x)
  2144. case "$ac_configure_args0 " in
  2145. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2146. esac
  2147. ;;
  2148. -* ) ac_must_keep_next=true ;;
  2149. esac
  2150. fi
  2151. as_fn_append ac_configure_args " '$ac_arg'"
  2152. ;;
  2153. esac
  2154. done
  2155. done
  2156. { ac_configure_args0=; unset ac_configure_args0;}
  2157. { ac_configure_args1=; unset ac_configure_args1;}
  2158. # When interrupted or exit'd, cleanup temporary files, and complete
  2159. # config.log. We remove comments because anyway the quotes in there
  2160. # would cause problems or look ugly.
  2161. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2162. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2163. trap 'exit_status=$?
  2164. # Save into config.log some information that might help in debugging.
  2165. {
  2166. echo
  2167. $as_echo "## ---------------- ##
  2168. ## Cache variables. ##
  2169. ## ---------------- ##"
  2170. echo
  2171. # The following way of writing the cache mishandles newlines in values,
  2172. (
  2173. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2174. eval ac_val=\$$ac_var
  2175. case $ac_val in #(
  2176. *${as_nl}*)
  2177. case $ac_var in #(
  2178. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2179. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2180. esac
  2181. case $ac_var in #(
  2182. _ | IFS | as_nl) ;; #(
  2183. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2184. *) { eval $ac_var=; unset $ac_var;} ;;
  2185. esac ;;
  2186. esac
  2187. done
  2188. (set) 2>&1 |
  2189. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2190. *${as_nl}ac_space=\ *)
  2191. sed -n \
  2192. "s/'\''/'\''\\\\'\'''\''/g;
  2193. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2194. ;; #(
  2195. *)
  2196. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2197. ;;
  2198. esac |
  2199. sort
  2200. )
  2201. echo
  2202. $as_echo "## ----------------- ##
  2203. ## Output variables. ##
  2204. ## ----------------- ##"
  2205. echo
  2206. for ac_var in $ac_subst_vars
  2207. do
  2208. eval ac_val=\$$ac_var
  2209. case $ac_val in
  2210. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2211. esac
  2212. $as_echo "$ac_var='\''$ac_val'\''"
  2213. done | sort
  2214. echo
  2215. if test -n "$ac_subst_files"; then
  2216. $as_echo "## ------------------- ##
  2217. ## File substitutions. ##
  2218. ## ------------------- ##"
  2219. echo
  2220. for ac_var in $ac_subst_files
  2221. do
  2222. eval ac_val=\$$ac_var
  2223. case $ac_val in
  2224. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2225. esac
  2226. $as_echo "$ac_var='\''$ac_val'\''"
  2227. done | sort
  2228. echo
  2229. fi
  2230. if test -s confdefs.h; then
  2231. $as_echo "## ----------- ##
  2232. ## confdefs.h. ##
  2233. ## ----------- ##"
  2234. echo
  2235. cat confdefs.h
  2236. echo
  2237. fi
  2238. test "$ac_signal" != 0 &&
  2239. $as_echo "$as_me: caught signal $ac_signal"
  2240. $as_echo "$as_me: exit $exit_status"
  2241. } >&5
  2242. rm -f core *.core core.conftest.* &&
  2243. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2244. exit $exit_status
  2245. ' 0
  2246. for ac_signal in 1 2 13 15; do
  2247. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2248. done
  2249. ac_signal=0
  2250. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2251. rm -f -r conftest* confdefs.h
  2252. $as_echo "/* confdefs.h */" > confdefs.h
  2253. # Predefined preprocessor variables.
  2254. cat >>confdefs.h <<_ACEOF
  2255. #define PACKAGE_NAME "$PACKAGE_NAME"
  2256. _ACEOF
  2257. cat >>confdefs.h <<_ACEOF
  2258. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2259. _ACEOF
  2260. cat >>confdefs.h <<_ACEOF
  2261. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2262. _ACEOF
  2263. cat >>confdefs.h <<_ACEOF
  2264. #define PACKAGE_STRING "$PACKAGE_STRING"
  2265. _ACEOF
  2266. cat >>confdefs.h <<_ACEOF
  2267. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2268. _ACEOF
  2269. cat >>confdefs.h <<_ACEOF
  2270. #define PACKAGE_URL "$PACKAGE_URL"
  2271. _ACEOF
  2272. # Let the site file select an alternate cache file if it wants to.
  2273. # Prefer an explicitly selected file to automatically selected ones.
  2274. ac_site_file1=NONE
  2275. ac_site_file2=NONE
  2276. if test -n "$CONFIG_SITE"; then
  2277. # We do not want a PATH search for config.site.
  2278. case $CONFIG_SITE in #((
  2279. -*) ac_site_file1=./$CONFIG_SITE;;
  2280. */*) ac_site_file1=$CONFIG_SITE;;
  2281. *) ac_site_file1=./$CONFIG_SITE;;
  2282. esac
  2283. elif test "x$prefix" != xNONE; then
  2284. ac_site_file1=$prefix/share/config.site
  2285. ac_site_file2=$prefix/etc/config.site
  2286. else
  2287. ac_site_file1=$ac_default_prefix/share/config.site
  2288. ac_site_file2=$ac_default_prefix/etc/config.site
  2289. fi
  2290. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2291. do
  2292. test "x$ac_site_file" = xNONE && continue
  2293. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2295. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2296. sed 's/^/| /' "$ac_site_file" >&5
  2297. . "$ac_site_file" \
  2298. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2299. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2300. as_fn_error $? "failed to load site script $ac_site_file
  2301. See \`config.log' for more details" "$LINENO" 5; }
  2302. fi
  2303. done
  2304. if test -r "$cache_file"; then
  2305. # Some versions of bash will fail to source /dev/null (special files
  2306. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2307. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2309. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2310. case $cache_file in
  2311. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2312. *) . "./$cache_file";;
  2313. esac
  2314. fi
  2315. else
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2317. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2318. >$cache_file
  2319. fi
  2320. as_fn_append ac_header_list " stdlib.h"
  2321. as_fn_append ac_header_list " unistd.h"
  2322. as_fn_append ac_header_list " sys/param.h"
  2323. # Check that the precious variables saved in the cache have kept the same
  2324. # value.
  2325. ac_cache_corrupted=false
  2326. for ac_var in $ac_precious_vars; do
  2327. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2328. eval ac_new_set=\$ac_env_${ac_var}_set
  2329. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2330. eval ac_new_val=\$ac_env_${ac_var}_value
  2331. case $ac_old_set,$ac_new_set in
  2332. set,)
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2334. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2335. ac_cache_corrupted=: ;;
  2336. ,set)
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2338. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2339. ac_cache_corrupted=: ;;
  2340. ,);;
  2341. *)
  2342. if test "x$ac_old_val" != "x$ac_new_val"; then
  2343. # differences in whitespace do not lead to failure.
  2344. ac_old_val_w=`echo x $ac_old_val`
  2345. ac_new_val_w=`echo x $ac_new_val`
  2346. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2348. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2349. ac_cache_corrupted=:
  2350. else
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2352. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2353. eval $ac_var=\$ac_old_val
  2354. fi
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2356. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2358. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2359. fi;;
  2360. esac
  2361. # Pass precious variables to config.status.
  2362. if test "$ac_new_set" = set; then
  2363. case $ac_new_val in
  2364. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2365. *) ac_arg=$ac_var=$ac_new_val ;;
  2366. esac
  2367. case " $ac_configure_args " in
  2368. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2369. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2370. esac
  2371. fi
  2372. done
  2373. if $ac_cache_corrupted; then
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2375. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2377. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2378. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2379. fi
  2380. ## -------------------- ##
  2381. ## Main body of script. ##
  2382. ## -------------------- ##
  2383. ac_ext=c
  2384. ac_cpp='$CPP $CPPFLAGS'
  2385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2386. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2388. am__api_version='1.11'
  2389. ac_aux_dir=
  2390. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2391. if test -f "$ac_dir/install-sh"; then
  2392. ac_aux_dir=$ac_dir
  2393. ac_install_sh="$ac_aux_dir/install-sh -c"
  2394. break
  2395. elif test -f "$ac_dir/install.sh"; then
  2396. ac_aux_dir=$ac_dir
  2397. ac_install_sh="$ac_aux_dir/install.sh -c"
  2398. break
  2399. elif test -f "$ac_dir/shtool"; then
  2400. ac_aux_dir=$ac_dir
  2401. ac_install_sh="$ac_aux_dir/shtool install -c"
  2402. break
  2403. fi
  2404. done
  2405. if test -z "$ac_aux_dir"; then
  2406. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2407. fi
  2408. # These three variables are undocumented and unsupported,
  2409. # and are intended to be withdrawn in a future Autoconf release.
  2410. # They can cause serious problems if a builder's source tree is in a directory
  2411. # whose full name contains unusual characters.
  2412. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2413. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2414. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2415. # Find a good install program. We prefer a C program (faster),
  2416. # so one script is as good as another. But avoid the broken or
  2417. # incompatible versions:
  2418. # SysV /etc/install, /usr/sbin/install
  2419. # SunOS /usr/etc/install
  2420. # IRIX /sbin/install
  2421. # AIX /bin/install
  2422. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2423. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2424. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2425. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2426. # OS/2's system install, which has a completely different semantic
  2427. # ./install, which can be erroneously created by make from ./install.sh.
  2428. # Reject install programs that cannot install multiple files.
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2430. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2431. if test -z "$INSTALL"; then
  2432. if ${ac_cv_path_install+:} false; then :
  2433. $as_echo_n "(cached) " >&6
  2434. else
  2435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2436. for as_dir in $PATH
  2437. do
  2438. IFS=$as_save_IFS
  2439. test -z "$as_dir" && as_dir=.
  2440. # Account for people who put trailing slashes in PATH elements.
  2441. case $as_dir/ in #((
  2442. ./ | .// | /[cC]/* | \
  2443. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2444. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2445. /usr/ucb/* ) ;;
  2446. *)
  2447. # OSF1 and SCO ODT 3.0 have their own names for install.
  2448. # Don't use installbsd from OSF since it installs stuff as root
  2449. # by default.
  2450. for ac_prog in ginstall scoinst install; do
  2451. for ac_exec_ext in '' $ac_executable_extensions; do
  2452. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2453. if test $ac_prog = install &&
  2454. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2455. # AIX install. It has an incompatible calling convention.
  2456. :
  2457. elif test $ac_prog = install &&
  2458. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2459. # program-specific install script used by HP pwplus--don't use.
  2460. :
  2461. else
  2462. rm -rf conftest.one conftest.two conftest.dir
  2463. echo one > conftest.one
  2464. echo two > conftest.two
  2465. mkdir conftest.dir
  2466. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2467. test -s conftest.one && test -s conftest.two &&
  2468. test -s conftest.dir/conftest.one &&
  2469. test -s conftest.dir/conftest.two
  2470. then
  2471. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2472. break 3
  2473. fi
  2474. fi
  2475. fi
  2476. done
  2477. done
  2478. ;;
  2479. esac
  2480. done
  2481. IFS=$as_save_IFS
  2482. rm -rf conftest.one conftest.two conftest.dir
  2483. fi
  2484. if test "${ac_cv_path_install+set}" = set; then
  2485. INSTALL=$ac_cv_path_install
  2486. else
  2487. # As a last resort, use the slow shell script. Don't cache a
  2488. # value for INSTALL within a source directory, because that will
  2489. # break other packages using the cache if that directory is
  2490. # removed, or if the value is a relative name.
  2491. INSTALL=$ac_install_sh
  2492. fi
  2493. fi
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2495. $as_echo "$INSTALL" >&6; }
  2496. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2497. # It thinks the first close brace ends the variable substitution.
  2498. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2499. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2500. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2502. $as_echo_n "checking whether build environment is sane... " >&6; }
  2503. # Just in case
  2504. sleep 1
  2505. echo timestamp > conftest.file
  2506. # Reject unsafe characters in $srcdir or the absolute working directory
  2507. # name. Accept space and tab only in the latter.
  2508. am_lf='
  2509. '
  2510. case `pwd` in
  2511. *[\\\"\#\$\&\'\`$am_lf]*)
  2512. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2513. esac
  2514. case $srcdir in
  2515. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2516. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2517. esac
  2518. # Do `set' in a subshell so we don't clobber the current shell's
  2519. # arguments. Must try -L first in case configure is actually a
  2520. # symlink; some systems play weird games with the mod time of symlinks
  2521. # (eg FreeBSD returns the mod time of the symlink's containing
  2522. # directory).
  2523. if (
  2524. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2525. if test "$*" = "X"; then
  2526. # -L didn't work.
  2527. set X `ls -t "$srcdir/configure" conftest.file`
  2528. fi
  2529. rm -f conftest.file
  2530. if test "$*" != "X $srcdir/configure conftest.file" \
  2531. && test "$*" != "X conftest.file $srcdir/configure"; then
  2532. # If neither matched, then we have a broken ls. This can happen
  2533. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2534. # broken ls alias from the environment. This has actually
  2535. # happened. Such a system could not be considered "sane".
  2536. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2537. alias in your environment" "$LINENO" 5
  2538. fi
  2539. test "$2" = conftest.file
  2540. )
  2541. then
  2542. # Ok.
  2543. :
  2544. else
  2545. as_fn_error $? "newly created file is older than distributed files!
  2546. Check your system clock" "$LINENO" 5
  2547. fi
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2549. $as_echo "yes" >&6; }
  2550. test "$program_prefix" != NONE &&
  2551. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2552. # Use a double $ so make ignores it.
  2553. test "$program_suffix" != NONE &&
  2554. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2555. # Double any \ or $.
  2556. # By default was `s,x,x', remove it if useless.
  2557. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2558. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2559. # expand $ac_aux_dir to an absolute path
  2560. am_aux_dir=`cd $ac_aux_dir && pwd`
  2561. if test x"${MISSING+set}" != xset; then
  2562. case $am_aux_dir in
  2563. *\ * | *\ *)
  2564. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2565. *)
  2566. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2567. esac
  2568. fi
  2569. # Use eval to expand $SHELL
  2570. if eval "$MISSING --run true"; then
  2571. am_missing_run="$MISSING --run "
  2572. else
  2573. am_missing_run=
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2575. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2576. fi
  2577. if test x"${install_sh}" != xset; then
  2578. case $am_aux_dir in
  2579. *\ * | *\ *)
  2580. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2581. *)
  2582. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2583. esac
  2584. fi
  2585. # Installed binaries are usually stripped using `strip' when the user
  2586. # run `make install-strip'. However `strip' might not be the right
  2587. # tool to use in cross-compilation environments, therefore Automake
  2588. # will honor the `STRIP' environment variable to overrule this program.
  2589. if test "$cross_compiling" != no; then
  2590. if test -n "$ac_tool_prefix"; then
  2591. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2592. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2594. $as_echo_n "checking for $ac_word... " >&6; }
  2595. if ${ac_cv_prog_STRIP+:} false; then :
  2596. $as_echo_n "(cached) " >&6
  2597. else
  2598. if test -n "$STRIP"; then
  2599. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2600. else
  2601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602. for as_dir in $PATH
  2603. do
  2604. IFS=$as_save_IFS
  2605. test -z "$as_dir" && as_dir=.
  2606. for ac_exec_ext in '' $ac_executable_extensions; do
  2607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2608. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2610. break 2
  2611. fi
  2612. done
  2613. done
  2614. IFS=$as_save_IFS
  2615. fi
  2616. fi
  2617. STRIP=$ac_cv_prog_STRIP
  2618. if test -n "$STRIP"; then
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2620. $as_echo "$STRIP" >&6; }
  2621. else
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2623. $as_echo "no" >&6; }
  2624. fi
  2625. fi
  2626. if test -z "$ac_cv_prog_STRIP"; then
  2627. ac_ct_STRIP=$STRIP
  2628. # Extract the first word of "strip", so it can be a program name with args.
  2629. set dummy strip; ac_word=$2
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2631. $as_echo_n "checking for $ac_word... " >&6; }
  2632. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. if test -n "$ac_ct_STRIP"; then
  2636. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2637. else
  2638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2639. for as_dir in $PATH
  2640. do
  2641. IFS=$as_save_IFS
  2642. test -z "$as_dir" && as_dir=.
  2643. for ac_exec_ext in '' $ac_executable_extensions; do
  2644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2645. ac_cv_prog_ac_ct_STRIP="strip"
  2646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2647. break 2
  2648. fi
  2649. done
  2650. done
  2651. IFS=$as_save_IFS
  2652. fi
  2653. fi
  2654. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2655. if test -n "$ac_ct_STRIP"; then
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2657. $as_echo "$ac_ct_STRIP" >&6; }
  2658. else
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2660. $as_echo "no" >&6; }
  2661. fi
  2662. if test "x$ac_ct_STRIP" = x; then
  2663. STRIP=":"
  2664. else
  2665. case $cross_compiling:$ac_tool_warned in
  2666. yes:)
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2669. ac_tool_warned=yes ;;
  2670. esac
  2671. STRIP=$ac_ct_STRIP
  2672. fi
  2673. else
  2674. STRIP="$ac_cv_prog_STRIP"
  2675. fi
  2676. fi
  2677. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2679. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2680. if test -z "$MKDIR_P"; then
  2681. if ${ac_cv_path_mkdir+:} false; then :
  2682. $as_echo_n "(cached) " >&6
  2683. else
  2684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2685. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2686. do
  2687. IFS=$as_save_IFS
  2688. test -z "$as_dir" && as_dir=.
  2689. for ac_prog in mkdir gmkdir; do
  2690. for ac_exec_ext in '' $ac_executable_extensions; do
  2691. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2692. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2693. 'mkdir (GNU coreutils) '* | \
  2694. 'mkdir (coreutils) '* | \
  2695. 'mkdir (fileutils) '4.1*)
  2696. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2697. break 3;;
  2698. esac
  2699. done
  2700. done
  2701. done
  2702. IFS=$as_save_IFS
  2703. fi
  2704. test -d ./--version && rmdir ./--version
  2705. if test "${ac_cv_path_mkdir+set}" = set; then
  2706. MKDIR_P="$ac_cv_path_mkdir -p"
  2707. else
  2708. # As a last resort, use the slow shell script. Don't cache a
  2709. # value for MKDIR_P within a source directory, because that will
  2710. # break other packages using the cache if that directory is
  2711. # removed, or if the value is a relative name.
  2712. MKDIR_P="$ac_install_sh -d"
  2713. fi
  2714. fi
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2716. $as_echo "$MKDIR_P" >&6; }
  2717. mkdir_p="$MKDIR_P"
  2718. case $mkdir_p in
  2719. [\\/$]* | ?:[\\/]*) ;;
  2720. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2721. esac
  2722. for ac_prog in gawk mawk nawk awk
  2723. do
  2724. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2725. set dummy $ac_prog; ac_word=$2
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2727. $as_echo_n "checking for $ac_word... " >&6; }
  2728. if ${ac_cv_prog_AWK+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if test -n "$AWK"; then
  2732. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2741. ac_cv_prog_AWK="$ac_prog"
  2742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2743. break 2
  2744. fi
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi
  2749. fi
  2750. AWK=$ac_cv_prog_AWK
  2751. if test -n "$AWK"; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2753. $as_echo "$AWK" >&6; }
  2754. else
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2756. $as_echo "no" >&6; }
  2757. fi
  2758. test -n "$AWK" && break
  2759. done
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2761. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2762. set x ${MAKE-make}
  2763. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2764. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2765. $as_echo_n "(cached) " >&6
  2766. else
  2767. cat >conftest.make <<\_ACEOF
  2768. SHELL = /bin/sh
  2769. all:
  2770. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2771. _ACEOF
  2772. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2773. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2774. *@@@%%%=?*=@@@%%%*)
  2775. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2776. *)
  2777. eval ac_cv_prog_make_${ac_make}_set=no;;
  2778. esac
  2779. rm -f conftest.make
  2780. fi
  2781. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2783. $as_echo "yes" >&6; }
  2784. SET_MAKE=
  2785. else
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2787. $as_echo "no" >&6; }
  2788. SET_MAKE="MAKE=${MAKE-make}"
  2789. fi
  2790. rm -rf .tst 2>/dev/null
  2791. mkdir .tst 2>/dev/null
  2792. if test -d .tst; then
  2793. am__leading_dot=.
  2794. else
  2795. am__leading_dot=_
  2796. fi
  2797. rmdir .tst 2>/dev/null
  2798. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2799. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2800. # is not polluted with repeated "-I."
  2801. am__isrc=' -I$(srcdir)'
  2802. # test to see if srcdir already configured
  2803. if test -f $srcdir/config.status; then
  2804. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2805. fi
  2806. fi
  2807. # test whether we have cygpath
  2808. if test -z "$CYGPATH_W"; then
  2809. if (cygpath --version) >/dev/null 2>/dev/null; then
  2810. CYGPATH_W='cygpath -w'
  2811. else
  2812. CYGPATH_W=echo
  2813. fi
  2814. fi
  2815. # Define the identity of the package.
  2816. PACKAGE='file'
  2817. VERSION='5.12'
  2818. cat >>confdefs.h <<_ACEOF
  2819. #define PACKAGE "$PACKAGE"
  2820. _ACEOF
  2821. cat >>confdefs.h <<_ACEOF
  2822. #define VERSION "$VERSION"
  2823. _ACEOF
  2824. # Some tools Automake needs.
  2825. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2826. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2827. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2828. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2829. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2830. # We need awk for the "check" target. The system "awk" is bad on
  2831. # some platforms.
  2832. # Always define AMTAR for backward compatibility.
  2833. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2834. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2835. # Check whether --enable-silent-rules was given.
  2836. if test "${enable_silent_rules+set}" = set; then :
  2837. enableval=$enable_silent_rules;
  2838. fi
  2839. case $enable_silent_rules in
  2840. yes) AM_DEFAULT_VERBOSITY=0;;
  2841. no) AM_DEFAULT_VERBOSITY=1;;
  2842. *) AM_DEFAULT_VERBOSITY=0;;
  2843. esac
  2844. AM_BACKSLASH='\'
  2845. ac_config_headers="$ac_config_headers config.h"
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2847. $as_echo_n "checking for builtin ELF support... " >&6; }
  2848. # Check whether --enable-elf was given.
  2849. if test "${enable_elf+set}" = set; then :
  2850. enableval=$enable_elf; if test "${enableval}" = yes; then
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2852. $as_echo "yes" >&6; }
  2853. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2854. else
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2856. $as_echo "no" >&6; }
  2857. fi
  2858. else
  2859. # enable by default
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2861. $as_echo "yes" >&6; }
  2862. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2863. fi
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2865. $as_echo_n "checking for ELF core file support... " >&6; }
  2866. # Check whether --enable-elf-core was given.
  2867. if test "${enable_elf_core+set}" = set; then :
  2868. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2870. $as_echo "yes" >&6; }
  2871. $as_echo "#define ELFCORE 1" >>confdefs.h
  2872. else
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2874. $as_echo "no" >&6; }
  2875. fi
  2876. else
  2877. # enable by default
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2879. $as_echo "yes" >&6; }
  2880. $as_echo "#define ELFCORE 1" >>confdefs.h
  2881. fi
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2883. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2884. # Check whether --enable-fsect-man5 was given.
  2885. if test "${enable_fsect_man5+set}" = set; then :
  2886. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2888. $as_echo "yes" >&6; }
  2889. fsect=5
  2890. else
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fsect=4
  2894. fi
  2895. else
  2896. # disable by default
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2898. $as_echo "no" >&6; }
  2899. fsect=4
  2900. fi
  2901. # Make sure we can run config.sub.
  2902. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2903. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2905. $as_echo_n "checking build system type... " >&6; }
  2906. if ${ac_cv_build+:} false; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. ac_build_alias=$build_alias
  2910. test "x$ac_build_alias" = x &&
  2911. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2912. test "x$ac_build_alias" = x &&
  2913. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2914. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2915. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2916. fi
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2918. $as_echo "$ac_cv_build" >&6; }
  2919. case $ac_cv_build in
  2920. *-*-*) ;;
  2921. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2922. esac
  2923. build=$ac_cv_build
  2924. ac_save_IFS=$IFS; IFS='-'
  2925. set x $ac_cv_build
  2926. shift
  2927. build_cpu=$1
  2928. build_vendor=$2
  2929. shift; shift
  2930. # Remember, the first character of IFS is used to create $*,
  2931. # except with old shells:
  2932. build_os=$*
  2933. IFS=$ac_save_IFS
  2934. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2936. $as_echo_n "checking host system type... " >&6; }
  2937. if ${ac_cv_host+:} false; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. if test "x$host_alias" = x; then
  2941. ac_cv_host=$ac_cv_build
  2942. else
  2943. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2944. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2945. fi
  2946. fi
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2948. $as_echo "$ac_cv_host" >&6; }
  2949. case $ac_cv_host in
  2950. *-*-*) ;;
  2951. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2952. esac
  2953. host=$ac_cv_host
  2954. ac_save_IFS=$IFS; IFS='-'
  2955. set x $ac_cv_host
  2956. shift
  2957. host_cpu=$1
  2958. host_vendor=$2
  2959. shift; shift
  2960. # Remember, the first character of IFS is used to create $*,
  2961. # except with old shells:
  2962. host_os=$*
  2963. IFS=$ac_save_IFS
  2964. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2965. case "$host_os" in
  2966. mingw32*)
  2967. MINGW=1
  2968. ;;
  2969. *)
  2970. MINGW=0
  2971. ;;
  2972. esac
  2973. if test "$MINGW" = 1; then
  2974. MINGW_TRUE=
  2975. MINGW_FALSE='#'
  2976. else
  2977. MINGW_TRUE='#'
  2978. MINGW_FALSE=
  2979. fi
  2980. pkgdatadir='$(datadir)/misc'
  2981. if test x$fsect = x5; then
  2982. FSECT5_TRUE=
  2983. FSECT5_FALSE='#'
  2984. else
  2985. FSECT5_TRUE='#'
  2986. FSECT5_FALSE=
  2987. fi
  2988. DEPDIR="${am__leading_dot}deps"
  2989. ac_config_commands="$ac_config_commands depfiles"
  2990. am_make=${MAKE-make}
  2991. cat > confinc << 'END'
  2992. am__doit:
  2993. @echo this is the am__doit target
  2994. .PHONY: am__doit
  2995. END
  2996. # If we don't find an include directive, just comment out the code.
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2998. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2999. am__include="#"
  3000. am__quote=
  3001. _am_result=none
  3002. # First try GNU make style include.
  3003. echo "include confinc" > confmf
  3004. # Ignore all kinds of additional output from `make'.
  3005. case `$am_make -s -f confmf 2> /dev/null` in #(
  3006. *the\ am__doit\ target*)
  3007. am__include=include
  3008. am__quote=
  3009. _am_result=GNU
  3010. ;;
  3011. esac
  3012. # Now try BSD make style include.
  3013. if test "$am__include" = "#"; then
  3014. echo '.include "confinc"' > confmf
  3015. case `$am_make -s -f confmf 2> /dev/null` in #(
  3016. *the\ am__doit\ target*)
  3017. am__include=.include
  3018. am__quote="\""
  3019. _am_result=BSD
  3020. ;;
  3021. esac
  3022. fi
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3024. $as_echo "$_am_result" >&6; }
  3025. rm -f confinc confmf
  3026. # Check whether --enable-dependency-tracking was given.
  3027. if test "${enable_dependency_tracking+set}" = set; then :
  3028. enableval=$enable_dependency_tracking;
  3029. fi
  3030. if test "x$enable_dependency_tracking" != xno; then
  3031. am_depcomp="$ac_aux_dir/depcomp"
  3032. AMDEPBACKSLASH='\'
  3033. fi
  3034. if test "x$enable_dependency_tracking" != xno; then
  3035. AMDEP_TRUE=
  3036. AMDEP_FALSE='#'
  3037. else
  3038. AMDEP_TRUE='#'
  3039. AMDEP_FALSE=
  3040. fi
  3041. ac_ext=c
  3042. ac_cpp='$CPP $CPPFLAGS'
  3043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3046. if test -n "$ac_tool_prefix"; then
  3047. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3048. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3050. $as_echo_n "checking for $ac_word... " >&6; }
  3051. if ${ac_cv_prog_CC+:} false; then :
  3052. $as_echo_n "(cached) " >&6
  3053. else
  3054. if test -n "$CC"; then
  3055. ac_cv_prog_CC="$CC" # Let the user override the test.
  3056. else
  3057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3058. for as_dir in $PATH
  3059. do
  3060. IFS=$as_save_IFS
  3061. test -z "$as_dir" && as_dir=.
  3062. for ac_exec_ext in '' $ac_executable_extensions; do
  3063. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3064. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3066. break 2
  3067. fi
  3068. done
  3069. done
  3070. IFS=$as_save_IFS
  3071. fi
  3072. fi
  3073. CC=$ac_cv_prog_CC
  3074. if test -n "$CC"; then
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3076. $as_echo "$CC" >&6; }
  3077. else
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3079. $as_echo "no" >&6; }
  3080. fi
  3081. fi
  3082. if test -z "$ac_cv_prog_CC"; then
  3083. ac_ct_CC=$CC
  3084. # Extract the first word of "gcc", so it can be a program name with args.
  3085. set dummy gcc; ac_word=$2
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3087. $as_echo_n "checking for $ac_word... " >&6; }
  3088. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3089. $as_echo_n "(cached) " >&6
  3090. else
  3091. if test -n "$ac_ct_CC"; then
  3092. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3093. else
  3094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3095. for as_dir in $PATH
  3096. do
  3097. IFS=$as_save_IFS
  3098. test -z "$as_dir" && as_dir=.
  3099. for ac_exec_ext in '' $ac_executable_extensions; do
  3100. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3101. ac_cv_prog_ac_ct_CC="gcc"
  3102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3103. break 2
  3104. fi
  3105. done
  3106. done
  3107. IFS=$as_save_IFS
  3108. fi
  3109. fi
  3110. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3111. if test -n "$ac_ct_CC"; then
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3113. $as_echo "$ac_ct_CC" >&6; }
  3114. else
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3116. $as_echo "no" >&6; }
  3117. fi
  3118. if test "x$ac_ct_CC" = x; then
  3119. CC=""
  3120. else
  3121. case $cross_compiling:$ac_tool_warned in
  3122. yes:)
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3124. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3125. ac_tool_warned=yes ;;
  3126. esac
  3127. CC=$ac_ct_CC
  3128. fi
  3129. else
  3130. CC="$ac_cv_prog_CC"
  3131. fi
  3132. if test -z "$CC"; then
  3133. if test -n "$ac_tool_prefix"; then
  3134. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3135. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3137. $as_echo_n "checking for $ac_word... " >&6; }
  3138. if ${ac_cv_prog_CC+:} false; then :
  3139. $as_echo_n "(cached) " >&6
  3140. else
  3141. if test -n "$CC"; then
  3142. ac_cv_prog_CC="$CC" # Let the user override the test.
  3143. else
  3144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3145. for as_dir in $PATH
  3146. do
  3147. IFS=$as_save_IFS
  3148. test -z "$as_dir" && as_dir=.
  3149. for ac_exec_ext in '' $ac_executable_extensions; do
  3150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3151. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3153. break 2
  3154. fi
  3155. done
  3156. done
  3157. IFS=$as_save_IFS
  3158. fi
  3159. fi
  3160. CC=$ac_cv_prog_CC
  3161. if test -n "$CC"; then
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3163. $as_echo "$CC" >&6; }
  3164. else
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3166. $as_echo "no" >&6; }
  3167. fi
  3168. fi
  3169. fi
  3170. if test -z "$CC"; then
  3171. # Extract the first word of "cc", so it can be a program name with args.
  3172. set dummy cc; ac_word=$2
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3174. $as_echo_n "checking for $ac_word... " >&6; }
  3175. if ${ac_cv_prog_CC+:} false; then :
  3176. $as_echo_n "(cached) " >&6
  3177. else
  3178. if test -n "$CC"; then
  3179. ac_cv_prog_CC="$CC" # Let the user override the test.
  3180. else
  3181. ac_prog_rejected=no
  3182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3183. for as_dir in $PATH
  3184. do
  3185. IFS=$as_save_IFS
  3186. test -z "$as_dir" && as_dir=.
  3187. for ac_exec_ext in '' $ac_executable_extensions; do
  3188. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3189. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3190. ac_prog_rejected=yes
  3191. continue
  3192. fi
  3193. ac_cv_prog_CC="cc"
  3194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3195. break 2
  3196. fi
  3197. done
  3198. done
  3199. IFS=$as_save_IFS
  3200. if test $ac_prog_rejected = yes; then
  3201. # We found a bogon in the path, so make sure we never use it.
  3202. set dummy $ac_cv_prog_CC
  3203. shift
  3204. if test $# != 0; then
  3205. # We chose a different compiler from the bogus one.
  3206. # However, it has the same basename, so the bogon will be chosen
  3207. # first if we set CC to just the basename; use the full file name.
  3208. shift
  3209. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3210. fi
  3211. fi
  3212. fi
  3213. fi
  3214. CC=$ac_cv_prog_CC
  3215. if test -n "$CC"; then
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3217. $as_echo "$CC" >&6; }
  3218. else
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3220. $as_echo "no" >&6; }
  3221. fi
  3222. fi
  3223. if test -z "$CC"; then
  3224. if test -n "$ac_tool_prefix"; then
  3225. for ac_prog in cl.exe
  3226. do
  3227. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3228. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3230. $as_echo_n "checking for $ac_word... " >&6; }
  3231. if ${ac_cv_prog_CC+:} false; then :
  3232. $as_echo_n "(cached) " >&6
  3233. else
  3234. if test -n "$CC"; then
  3235. ac_cv_prog_CC="$CC" # Let the user override the test.
  3236. else
  3237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3238. for as_dir in $PATH
  3239. do
  3240. IFS=$as_save_IFS
  3241. test -z "$as_dir" && as_dir=.
  3242. for ac_exec_ext in '' $ac_executable_extensions; do
  3243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3244. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3246. break 2
  3247. fi
  3248. done
  3249. done
  3250. IFS=$as_save_IFS
  3251. fi
  3252. fi
  3253. CC=$ac_cv_prog_CC
  3254. if test -n "$CC"; then
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3256. $as_echo "$CC" >&6; }
  3257. else
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3259. $as_echo "no" >&6; }
  3260. fi
  3261. test -n "$CC" && break
  3262. done
  3263. fi
  3264. if test -z "$CC"; then
  3265. ac_ct_CC=$CC
  3266. for ac_prog in cl.exe
  3267. do
  3268. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3269. set dummy $ac_prog; ac_word=$2
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3271. $as_echo_n "checking for $ac_word... " >&6; }
  3272. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. if test -n "$ac_ct_CC"; then
  3276. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3277. else
  3278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3279. for as_dir in $PATH
  3280. do
  3281. IFS=$as_save_IFS
  3282. test -z "$as_dir" && as_dir=.
  3283. for ac_exec_ext in '' $ac_executable_extensions; do
  3284. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3285. ac_cv_prog_ac_ct_CC="$ac_prog"
  3286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3287. break 2
  3288. fi
  3289. done
  3290. done
  3291. IFS=$as_save_IFS
  3292. fi
  3293. fi
  3294. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3295. if test -n "$ac_ct_CC"; then
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3297. $as_echo "$ac_ct_CC" >&6; }
  3298. else
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3300. $as_echo "no" >&6; }
  3301. fi
  3302. test -n "$ac_ct_CC" && break
  3303. done
  3304. if test "x$ac_ct_CC" = x; then
  3305. CC=""
  3306. else
  3307. case $cross_compiling:$ac_tool_warned in
  3308. yes:)
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3310. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3311. ac_tool_warned=yes ;;
  3312. esac
  3313. CC=$ac_ct_CC
  3314. fi
  3315. fi
  3316. fi
  3317. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3318. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3319. as_fn_error $? "no acceptable C compiler found in \$PATH
  3320. See \`config.log' for more details" "$LINENO" 5; }
  3321. # Provide some information about the compiler.
  3322. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3323. set X $ac_compile
  3324. ac_compiler=$2
  3325. for ac_option in --version -v -V -qversion; do
  3326. { { ac_try="$ac_compiler $ac_option >&5"
  3327. case "(($ac_try" in
  3328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3329. *) ac_try_echo=$ac_try;;
  3330. esac
  3331. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3332. $as_echo "$ac_try_echo"; } >&5
  3333. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3334. ac_status=$?
  3335. if test -s conftest.err; then
  3336. sed '10a\
  3337. ... rest of stderr output deleted ...
  3338. 10q' conftest.err >conftest.er1
  3339. cat conftest.er1 >&5
  3340. fi
  3341. rm -f conftest.er1 conftest.err
  3342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3343. test $ac_status = 0; }
  3344. done
  3345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h. */
  3347. int
  3348. main ()
  3349. {
  3350. ;
  3351. return 0;
  3352. }
  3353. _ACEOF
  3354. ac_clean_files_save=$ac_clean_files
  3355. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3356. # Try to create an executable without -o first, disregard a.out.
  3357. # It will help us diagnose broken compilers, and finding out an intuition
  3358. # of exeext.
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3360. $as_echo_n "checking whether the C compiler works... " >&6; }
  3361. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3362. # The possible output files:
  3363. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3364. ac_rmfiles=
  3365. for ac_file in $ac_files
  3366. do
  3367. case $ac_file in
  3368. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3369. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3370. esac
  3371. done
  3372. rm -f $ac_rmfiles
  3373. if { { ac_try="$ac_link_default"
  3374. case "(($ac_try" in
  3375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3376. *) ac_try_echo=$ac_try;;
  3377. esac
  3378. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3379. $as_echo "$ac_try_echo"; } >&5
  3380. (eval "$ac_link_default") 2>&5
  3381. ac_status=$?
  3382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3383. test $ac_status = 0; }; then :
  3384. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3385. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3386. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3387. # so that the user can short-circuit this test for compilers unknown to
  3388. # Autoconf.
  3389. for ac_file in $ac_files ''
  3390. do
  3391. test -f "$ac_file" || continue
  3392. case $ac_file in
  3393. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3394. ;;
  3395. [ab].out )
  3396. # We found the default executable, but exeext='' is most
  3397. # certainly right.
  3398. break;;
  3399. *.* )
  3400. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3401. then :; else
  3402. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3403. fi
  3404. # We set ac_cv_exeext here because the later test for it is not
  3405. # safe: cross compilers may not add the suffix if given an `-o'
  3406. # argument, so we may need to know it at that point already.
  3407. # Even if this section looks crufty: it has the advantage of
  3408. # actually working.
  3409. break;;
  3410. * )
  3411. break;;
  3412. esac
  3413. done
  3414. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3415. else
  3416. ac_file=''
  3417. fi
  3418. if test -z "$ac_file"; then :
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3420. $as_echo "no" >&6; }
  3421. $as_echo "$as_me: failed program was:" >&5
  3422. sed 's/^/| /' conftest.$ac_ext >&5
  3423. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3424. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3425. as_fn_error 77 "C compiler cannot create executables
  3426. See \`config.log' for more details" "$LINENO" 5; }
  3427. else
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3429. $as_echo "yes" >&6; }
  3430. fi
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3432. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3434. $as_echo "$ac_file" >&6; }
  3435. ac_exeext=$ac_cv_exeext
  3436. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3437. ac_clean_files=$ac_clean_files_save
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3439. $as_echo_n "checking for suffix of executables... " >&6; }
  3440. if { { ac_try="$ac_link"
  3441. case "(($ac_try" in
  3442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3443. *) ac_try_echo=$ac_try;;
  3444. esac
  3445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3446. $as_echo "$ac_try_echo"; } >&5
  3447. (eval "$ac_link") 2>&5
  3448. ac_status=$?
  3449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3450. test $ac_status = 0; }; then :
  3451. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3452. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3453. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3454. # `rm'.
  3455. for ac_file in conftest.exe conftest conftest.*; do
  3456. test -f "$ac_file" || continue
  3457. case $ac_file in
  3458. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3459. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3460. break;;
  3461. * ) break;;
  3462. esac
  3463. done
  3464. else
  3465. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3466. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3467. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3468. See \`config.log' for more details" "$LINENO" 5; }
  3469. fi
  3470. rm -f conftest conftest$ac_cv_exeext
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3472. $as_echo "$ac_cv_exeext" >&6; }
  3473. rm -f conftest.$ac_ext
  3474. EXEEXT=$ac_cv_exeext
  3475. ac_exeext=$EXEEXT
  3476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3477. /* end confdefs.h. */
  3478. #include <stdio.h>
  3479. int
  3480. main ()
  3481. {
  3482. FILE *f = fopen ("conftest.out", "w");
  3483. return ferror (f) || fclose (f) != 0;
  3484. ;
  3485. return 0;
  3486. }
  3487. _ACEOF
  3488. ac_clean_files="$ac_clean_files conftest.out"
  3489. # Check that the compiler produces executables we can run. If not, either
  3490. # the compiler is broken, or we cross compile.
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3492. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3493. if test "$cross_compiling" != yes; then
  3494. { { ac_try="$ac_link"
  3495. case "(($ac_try" in
  3496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3497. *) ac_try_echo=$ac_try;;
  3498. esac
  3499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3500. $as_echo "$ac_try_echo"; } >&5
  3501. (eval "$ac_link") 2>&5
  3502. ac_status=$?
  3503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3504. test $ac_status = 0; }
  3505. if { ac_try='./conftest$ac_cv_exeext'
  3506. { { case "(($ac_try" in
  3507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3508. *) ac_try_echo=$ac_try;;
  3509. esac
  3510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3511. $as_echo "$ac_try_echo"; } >&5
  3512. (eval "$ac_try") 2>&5
  3513. ac_status=$?
  3514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3515. test $ac_status = 0; }; }; then
  3516. cross_compiling=no
  3517. else
  3518. if test "$cross_compiling" = maybe; then
  3519. cross_compiling=yes
  3520. else
  3521. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3522. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3523. as_fn_error $? "cannot run C compiled programs.
  3524. If you meant to cross compile, use \`--host'.
  3525. See \`config.log' for more details" "$LINENO" 5; }
  3526. fi
  3527. fi
  3528. fi
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3530. $as_echo "$cross_compiling" >&6; }
  3531. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3532. ac_clean_files=$ac_clean_files_save
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3534. $as_echo_n "checking for suffix of object files... " >&6; }
  3535. if ${ac_cv_objext+:} false; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3539. /* end confdefs.h. */
  3540. int
  3541. main ()
  3542. {
  3543. ;
  3544. return 0;
  3545. }
  3546. _ACEOF
  3547. rm -f conftest.o conftest.obj
  3548. if { { ac_try="$ac_compile"
  3549. case "(($ac_try" in
  3550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3551. *) ac_try_echo=$ac_try;;
  3552. esac
  3553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3554. $as_echo "$ac_try_echo"; } >&5
  3555. (eval "$ac_compile") 2>&5
  3556. ac_status=$?
  3557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3558. test $ac_status = 0; }; then :
  3559. for ac_file in conftest.o conftest.obj conftest.*; do
  3560. test -f "$ac_file" || continue;
  3561. case $ac_file in
  3562. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3563. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3564. break;;
  3565. esac
  3566. done
  3567. else
  3568. $as_echo "$as_me: failed program was:" >&5
  3569. sed 's/^/| /' conftest.$ac_ext >&5
  3570. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3571. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3572. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3573. See \`config.log' for more details" "$LINENO" 5; }
  3574. fi
  3575. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3576. fi
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3578. $as_echo "$ac_cv_objext" >&6; }
  3579. OBJEXT=$ac_cv_objext
  3580. ac_objext=$OBJEXT
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3582. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3583. if ${ac_cv_c_compiler_gnu+:} false; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3587. /* end confdefs.h. */
  3588. int
  3589. main ()
  3590. {
  3591. #ifndef __GNUC__
  3592. choke me
  3593. #endif
  3594. ;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. if ac_fn_c_try_compile "$LINENO"; then :
  3599. ac_compiler_gnu=yes
  3600. else
  3601. ac_compiler_gnu=no
  3602. fi
  3603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3604. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3605. fi
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3607. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3608. if test $ac_compiler_gnu = yes; then
  3609. GCC=yes
  3610. else
  3611. GCC=
  3612. fi
  3613. ac_test_CFLAGS=${CFLAGS+set}
  3614. ac_save_CFLAGS=$CFLAGS
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3616. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3617. if ${ac_cv_prog_cc_g+:} false; then :
  3618. $as_echo_n "(cached) " >&6
  3619. else
  3620. ac_save_c_werror_flag=$ac_c_werror_flag
  3621. ac_c_werror_flag=yes
  3622. ac_cv_prog_cc_g=no
  3623. CFLAGS="-g"
  3624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3625. /* end confdefs.h. */
  3626. int
  3627. main ()
  3628. {
  3629. ;
  3630. return 0;
  3631. }
  3632. _ACEOF
  3633. if ac_fn_c_try_compile "$LINENO"; then :
  3634. ac_cv_prog_cc_g=yes
  3635. else
  3636. CFLAGS=""
  3637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3638. /* end confdefs.h. */
  3639. int
  3640. main ()
  3641. {
  3642. ;
  3643. return 0;
  3644. }
  3645. _ACEOF
  3646. if ac_fn_c_try_compile "$LINENO"; then :
  3647. else
  3648. ac_c_werror_flag=$ac_save_c_werror_flag
  3649. CFLAGS="-g"
  3650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3651. /* end confdefs.h. */
  3652. int
  3653. main ()
  3654. {
  3655. ;
  3656. return 0;
  3657. }
  3658. _ACEOF
  3659. if ac_fn_c_try_compile "$LINENO"; then :
  3660. ac_cv_prog_cc_g=yes
  3661. fi
  3662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3663. fi
  3664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3665. fi
  3666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3667. ac_c_werror_flag=$ac_save_c_werror_flag
  3668. fi
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3670. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3671. if test "$ac_test_CFLAGS" = set; then
  3672. CFLAGS=$ac_save_CFLAGS
  3673. elif test $ac_cv_prog_cc_g = yes; then
  3674. if test "$GCC" = yes; then
  3675. CFLAGS="-g -O2"
  3676. else
  3677. CFLAGS="-g"
  3678. fi
  3679. else
  3680. if test "$GCC" = yes; then
  3681. CFLAGS="-O2"
  3682. else
  3683. CFLAGS=
  3684. fi
  3685. fi
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3687. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3688. if ${ac_cv_prog_cc_c89+:} false; then :
  3689. $as_echo_n "(cached) " >&6
  3690. else
  3691. ac_cv_prog_cc_c89=no
  3692. ac_save_CC=$CC
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. #include <stdarg.h>
  3696. #include <stdio.h>
  3697. #include <sys/types.h>
  3698. #include <sys/stat.h>
  3699. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3700. struct buf { int x; };
  3701. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3702. static char *e (p, i)
  3703. char **p;
  3704. int i;
  3705. {
  3706. return p[i];
  3707. }
  3708. static char *f (char * (*g) (char **, int), char **p, ...)
  3709. {
  3710. char *s;
  3711. va_list v;
  3712. va_start (v,p);
  3713. s = g (p, va_arg (v,int));
  3714. va_end (v);
  3715. return s;
  3716. }
  3717. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3718. function prototypes and stuff, but not '\xHH' hex character constants.
  3719. These don't provoke an error unfortunately, instead are silently treated
  3720. as 'x'. The following induces an error, until -std is added to get
  3721. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3722. array size at least. It's necessary to write '\x00'==0 to get something
  3723. that's true only with -std. */
  3724. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3725. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3726. inside strings and character constants. */
  3727. #define FOO(x) 'x'
  3728. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3729. int test (int i, double x);
  3730. struct s1 {int (*f) (int a);};
  3731. struct s2 {int (*f) (double a);};
  3732. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3733. int argc;
  3734. char **argv;
  3735. int
  3736. main ()
  3737. {
  3738. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3739. ;
  3740. return 0;
  3741. }
  3742. _ACEOF
  3743. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3744. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3745. do
  3746. CC="$ac_save_CC $ac_arg"
  3747. if ac_fn_c_try_compile "$LINENO"; then :
  3748. ac_cv_prog_cc_c89=$ac_arg
  3749. fi
  3750. rm -f core conftest.err conftest.$ac_objext
  3751. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3752. done
  3753. rm -f conftest.$ac_ext
  3754. CC=$ac_save_CC
  3755. fi
  3756. # AC_CACHE_VAL
  3757. case "x$ac_cv_prog_cc_c89" in
  3758. x)
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3760. $as_echo "none needed" >&6; } ;;
  3761. xno)
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3763. $as_echo "unsupported" >&6; } ;;
  3764. *)
  3765. CC="$CC $ac_cv_prog_cc_c89"
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3767. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3768. esac
  3769. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3770. fi
  3771. ac_ext=c
  3772. ac_cpp='$CPP $CPPFLAGS'
  3773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3776. depcc="$CC" am_compiler_list=
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3778. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3779. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3780. $as_echo_n "(cached) " >&6
  3781. else
  3782. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3783. # We make a subdir and do the tests there. Otherwise we can end up
  3784. # making bogus files that we don't know about and never remove. For
  3785. # instance it was reported that on HP-UX the gcc test will end up
  3786. # making a dummy file named `D' -- because `-MD' means `put the output
  3787. # in D'.
  3788. mkdir conftest.dir
  3789. # Copy depcomp to subdir because otherwise we won't find it if we're
  3790. # using a relative directory.
  3791. cp "$am_depcomp" conftest.dir
  3792. cd conftest.dir
  3793. # We will build objects and dependencies in a subdirectory because
  3794. # it helps to detect inapplicable dependency modes. For instance
  3795. # both Tru64's cc and ICC support -MD to output dependencies as a
  3796. # side effect of compilation, but ICC will put the dependencies in
  3797. # the current directory while Tru64 will put them in the object
  3798. # directory.
  3799. mkdir sub
  3800. am_cv_CC_dependencies_compiler_type=none
  3801. if test "$am_compiler_list" = ""; then
  3802. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3803. fi
  3804. am__universal=false
  3805. case " $depcc " in #(
  3806. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3807. esac
  3808. for depmode in $am_compiler_list; do
  3809. # Setup a source with many dependencies, because some compilers
  3810. # like to wrap large dependency lists on column 80 (with \), and
  3811. # we should not choose a depcomp mode which is confused by this.
  3812. #
  3813. # We need to recreate these files for each test, as the compiler may
  3814. # overwrite some of them when testing with obscure command lines.
  3815. # This happens at least with the AIX C compiler.
  3816. : > sub/conftest.c
  3817. for i in 1 2 3 4 5 6; do
  3818. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3819. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3820. # Solaris 8's {/usr,}/bin/sh.
  3821. touch sub/conftst$i.h
  3822. done
  3823. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3824. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3825. # mode. It turns out that the SunPro C++ compiler does not properly
  3826. # handle `-M -o', and we need to detect this. Also, some Intel
  3827. # versions had trouble with output in subdirs
  3828. am__obj=sub/conftest.${OBJEXT-o}
  3829. am__minus_obj="-o $am__obj"
  3830. case $depmode in
  3831. gcc)
  3832. # This depmode causes a compiler race in universal mode.
  3833. test "$am__universal" = false || continue
  3834. ;;
  3835. nosideeffect)
  3836. # after this tag, mechanisms are not by side-effect, so they'll
  3837. # only be used when explicitly requested
  3838. if test "x$enable_dependency_tracking" = xyes; then
  3839. continue
  3840. else
  3841. break
  3842. fi
  3843. ;;
  3844. msvisualcpp | msvcmsys)
  3845. # This compiler won't grok `-c -o', but also, the minuso test has
  3846. # not run yet. These depmodes are late enough in the game, and
  3847. # so weak that their functioning should not be impacted.
  3848. am__obj=conftest.${OBJEXT-o}
  3849. am__minus_obj=
  3850. ;;
  3851. none) break ;;
  3852. esac
  3853. if depmode=$depmode \
  3854. source=sub/conftest.c object=$am__obj \
  3855. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3856. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3857. >/dev/null 2>conftest.err &&
  3858. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3859. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3860. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3861. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3862. # icc doesn't choke on unknown options, it will just issue warnings
  3863. # or remarks (even with -Werror). So we grep stderr for any message
  3864. # that says an option was ignored or not supported.
  3865. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3866. # icc: Command line warning: ignoring option '-M'; no argument required
  3867. # The diagnosis changed in icc 8.0:
  3868. # icc: Command line remark: option '-MP' not supported
  3869. if (grep 'ignoring option' conftest.err ||
  3870. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3871. am_cv_CC_dependencies_compiler_type=$depmode
  3872. break
  3873. fi
  3874. fi
  3875. done
  3876. cd ..
  3877. rm -rf conftest.dir
  3878. else
  3879. am_cv_CC_dependencies_compiler_type=none
  3880. fi
  3881. fi
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3883. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3884. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3885. if
  3886. test "x$enable_dependency_tracking" != xno \
  3887. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3888. am__fastdepCC_TRUE=
  3889. am__fastdepCC_FALSE='#'
  3890. else
  3891. am__fastdepCC_TRUE='#'
  3892. am__fastdepCC_FALSE=
  3893. fi
  3894. case $ac_cv_prog_cc_stdc in #(
  3895. no) :
  3896. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3897. *) :
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3899. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3900. if ${ac_cv_prog_cc_c99+:} false; then :
  3901. $as_echo_n "(cached) " >&6
  3902. else
  3903. ac_cv_prog_cc_c99=no
  3904. ac_save_CC=$CC
  3905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3906. /* end confdefs.h. */
  3907. #include <stdarg.h>
  3908. #include <stdbool.h>
  3909. #include <stdlib.h>
  3910. #include <wchar.h>
  3911. #include <stdio.h>
  3912. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3913. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3914. #define showlist(...) puts (#__VA_ARGS__)
  3915. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3916. static void
  3917. test_varargs_macros (void)
  3918. {
  3919. int x = 1234;
  3920. int y = 5678;
  3921. debug ("Flag");
  3922. debug ("X = %d\n", x);
  3923. showlist (The first, second, and third items.);
  3924. report (x>y, "x is %d but y is %d", x, y);
  3925. }
  3926. // Check long long types.
  3927. #define BIG64 18446744073709551615ull
  3928. #define BIG32 4294967295ul
  3929. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3930. #if !BIG_OK
  3931. your preprocessor is broken;
  3932. #endif
  3933. #if BIG_OK
  3934. #else
  3935. your preprocessor is broken;
  3936. #endif
  3937. static long long int bignum = -9223372036854775807LL;
  3938. static unsigned long long int ubignum = BIG64;
  3939. struct incomplete_array
  3940. {
  3941. int datasize;
  3942. double data[];
  3943. };
  3944. struct named_init {
  3945. int number;
  3946. const wchar_t *name;
  3947. double average;
  3948. };
  3949. typedef const char *ccp;
  3950. static inline int
  3951. test_restrict (ccp restrict text)
  3952. {
  3953. // See if C++-style comments work.
  3954. // Iterate through items via the restricted pointer.
  3955. // Also check for declarations in for loops.
  3956. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3957. continue;
  3958. return 0;
  3959. }
  3960. // Check varargs and va_copy.
  3961. static void
  3962. test_varargs (const char *format, ...)
  3963. {
  3964. va_list args;
  3965. va_start (args, format);
  3966. va_list args_copy;
  3967. va_copy (args_copy, args);
  3968. const char *str;
  3969. int number;
  3970. float fnumber;
  3971. while (*format)
  3972. {
  3973. switch (*format++)
  3974. {
  3975. case 's': // string
  3976. str = va_arg (args_copy, const char *);
  3977. break;
  3978. case 'd': // int
  3979. number = va_arg (args_copy, int);
  3980. break;
  3981. case 'f': // float
  3982. fnumber = va_arg (args_copy, double);
  3983. break;
  3984. default:
  3985. break;
  3986. }
  3987. }
  3988. va_end (args_copy);
  3989. va_end (args);
  3990. }
  3991. int
  3992. main ()
  3993. {
  3994. // Check bool.
  3995. _Bool success = false;
  3996. // Check restrict.
  3997. if (test_restrict ("String literal") == 0)
  3998. success = true;
  3999. char *restrict newvar = "Another string";
  4000. // Check varargs.
  4001. test_varargs ("s, d' f .", "string", 65, 34.234);
  4002. test_varargs_macros ();
  4003. // Check flexible array members.
  4004. struct incomplete_array *ia =
  4005. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4006. ia->datasize = 10;
  4007. for (int i = 0; i < ia->datasize; ++i)
  4008. ia->data[i] = i * 1.234;
  4009. // Check named initializers.
  4010. struct named_init ni = {
  4011. .number = 34,
  4012. .name = L"Test wide string",
  4013. .average = 543.34343,
  4014. };
  4015. ni.number = 58;
  4016. int dynamic_array[ni.number];
  4017. dynamic_array[ni.number - 1] = 543;
  4018. // work around unused variable warnings
  4019. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4020. || dynamic_array[ni.number - 1] != 543);
  4021. ;
  4022. return 0;
  4023. }
  4024. _ACEOF
  4025. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  4026. do
  4027. CC="$ac_save_CC $ac_arg"
  4028. if ac_fn_c_try_compile "$LINENO"; then :
  4029. ac_cv_prog_cc_c99=$ac_arg
  4030. fi
  4031. rm -f core conftest.err conftest.$ac_objext
  4032. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4033. done
  4034. rm -f conftest.$ac_ext
  4035. CC=$ac_save_CC
  4036. fi
  4037. # AC_CACHE_VAL
  4038. case "x$ac_cv_prog_cc_c99" in
  4039. x)
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4041. $as_echo "none needed" >&6; } ;;
  4042. xno)
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4044. $as_echo "unsupported" >&6; } ;;
  4045. *)
  4046. CC="$CC $ac_cv_prog_cc_c99"
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4048. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4049. esac
  4050. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4051. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4052. else
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4054. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4055. if ${ac_cv_prog_cc_c89+:} false; then :
  4056. $as_echo_n "(cached) " >&6
  4057. else
  4058. ac_cv_prog_cc_c89=no
  4059. ac_save_CC=$CC
  4060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4061. /* end confdefs.h. */
  4062. #include <stdarg.h>
  4063. #include <stdio.h>
  4064. #include <sys/types.h>
  4065. #include <sys/stat.h>
  4066. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4067. struct buf { int x; };
  4068. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4069. static char *e (p, i)
  4070. char **p;
  4071. int i;
  4072. {
  4073. return p[i];
  4074. }
  4075. static char *f (char * (*g) (char **, int), char **p, ...)
  4076. {
  4077. char *s;
  4078. va_list v;
  4079. va_start (v,p);
  4080. s = g (p, va_arg (v,int));
  4081. va_end (v);
  4082. return s;
  4083. }
  4084. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4085. function prototypes and stuff, but not '\xHH' hex character constants.
  4086. These don't provoke an error unfortunately, instead are silently treated
  4087. as 'x'. The following induces an error, until -std is added to get
  4088. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4089. array size at least. It's necessary to write '\x00'==0 to get something
  4090. that's true only with -std. */
  4091. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4092. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4093. inside strings and character constants. */
  4094. #define FOO(x) 'x'
  4095. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4096. int test (int i, double x);
  4097. struct s1 {int (*f) (int a);};
  4098. struct s2 {int (*f) (double a);};
  4099. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4100. int argc;
  4101. char **argv;
  4102. int
  4103. main ()
  4104. {
  4105. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4106. ;
  4107. return 0;
  4108. }
  4109. _ACEOF
  4110. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4111. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4112. do
  4113. CC="$ac_save_CC $ac_arg"
  4114. if ac_fn_c_try_compile "$LINENO"; then :
  4115. ac_cv_prog_cc_c89=$ac_arg
  4116. fi
  4117. rm -f core conftest.err conftest.$ac_objext
  4118. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4119. done
  4120. rm -f conftest.$ac_ext
  4121. CC=$ac_save_CC
  4122. fi
  4123. # AC_CACHE_VAL
  4124. case "x$ac_cv_prog_cc_c89" in
  4125. x)
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4127. $as_echo "none needed" >&6; } ;;
  4128. xno)
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4130. $as_echo "unsupported" >&6; } ;;
  4131. *)
  4132. CC="$CC $ac_cv_prog_cc_c89"
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4134. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4135. esac
  4136. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4137. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4138. else
  4139. ac_cv_prog_cc_stdc=no
  4140. fi
  4141. fi
  4142. ;;
  4143. esac
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4145. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4146. if ${ac_cv_prog_cc_stdc+:} false; then :
  4147. $as_echo_n "(cached) " >&6
  4148. fi
  4149. case $ac_cv_prog_cc_stdc in #(
  4150. no) :
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4152. $as_echo "unsupported" >&6; } ;; #(
  4153. '') :
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4155. $as_echo "none needed" >&6; } ;; #(
  4156. *) :
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4158. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4159. esac
  4160. ac_ext=c
  4161. ac_cpp='$CPP $CPPFLAGS'
  4162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4166. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4167. # On Suns, sometimes $CPP names a directory.
  4168. if test -n "$CPP" && test -d "$CPP"; then
  4169. CPP=
  4170. fi
  4171. if test -z "$CPP"; then
  4172. if ${ac_cv_prog_CPP+:} false; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. # Double quotes because CPP needs to be expanded
  4176. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4177. do
  4178. ac_preproc_ok=false
  4179. for ac_c_preproc_warn_flag in '' yes
  4180. do
  4181. # Use a header file that comes with gcc, so configuring glibc
  4182. # with a fresh cross-compiler works.
  4183. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4184. # <limits.h> exists even on freestanding compilers.
  4185. # On the NeXT, cc -E runs the code through the compiler's parser,
  4186. # not just through cpp. "Syntax error" is here to catch this case.
  4187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4188. /* end confdefs.h. */
  4189. #ifdef __STDC__
  4190. # include <limits.h>
  4191. #else
  4192. # include <assert.h>
  4193. #endif
  4194. Syntax error
  4195. _ACEOF
  4196. if ac_fn_c_try_cpp "$LINENO"; then :
  4197. else
  4198. # Broken: fails on valid input.
  4199. continue
  4200. fi
  4201. rm -f conftest.err conftest.i conftest.$ac_ext
  4202. # OK, works on sane cases. Now check whether nonexistent headers
  4203. # can be detected and how.
  4204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4205. /* end confdefs.h. */
  4206. #include <ac_nonexistent.h>
  4207. _ACEOF
  4208. if ac_fn_c_try_cpp "$LINENO"; then :
  4209. # Broken: success on invalid input.
  4210. continue
  4211. else
  4212. # Passes both tests.
  4213. ac_preproc_ok=:
  4214. break
  4215. fi
  4216. rm -f conftest.err conftest.i conftest.$ac_ext
  4217. done
  4218. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4219. rm -f conftest.i conftest.err conftest.$ac_ext
  4220. if $ac_preproc_ok; then :
  4221. break
  4222. fi
  4223. done
  4224. ac_cv_prog_CPP=$CPP
  4225. fi
  4226. CPP=$ac_cv_prog_CPP
  4227. else
  4228. ac_cv_prog_CPP=$CPP
  4229. fi
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4231. $as_echo "$CPP" >&6; }
  4232. ac_preproc_ok=false
  4233. for ac_c_preproc_warn_flag in '' yes
  4234. do
  4235. # Use a header file that comes with gcc, so configuring glibc
  4236. # with a fresh cross-compiler works.
  4237. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4238. # <limits.h> exists even on freestanding compilers.
  4239. # On the NeXT, cc -E runs the code through the compiler's parser,
  4240. # not just through cpp. "Syntax error" is here to catch this case.
  4241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4242. /* end confdefs.h. */
  4243. #ifdef __STDC__
  4244. # include <limits.h>
  4245. #else
  4246. # include <assert.h>
  4247. #endif
  4248. Syntax error
  4249. _ACEOF
  4250. if ac_fn_c_try_cpp "$LINENO"; then :
  4251. else
  4252. # Broken: fails on valid input.
  4253. continue
  4254. fi
  4255. rm -f conftest.err conftest.i conftest.$ac_ext
  4256. # OK, works on sane cases. Now check whether nonexistent headers
  4257. # can be detected and how.
  4258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4259. /* end confdefs.h. */
  4260. #include <ac_nonexistent.h>
  4261. _ACEOF
  4262. if ac_fn_c_try_cpp "$LINENO"; then :
  4263. # Broken: success on invalid input.
  4264. continue
  4265. else
  4266. # Passes both tests.
  4267. ac_preproc_ok=:
  4268. break
  4269. fi
  4270. rm -f conftest.err conftest.i conftest.$ac_ext
  4271. done
  4272. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4273. rm -f conftest.i conftest.err conftest.$ac_ext
  4274. if $ac_preproc_ok; then :
  4275. else
  4276. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4277. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4278. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4279. See \`config.log' for more details" "$LINENO" 5; }
  4280. fi
  4281. ac_ext=c
  4282. ac_cpp='$CPP $CPPFLAGS'
  4283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4287. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4288. if ${ac_cv_path_GREP+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. if test -z "$GREP"; then
  4292. ac_path_GREP_found=false
  4293. # Loop through the user's path and test for each of PROGNAME-LIST
  4294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4295. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4296. do
  4297. IFS=$as_save_IFS
  4298. test -z "$as_dir" && as_dir=.
  4299. for ac_prog in grep ggrep; do
  4300. for ac_exec_ext in '' $ac_executable_extensions; do
  4301. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4302. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4303. # Check for GNU ac_path_GREP and select it if it is found.
  4304. # Check for GNU $ac_path_GREP
  4305. case `"$ac_path_GREP" --version 2>&1` in
  4306. *GNU*)
  4307. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4308. *)
  4309. ac_count=0
  4310. $as_echo_n 0123456789 >"conftest.in"
  4311. while :
  4312. do
  4313. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4314. mv "conftest.tmp" "conftest.in"
  4315. cp "conftest.in" "conftest.nl"
  4316. $as_echo 'GREP' >> "conftest.nl"
  4317. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4318. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4319. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4320. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4321. # Best one so far, save it but keep looking for a better one
  4322. ac_cv_path_GREP="$ac_path_GREP"
  4323. ac_path_GREP_max=$ac_count
  4324. fi
  4325. # 10*(2^10) chars as input seems more than enough
  4326. test $ac_count -gt 10 && break
  4327. done
  4328. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4329. esac
  4330. $ac_path_GREP_found && break 3
  4331. done
  4332. done
  4333. done
  4334. IFS=$as_save_IFS
  4335. if test -z "$ac_cv_path_GREP"; then
  4336. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4337. fi
  4338. else
  4339. ac_cv_path_GREP=$GREP
  4340. fi
  4341. fi
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4343. $as_echo "$ac_cv_path_GREP" >&6; }
  4344. GREP="$ac_cv_path_GREP"
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4346. $as_echo_n "checking for egrep... " >&6; }
  4347. if ${ac_cv_path_EGREP+:} false; then :
  4348. $as_echo_n "(cached) " >&6
  4349. else
  4350. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4351. then ac_cv_path_EGREP="$GREP -E"
  4352. else
  4353. if test -z "$EGREP"; then
  4354. ac_path_EGREP_found=false
  4355. # Loop through the user's path and test for each of PROGNAME-LIST
  4356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4357. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4358. do
  4359. IFS=$as_save_IFS
  4360. test -z "$as_dir" && as_dir=.
  4361. for ac_prog in egrep; do
  4362. for ac_exec_ext in '' $ac_executable_extensions; do
  4363. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4364. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4365. # Check for GNU ac_path_EGREP and select it if it is found.
  4366. # Check for GNU $ac_path_EGREP
  4367. case `"$ac_path_EGREP" --version 2>&1` in
  4368. *GNU*)
  4369. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4370. *)
  4371. ac_count=0
  4372. $as_echo_n 0123456789 >"conftest.in"
  4373. while :
  4374. do
  4375. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4376. mv "conftest.tmp" "conftest.in"
  4377. cp "conftest.in" "conftest.nl"
  4378. $as_echo 'EGREP' >> "conftest.nl"
  4379. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4380. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4381. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4382. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4383. # Best one so far, save it but keep looking for a better one
  4384. ac_cv_path_EGREP="$ac_path_EGREP"
  4385. ac_path_EGREP_max=$ac_count
  4386. fi
  4387. # 10*(2^10) chars as input seems more than enough
  4388. test $ac_count -gt 10 && break
  4389. done
  4390. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4391. esac
  4392. $ac_path_EGREP_found && break 3
  4393. done
  4394. done
  4395. done
  4396. IFS=$as_save_IFS
  4397. if test -z "$ac_cv_path_EGREP"; then
  4398. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4399. fi
  4400. else
  4401. ac_cv_path_EGREP=$EGREP
  4402. fi
  4403. fi
  4404. fi
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4406. $as_echo "$ac_cv_path_EGREP" >&6; }
  4407. EGREP="$ac_cv_path_EGREP"
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4409. $as_echo_n "checking for ANSI C header files... " >&6; }
  4410. if ${ac_cv_header_stdc+:} false; then :
  4411. $as_echo_n "(cached) " >&6
  4412. else
  4413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4414. /* end confdefs.h. */
  4415. #include <stdlib.h>
  4416. #include <stdarg.h>
  4417. #include <string.h>
  4418. #include <float.h>
  4419. int
  4420. main ()
  4421. {
  4422. ;
  4423. return 0;
  4424. }
  4425. _ACEOF
  4426. if ac_fn_c_try_compile "$LINENO"; then :
  4427. ac_cv_header_stdc=yes
  4428. else
  4429. ac_cv_header_stdc=no
  4430. fi
  4431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4432. if test $ac_cv_header_stdc = yes; then
  4433. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4435. /* end confdefs.h. */
  4436. #include <string.h>
  4437. _ACEOF
  4438. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4439. $EGREP "memchr" >/dev/null 2>&1; then :
  4440. else
  4441. ac_cv_header_stdc=no
  4442. fi
  4443. rm -f conftest*
  4444. fi
  4445. if test $ac_cv_header_stdc = yes; then
  4446. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4448. /* end confdefs.h. */
  4449. #include <stdlib.h>
  4450. _ACEOF
  4451. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4452. $EGREP "free" >/dev/null 2>&1; then :
  4453. else
  4454. ac_cv_header_stdc=no
  4455. fi
  4456. rm -f conftest*
  4457. fi
  4458. if test $ac_cv_header_stdc = yes; then
  4459. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4460. if test "$cross_compiling" = yes; then :
  4461. :
  4462. else
  4463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4464. /* end confdefs.h. */
  4465. #include <ctype.h>
  4466. #include <stdlib.h>
  4467. #if ((' ' & 0x0FF) == 0x020)
  4468. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4469. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4470. #else
  4471. # define ISLOWER(c) \
  4472. (('a' <= (c) && (c) <= 'i') \
  4473. || ('j' <= (c) && (c) <= 'r') \
  4474. || ('s' <= (c) && (c) <= 'z'))
  4475. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4476. #endif
  4477. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4478. int
  4479. main ()
  4480. {
  4481. int i;
  4482. for (i = 0; i < 256; i++)
  4483. if (XOR (islower (i), ISLOWER (i))
  4484. || toupper (i) != TOUPPER (i))
  4485. return 2;
  4486. return 0;
  4487. }
  4488. _ACEOF
  4489. if ac_fn_c_try_run "$LINENO"; then :
  4490. else
  4491. ac_cv_header_stdc=no
  4492. fi
  4493. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4494. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4495. fi
  4496. fi
  4497. fi
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4499. $as_echo "$ac_cv_header_stdc" >&6; }
  4500. if test $ac_cv_header_stdc = yes; then
  4501. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4502. fi
  4503. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4504. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4505. inttypes.h stdint.h unistd.h
  4506. do :
  4507. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4508. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4509. "
  4510. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4511. cat >>confdefs.h <<_ACEOF
  4512. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4513. _ACEOF
  4514. fi
  4515. done
  4516. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4517. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4518. MINIX=yes
  4519. else
  4520. MINIX=
  4521. fi
  4522. if test "$MINIX" = yes; then
  4523. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4524. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4525. $as_echo "#define _MINIX 1" >>confdefs.h
  4526. fi
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4528. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4529. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4530. $as_echo_n "(cached) " >&6
  4531. else
  4532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4533. /* end confdefs.h. */
  4534. # define __EXTENSIONS__ 1
  4535. $ac_includes_default
  4536. int
  4537. main ()
  4538. {
  4539. ;
  4540. return 0;
  4541. }
  4542. _ACEOF
  4543. if ac_fn_c_try_compile "$LINENO"; then :
  4544. ac_cv_safe_to_define___extensions__=yes
  4545. else
  4546. ac_cv_safe_to_define___extensions__=no
  4547. fi
  4548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4551. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4552. test $ac_cv_safe_to_define___extensions__ = yes &&
  4553. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4554. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4555. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4556. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4557. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4558. if test "x$CC" != xcc; then
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4560. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4561. else
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4563. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4564. fi
  4565. set dummy $CC; ac_cc=`$as_echo "$2" |
  4566. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4567. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4568. $as_echo_n "(cached) " >&6
  4569. else
  4570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4571. /* end confdefs.h. */
  4572. int
  4573. main ()
  4574. {
  4575. ;
  4576. return 0;
  4577. }
  4578. _ACEOF
  4579. # Make sure it works both with $CC and with simple cc.
  4580. # We do the test twice because some compilers refuse to overwrite an
  4581. # existing .o file with -o, though they will create one.
  4582. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4583. rm -f conftest2.*
  4584. if { { case "(($ac_try" in
  4585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4586. *) ac_try_echo=$ac_try;;
  4587. esac
  4588. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4589. $as_echo "$ac_try_echo"; } >&5
  4590. (eval "$ac_try") 2>&5
  4591. ac_status=$?
  4592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4593. test $ac_status = 0; } &&
  4594. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4596. *) ac_try_echo=$ac_try;;
  4597. esac
  4598. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4599. $as_echo "$ac_try_echo"; } >&5
  4600. (eval "$ac_try") 2>&5
  4601. ac_status=$?
  4602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4603. test $ac_status = 0; };
  4604. then
  4605. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4606. if test "x$CC" != xcc; then
  4607. # Test first that cc exists at all.
  4608. if { ac_try='cc -c conftest.$ac_ext >&5'
  4609. { { case "(($ac_try" in
  4610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4611. *) ac_try_echo=$ac_try;;
  4612. esac
  4613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4614. $as_echo "$ac_try_echo"; } >&5
  4615. (eval "$ac_try") 2>&5
  4616. ac_status=$?
  4617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4618. test $ac_status = 0; }; }; then
  4619. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4620. rm -f conftest2.*
  4621. if { { case "(($ac_try" in
  4622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4623. *) ac_try_echo=$ac_try;;
  4624. esac
  4625. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4626. $as_echo "$ac_try_echo"; } >&5
  4627. (eval "$ac_try") 2>&5
  4628. ac_status=$?
  4629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4630. test $ac_status = 0; } &&
  4631. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4633. *) ac_try_echo=$ac_try;;
  4634. esac
  4635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4636. $as_echo "$ac_try_echo"; } >&5
  4637. (eval "$ac_try") 2>&5
  4638. ac_status=$?
  4639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4640. test $ac_status = 0; };
  4641. then
  4642. # cc works too.
  4643. :
  4644. else
  4645. # cc exists but doesn't like -o.
  4646. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4647. fi
  4648. fi
  4649. fi
  4650. else
  4651. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4652. fi
  4653. rm -f core conftest*
  4654. fi
  4655. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4657. $as_echo "yes" >&6; }
  4658. else
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4660. $as_echo "no" >&6; }
  4661. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4662. fi
  4663. # FIXME: we rely on the cache variable name because
  4664. # there is no other way.
  4665. set dummy $CC
  4666. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4667. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4668. if test "$am_t" != yes; then
  4669. # Losing compiler, so override with the script.
  4670. # FIXME: It is wrong to rewrite CC.
  4671. # But if we don't then we get into trouble of one sort or another.
  4672. # A longer-term fix would be to have automake use am__CC in this case,
  4673. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4674. CC="$am_aux_dir/compile $CC"
  4675. fi
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4677. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4678. if ${ac_cv_c_bigendian+:} false; then :
  4679. $as_echo_n "(cached) " >&6
  4680. else
  4681. ac_cv_c_bigendian=unknown
  4682. # See if we're dealing with a universal compiler.
  4683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4684. /* end confdefs.h. */
  4685. #ifndef __APPLE_CC__
  4686. not a universal capable compiler
  4687. #endif
  4688. typedef int dummy;
  4689. _ACEOF
  4690. if ac_fn_c_try_compile "$LINENO"; then :
  4691. # Check for potential -arch flags. It is not universal unless
  4692. # there are at least two -arch flags with different values.
  4693. ac_arch=
  4694. ac_prev=
  4695. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4696. if test -n "$ac_prev"; then
  4697. case $ac_word in
  4698. i?86 | x86_64 | ppc | ppc64)
  4699. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4700. ac_arch=$ac_word
  4701. else
  4702. ac_cv_c_bigendian=universal
  4703. break
  4704. fi
  4705. ;;
  4706. esac
  4707. ac_prev=
  4708. elif test "x$ac_word" = "x-arch"; then
  4709. ac_prev=arch
  4710. fi
  4711. done
  4712. fi
  4713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4714. if test $ac_cv_c_bigendian = unknown; then
  4715. # See if sys/param.h defines the BYTE_ORDER macro.
  4716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4717. /* end confdefs.h. */
  4718. #include <sys/types.h>
  4719. #include <sys/param.h>
  4720. int
  4721. main ()
  4722. {
  4723. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4724. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4725. && LITTLE_ENDIAN)
  4726. bogus endian macros
  4727. #endif
  4728. ;
  4729. return 0;
  4730. }
  4731. _ACEOF
  4732. if ac_fn_c_try_compile "$LINENO"; then :
  4733. # It does; now see whether it defined to BIG_ENDIAN or not.
  4734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4735. /* end confdefs.h. */
  4736. #include <sys/types.h>
  4737. #include <sys/param.h>
  4738. int
  4739. main ()
  4740. {
  4741. #if BYTE_ORDER != BIG_ENDIAN
  4742. not big endian
  4743. #endif
  4744. ;
  4745. return 0;
  4746. }
  4747. _ACEOF
  4748. if ac_fn_c_try_compile "$LINENO"; then :
  4749. ac_cv_c_bigendian=yes
  4750. else
  4751. ac_cv_c_bigendian=no
  4752. fi
  4753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4754. fi
  4755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4756. fi
  4757. if test $ac_cv_c_bigendian = unknown; then
  4758. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4760. /* end confdefs.h. */
  4761. #include <limits.h>
  4762. int
  4763. main ()
  4764. {
  4765. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4766. bogus endian macros
  4767. #endif
  4768. ;
  4769. return 0;
  4770. }
  4771. _ACEOF
  4772. if ac_fn_c_try_compile "$LINENO"; then :
  4773. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4775. /* end confdefs.h. */
  4776. #include <limits.h>
  4777. int
  4778. main ()
  4779. {
  4780. #ifndef _BIG_ENDIAN
  4781. not big endian
  4782. #endif
  4783. ;
  4784. return 0;
  4785. }
  4786. _ACEOF
  4787. if ac_fn_c_try_compile "$LINENO"; then :
  4788. ac_cv_c_bigendian=yes
  4789. else
  4790. ac_cv_c_bigendian=no
  4791. fi
  4792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4793. fi
  4794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4795. fi
  4796. if test $ac_cv_c_bigendian = unknown; then
  4797. # Compile a test program.
  4798. if test "$cross_compiling" = yes; then :
  4799. # Try to guess by grepping values from an object file.
  4800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4801. /* end confdefs.h. */
  4802. short int ascii_mm[] =
  4803. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4804. short int ascii_ii[] =
  4805. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4806. int use_ascii (int i) {
  4807. return ascii_mm[i] + ascii_ii[i];
  4808. }
  4809. short int ebcdic_ii[] =
  4810. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4811. short int ebcdic_mm[] =
  4812. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4813. int use_ebcdic (int i) {
  4814. return ebcdic_mm[i] + ebcdic_ii[i];
  4815. }
  4816. extern int foo;
  4817. int
  4818. main ()
  4819. {
  4820. return use_ascii (foo) == use_ebcdic (foo);
  4821. ;
  4822. return 0;
  4823. }
  4824. _ACEOF
  4825. if ac_fn_c_try_compile "$LINENO"; then :
  4826. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4827. ac_cv_c_bigendian=yes
  4828. fi
  4829. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4830. if test "$ac_cv_c_bigendian" = unknown; then
  4831. ac_cv_c_bigendian=no
  4832. else
  4833. # finding both strings is unlikely to happen, but who knows?
  4834. ac_cv_c_bigendian=unknown
  4835. fi
  4836. fi
  4837. fi
  4838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4839. else
  4840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4841. /* end confdefs.h. */
  4842. $ac_includes_default
  4843. int
  4844. main ()
  4845. {
  4846. /* Are we little or big endian? From Harbison&Steele. */
  4847. union
  4848. {
  4849. long int l;
  4850. char c[sizeof (long int)];
  4851. } u;
  4852. u.l = 1;
  4853. return u.c[sizeof (long int) - 1] == 1;
  4854. ;
  4855. return 0;
  4856. }
  4857. _ACEOF
  4858. if ac_fn_c_try_run "$LINENO"; then :
  4859. ac_cv_c_bigendian=no
  4860. else
  4861. ac_cv_c_bigendian=yes
  4862. fi
  4863. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4864. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4865. fi
  4866. fi
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4869. $as_echo "$ac_cv_c_bigendian" >&6; }
  4870. case $ac_cv_c_bigendian in #(
  4871. yes)
  4872. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4873. ;; #(
  4874. no)
  4875. ;; #(
  4876. universal)
  4877. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4878. ;; #(
  4879. *)
  4880. as_fn_error $? "unknown endianness
  4881. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4882. esac
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4884. $as_echo_n "checking whether ln -s works... " >&6; }
  4885. LN_S=$as_ln_s
  4886. if test "$LN_S" = "ln -s"; then
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4888. $as_echo "yes" >&6; }
  4889. else
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4891. $as_echo "no, using $LN_S" >&6; }
  4892. fi
  4893. case `pwd` in
  4894. *\ * | *\ *)
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4896. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4897. esac
  4898. macro_version='2.2.6b'
  4899. macro_revision='1.3017'
  4900. ltmain="$ac_aux_dir/ltmain.sh"
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4902. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4903. if ${ac_cv_path_SED+:} false; then :
  4904. $as_echo_n "(cached) " >&6
  4905. else
  4906. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4907. for ac_i in 1 2 3 4 5 6 7; do
  4908. ac_script="$ac_script$as_nl$ac_script"
  4909. done
  4910. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4911. { ac_script=; unset ac_script;}
  4912. if test -z "$SED"; then
  4913. ac_path_SED_found=false
  4914. # Loop through the user's path and test for each of PROGNAME-LIST
  4915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4916. for as_dir in $PATH
  4917. do
  4918. IFS=$as_save_IFS
  4919. test -z "$as_dir" && as_dir=.
  4920. for ac_prog in sed gsed; do
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4923. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4924. # Check for GNU ac_path_SED and select it if it is found.
  4925. # Check for GNU $ac_path_SED
  4926. case `"$ac_path_SED" --version 2>&1` in
  4927. *GNU*)
  4928. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4929. *)
  4930. ac_count=0
  4931. $as_echo_n 0123456789 >"conftest.in"
  4932. while :
  4933. do
  4934. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4935. mv "conftest.tmp" "conftest.in"
  4936. cp "conftest.in" "conftest.nl"
  4937. $as_echo '' >> "conftest.nl"
  4938. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4939. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4940. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4941. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4942. # Best one so far, save it but keep looking for a better one
  4943. ac_cv_path_SED="$ac_path_SED"
  4944. ac_path_SED_max=$ac_count
  4945. fi
  4946. # 10*(2^10) chars as input seems more than enough
  4947. test $ac_count -gt 10 && break
  4948. done
  4949. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4950. esac
  4951. $ac_path_SED_found && break 3
  4952. done
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. if test -z "$ac_cv_path_SED"; then
  4957. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4958. fi
  4959. else
  4960. ac_cv_path_SED=$SED
  4961. fi
  4962. fi
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4964. $as_echo "$ac_cv_path_SED" >&6; }
  4965. SED="$ac_cv_path_SED"
  4966. rm -f conftest.sed
  4967. test -z "$SED" && SED=sed
  4968. Xsed="$SED -e 1s/^X//"
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4970. $as_echo_n "checking for fgrep... " >&6; }
  4971. if ${ac_cv_path_FGREP+:} false; then :
  4972. $as_echo_n "(cached) " >&6
  4973. else
  4974. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4975. then ac_cv_path_FGREP="$GREP -F"
  4976. else
  4977. if test -z "$FGREP"; then
  4978. ac_path_FGREP_found=false
  4979. # Loop through the user's path and test for each of PROGNAME-LIST
  4980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4981. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4982. do
  4983. IFS=$as_save_IFS
  4984. test -z "$as_dir" && as_dir=.
  4985. for ac_prog in fgrep; do
  4986. for ac_exec_ext in '' $ac_executable_extensions; do
  4987. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4988. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4989. # Check for GNU ac_path_FGREP and select it if it is found.
  4990. # Check for GNU $ac_path_FGREP
  4991. case `"$ac_path_FGREP" --version 2>&1` in
  4992. *GNU*)
  4993. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4994. *)
  4995. ac_count=0
  4996. $as_echo_n 0123456789 >"conftest.in"
  4997. while :
  4998. do
  4999. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5000. mv "conftest.tmp" "conftest.in"
  5001. cp "conftest.in" "conftest.nl"
  5002. $as_echo 'FGREP' >> "conftest.nl"
  5003. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5004. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5005. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5006. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5007. # Best one so far, save it but keep looking for a better one
  5008. ac_cv_path_FGREP="$ac_path_FGREP"
  5009. ac_path_FGREP_max=$ac_count
  5010. fi
  5011. # 10*(2^10) chars as input seems more than enough
  5012. test $ac_count -gt 10 && break
  5013. done
  5014. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5015. esac
  5016. $ac_path_FGREP_found && break 3
  5017. done
  5018. done
  5019. done
  5020. IFS=$as_save_IFS
  5021. if test -z "$ac_cv_path_FGREP"; then
  5022. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5023. fi
  5024. else
  5025. ac_cv_path_FGREP=$FGREP
  5026. fi
  5027. fi
  5028. fi
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5030. $as_echo "$ac_cv_path_FGREP" >&6; }
  5031. FGREP="$ac_cv_path_FGREP"
  5032. test -z "$GREP" && GREP=grep
  5033. # Check whether --with-gnu-ld was given.
  5034. if test "${with_gnu_ld+set}" = set; then :
  5035. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5036. else
  5037. with_gnu_ld=no
  5038. fi
  5039. ac_prog=ld
  5040. if test "$GCC" = yes; then
  5041. # Check if gcc -print-prog-name=ld gives a path.
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5043. $as_echo_n "checking for ld used by $CC... " >&6; }
  5044. case $host in
  5045. *-*-mingw*)
  5046. # gcc leaves a trailing carriage return which upsets mingw
  5047. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5048. *)
  5049. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5050. esac
  5051. case $ac_prog in
  5052. # Accept absolute paths.
  5053. [\\/]* | ?:[\\/]*)
  5054. re_direlt='/[^/][^/]*/\.\./'
  5055. # Canonicalize the pathname of ld
  5056. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5057. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5058. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5059. done
  5060. test -z "$LD" && LD="$ac_prog"
  5061. ;;
  5062. "")
  5063. # If it fails, then pretend we aren't using GCC.
  5064. ac_prog=ld
  5065. ;;
  5066. *)
  5067. # If it is relative, then search for the first ld in PATH.
  5068. with_gnu_ld=unknown
  5069. ;;
  5070. esac
  5071. elif test "$with_gnu_ld" = yes; then
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5073. $as_echo_n "checking for GNU ld... " >&6; }
  5074. else
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5076. $as_echo_n "checking for non-GNU ld... " >&6; }
  5077. fi
  5078. if ${lt_cv_path_LD+:} false; then :
  5079. $as_echo_n "(cached) " >&6
  5080. else
  5081. if test -z "$LD"; then
  5082. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5083. for ac_dir in $PATH; do
  5084. IFS="$lt_save_ifs"
  5085. test -z "$ac_dir" && ac_dir=.
  5086. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5087. lt_cv_path_LD="$ac_dir/$ac_prog"
  5088. # Check to see if the program is GNU ld. I'd rather use --version,
  5089. # but apparently some variants of GNU ld only accept -v.
  5090. # Break only if it was the GNU/non-GNU ld that we prefer.
  5091. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5092. *GNU* | *'with BFD'*)
  5093. test "$with_gnu_ld" != no && break
  5094. ;;
  5095. *)
  5096. test "$with_gnu_ld" != yes && break
  5097. ;;
  5098. esac
  5099. fi
  5100. done
  5101. IFS="$lt_save_ifs"
  5102. else
  5103. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5104. fi
  5105. fi
  5106. LD="$lt_cv_path_LD"
  5107. if test -n "$LD"; then
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5109. $as_echo "$LD" >&6; }
  5110. else
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5112. $as_echo "no" >&6; }
  5113. fi
  5114. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5116. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5117. if ${lt_cv_prog_gnu_ld+:} false; then :
  5118. $as_echo_n "(cached) " >&6
  5119. else
  5120. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5121. case `$LD -v 2>&1 </dev/null` in
  5122. *GNU* | *'with BFD'*)
  5123. lt_cv_prog_gnu_ld=yes
  5124. ;;
  5125. *)
  5126. lt_cv_prog_gnu_ld=no
  5127. ;;
  5128. esac
  5129. fi
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5131. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5132. with_gnu_ld=$lt_cv_prog_gnu_ld
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5134. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5135. if ${lt_cv_path_NM+:} false; then :
  5136. $as_echo_n "(cached) " >&6
  5137. else
  5138. if test -n "$NM"; then
  5139. # Let the user override the test.
  5140. lt_cv_path_NM="$NM"
  5141. else
  5142. lt_nm_to_check="${ac_tool_prefix}nm"
  5143. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5144. lt_nm_to_check="$lt_nm_to_check nm"
  5145. fi
  5146. for lt_tmp_nm in $lt_nm_to_check; do
  5147. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5148. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5149. IFS="$lt_save_ifs"
  5150. test -z "$ac_dir" && ac_dir=.
  5151. tmp_nm="$ac_dir/$lt_tmp_nm"
  5152. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5153. # Check to see if the nm accepts a BSD-compat flag.
  5154. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5155. # nm: unknown option "B" ignored
  5156. # Tru64's nm complains that /dev/null is an invalid object file
  5157. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5158. */dev/null* | *'Invalid file or object type'*)
  5159. lt_cv_path_NM="$tmp_nm -B"
  5160. break
  5161. ;;
  5162. *)
  5163. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5164. */dev/null*)
  5165. lt_cv_path_NM="$tmp_nm -p"
  5166. break
  5167. ;;
  5168. *)
  5169. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5170. continue # so that we can try to find one that supports BSD flags
  5171. ;;
  5172. esac
  5173. ;;
  5174. esac
  5175. fi
  5176. done
  5177. IFS="$lt_save_ifs"
  5178. done
  5179. : ${lt_cv_path_NM=no}
  5180. fi
  5181. fi
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5183. $as_echo "$lt_cv_path_NM" >&6; }
  5184. if test "$lt_cv_path_NM" != "no"; then
  5185. NM="$lt_cv_path_NM"
  5186. else
  5187. # Didn't find any BSD compatible name lister, look for dumpbin.
  5188. if test -n "$ac_tool_prefix"; then
  5189. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5190. do
  5191. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5192. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5194. $as_echo_n "checking for $ac_word... " >&6; }
  5195. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5196. $as_echo_n "(cached) " >&6
  5197. else
  5198. if test -n "$DUMPBIN"; then
  5199. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5200. else
  5201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5202. for as_dir in $PATH
  5203. do
  5204. IFS=$as_save_IFS
  5205. test -z "$as_dir" && as_dir=.
  5206. for ac_exec_ext in '' $ac_executable_extensions; do
  5207. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5208. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5210. break 2
  5211. fi
  5212. done
  5213. done
  5214. IFS=$as_save_IFS
  5215. fi
  5216. fi
  5217. DUMPBIN=$ac_cv_prog_DUMPBIN
  5218. if test -n "$DUMPBIN"; then
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5220. $as_echo "$DUMPBIN" >&6; }
  5221. else
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5223. $as_echo "no" >&6; }
  5224. fi
  5225. test -n "$DUMPBIN" && break
  5226. done
  5227. fi
  5228. if test -z "$DUMPBIN"; then
  5229. ac_ct_DUMPBIN=$DUMPBIN
  5230. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5231. do
  5232. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5233. set dummy $ac_prog; ac_word=$2
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5235. $as_echo_n "checking for $ac_word... " >&6; }
  5236. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5237. $as_echo_n "(cached) " >&6
  5238. else
  5239. if test -n "$ac_ct_DUMPBIN"; then
  5240. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5241. else
  5242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5243. for as_dir in $PATH
  5244. do
  5245. IFS=$as_save_IFS
  5246. test -z "$as_dir" && as_dir=.
  5247. for ac_exec_ext in '' $ac_executable_extensions; do
  5248. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5249. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5251. break 2
  5252. fi
  5253. done
  5254. done
  5255. IFS=$as_save_IFS
  5256. fi
  5257. fi
  5258. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5259. if test -n "$ac_ct_DUMPBIN"; then
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5261. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5262. else
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5264. $as_echo "no" >&6; }
  5265. fi
  5266. test -n "$ac_ct_DUMPBIN" && break
  5267. done
  5268. if test "x$ac_ct_DUMPBIN" = x; then
  5269. DUMPBIN=":"
  5270. else
  5271. case $cross_compiling:$ac_tool_warned in
  5272. yes:)
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5275. ac_tool_warned=yes ;;
  5276. esac
  5277. DUMPBIN=$ac_ct_DUMPBIN
  5278. fi
  5279. fi
  5280. if test "$DUMPBIN" != ":"; then
  5281. NM="$DUMPBIN"
  5282. fi
  5283. fi
  5284. test -z "$NM" && NM=nm
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5286. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5287. if ${lt_cv_nm_interface+:} false; then :
  5288. $as_echo_n "(cached) " >&6
  5289. else
  5290. lt_cv_nm_interface="BSD nm"
  5291. echo "int some_variable = 0;" > conftest.$ac_ext
  5292. (eval echo "\"\$as_me:5899: $ac_compile\"" >&5)
  5293. (eval "$ac_compile" 2>conftest.err)
  5294. cat conftest.err >&5
  5295. (eval echo "\"\$as_me:5902: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5296. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5297. cat conftest.err >&5
  5298. (eval echo "\"\$as_me:5905: output\"" >&5)
  5299. cat conftest.out >&5
  5300. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5301. lt_cv_nm_interface="MS dumpbin"
  5302. fi
  5303. rm -f conftest*
  5304. fi
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5306. $as_echo "$lt_cv_nm_interface" >&6; }
  5307. # find the maximum length of command line arguments
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5309. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5310. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5311. $as_echo_n "(cached) " >&6
  5312. else
  5313. i=0
  5314. teststring="ABCD"
  5315. case $build_os in
  5316. msdosdjgpp*)
  5317. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5318. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5319. # during glob expansion). Even if it were fixed, the result of this
  5320. # check would be larger than it should be.
  5321. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5322. ;;
  5323. gnu*)
  5324. # Under GNU Hurd, this test is not required because there is
  5325. # no limit to the length of command line arguments.
  5326. # Libtool will interpret -1 as no limit whatsoever
  5327. lt_cv_sys_max_cmd_len=-1;
  5328. ;;
  5329. cygwin* | mingw* | cegcc*)
  5330. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5331. # about 5 minutes as the teststring grows exponentially.
  5332. # Worse, since 9x/ME are not pre-emptively multitasking,
  5333. # you end up with a "frozen" computer, even though with patience
  5334. # the test eventually succeeds (with a max line length of 256k).
  5335. # Instead, let's just punt: use the minimum linelength reported by
  5336. # all of the supported platforms: 8192 (on NT/2K/XP).
  5337. lt_cv_sys_max_cmd_len=8192;
  5338. ;;
  5339. amigaos*)
  5340. # On AmigaOS with pdksh, this test takes hours, literally.
  5341. # So we just punt and use a minimum line length of 8192.
  5342. lt_cv_sys_max_cmd_len=8192;
  5343. ;;
  5344. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5345. # This has been around since 386BSD, at least. Likely further.
  5346. if test -x /sbin/sysctl; then
  5347. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5348. elif test -x /usr/sbin/sysctl; then
  5349. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5350. else
  5351. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5352. fi
  5353. # And add a safety zone
  5354. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5355. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5356. ;;
  5357. interix*)
  5358. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5359. lt_cv_sys_max_cmd_len=196608
  5360. ;;
  5361. osf*)
  5362. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5363. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5364. # nice to cause kernel panics so lets avoid the loop below.
  5365. # First set a reasonable default.
  5366. lt_cv_sys_max_cmd_len=16384
  5367. #
  5368. if test -x /sbin/sysconfig; then
  5369. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5370. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5371. esac
  5372. fi
  5373. ;;
  5374. sco3.2v5*)
  5375. lt_cv_sys_max_cmd_len=102400
  5376. ;;
  5377. sysv5* | sco5v6* | sysv4.2uw2*)
  5378. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5379. if test -n "$kargmax"; then
  5380. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5381. else
  5382. lt_cv_sys_max_cmd_len=32768
  5383. fi
  5384. ;;
  5385. *)
  5386. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5387. if test -n "$lt_cv_sys_max_cmd_len"; then
  5388. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5389. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5390. else
  5391. # Make teststring a little bigger before we do anything with it.
  5392. # a 1K string should be a reasonable start.
  5393. for i in 1 2 3 4 5 6 7 8 ; do
  5394. teststring=$teststring$teststring
  5395. done
  5396. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5397. # If test is not a shell built-in, we'll probably end up computing a
  5398. # maximum length that is only half of the actual maximum length, but
  5399. # we can't tell.
  5400. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5401. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5402. test $i != 17 # 1/2 MB should be enough
  5403. do
  5404. i=`expr $i + 1`
  5405. teststring=$teststring$teststring
  5406. done
  5407. # Only check the string length outside the loop.
  5408. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5409. teststring=
  5410. # Add a significant safety factor because C++ compilers can tack on
  5411. # massive amounts of additional arguments before passing them to the
  5412. # linker. It appears as though 1/2 is a usable value.
  5413. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5414. fi
  5415. ;;
  5416. esac
  5417. fi
  5418. if test -n $lt_cv_sys_max_cmd_len ; then
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5420. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5421. else
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5423. $as_echo "none" >&6; }
  5424. fi
  5425. max_cmd_len=$lt_cv_sys_max_cmd_len
  5426. : ${CP="cp -f"}
  5427. : ${MV="mv -f"}
  5428. : ${RM="rm -f"}
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5430. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5431. # Try some XSI features
  5432. xsi_shell=no
  5433. ( _lt_dummy="a/b/c"
  5434. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5435. = c,a/b,, \
  5436. && eval 'test $(( 1 + 1 )) -eq 2 \
  5437. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5438. && xsi_shell=yes
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5440. $as_echo "$xsi_shell" >&6; }
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5442. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5443. lt_shell_append=no
  5444. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5445. >/dev/null 2>&1 \
  5446. && lt_shell_append=yes
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5448. $as_echo "$lt_shell_append" >&6; }
  5449. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5450. lt_unset=unset
  5451. else
  5452. lt_unset=false
  5453. fi
  5454. # test EBCDIC or ASCII
  5455. case `echo X|tr X '\101'` in
  5456. A) # ASCII based system
  5457. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5458. lt_SP2NL='tr \040 \012'
  5459. lt_NL2SP='tr \015\012 \040\040'
  5460. ;;
  5461. *) # EBCDIC based system
  5462. lt_SP2NL='tr \100 \n'
  5463. lt_NL2SP='tr \r\n \100\100'
  5464. ;;
  5465. esac
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5467. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5468. if ${lt_cv_ld_reload_flag+:} false; then :
  5469. $as_echo_n "(cached) " >&6
  5470. else
  5471. lt_cv_ld_reload_flag='-r'
  5472. fi
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5474. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5475. reload_flag=$lt_cv_ld_reload_flag
  5476. case $reload_flag in
  5477. "" | " "*) ;;
  5478. *) reload_flag=" $reload_flag" ;;
  5479. esac
  5480. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5481. case $host_os in
  5482. darwin*)
  5483. if test "$GCC" = yes; then
  5484. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5485. else
  5486. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5487. fi
  5488. ;;
  5489. esac
  5490. if test -n "$ac_tool_prefix"; then
  5491. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5492. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5494. $as_echo_n "checking for $ac_word... " >&6; }
  5495. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5496. $as_echo_n "(cached) " >&6
  5497. else
  5498. if test -n "$OBJDUMP"; then
  5499. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5500. else
  5501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5502. for as_dir in $PATH
  5503. do
  5504. IFS=$as_save_IFS
  5505. test -z "$as_dir" && as_dir=.
  5506. for ac_exec_ext in '' $ac_executable_extensions; do
  5507. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5508. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5510. break 2
  5511. fi
  5512. done
  5513. done
  5514. IFS=$as_save_IFS
  5515. fi
  5516. fi
  5517. OBJDUMP=$ac_cv_prog_OBJDUMP
  5518. if test -n "$OBJDUMP"; then
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5520. $as_echo "$OBJDUMP" >&6; }
  5521. else
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5523. $as_echo "no" >&6; }
  5524. fi
  5525. fi
  5526. if test -z "$ac_cv_prog_OBJDUMP"; then
  5527. ac_ct_OBJDUMP=$OBJDUMP
  5528. # Extract the first word of "objdump", so it can be a program name with args.
  5529. set dummy objdump; ac_word=$2
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5531. $as_echo_n "checking for $ac_word... " >&6; }
  5532. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. if test -n "$ac_ct_OBJDUMP"; then
  5536. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5537. else
  5538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5539. for as_dir in $PATH
  5540. do
  5541. IFS=$as_save_IFS
  5542. test -z "$as_dir" && as_dir=.
  5543. for ac_exec_ext in '' $ac_executable_extensions; do
  5544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5545. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5547. break 2
  5548. fi
  5549. done
  5550. done
  5551. IFS=$as_save_IFS
  5552. fi
  5553. fi
  5554. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5555. if test -n "$ac_ct_OBJDUMP"; then
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5557. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5558. else
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5560. $as_echo "no" >&6; }
  5561. fi
  5562. if test "x$ac_ct_OBJDUMP" = x; then
  5563. OBJDUMP="false"
  5564. else
  5565. case $cross_compiling:$ac_tool_warned in
  5566. yes:)
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5568. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5569. ac_tool_warned=yes ;;
  5570. esac
  5571. OBJDUMP=$ac_ct_OBJDUMP
  5572. fi
  5573. else
  5574. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5575. fi
  5576. test -z "$OBJDUMP" && OBJDUMP=objdump
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5578. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5579. if ${lt_cv_deplibs_check_method+:} false; then :
  5580. $as_echo_n "(cached) " >&6
  5581. else
  5582. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5583. lt_cv_file_magic_test_file=
  5584. lt_cv_deplibs_check_method='unknown'
  5585. # Need to set the preceding variable on all platforms that support
  5586. # interlibrary dependencies.
  5587. # 'none' -- dependencies not supported.
  5588. # `unknown' -- same as none, but documents that we really don't know.
  5589. # 'pass_all' -- all dependencies passed with no checks.
  5590. # 'test_compile' -- check by making test program.
  5591. # 'file_magic [[regex]]' -- check by looking for files in library path
  5592. # which responds to the $file_magic_cmd with a given extended regex.
  5593. # If you have `file' or equivalent on your system and you're not sure
  5594. # whether `pass_all' will *always* work, you probably want this one.
  5595. case $host_os in
  5596. aix[4-9]*)
  5597. lt_cv_deplibs_check_method=pass_all
  5598. ;;
  5599. beos*)
  5600. lt_cv_deplibs_check_method=pass_all
  5601. ;;
  5602. bsdi[45]*)
  5603. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5604. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5605. lt_cv_file_magic_test_file=/shlib/libc.so
  5606. ;;
  5607. cygwin*)
  5608. # func_win32_libid is a shell function defined in ltmain.sh
  5609. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5610. lt_cv_file_magic_cmd='func_win32_libid'
  5611. ;;
  5612. mingw* | pw32*)
  5613. # Base MSYS/MinGW do not provide the 'file' command needed by
  5614. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5615. # unless we find 'file', for example because we are cross-compiling.
  5616. if ( file / ) >/dev/null 2>&1; then
  5617. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5618. lt_cv_file_magic_cmd='func_win32_libid'
  5619. else
  5620. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5621. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5622. fi
  5623. ;;
  5624. cegcc)
  5625. # use the weaker test based on 'objdump'. See mingw*.
  5626. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5627. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5628. ;;
  5629. darwin* | rhapsody*)
  5630. lt_cv_deplibs_check_method=pass_all
  5631. ;;
  5632. freebsd* | dragonfly*)
  5633. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5634. case $host_cpu in
  5635. i*86 )
  5636. # Not sure whether the presence of OpenBSD here was a mistake.
  5637. # Let's accept both of them until this is cleared up.
  5638. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5639. lt_cv_file_magic_cmd=/usr/bin/file
  5640. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5641. ;;
  5642. esac
  5643. else
  5644. lt_cv_deplibs_check_method=pass_all
  5645. fi
  5646. ;;
  5647. gnu*)
  5648. lt_cv_deplibs_check_method=pass_all
  5649. ;;
  5650. hpux10.20* | hpux11*)
  5651. lt_cv_file_magic_cmd=/usr/bin/file
  5652. case $host_cpu in
  5653. ia64*)
  5654. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5655. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5656. ;;
  5657. hppa*64*)
  5658. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5659. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5660. ;;
  5661. *)
  5662. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5663. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5664. ;;
  5665. esac
  5666. ;;
  5667. interix[3-9]*)
  5668. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5669. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5670. ;;
  5671. irix5* | irix6* | nonstopux*)
  5672. case $LD in
  5673. *-32|*"-32 ") libmagic=32-bit;;
  5674. *-n32|*"-n32 ") libmagic=N32;;
  5675. *-64|*"-64 ") libmagic=64-bit;;
  5676. *) libmagic=never-match;;
  5677. esac
  5678. lt_cv_deplibs_check_method=pass_all
  5679. ;;
  5680. # This must be Linux ELF.
  5681. linux* | k*bsd*-gnu)
  5682. lt_cv_deplibs_check_method=pass_all
  5683. ;;
  5684. netbsd*)
  5685. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5686. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5687. else
  5688. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5689. fi
  5690. ;;
  5691. newos6*)
  5692. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5693. lt_cv_file_magic_cmd=/usr/bin/file
  5694. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5695. ;;
  5696. *nto* | *qnx*)
  5697. lt_cv_deplibs_check_method=pass_all
  5698. ;;
  5699. openbsd*)
  5700. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5701. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5702. else
  5703. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5704. fi
  5705. ;;
  5706. osf3* | osf4* | osf5*)
  5707. lt_cv_deplibs_check_method=pass_all
  5708. ;;
  5709. rdos*)
  5710. lt_cv_deplibs_check_method=pass_all
  5711. ;;
  5712. solaris*)
  5713. lt_cv_deplibs_check_method=pass_all
  5714. ;;
  5715. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5716. lt_cv_deplibs_check_method=pass_all
  5717. ;;
  5718. sysv4 | sysv4.3*)
  5719. case $host_vendor in
  5720. motorola)
  5721. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5722. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5723. ;;
  5724. ncr)
  5725. lt_cv_deplibs_check_method=pass_all
  5726. ;;
  5727. sequent)
  5728. lt_cv_file_magic_cmd='/bin/file'
  5729. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5730. ;;
  5731. sni)
  5732. lt_cv_file_magic_cmd='/bin/file'
  5733. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5734. lt_cv_file_magic_test_file=/lib/libc.so
  5735. ;;
  5736. siemens)
  5737. lt_cv_deplibs_check_method=pass_all
  5738. ;;
  5739. pc)
  5740. lt_cv_deplibs_check_method=pass_all
  5741. ;;
  5742. esac
  5743. ;;
  5744. tpf*)
  5745. lt_cv_deplibs_check_method=pass_all
  5746. ;;
  5747. esac
  5748. fi
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5750. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5751. file_magic_cmd=$lt_cv_file_magic_cmd
  5752. deplibs_check_method=$lt_cv_deplibs_check_method
  5753. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5754. if test -n "$ac_tool_prefix"; then
  5755. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5756. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5758. $as_echo_n "checking for $ac_word... " >&6; }
  5759. if ${ac_cv_prog_AR+:} false; then :
  5760. $as_echo_n "(cached) " >&6
  5761. else
  5762. if test -n "$AR"; then
  5763. ac_cv_prog_AR="$AR" # Let the user override the test.
  5764. else
  5765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5766. for as_dir in $PATH
  5767. do
  5768. IFS=$as_save_IFS
  5769. test -z "$as_dir" && as_dir=.
  5770. for ac_exec_ext in '' $ac_executable_extensions; do
  5771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5772. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5774. break 2
  5775. fi
  5776. done
  5777. done
  5778. IFS=$as_save_IFS
  5779. fi
  5780. fi
  5781. AR=$ac_cv_prog_AR
  5782. if test -n "$AR"; then
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5784. $as_echo "$AR" >&6; }
  5785. else
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5787. $as_echo "no" >&6; }
  5788. fi
  5789. fi
  5790. if test -z "$ac_cv_prog_AR"; then
  5791. ac_ct_AR=$AR
  5792. # Extract the first word of "ar", so it can be a program name with args.
  5793. set dummy ar; ac_word=$2
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5795. $as_echo_n "checking for $ac_word... " >&6; }
  5796. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5797. $as_echo_n "(cached) " >&6
  5798. else
  5799. if test -n "$ac_ct_AR"; then
  5800. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5801. else
  5802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5803. for as_dir in $PATH
  5804. do
  5805. IFS=$as_save_IFS
  5806. test -z "$as_dir" && as_dir=.
  5807. for ac_exec_ext in '' $ac_executable_extensions; do
  5808. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5809. ac_cv_prog_ac_ct_AR="ar"
  5810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5811. break 2
  5812. fi
  5813. done
  5814. done
  5815. IFS=$as_save_IFS
  5816. fi
  5817. fi
  5818. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5819. if test -n "$ac_ct_AR"; then
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5821. $as_echo "$ac_ct_AR" >&6; }
  5822. else
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5824. $as_echo "no" >&6; }
  5825. fi
  5826. if test "x$ac_ct_AR" = x; then
  5827. AR="false"
  5828. else
  5829. case $cross_compiling:$ac_tool_warned in
  5830. yes:)
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5832. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5833. ac_tool_warned=yes ;;
  5834. esac
  5835. AR=$ac_ct_AR
  5836. fi
  5837. else
  5838. AR="$ac_cv_prog_AR"
  5839. fi
  5840. test -z "$AR" && AR=ar
  5841. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5842. if test -n "$ac_tool_prefix"; then
  5843. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5844. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5846. $as_echo_n "checking for $ac_word... " >&6; }
  5847. if ${ac_cv_prog_STRIP+:} false; then :
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. if test -n "$STRIP"; then
  5851. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5852. else
  5853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5854. for as_dir in $PATH
  5855. do
  5856. IFS=$as_save_IFS
  5857. test -z "$as_dir" && as_dir=.
  5858. for ac_exec_ext in '' $ac_executable_extensions; do
  5859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5860. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5862. break 2
  5863. fi
  5864. done
  5865. done
  5866. IFS=$as_save_IFS
  5867. fi
  5868. fi
  5869. STRIP=$ac_cv_prog_STRIP
  5870. if test -n "$STRIP"; then
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5872. $as_echo "$STRIP" >&6; }
  5873. else
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5875. $as_echo "no" >&6; }
  5876. fi
  5877. fi
  5878. if test -z "$ac_cv_prog_STRIP"; then
  5879. ac_ct_STRIP=$STRIP
  5880. # Extract the first word of "strip", so it can be a program name with args.
  5881. set dummy strip; ac_word=$2
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5883. $as_echo_n "checking for $ac_word... " >&6; }
  5884. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. if test -n "$ac_ct_STRIP"; then
  5888. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5889. else
  5890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5891. for as_dir in $PATH
  5892. do
  5893. IFS=$as_save_IFS
  5894. test -z "$as_dir" && as_dir=.
  5895. for ac_exec_ext in '' $ac_executable_extensions; do
  5896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5897. ac_cv_prog_ac_ct_STRIP="strip"
  5898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5899. break 2
  5900. fi
  5901. done
  5902. done
  5903. IFS=$as_save_IFS
  5904. fi
  5905. fi
  5906. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5907. if test -n "$ac_ct_STRIP"; then
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5909. $as_echo "$ac_ct_STRIP" >&6; }
  5910. else
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5912. $as_echo "no" >&6; }
  5913. fi
  5914. if test "x$ac_ct_STRIP" = x; then
  5915. STRIP=":"
  5916. else
  5917. case $cross_compiling:$ac_tool_warned in
  5918. yes:)
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5920. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5921. ac_tool_warned=yes ;;
  5922. esac
  5923. STRIP=$ac_ct_STRIP
  5924. fi
  5925. else
  5926. STRIP="$ac_cv_prog_STRIP"
  5927. fi
  5928. test -z "$STRIP" && STRIP=:
  5929. if test -n "$ac_tool_prefix"; then
  5930. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5931. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5933. $as_echo_n "checking for $ac_word... " >&6; }
  5934. if ${ac_cv_prog_RANLIB+:} false; then :
  5935. $as_echo_n "(cached) " >&6
  5936. else
  5937. if test -n "$RANLIB"; then
  5938. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5939. else
  5940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5941. for as_dir in $PATH
  5942. do
  5943. IFS=$as_save_IFS
  5944. test -z "$as_dir" && as_dir=.
  5945. for ac_exec_ext in '' $ac_executable_extensions; do
  5946. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5947. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5949. break 2
  5950. fi
  5951. done
  5952. done
  5953. IFS=$as_save_IFS
  5954. fi
  5955. fi
  5956. RANLIB=$ac_cv_prog_RANLIB
  5957. if test -n "$RANLIB"; then
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5959. $as_echo "$RANLIB" >&6; }
  5960. else
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5962. $as_echo "no" >&6; }
  5963. fi
  5964. fi
  5965. if test -z "$ac_cv_prog_RANLIB"; then
  5966. ac_ct_RANLIB=$RANLIB
  5967. # Extract the first word of "ranlib", so it can be a program name with args.
  5968. set dummy ranlib; ac_word=$2
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5970. $as_echo_n "checking for $ac_word... " >&6; }
  5971. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5972. $as_echo_n "(cached) " >&6
  5973. else
  5974. if test -n "$ac_ct_RANLIB"; then
  5975. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5976. else
  5977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5978. for as_dir in $PATH
  5979. do
  5980. IFS=$as_save_IFS
  5981. test -z "$as_dir" && as_dir=.
  5982. for ac_exec_ext in '' $ac_executable_extensions; do
  5983. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5984. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5986. break 2
  5987. fi
  5988. done
  5989. done
  5990. IFS=$as_save_IFS
  5991. fi
  5992. fi
  5993. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5994. if test -n "$ac_ct_RANLIB"; then
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5996. $as_echo "$ac_ct_RANLIB" >&6; }
  5997. else
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5999. $as_echo "no" >&6; }
  6000. fi
  6001. if test "x$ac_ct_RANLIB" = x; then
  6002. RANLIB=":"
  6003. else
  6004. case $cross_compiling:$ac_tool_warned in
  6005. yes:)
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6007. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6008. ac_tool_warned=yes ;;
  6009. esac
  6010. RANLIB=$ac_ct_RANLIB
  6011. fi
  6012. else
  6013. RANLIB="$ac_cv_prog_RANLIB"
  6014. fi
  6015. test -z "$RANLIB" && RANLIB=:
  6016. # Determine commands to create old-style static archives.
  6017. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6018. old_postinstall_cmds='chmod 644 $oldlib'
  6019. old_postuninstall_cmds=
  6020. if test -n "$RANLIB"; then
  6021. case $host_os in
  6022. openbsd*)
  6023. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6024. ;;
  6025. *)
  6026. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6027. ;;
  6028. esac
  6029. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6030. fi
  6031. # If no C compiler was specified, use CC.
  6032. LTCC=${LTCC-"$CC"}
  6033. # If no C compiler flags were specified, use CFLAGS.
  6034. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6035. # Allow CC to be a program name with arguments.
  6036. compiler=$CC
  6037. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6039. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6040. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. # These are sane defaults that work on at least a few old systems.
  6044. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6045. # Character class describing NM global symbol codes.
  6046. symcode='[BCDEGRST]'
  6047. # Regexp to match symbols that can be accessed directly from C.
  6048. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6049. # Define system-specific variables.
  6050. case $host_os in
  6051. aix*)
  6052. symcode='[BCDT]'
  6053. ;;
  6054. cygwin* | mingw* | pw32* | cegcc*)
  6055. symcode='[ABCDGISTW]'
  6056. ;;
  6057. hpux*)
  6058. if test "$host_cpu" = ia64; then
  6059. symcode='[ABCDEGRST]'
  6060. fi
  6061. ;;
  6062. irix* | nonstopux*)
  6063. symcode='[BCDEGRST]'
  6064. ;;
  6065. osf*)
  6066. symcode='[BCDEGQRST]'
  6067. ;;
  6068. solaris*)
  6069. symcode='[BDRT]'
  6070. ;;
  6071. sco3.2v5*)
  6072. symcode='[DT]'
  6073. ;;
  6074. sysv4.2uw2*)
  6075. symcode='[DT]'
  6076. ;;
  6077. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6078. symcode='[ABDT]'
  6079. ;;
  6080. sysv4)
  6081. symcode='[DFNSTU]'
  6082. ;;
  6083. esac
  6084. # If we're using GNU nm, then use its standard symbol codes.
  6085. case `$NM -V 2>&1` in
  6086. *GNU* | *'with BFD'*)
  6087. symcode='[ABCDGIRSTW]' ;;
  6088. esac
  6089. # Transform an extracted symbol line into a proper C declaration.
  6090. # Some systems (esp. on ia64) link data and code symbols differently,
  6091. # so use this general approach.
  6092. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6093. # Transform an extracted symbol line into symbol name and symbol address
  6094. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6095. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6096. # Handle CRLF in mingw tool chain
  6097. opt_cr=
  6098. case $build_os in
  6099. mingw*)
  6100. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6101. ;;
  6102. esac
  6103. # Try without a prefix underscore, then with it.
  6104. for ac_symprfx in "" "_"; do
  6105. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6106. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6107. # Write the raw and C identifiers.
  6108. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6109. # Fake it for dumpbin and say T for any non-static function
  6110. # and D for any global variable.
  6111. # Also find C++ and __fastcall symbols from MSVC++,
  6112. # which start with @ or ?.
  6113. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6114. " {last_section=section; section=\$ 3};"\
  6115. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6116. " \$ 0!~/External *\|/{next};"\
  6117. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6118. " {if(hide[section]) next};"\
  6119. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6120. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6121. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6122. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6123. " ' prfx=^$ac_symprfx"
  6124. else
  6125. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6126. fi
  6127. # Check to see that the pipe works correctly.
  6128. pipe_works=no
  6129. rm -f conftest*
  6130. cat > conftest.$ac_ext <<_LT_EOF
  6131. #ifdef __cplusplus
  6132. extern "C" {
  6133. #endif
  6134. char nm_test_var;
  6135. void nm_test_func(void);
  6136. void nm_test_func(void){}
  6137. #ifdef __cplusplus
  6138. }
  6139. #endif
  6140. int main(){nm_test_var='a';nm_test_func();return(0);}
  6141. _LT_EOF
  6142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6143. (eval $ac_compile) 2>&5
  6144. ac_status=$?
  6145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6146. test $ac_status = 0; }; then
  6147. # Now try to grab the symbols.
  6148. nlist=conftest.nm
  6149. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  6150. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6151. ac_status=$?
  6152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6153. test $ac_status = 0; } && test -s "$nlist"; then
  6154. # Try sorting and uniquifying the output.
  6155. if sort "$nlist" | uniq > "$nlist"T; then
  6156. mv -f "$nlist"T "$nlist"
  6157. else
  6158. rm -f "$nlist"T
  6159. fi
  6160. # Make sure that we snagged all the symbols we need.
  6161. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6162. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6163. cat <<_LT_EOF > conftest.$ac_ext
  6164. #ifdef __cplusplus
  6165. extern "C" {
  6166. #endif
  6167. _LT_EOF
  6168. # Now generate the symbol file.
  6169. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6170. cat <<_LT_EOF >> conftest.$ac_ext
  6171. /* The mapping between symbol names and symbols. */
  6172. const struct {
  6173. const char *name;
  6174. void *address;
  6175. }
  6176. lt__PROGRAM__LTX_preloaded_symbols[] =
  6177. {
  6178. { "@PROGRAM@", (void *) 0 },
  6179. _LT_EOF
  6180. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6181. cat <<\_LT_EOF >> conftest.$ac_ext
  6182. {0, (void *) 0}
  6183. };
  6184. /* This works around a problem in FreeBSD linker */
  6185. #ifdef FREEBSD_WORKAROUND
  6186. static const void *lt_preloaded_setup() {
  6187. return lt__PROGRAM__LTX_preloaded_symbols;
  6188. }
  6189. #endif
  6190. #ifdef __cplusplus
  6191. }
  6192. #endif
  6193. _LT_EOF
  6194. # Now try linking the two files.
  6195. mv conftest.$ac_objext conftstm.$ac_objext
  6196. lt_save_LIBS="$LIBS"
  6197. lt_save_CFLAGS="$CFLAGS"
  6198. LIBS="conftstm.$ac_objext"
  6199. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6200. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6201. (eval $ac_link) 2>&5
  6202. ac_status=$?
  6203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6204. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6205. pipe_works=yes
  6206. fi
  6207. LIBS="$lt_save_LIBS"
  6208. CFLAGS="$lt_save_CFLAGS"
  6209. else
  6210. echo "cannot find nm_test_func in $nlist" >&5
  6211. fi
  6212. else
  6213. echo "cannot find nm_test_var in $nlist" >&5
  6214. fi
  6215. else
  6216. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6217. fi
  6218. else
  6219. echo "$progname: failed program was:" >&5
  6220. cat conftest.$ac_ext >&5
  6221. fi
  6222. rm -rf conftest* conftst*
  6223. # Do not use the global_symbol_pipe unless it works.
  6224. if test "$pipe_works" = yes; then
  6225. break
  6226. else
  6227. lt_cv_sys_global_symbol_pipe=
  6228. fi
  6229. done
  6230. fi
  6231. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6232. lt_cv_sys_global_symbol_to_cdecl=
  6233. fi
  6234. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6236. $as_echo "failed" >&6; }
  6237. else
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6239. $as_echo "ok" >&6; }
  6240. fi
  6241. # Check whether --enable-libtool-lock was given.
  6242. if test "${enable_libtool_lock+set}" = set; then :
  6243. enableval=$enable_libtool_lock;
  6244. fi
  6245. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6246. # Some flags need to be propagated to the compiler or linker for good
  6247. # libtool support.
  6248. case $host in
  6249. ia64-*-hpux*)
  6250. # Find out which ABI we are using.
  6251. echo 'int i;' > conftest.$ac_ext
  6252. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6253. (eval $ac_compile) 2>&5
  6254. ac_status=$?
  6255. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6256. test $ac_status = 0; }; then
  6257. case `/usr/bin/file conftest.$ac_objext` in
  6258. *ELF-32*)
  6259. HPUX_IA64_MODE="32"
  6260. ;;
  6261. *ELF-64*)
  6262. HPUX_IA64_MODE="64"
  6263. ;;
  6264. esac
  6265. fi
  6266. rm -rf conftest*
  6267. ;;
  6268. *-*-irix6*)
  6269. # Find out which ABI we are using.
  6270. echo '#line 7099 "configure"' > conftest.$ac_ext
  6271. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6272. (eval $ac_compile) 2>&5
  6273. ac_status=$?
  6274. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6275. test $ac_status = 0; }; then
  6276. if test "$lt_cv_prog_gnu_ld" = yes; then
  6277. case `/usr/bin/file conftest.$ac_objext` in
  6278. *32-bit*)
  6279. LD="${LD-ld} -melf32bsmip"
  6280. ;;
  6281. *N32*)
  6282. LD="${LD-ld} -melf32bmipn32"
  6283. ;;
  6284. *64-bit*)
  6285. LD="${LD-ld} -melf64bmip"
  6286. ;;
  6287. esac
  6288. else
  6289. case `/usr/bin/file conftest.$ac_objext` in
  6290. *32-bit*)
  6291. LD="${LD-ld} -32"
  6292. ;;
  6293. *N32*)
  6294. LD="${LD-ld} -n32"
  6295. ;;
  6296. *64-bit*)
  6297. LD="${LD-ld} -64"
  6298. ;;
  6299. esac
  6300. fi
  6301. fi
  6302. rm -rf conftest*
  6303. ;;
  6304. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6305. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6306. # Find out which ABI we are using.
  6307. echo 'int i;' > conftest.$ac_ext
  6308. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6309. (eval $ac_compile) 2>&5
  6310. ac_status=$?
  6311. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6312. test $ac_status = 0; }; then
  6313. case `/usr/bin/file conftest.o` in
  6314. *32-bit*)
  6315. case $host in
  6316. x86_64-*kfreebsd*-gnu)
  6317. LD="${LD-ld} -m elf_i386_fbsd"
  6318. ;;
  6319. x86_64-*linux*)
  6320. LD="${LD-ld} -m elf_i386"
  6321. ;;
  6322. ppc64-*linux*|powerpc64-*linux*)
  6323. LD="${LD-ld} -m elf32ppclinux"
  6324. ;;
  6325. s390x-*linux*)
  6326. LD="${LD-ld} -m elf_s390"
  6327. ;;
  6328. sparc64-*linux*)
  6329. LD="${LD-ld} -m elf32_sparc"
  6330. ;;
  6331. esac
  6332. ;;
  6333. *64-bit*)
  6334. case $host in
  6335. x86_64-*kfreebsd*-gnu)
  6336. LD="${LD-ld} -m elf_x86_64_fbsd"
  6337. ;;
  6338. x86_64-*linux*)
  6339. LD="${LD-ld} -m elf_x86_64"
  6340. ;;
  6341. ppc*-*linux*|powerpc*-*linux*)
  6342. LD="${LD-ld} -m elf64ppc"
  6343. ;;
  6344. s390*-*linux*|s390*-*tpf*)
  6345. LD="${LD-ld} -m elf64_s390"
  6346. ;;
  6347. sparc*-*linux*)
  6348. LD="${LD-ld} -m elf64_sparc"
  6349. ;;
  6350. esac
  6351. ;;
  6352. esac
  6353. fi
  6354. rm -rf conftest*
  6355. ;;
  6356. *-*-sco3.2v5*)
  6357. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6358. SAVE_CFLAGS="$CFLAGS"
  6359. CFLAGS="$CFLAGS -belf"
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6361. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6362. if ${lt_cv_cc_needs_belf+:} false; then :
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. ac_ext=c
  6366. ac_cpp='$CPP $CPPFLAGS'
  6367. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6368. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6369. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6371. /* end confdefs.h. */
  6372. int
  6373. main ()
  6374. {
  6375. ;
  6376. return 0;
  6377. }
  6378. _ACEOF
  6379. if ac_fn_c_try_link "$LINENO"; then :
  6380. lt_cv_cc_needs_belf=yes
  6381. else
  6382. lt_cv_cc_needs_belf=no
  6383. fi
  6384. rm -f core conftest.err conftest.$ac_objext \
  6385. conftest$ac_exeext conftest.$ac_ext
  6386. ac_ext=c
  6387. ac_cpp='$CPP $CPPFLAGS'
  6388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6391. fi
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6393. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6394. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6395. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6396. CFLAGS="$SAVE_CFLAGS"
  6397. fi
  6398. ;;
  6399. sparc*-*solaris*)
  6400. # Find out which ABI we are using.
  6401. echo 'int i;' > conftest.$ac_ext
  6402. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6403. (eval $ac_compile) 2>&5
  6404. ac_status=$?
  6405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6406. test $ac_status = 0; }; then
  6407. case `/usr/bin/file conftest.o` in
  6408. *64-bit*)
  6409. case $lt_cv_prog_gnu_ld in
  6410. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6411. *)
  6412. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6413. LD="${LD-ld} -64"
  6414. fi
  6415. ;;
  6416. esac
  6417. ;;
  6418. esac
  6419. fi
  6420. rm -rf conftest*
  6421. ;;
  6422. esac
  6423. need_locks="$enable_libtool_lock"
  6424. case $host_os in
  6425. rhapsody* | darwin*)
  6426. if test -n "$ac_tool_prefix"; then
  6427. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6428. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6430. $as_echo_n "checking for $ac_word... " >&6; }
  6431. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6432. $as_echo_n "(cached) " >&6
  6433. else
  6434. if test -n "$DSYMUTIL"; then
  6435. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6436. else
  6437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6438. for as_dir in $PATH
  6439. do
  6440. IFS=$as_save_IFS
  6441. test -z "$as_dir" && as_dir=.
  6442. for ac_exec_ext in '' $ac_executable_extensions; do
  6443. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6444. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6446. break 2
  6447. fi
  6448. done
  6449. done
  6450. IFS=$as_save_IFS
  6451. fi
  6452. fi
  6453. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6454. if test -n "$DSYMUTIL"; then
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6456. $as_echo "$DSYMUTIL" >&6; }
  6457. else
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6459. $as_echo "no" >&6; }
  6460. fi
  6461. fi
  6462. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6463. ac_ct_DSYMUTIL=$DSYMUTIL
  6464. # Extract the first word of "dsymutil", so it can be a program name with args.
  6465. set dummy dsymutil; ac_word=$2
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6467. $as_echo_n "checking for $ac_word... " >&6; }
  6468. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6469. $as_echo_n "(cached) " >&6
  6470. else
  6471. if test -n "$ac_ct_DSYMUTIL"; then
  6472. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6473. else
  6474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6475. for as_dir in $PATH
  6476. do
  6477. IFS=$as_save_IFS
  6478. test -z "$as_dir" && as_dir=.
  6479. for ac_exec_ext in '' $ac_executable_extensions; do
  6480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6481. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6483. break 2
  6484. fi
  6485. done
  6486. done
  6487. IFS=$as_save_IFS
  6488. fi
  6489. fi
  6490. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6491. if test -n "$ac_ct_DSYMUTIL"; then
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6493. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6494. else
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6496. $as_echo "no" >&6; }
  6497. fi
  6498. if test "x$ac_ct_DSYMUTIL" = x; then
  6499. DSYMUTIL=":"
  6500. else
  6501. case $cross_compiling:$ac_tool_warned in
  6502. yes:)
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6504. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6505. ac_tool_warned=yes ;;
  6506. esac
  6507. DSYMUTIL=$ac_ct_DSYMUTIL
  6508. fi
  6509. else
  6510. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6511. fi
  6512. if test -n "$ac_tool_prefix"; then
  6513. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6514. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6516. $as_echo_n "checking for $ac_word... " >&6; }
  6517. if ${ac_cv_prog_NMEDIT+:} false; then :
  6518. $as_echo_n "(cached) " >&6
  6519. else
  6520. if test -n "$NMEDIT"; then
  6521. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6522. else
  6523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6524. for as_dir in $PATH
  6525. do
  6526. IFS=$as_save_IFS
  6527. test -z "$as_dir" && as_dir=.
  6528. for ac_exec_ext in '' $ac_executable_extensions; do
  6529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6530. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6532. break 2
  6533. fi
  6534. done
  6535. done
  6536. IFS=$as_save_IFS
  6537. fi
  6538. fi
  6539. NMEDIT=$ac_cv_prog_NMEDIT
  6540. if test -n "$NMEDIT"; then
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6542. $as_echo "$NMEDIT" >&6; }
  6543. else
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6545. $as_echo "no" >&6; }
  6546. fi
  6547. fi
  6548. if test -z "$ac_cv_prog_NMEDIT"; then
  6549. ac_ct_NMEDIT=$NMEDIT
  6550. # Extract the first word of "nmedit", so it can be a program name with args.
  6551. set dummy nmedit; ac_word=$2
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6553. $as_echo_n "checking for $ac_word... " >&6; }
  6554. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6555. $as_echo_n "(cached) " >&6
  6556. else
  6557. if test -n "$ac_ct_NMEDIT"; then
  6558. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6559. else
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH
  6562. do
  6563. IFS=$as_save_IFS
  6564. test -z "$as_dir" && as_dir=.
  6565. for ac_exec_ext in '' $ac_executable_extensions; do
  6566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6567. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6569. break 2
  6570. fi
  6571. done
  6572. done
  6573. IFS=$as_save_IFS
  6574. fi
  6575. fi
  6576. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6577. if test -n "$ac_ct_NMEDIT"; then
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6579. $as_echo "$ac_ct_NMEDIT" >&6; }
  6580. else
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6582. $as_echo "no" >&6; }
  6583. fi
  6584. if test "x$ac_ct_NMEDIT" = x; then
  6585. NMEDIT=":"
  6586. else
  6587. case $cross_compiling:$ac_tool_warned in
  6588. yes:)
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6590. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6591. ac_tool_warned=yes ;;
  6592. esac
  6593. NMEDIT=$ac_ct_NMEDIT
  6594. fi
  6595. else
  6596. NMEDIT="$ac_cv_prog_NMEDIT"
  6597. fi
  6598. if test -n "$ac_tool_prefix"; then
  6599. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6600. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6602. $as_echo_n "checking for $ac_word... " >&6; }
  6603. if ${ac_cv_prog_LIPO+:} false; then :
  6604. $as_echo_n "(cached) " >&6
  6605. else
  6606. if test -n "$LIPO"; then
  6607. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6608. else
  6609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6610. for as_dir in $PATH
  6611. do
  6612. IFS=$as_save_IFS
  6613. test -z "$as_dir" && as_dir=.
  6614. for ac_exec_ext in '' $ac_executable_extensions; do
  6615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6616. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6618. break 2
  6619. fi
  6620. done
  6621. done
  6622. IFS=$as_save_IFS
  6623. fi
  6624. fi
  6625. LIPO=$ac_cv_prog_LIPO
  6626. if test -n "$LIPO"; then
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6628. $as_echo "$LIPO" >&6; }
  6629. else
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6631. $as_echo "no" >&6; }
  6632. fi
  6633. fi
  6634. if test -z "$ac_cv_prog_LIPO"; then
  6635. ac_ct_LIPO=$LIPO
  6636. # Extract the first word of "lipo", so it can be a program name with args.
  6637. set dummy lipo; ac_word=$2
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6639. $as_echo_n "checking for $ac_word... " >&6; }
  6640. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6641. $as_echo_n "(cached) " >&6
  6642. else
  6643. if test -n "$ac_ct_LIPO"; then
  6644. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6645. else
  6646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6647. for as_dir in $PATH
  6648. do
  6649. IFS=$as_save_IFS
  6650. test -z "$as_dir" && as_dir=.
  6651. for ac_exec_ext in '' $ac_executable_extensions; do
  6652. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6653. ac_cv_prog_ac_ct_LIPO="lipo"
  6654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6655. break 2
  6656. fi
  6657. done
  6658. done
  6659. IFS=$as_save_IFS
  6660. fi
  6661. fi
  6662. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6663. if test -n "$ac_ct_LIPO"; then
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6665. $as_echo "$ac_ct_LIPO" >&6; }
  6666. else
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6668. $as_echo "no" >&6; }
  6669. fi
  6670. if test "x$ac_ct_LIPO" = x; then
  6671. LIPO=":"
  6672. else
  6673. case $cross_compiling:$ac_tool_warned in
  6674. yes:)
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6676. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6677. ac_tool_warned=yes ;;
  6678. esac
  6679. LIPO=$ac_ct_LIPO
  6680. fi
  6681. else
  6682. LIPO="$ac_cv_prog_LIPO"
  6683. fi
  6684. if test -n "$ac_tool_prefix"; then
  6685. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6686. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6688. $as_echo_n "checking for $ac_word... " >&6; }
  6689. if ${ac_cv_prog_OTOOL+:} false; then :
  6690. $as_echo_n "(cached) " >&6
  6691. else
  6692. if test -n "$OTOOL"; then
  6693. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6694. else
  6695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6696. for as_dir in $PATH
  6697. do
  6698. IFS=$as_save_IFS
  6699. test -z "$as_dir" && as_dir=.
  6700. for ac_exec_ext in '' $ac_executable_extensions; do
  6701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6702. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6704. break 2
  6705. fi
  6706. done
  6707. done
  6708. IFS=$as_save_IFS
  6709. fi
  6710. fi
  6711. OTOOL=$ac_cv_prog_OTOOL
  6712. if test -n "$OTOOL"; then
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6714. $as_echo "$OTOOL" >&6; }
  6715. else
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6717. $as_echo "no" >&6; }
  6718. fi
  6719. fi
  6720. if test -z "$ac_cv_prog_OTOOL"; then
  6721. ac_ct_OTOOL=$OTOOL
  6722. # Extract the first word of "otool", so it can be a program name with args.
  6723. set dummy otool; ac_word=$2
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6725. $as_echo_n "checking for $ac_word... " >&6; }
  6726. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6727. $as_echo_n "(cached) " >&6
  6728. else
  6729. if test -n "$ac_ct_OTOOL"; then
  6730. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6731. else
  6732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6733. for as_dir in $PATH
  6734. do
  6735. IFS=$as_save_IFS
  6736. test -z "$as_dir" && as_dir=.
  6737. for ac_exec_ext in '' $ac_executable_extensions; do
  6738. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6739. ac_cv_prog_ac_ct_OTOOL="otool"
  6740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6741. break 2
  6742. fi
  6743. done
  6744. done
  6745. IFS=$as_save_IFS
  6746. fi
  6747. fi
  6748. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6749. if test -n "$ac_ct_OTOOL"; then
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6751. $as_echo "$ac_ct_OTOOL" >&6; }
  6752. else
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6754. $as_echo "no" >&6; }
  6755. fi
  6756. if test "x$ac_ct_OTOOL" = x; then
  6757. OTOOL=":"
  6758. else
  6759. case $cross_compiling:$ac_tool_warned in
  6760. yes:)
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6762. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6763. ac_tool_warned=yes ;;
  6764. esac
  6765. OTOOL=$ac_ct_OTOOL
  6766. fi
  6767. else
  6768. OTOOL="$ac_cv_prog_OTOOL"
  6769. fi
  6770. if test -n "$ac_tool_prefix"; then
  6771. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6772. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6774. $as_echo_n "checking for $ac_word... " >&6; }
  6775. if ${ac_cv_prog_OTOOL64+:} false; then :
  6776. $as_echo_n "(cached) " >&6
  6777. else
  6778. if test -n "$OTOOL64"; then
  6779. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6780. else
  6781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6782. for as_dir in $PATH
  6783. do
  6784. IFS=$as_save_IFS
  6785. test -z "$as_dir" && as_dir=.
  6786. for ac_exec_ext in '' $ac_executable_extensions; do
  6787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6788. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6790. break 2
  6791. fi
  6792. done
  6793. done
  6794. IFS=$as_save_IFS
  6795. fi
  6796. fi
  6797. OTOOL64=$ac_cv_prog_OTOOL64
  6798. if test -n "$OTOOL64"; then
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6800. $as_echo "$OTOOL64" >&6; }
  6801. else
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6803. $as_echo "no" >&6; }
  6804. fi
  6805. fi
  6806. if test -z "$ac_cv_prog_OTOOL64"; then
  6807. ac_ct_OTOOL64=$OTOOL64
  6808. # Extract the first word of "otool64", so it can be a program name with args.
  6809. set dummy otool64; ac_word=$2
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6811. $as_echo_n "checking for $ac_word... " >&6; }
  6812. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6813. $as_echo_n "(cached) " >&6
  6814. else
  6815. if test -n "$ac_ct_OTOOL64"; then
  6816. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6817. else
  6818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6819. for as_dir in $PATH
  6820. do
  6821. IFS=$as_save_IFS
  6822. test -z "$as_dir" && as_dir=.
  6823. for ac_exec_ext in '' $ac_executable_extensions; do
  6824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6825. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6827. break 2
  6828. fi
  6829. done
  6830. done
  6831. IFS=$as_save_IFS
  6832. fi
  6833. fi
  6834. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6835. if test -n "$ac_ct_OTOOL64"; then
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6837. $as_echo "$ac_ct_OTOOL64" >&6; }
  6838. else
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6840. $as_echo "no" >&6; }
  6841. fi
  6842. if test "x$ac_ct_OTOOL64" = x; then
  6843. OTOOL64=":"
  6844. else
  6845. case $cross_compiling:$ac_tool_warned in
  6846. yes:)
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6848. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6849. ac_tool_warned=yes ;;
  6850. esac
  6851. OTOOL64=$ac_ct_OTOOL64
  6852. fi
  6853. else
  6854. OTOOL64="$ac_cv_prog_OTOOL64"
  6855. fi
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6857. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6858. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6859. $as_echo_n "(cached) " >&6
  6860. else
  6861. lt_cv_apple_cc_single_mod=no
  6862. if test -z "${LT_MULTI_MODULE}"; then
  6863. # By default we will add the -single_module flag. You can override
  6864. # by either setting the environment variable LT_MULTI_MODULE
  6865. # non-empty at configure time, or by adding -multi_module to the
  6866. # link flags.
  6867. rm -rf libconftest.dylib*
  6868. echo "int foo(void){return 1;}" > conftest.c
  6869. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6870. -dynamiclib -Wl,-single_module conftest.c" >&5
  6871. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6872. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6873. _lt_result=$?
  6874. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6875. lt_cv_apple_cc_single_mod=yes
  6876. else
  6877. cat conftest.err >&5
  6878. fi
  6879. rm -rf libconftest.dylib*
  6880. rm -f conftest.*
  6881. fi
  6882. fi
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6884. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6886. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6887. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6888. $as_echo_n "(cached) " >&6
  6889. else
  6890. lt_cv_ld_exported_symbols_list=no
  6891. save_LDFLAGS=$LDFLAGS
  6892. echo "_main" > conftest.sym
  6893. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6895. /* end confdefs.h. */
  6896. int
  6897. main ()
  6898. {
  6899. ;
  6900. return 0;
  6901. }
  6902. _ACEOF
  6903. if ac_fn_c_try_link "$LINENO"; then :
  6904. lt_cv_ld_exported_symbols_list=yes
  6905. else
  6906. lt_cv_ld_exported_symbols_list=no
  6907. fi
  6908. rm -f core conftest.err conftest.$ac_objext \
  6909. conftest$ac_exeext conftest.$ac_ext
  6910. LDFLAGS="$save_LDFLAGS"
  6911. fi
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6913. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6914. case $host_os in
  6915. rhapsody* | darwin1.[012])
  6916. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6917. darwin1.*)
  6918. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6919. darwin*) # darwin 5.x on
  6920. # if running on 10.5 or later, the deployment target defaults
  6921. # to the OS version, if on x86, and 10.4, the deployment
  6922. # target defaults to 10.4. Don't you love it?
  6923. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6924. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6925. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6926. 10.[012]*)
  6927. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6928. 10.*)
  6929. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6930. esac
  6931. ;;
  6932. esac
  6933. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6934. _lt_dar_single_mod='$single_module'
  6935. fi
  6936. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6937. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6938. else
  6939. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6940. fi
  6941. if test "$DSYMUTIL" != ":"; then
  6942. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6943. else
  6944. _lt_dsymutil=
  6945. fi
  6946. ;;
  6947. esac
  6948. for ac_header in dlfcn.h
  6949. do :
  6950. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6951. "
  6952. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6953. cat >>confdefs.h <<_ACEOF
  6954. #define HAVE_DLFCN_H 1
  6955. _ACEOF
  6956. fi
  6957. done
  6958. # Set options
  6959. # Check whether --enable-static was given.
  6960. if test "${enable_static+set}" = set; then :
  6961. enableval=$enable_static; p=${PACKAGE-default}
  6962. case $enableval in
  6963. yes) enable_static=yes ;;
  6964. no) enable_static=no ;;
  6965. *)
  6966. enable_static=no
  6967. # Look at the argument we got. We use all the common list separators.
  6968. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6969. for pkg in $enableval; do
  6970. IFS="$lt_save_ifs"
  6971. if test "X$pkg" = "X$p"; then
  6972. enable_static=yes
  6973. fi
  6974. done
  6975. IFS="$lt_save_ifs"
  6976. ;;
  6977. esac
  6978. else
  6979. enable_static=no
  6980. fi
  6981. # Check whether --with-pic was given.
  6982. if test "${with_pic+set}" = set; then :
  6983. withval=$with_pic; pic_mode="$withval"
  6984. else
  6985. pic_mode=default
  6986. fi
  6987. test -z "$pic_mode" && pic_mode=yes
  6988. enable_dlopen=no
  6989. enable_win32_dll=no
  6990. # Check whether --enable-shared was given.
  6991. if test "${enable_shared+set}" = set; then :
  6992. enableval=$enable_shared; p=${PACKAGE-default}
  6993. case $enableval in
  6994. yes) enable_shared=yes ;;
  6995. no) enable_shared=no ;;
  6996. *)
  6997. enable_shared=no
  6998. # Look at the argument we got. We use all the common list separators.
  6999. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7000. for pkg in $enableval; do
  7001. IFS="$lt_save_ifs"
  7002. if test "X$pkg" = "X$p"; then
  7003. enable_shared=yes
  7004. fi
  7005. done
  7006. IFS="$lt_save_ifs"
  7007. ;;
  7008. esac
  7009. else
  7010. enable_shared=yes
  7011. fi
  7012. # Check whether --enable-fast-install was given.
  7013. if test "${enable_fast_install+set}" = set; then :
  7014. enableval=$enable_fast_install; p=${PACKAGE-default}
  7015. case $enableval in
  7016. yes) enable_fast_install=yes ;;
  7017. no) enable_fast_install=no ;;
  7018. *)
  7019. enable_fast_install=no
  7020. # Look at the argument we got. We use all the common list separators.
  7021. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7022. for pkg in $enableval; do
  7023. IFS="$lt_save_ifs"
  7024. if test "X$pkg" = "X$p"; then
  7025. enable_fast_install=yes
  7026. fi
  7027. done
  7028. IFS="$lt_save_ifs"
  7029. ;;
  7030. esac
  7031. else
  7032. enable_fast_install=yes
  7033. fi
  7034. # This can be used to rebuild libtool when needed
  7035. LIBTOOL_DEPS="$ltmain"
  7036. # Always use our own libtool.
  7037. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7038. test -z "$LN_S" && LN_S="ln -s"
  7039. if test -n "${ZSH_VERSION+set}" ; then
  7040. setopt NO_GLOB_SUBST
  7041. fi
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7043. $as_echo_n "checking for objdir... " >&6; }
  7044. if ${lt_cv_objdir+:} false; then :
  7045. $as_echo_n "(cached) " >&6
  7046. else
  7047. rm -f .libs 2>/dev/null
  7048. mkdir .libs 2>/dev/null
  7049. if test -d .libs; then
  7050. lt_cv_objdir=.libs
  7051. else
  7052. # MS-DOS does not allow filenames that begin with a dot.
  7053. lt_cv_objdir=_libs
  7054. fi
  7055. rmdir .libs 2>/dev/null
  7056. fi
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7058. $as_echo "$lt_cv_objdir" >&6; }
  7059. objdir=$lt_cv_objdir
  7060. cat >>confdefs.h <<_ACEOF
  7061. #define LT_OBJDIR "$lt_cv_objdir/"
  7062. _ACEOF
  7063. case $host_os in
  7064. aix3*)
  7065. # AIX sometimes has problems with the GCC collect2 program. For some
  7066. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7067. # vanish in a puff of smoke.
  7068. if test "X${COLLECT_NAMES+set}" != Xset; then
  7069. COLLECT_NAMES=
  7070. export COLLECT_NAMES
  7071. fi
  7072. ;;
  7073. esac
  7074. # Sed substitution that helps us do robust quoting. It backslashifies
  7075. # metacharacters that are still active within double-quoted strings.
  7076. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7077. # Same as above, but do not quote variable references.
  7078. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7079. # Sed substitution to delay expansion of an escaped shell variable in a
  7080. # double_quote_subst'ed string.
  7081. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7082. # Sed substitution to delay expansion of an escaped single quote.
  7083. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7084. # Sed substitution to avoid accidental globbing in evaled expressions
  7085. no_glob_subst='s/\*/\\\*/g'
  7086. # Global variables:
  7087. ofile=libtool
  7088. can_build_shared=yes
  7089. # All known linkers require a `.a' archive for static linking (except MSVC,
  7090. # which needs '.lib').
  7091. libext=a
  7092. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7093. old_CC="$CC"
  7094. old_CFLAGS="$CFLAGS"
  7095. # Set sane defaults for various variables
  7096. test -z "$CC" && CC=cc
  7097. test -z "$LTCC" && LTCC=$CC
  7098. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7099. test -z "$LD" && LD=ld
  7100. test -z "$ac_objext" && ac_objext=o
  7101. for cc_temp in $compiler""; do
  7102. case $cc_temp in
  7103. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7104. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7105. \-*) ;;
  7106. *) break;;
  7107. esac
  7108. done
  7109. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7110. # Only perform the check for file, if the check method requires it
  7111. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7112. case $deplibs_check_method in
  7113. file_magic*)
  7114. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7116. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7117. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7118. $as_echo_n "(cached) " >&6
  7119. else
  7120. case $MAGIC_CMD in
  7121. [\\/*] | ?:[\\/]*)
  7122. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7123. ;;
  7124. *)
  7125. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7126. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7127. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7128. for ac_dir in $ac_dummy; do
  7129. IFS="$lt_save_ifs"
  7130. test -z "$ac_dir" && ac_dir=.
  7131. if test -f $ac_dir/${ac_tool_prefix}file; then
  7132. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7133. if test -n "$file_magic_test_file"; then
  7134. case $deplibs_check_method in
  7135. "file_magic "*)
  7136. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7137. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7138. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7139. $EGREP "$file_magic_regex" > /dev/null; then
  7140. :
  7141. else
  7142. cat <<_LT_EOF 1>&2
  7143. *** Warning: the command libtool uses to detect shared libraries,
  7144. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7145. *** The result is that libtool may fail to recognize shared libraries
  7146. *** as such. This will affect the creation of libtool libraries that
  7147. *** depend on shared libraries, but programs linked with such libtool
  7148. *** libraries will work regardless of this problem. Nevertheless, you
  7149. *** may want to report the problem to your system manager and/or to
  7150. *** bug-libtool@gnu.org
  7151. _LT_EOF
  7152. fi ;;
  7153. esac
  7154. fi
  7155. break
  7156. fi
  7157. done
  7158. IFS="$lt_save_ifs"
  7159. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7160. ;;
  7161. esac
  7162. fi
  7163. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7164. if test -n "$MAGIC_CMD"; then
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7166. $as_echo "$MAGIC_CMD" >&6; }
  7167. else
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7169. $as_echo "no" >&6; }
  7170. fi
  7171. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7172. if test -n "$ac_tool_prefix"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7174. $as_echo_n "checking for file... " >&6; }
  7175. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7176. $as_echo_n "(cached) " >&6
  7177. else
  7178. case $MAGIC_CMD in
  7179. [\\/*] | ?:[\\/]*)
  7180. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7181. ;;
  7182. *)
  7183. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7184. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7185. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7186. for ac_dir in $ac_dummy; do
  7187. IFS="$lt_save_ifs"
  7188. test -z "$ac_dir" && ac_dir=.
  7189. if test -f $ac_dir/file; then
  7190. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7191. if test -n "$file_magic_test_file"; then
  7192. case $deplibs_check_method in
  7193. "file_magic "*)
  7194. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7195. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7196. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7197. $EGREP "$file_magic_regex" > /dev/null; then
  7198. :
  7199. else
  7200. cat <<_LT_EOF 1>&2
  7201. *** Warning: the command libtool uses to detect shared libraries,
  7202. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7203. *** The result is that libtool may fail to recognize shared libraries
  7204. *** as such. This will affect the creation of libtool libraries that
  7205. *** depend on shared libraries, but programs linked with such libtool
  7206. *** libraries will work regardless of this problem. Nevertheless, you
  7207. *** may want to report the problem to your system manager and/or to
  7208. *** bug-libtool@gnu.org
  7209. _LT_EOF
  7210. fi ;;
  7211. esac
  7212. fi
  7213. break
  7214. fi
  7215. done
  7216. IFS="$lt_save_ifs"
  7217. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7218. ;;
  7219. esac
  7220. fi
  7221. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7222. if test -n "$MAGIC_CMD"; then
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7224. $as_echo "$MAGIC_CMD" >&6; }
  7225. else
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7227. $as_echo "no" >&6; }
  7228. fi
  7229. else
  7230. MAGIC_CMD=:
  7231. fi
  7232. fi
  7233. fi
  7234. ;;
  7235. esac
  7236. # Use C for the default configuration in the libtool script
  7237. lt_save_CC="$CC"
  7238. ac_ext=c
  7239. ac_cpp='$CPP $CPPFLAGS'
  7240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7243. # Source file extension for C test sources.
  7244. ac_ext=c
  7245. # Object file extension for compiled C test sources.
  7246. objext=o
  7247. objext=$objext
  7248. # Code to be used in simple compile tests
  7249. lt_simple_compile_test_code="int some_variable = 0;"
  7250. # Code to be used in simple link tests
  7251. lt_simple_link_test_code='int main(){return(0);}'
  7252. # If no C compiler was specified, use CC.
  7253. LTCC=${LTCC-"$CC"}
  7254. # If no C compiler flags were specified, use CFLAGS.
  7255. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7256. # Allow CC to be a program name with arguments.
  7257. compiler=$CC
  7258. # Save the default compiler, since it gets overwritten when the other
  7259. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7260. compiler_DEFAULT=$CC
  7261. # save warnings/boilerplate of simple test code
  7262. ac_outfile=conftest.$ac_objext
  7263. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7264. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7265. _lt_compiler_boilerplate=`cat conftest.err`
  7266. $RM conftest*
  7267. ac_outfile=conftest.$ac_objext
  7268. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7269. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7270. _lt_linker_boilerplate=`cat conftest.err`
  7271. $RM -r conftest*
  7272. ## CAVEAT EMPTOR:
  7273. ## There is no encapsulation within the following macros, do not change
  7274. ## the running order or otherwise move them around unless you know exactly
  7275. ## what you are doing...
  7276. if test -n "$compiler"; then
  7277. lt_prog_compiler_no_builtin_flag=
  7278. if test "$GCC" = yes; then
  7279. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7281. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7282. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7283. $as_echo_n "(cached) " >&6
  7284. else
  7285. lt_cv_prog_compiler_rtti_exceptions=no
  7286. ac_outfile=conftest.$ac_objext
  7287. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7288. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7289. # Insert the option either (1) after the last *FLAGS variable, or
  7290. # (2) before a word containing "conftest.", or (3) at the end.
  7291. # Note that $ac_compile itself does not contain backslashes and begins
  7292. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7293. # The option is referenced via a variable to avoid confusing sed.
  7294. lt_compile=`echo "$ac_compile" | $SED \
  7295. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7296. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7297. -e 's:$: $lt_compiler_flag:'`
  7298. (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
  7299. (eval "$lt_compile" 2>conftest.err)
  7300. ac_status=$?
  7301. cat conftest.err >&5
  7302. echo "$as_me:8363: \$? = $ac_status" >&5
  7303. if (exit $ac_status) && test -s "$ac_outfile"; then
  7304. # The compiler can only warn and ignore the option if not recognized
  7305. # So say no if there are warnings other than the usual output.
  7306. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7307. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7308. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7309. lt_cv_prog_compiler_rtti_exceptions=yes
  7310. fi
  7311. fi
  7312. $RM conftest*
  7313. fi
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7315. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7316. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7317. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7318. else
  7319. :
  7320. fi
  7321. fi
  7322. lt_prog_compiler_wl=
  7323. lt_prog_compiler_pic=
  7324. lt_prog_compiler_static=
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7326. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7327. if test "$GCC" = yes; then
  7328. lt_prog_compiler_wl='-Wl,'
  7329. lt_prog_compiler_static='-static'
  7330. case $host_os in
  7331. aix*)
  7332. # All AIX code is PIC.
  7333. if test "$host_cpu" = ia64; then
  7334. # AIX 5 now supports IA64 processor
  7335. lt_prog_compiler_static='-Bstatic'
  7336. fi
  7337. ;;
  7338. amigaos*)
  7339. case $host_cpu in
  7340. powerpc)
  7341. # see comment about AmigaOS4 .so support
  7342. lt_prog_compiler_pic='-fPIC'
  7343. ;;
  7344. m68k)
  7345. # FIXME: we need at least 68020 code to build shared libraries, but
  7346. # adding the `-m68020' flag to GCC prevents building anything better,
  7347. # like `-m68040'.
  7348. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7349. ;;
  7350. esac
  7351. ;;
  7352. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7353. # PIC is the default for these OSes.
  7354. ;;
  7355. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7356. # This hack is so that the source file can tell whether it is being
  7357. # built for inclusion in a dll (and should export symbols for example).
  7358. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7359. # (--disable-auto-import) libraries
  7360. lt_prog_compiler_pic='-DDLL_EXPORT'
  7361. ;;
  7362. darwin* | rhapsody*)
  7363. # PIC is the default on this platform
  7364. # Common symbols not allowed in MH_DYLIB files
  7365. lt_prog_compiler_pic='-fno-common'
  7366. ;;
  7367. hpux*)
  7368. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7369. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7370. # sets the default TLS model and affects inlining.
  7371. case $host_cpu in
  7372. hppa*64*)
  7373. # +Z the default
  7374. ;;
  7375. *)
  7376. lt_prog_compiler_pic='-fPIC'
  7377. ;;
  7378. esac
  7379. ;;
  7380. interix[3-9]*)
  7381. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7382. # Instead, we relocate shared libraries at runtime.
  7383. ;;
  7384. msdosdjgpp*)
  7385. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7386. # on systems that don't support them.
  7387. lt_prog_compiler_can_build_shared=no
  7388. enable_shared=no
  7389. ;;
  7390. *nto* | *qnx*)
  7391. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7392. # it will coredump.
  7393. lt_prog_compiler_pic='-fPIC -shared'
  7394. ;;
  7395. sysv4*MP*)
  7396. if test -d /usr/nec; then
  7397. lt_prog_compiler_pic=-Kconform_pic
  7398. fi
  7399. ;;
  7400. *)
  7401. lt_prog_compiler_pic='-fPIC'
  7402. ;;
  7403. esac
  7404. else
  7405. # PORTME Check for flag to pass linker flags through the system compiler.
  7406. case $host_os in
  7407. aix*)
  7408. lt_prog_compiler_wl='-Wl,'
  7409. if test "$host_cpu" = ia64; then
  7410. # AIX 5 now supports IA64 processor
  7411. lt_prog_compiler_static='-Bstatic'
  7412. else
  7413. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7414. fi
  7415. ;;
  7416. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7417. # This hack is so that the source file can tell whether it is being
  7418. # built for inclusion in a dll (and should export symbols for example).
  7419. lt_prog_compiler_pic='-DDLL_EXPORT'
  7420. ;;
  7421. hpux9* | hpux10* | hpux11*)
  7422. lt_prog_compiler_wl='-Wl,'
  7423. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7424. # not for PA HP-UX.
  7425. case $host_cpu in
  7426. hppa*64*|ia64*)
  7427. # +Z the default
  7428. ;;
  7429. *)
  7430. lt_prog_compiler_pic='+Z'
  7431. ;;
  7432. esac
  7433. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7434. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7435. ;;
  7436. irix5* | irix6* | nonstopux*)
  7437. lt_prog_compiler_wl='-Wl,'
  7438. # PIC (with -KPIC) is the default.
  7439. lt_prog_compiler_static='-non_shared'
  7440. ;;
  7441. linux* | k*bsd*-gnu)
  7442. case $cc_basename in
  7443. # old Intel for x86_64 which still supported -KPIC.
  7444. ecc*)
  7445. lt_prog_compiler_wl='-Wl,'
  7446. lt_prog_compiler_pic='-KPIC'
  7447. lt_prog_compiler_static='-static'
  7448. ;;
  7449. # icc used to be incompatible with GCC.
  7450. # ICC 10 doesn't accept -KPIC any more.
  7451. icc* | ifort*)
  7452. lt_prog_compiler_wl='-Wl,'
  7453. lt_prog_compiler_pic='-fPIC'
  7454. lt_prog_compiler_static='-static'
  7455. ;;
  7456. # Lahey Fortran 8.1.
  7457. lf95*)
  7458. lt_prog_compiler_wl='-Wl,'
  7459. lt_prog_compiler_pic='--shared'
  7460. lt_prog_compiler_static='--static'
  7461. ;;
  7462. pgcc* | pgf77* | pgf90* | pgf95*)
  7463. # Portland Group compilers (*not* the Pentium gcc compiler,
  7464. # which looks to be a dead project)
  7465. lt_prog_compiler_wl='-Wl,'
  7466. lt_prog_compiler_pic='-fpic'
  7467. lt_prog_compiler_static='-Bstatic'
  7468. ;;
  7469. ccc*)
  7470. lt_prog_compiler_wl='-Wl,'
  7471. # All Alpha code is PIC.
  7472. lt_prog_compiler_static='-non_shared'
  7473. ;;
  7474. xl*)
  7475. # IBM XL C 8.0/Fortran 10.1 on PPC
  7476. lt_prog_compiler_wl='-Wl,'
  7477. lt_prog_compiler_pic='-qpic'
  7478. lt_prog_compiler_static='-qstaticlink'
  7479. ;;
  7480. *)
  7481. case `$CC -V 2>&1 | sed 5q` in
  7482. *Sun\ C*)
  7483. # Sun C 5.9
  7484. lt_prog_compiler_pic='-KPIC'
  7485. lt_prog_compiler_static='-Bstatic'
  7486. lt_prog_compiler_wl='-Wl,'
  7487. ;;
  7488. *Sun\ F*)
  7489. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7490. lt_prog_compiler_pic='-KPIC'
  7491. lt_prog_compiler_static='-Bstatic'
  7492. lt_prog_compiler_wl=''
  7493. ;;
  7494. esac
  7495. ;;
  7496. esac
  7497. ;;
  7498. newsos6)
  7499. lt_prog_compiler_pic='-KPIC'
  7500. lt_prog_compiler_static='-Bstatic'
  7501. ;;
  7502. *nto* | *qnx*)
  7503. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7504. # it will coredump.
  7505. lt_prog_compiler_pic='-fPIC -shared'
  7506. ;;
  7507. osf3* | osf4* | osf5*)
  7508. lt_prog_compiler_wl='-Wl,'
  7509. # All OSF/1 code is PIC.
  7510. lt_prog_compiler_static='-non_shared'
  7511. ;;
  7512. rdos*)
  7513. lt_prog_compiler_static='-non_shared'
  7514. ;;
  7515. solaris*)
  7516. lt_prog_compiler_pic='-KPIC'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. case $cc_basename in
  7519. f77* | f90* | f95*)
  7520. lt_prog_compiler_wl='-Qoption ld ';;
  7521. *)
  7522. lt_prog_compiler_wl='-Wl,';;
  7523. esac
  7524. ;;
  7525. sunos4*)
  7526. lt_prog_compiler_wl='-Qoption ld '
  7527. lt_prog_compiler_pic='-PIC'
  7528. lt_prog_compiler_static='-Bstatic'
  7529. ;;
  7530. sysv4 | sysv4.2uw2* | sysv4.3*)
  7531. lt_prog_compiler_wl='-Wl,'
  7532. lt_prog_compiler_pic='-KPIC'
  7533. lt_prog_compiler_static='-Bstatic'
  7534. ;;
  7535. sysv4*MP*)
  7536. if test -d /usr/nec ;then
  7537. lt_prog_compiler_pic='-Kconform_pic'
  7538. lt_prog_compiler_static='-Bstatic'
  7539. fi
  7540. ;;
  7541. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7542. lt_prog_compiler_wl='-Wl,'
  7543. lt_prog_compiler_pic='-KPIC'
  7544. lt_prog_compiler_static='-Bstatic'
  7545. ;;
  7546. unicos*)
  7547. lt_prog_compiler_wl='-Wl,'
  7548. lt_prog_compiler_can_build_shared=no
  7549. ;;
  7550. uts4*)
  7551. lt_prog_compiler_pic='-pic'
  7552. lt_prog_compiler_static='-Bstatic'
  7553. ;;
  7554. *)
  7555. lt_prog_compiler_can_build_shared=no
  7556. ;;
  7557. esac
  7558. fi
  7559. case $host_os in
  7560. # For platforms which do not support PIC, -DPIC is meaningless:
  7561. *djgpp*)
  7562. lt_prog_compiler_pic=
  7563. ;;
  7564. *)
  7565. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7566. ;;
  7567. esac
  7568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7569. $as_echo "$lt_prog_compiler_pic" >&6; }
  7570. #
  7571. # Check to make sure the PIC flag actually works.
  7572. #
  7573. if test -n "$lt_prog_compiler_pic"; then
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7575. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7576. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7577. $as_echo_n "(cached) " >&6
  7578. else
  7579. lt_cv_prog_compiler_pic_works=no
  7580. ac_outfile=conftest.$ac_objext
  7581. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7582. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7583. # Insert the option either (1) after the last *FLAGS variable, or
  7584. # (2) before a word containing "conftest.", or (3) at the end.
  7585. # Note that $ac_compile itself does not contain backslashes and begins
  7586. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7587. # The option is referenced via a variable to avoid confusing sed.
  7588. lt_compile=`echo "$ac_compile" | $SED \
  7589. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7590. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7591. -e 's:$: $lt_compiler_flag:'`
  7592. (eval echo "\"\$as_me:8698: $lt_compile\"" >&5)
  7593. (eval "$lt_compile" 2>conftest.err)
  7594. ac_status=$?
  7595. cat conftest.err >&5
  7596. echo "$as_me:8702: \$? = $ac_status" >&5
  7597. if (exit $ac_status) && test -s "$ac_outfile"; then
  7598. # The compiler can only warn and ignore the option if not recognized
  7599. # So say no if there are warnings other than the usual output.
  7600. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7601. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7602. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7603. lt_cv_prog_compiler_pic_works=yes
  7604. fi
  7605. fi
  7606. $RM conftest*
  7607. fi
  7608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7609. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7610. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7611. case $lt_prog_compiler_pic in
  7612. "" | " "*) ;;
  7613. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7614. esac
  7615. else
  7616. lt_prog_compiler_pic=
  7617. lt_prog_compiler_can_build_shared=no
  7618. fi
  7619. fi
  7620. #
  7621. # Check to make sure the static flag actually works.
  7622. #
  7623. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7625. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7626. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7627. $as_echo_n "(cached) " >&6
  7628. else
  7629. lt_cv_prog_compiler_static_works=no
  7630. save_LDFLAGS="$LDFLAGS"
  7631. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7632. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7633. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7634. # The linker can only warn and ignore the option if not recognized
  7635. # So say no if there are warnings
  7636. if test -s conftest.err; then
  7637. # Append any errors to the config.log.
  7638. cat conftest.err 1>&5
  7639. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7640. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7641. if diff conftest.exp conftest.er2 >/dev/null; then
  7642. lt_cv_prog_compiler_static_works=yes
  7643. fi
  7644. else
  7645. lt_cv_prog_compiler_static_works=yes
  7646. fi
  7647. fi
  7648. $RM -r conftest*
  7649. LDFLAGS="$save_LDFLAGS"
  7650. fi
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7652. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7653. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7654. :
  7655. else
  7656. lt_prog_compiler_static=
  7657. fi
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7659. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7660. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7661. $as_echo_n "(cached) " >&6
  7662. else
  7663. lt_cv_prog_compiler_c_o=no
  7664. $RM -r conftest 2>/dev/null
  7665. mkdir conftest
  7666. cd conftest
  7667. mkdir out
  7668. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7669. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7670. # Insert the option either (1) after the last *FLAGS variable, or
  7671. # (2) before a word containing "conftest.", or (3) at the end.
  7672. # Note that $ac_compile itself does not contain backslashes and begins
  7673. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7674. lt_compile=`echo "$ac_compile" | $SED \
  7675. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7676. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7677. -e 's:$: $lt_compiler_flag:'`
  7678. (eval echo "\"\$as_me:8803: $lt_compile\"" >&5)
  7679. (eval "$lt_compile" 2>out/conftest.err)
  7680. ac_status=$?
  7681. cat out/conftest.err >&5
  7682. echo "$as_me:8807: \$? = $ac_status" >&5
  7683. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7684. then
  7685. # The compiler can only warn and ignore the option if not recognized
  7686. # So say no if there are warnings
  7687. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7688. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7689. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7690. lt_cv_prog_compiler_c_o=yes
  7691. fi
  7692. fi
  7693. chmod u+w . 2>&5
  7694. $RM conftest*
  7695. # SGI C++ compiler will create directory out/ii_files/ for
  7696. # template instantiation
  7697. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7698. $RM out/* && rmdir out
  7699. cd ..
  7700. $RM -r conftest
  7701. $RM conftest*
  7702. fi
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7704. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7706. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7707. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7708. $as_echo_n "(cached) " >&6
  7709. else
  7710. lt_cv_prog_compiler_c_o=no
  7711. $RM -r conftest 2>/dev/null
  7712. mkdir conftest
  7713. cd conftest
  7714. mkdir out
  7715. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7716. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7717. # Insert the option either (1) after the last *FLAGS variable, or
  7718. # (2) before a word containing "conftest.", or (3) at the end.
  7719. # Note that $ac_compile itself does not contain backslashes and begins
  7720. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7721. lt_compile=`echo "$ac_compile" | $SED \
  7722. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7723. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7724. -e 's:$: $lt_compiler_flag:'`
  7725. (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
  7726. (eval "$lt_compile" 2>out/conftest.err)
  7727. ac_status=$?
  7728. cat out/conftest.err >&5
  7729. echo "$as_me:8862: \$? = $ac_status" >&5
  7730. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7731. then
  7732. # The compiler can only warn and ignore the option if not recognized
  7733. # So say no if there are warnings
  7734. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7735. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7736. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7737. lt_cv_prog_compiler_c_o=yes
  7738. fi
  7739. fi
  7740. chmod u+w . 2>&5
  7741. $RM conftest*
  7742. # SGI C++ compiler will create directory out/ii_files/ for
  7743. # template instantiation
  7744. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7745. $RM out/* && rmdir out
  7746. cd ..
  7747. $RM -r conftest
  7748. $RM conftest*
  7749. fi
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7751. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7752. hard_links="nottested"
  7753. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7754. # do not overwrite the value of need_locks provided by the user
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7756. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7757. hard_links=yes
  7758. $RM conftest*
  7759. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7760. touch conftest.a
  7761. ln conftest.a conftest.b 2>&5 || hard_links=no
  7762. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7764. $as_echo "$hard_links" >&6; }
  7765. if test "$hard_links" = no; then
  7766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7767. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7768. need_locks=warn
  7769. fi
  7770. else
  7771. need_locks=no
  7772. fi
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7774. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7775. runpath_var=
  7776. allow_undefined_flag=
  7777. always_export_symbols=no
  7778. archive_cmds=
  7779. archive_expsym_cmds=
  7780. compiler_needs_object=no
  7781. enable_shared_with_static_runtimes=no
  7782. export_dynamic_flag_spec=
  7783. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7784. hardcode_automatic=no
  7785. hardcode_direct=no
  7786. hardcode_direct_absolute=no
  7787. hardcode_libdir_flag_spec=
  7788. hardcode_libdir_flag_spec_ld=
  7789. hardcode_libdir_separator=
  7790. hardcode_minus_L=no
  7791. hardcode_shlibpath_var=unsupported
  7792. inherit_rpath=no
  7793. link_all_deplibs=unknown
  7794. module_cmds=
  7795. module_expsym_cmds=
  7796. old_archive_from_new_cmds=
  7797. old_archive_from_expsyms_cmds=
  7798. thread_safe_flag_spec=
  7799. whole_archive_flag_spec=
  7800. # include_expsyms should be a list of space-separated symbols to be *always*
  7801. # included in the symbol list
  7802. include_expsyms=
  7803. # exclude_expsyms can be an extended regexp of symbols to exclude
  7804. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7805. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7806. # as well as any symbol that contains `d'.
  7807. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7808. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7809. # platforms (ab)use it in PIC code, but their linkers get confused if
  7810. # the symbol is explicitly referenced. Since portable code cannot
  7811. # rely on this symbol name, it's probably fine to never include it in
  7812. # preloaded symbol tables.
  7813. # Exclude shared library initialization/finalization symbols.
  7814. extract_expsyms_cmds=
  7815. case $host_os in
  7816. cygwin* | mingw* | pw32* | cegcc*)
  7817. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7818. # When not using gcc, we currently assume that we are using
  7819. # Microsoft Visual C++.
  7820. if test "$GCC" != yes; then
  7821. with_gnu_ld=no
  7822. fi
  7823. ;;
  7824. interix*)
  7825. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7826. with_gnu_ld=yes
  7827. ;;
  7828. openbsd*)
  7829. with_gnu_ld=no
  7830. ;;
  7831. esac
  7832. ld_shlibs=yes
  7833. if test "$with_gnu_ld" = yes; then
  7834. # If archive_cmds runs LD, not CC, wlarc should be empty
  7835. wlarc='${wl}'
  7836. # Set some defaults for GNU ld with shared library support. These
  7837. # are reset later if shared libraries are not supported. Putting them
  7838. # here allows them to be overridden if necessary.
  7839. runpath_var=LD_RUN_PATH
  7840. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7841. export_dynamic_flag_spec='${wl}--export-dynamic'
  7842. # ancient GNU ld didn't support --whole-archive et. al.
  7843. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7844. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7845. else
  7846. whole_archive_flag_spec=
  7847. fi
  7848. supports_anon_versioning=no
  7849. case `$LD -v 2>&1` in
  7850. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7851. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7852. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7853. *\ 2.11.*) ;; # other 2.11 versions
  7854. *) supports_anon_versioning=yes ;;
  7855. esac
  7856. # See if GNU ld supports shared libraries.
  7857. case $host_os in
  7858. aix[3-9]*)
  7859. # On AIX/PPC, the GNU linker is very broken
  7860. if test "$host_cpu" != ia64; then
  7861. ld_shlibs=no
  7862. cat <<_LT_EOF 1>&2
  7863. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7864. *** to be unable to reliably create shared libraries on AIX.
  7865. *** Therefore, libtool is disabling shared libraries support. If you
  7866. *** really care for shared libraries, you may want to modify your PATH
  7867. *** so that a non-GNU linker is found, and then restart.
  7868. _LT_EOF
  7869. fi
  7870. ;;
  7871. amigaos*)
  7872. case $host_cpu in
  7873. powerpc)
  7874. # see comment about AmigaOS4 .so support
  7875. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7876. archive_expsym_cmds=''
  7877. ;;
  7878. m68k)
  7879. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7880. hardcode_libdir_flag_spec='-L$libdir'
  7881. hardcode_minus_L=yes
  7882. ;;
  7883. esac
  7884. ;;
  7885. beos*)
  7886. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7887. allow_undefined_flag=unsupported
  7888. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7889. # support --undefined. This deserves some investigation. FIXME
  7890. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7891. else
  7892. ld_shlibs=no
  7893. fi
  7894. ;;
  7895. cygwin* | mingw* | pw32* | cegcc*)
  7896. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7897. # as there is no search path for DLLs.
  7898. hardcode_libdir_flag_spec='-L$libdir'
  7899. allow_undefined_flag=unsupported
  7900. always_export_symbols=no
  7901. enable_shared_with_static_runtimes=yes
  7902. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7903. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7904. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7905. # If the export-symbols file already is a .def file (1st line
  7906. # is EXPORTS), use it as is; otherwise, prepend...
  7907. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7908. cp $export_symbols $output_objdir/$soname.def;
  7909. else
  7910. echo EXPORTS > $output_objdir/$soname.def;
  7911. cat $export_symbols >> $output_objdir/$soname.def;
  7912. fi~
  7913. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7914. else
  7915. ld_shlibs=no
  7916. fi
  7917. ;;
  7918. interix[3-9]*)
  7919. hardcode_direct=no
  7920. hardcode_shlibpath_var=no
  7921. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7922. export_dynamic_flag_spec='${wl}-E'
  7923. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7924. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7925. # default) and relocated if they conflict, which is a slow very memory
  7926. # consuming and fragmenting process. To avoid this, we pick a random,
  7927. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7928. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7929. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7930. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7931. ;;
  7932. gnu* | linux* | tpf* | k*bsd*-gnu)
  7933. tmp_diet=no
  7934. if test "$host_os" = linux-dietlibc; then
  7935. case $cc_basename in
  7936. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7937. esac
  7938. fi
  7939. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7940. && test "$tmp_diet" = no
  7941. then
  7942. tmp_addflag=
  7943. tmp_sharedflag='-shared'
  7944. case $cc_basename,$host_cpu in
  7945. pgcc*) # Portland Group C compiler
  7946. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7947. tmp_addflag=' $pic_flag'
  7948. ;;
  7949. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7950. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7951. tmp_addflag=' $pic_flag -Mnomain' ;;
  7952. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7953. tmp_addflag=' -i_dynamic' ;;
  7954. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7955. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7956. ifc* | ifort*) # Intel Fortran compiler
  7957. tmp_addflag=' -nofor_main' ;;
  7958. lf95*) # Lahey Fortran 8.1
  7959. whole_archive_flag_spec=
  7960. tmp_sharedflag='--shared' ;;
  7961. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7962. tmp_sharedflag='-qmkshrobj'
  7963. tmp_addflag= ;;
  7964. esac
  7965. case `$CC -V 2>&1 | sed 5q` in
  7966. *Sun\ C*) # Sun C 5.9
  7967. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7968. compiler_needs_object=yes
  7969. tmp_sharedflag='-G' ;;
  7970. *Sun\ F*) # Sun Fortran 8.3
  7971. tmp_sharedflag='-G' ;;
  7972. esac
  7973. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7974. if test "x$supports_anon_versioning" = xyes; then
  7975. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7976. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7977. echo "local: *; };" >> $output_objdir/$libname.ver~
  7978. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7979. fi
  7980. case $cc_basename in
  7981. xlf*)
  7982. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7983. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7984. hardcode_libdir_flag_spec=
  7985. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7986. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7987. if test "x$supports_anon_versioning" = xyes; then
  7988. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7989. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7990. echo "local: *; };" >> $output_objdir/$libname.ver~
  7991. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7992. fi
  7993. ;;
  7994. esac
  7995. else
  7996. ld_shlibs=no
  7997. fi
  7998. ;;
  7999. netbsd*)
  8000. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8001. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8002. wlarc=
  8003. else
  8004. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8005. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8006. fi
  8007. ;;
  8008. solaris*)
  8009. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8010. ld_shlibs=no
  8011. cat <<_LT_EOF 1>&2
  8012. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8013. *** create shared libraries on Solaris systems. Therefore, libtool
  8014. *** is disabling shared libraries support. We urge you to upgrade GNU
  8015. *** binutils to release 2.9.1 or newer. Another option is to modify
  8016. *** your PATH or compiler configuration so that the native linker is
  8017. *** used, and then restart.
  8018. _LT_EOF
  8019. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8020. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8021. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8022. else
  8023. ld_shlibs=no
  8024. fi
  8025. ;;
  8026. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8027. case `$LD -v 2>&1` in
  8028. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8029. ld_shlibs=no
  8030. cat <<_LT_EOF 1>&2
  8031. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8032. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8033. *** is disabling shared libraries support. We urge you to upgrade GNU
  8034. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8035. *** your PATH or compiler configuration so that the native linker is
  8036. *** used, and then restart.
  8037. _LT_EOF
  8038. ;;
  8039. *)
  8040. # For security reasons, it is highly recommended that you always
  8041. # use absolute paths for naming shared libraries, and exclude the
  8042. # DT_RUNPATH tag from executables and libraries. But doing so
  8043. # requires that you compile everything twice, which is a pain.
  8044. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8045. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8046. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8047. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8048. else
  8049. ld_shlibs=no
  8050. fi
  8051. ;;
  8052. esac
  8053. ;;
  8054. sunos4*)
  8055. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8056. wlarc=
  8057. hardcode_direct=yes
  8058. hardcode_shlibpath_var=no
  8059. ;;
  8060. *)
  8061. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8062. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8063. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8064. else
  8065. ld_shlibs=no
  8066. fi
  8067. ;;
  8068. esac
  8069. if test "$ld_shlibs" = no; then
  8070. runpath_var=
  8071. hardcode_libdir_flag_spec=
  8072. export_dynamic_flag_spec=
  8073. whole_archive_flag_spec=
  8074. fi
  8075. else
  8076. # PORTME fill in a description of your system's linker (not GNU ld)
  8077. case $host_os in
  8078. aix3*)
  8079. allow_undefined_flag=unsupported
  8080. always_export_symbols=yes
  8081. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8082. # Note: this linker hardcodes the directories in LIBPATH if there
  8083. # are no directories specified by -L.
  8084. hardcode_minus_L=yes
  8085. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8086. # Neither direct hardcoding nor static linking is supported with a
  8087. # broken collect2.
  8088. hardcode_direct=unsupported
  8089. fi
  8090. ;;
  8091. aix[4-9]*)
  8092. if test "$host_cpu" = ia64; then
  8093. # On IA64, the linker does run time linking by default, so we don't
  8094. # have to do anything special.
  8095. aix_use_runtimelinking=no
  8096. exp_sym_flag='-Bexport'
  8097. no_entry_flag=""
  8098. else
  8099. # If we're using GNU nm, then we don't want the "-C" option.
  8100. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8101. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8102. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8103. else
  8104. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8105. fi
  8106. aix_use_runtimelinking=no
  8107. # Test if we are trying to use run time linking or normal
  8108. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8109. # need to do runtime linking.
  8110. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8111. for ld_flag in $LDFLAGS; do
  8112. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8113. aix_use_runtimelinking=yes
  8114. break
  8115. fi
  8116. done
  8117. ;;
  8118. esac
  8119. exp_sym_flag='-bexport'
  8120. no_entry_flag='-bnoentry'
  8121. fi
  8122. # When large executables or shared objects are built, AIX ld can
  8123. # have problems creating the table of contents. If linking a library
  8124. # or program results in "error TOC overflow" add -mminimal-toc to
  8125. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8126. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8127. archive_cmds=''
  8128. hardcode_direct=yes
  8129. hardcode_direct_absolute=yes
  8130. hardcode_libdir_separator=':'
  8131. link_all_deplibs=yes
  8132. file_list_spec='${wl}-f,'
  8133. if test "$GCC" = yes; then
  8134. case $host_os in aix4.[012]|aix4.[012].*)
  8135. # We only want to do this on AIX 4.2 and lower, the check
  8136. # below for broken collect2 doesn't work under 4.3+
  8137. collect2name=`${CC} -print-prog-name=collect2`
  8138. if test -f "$collect2name" &&
  8139. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8140. then
  8141. # We have reworked collect2
  8142. :
  8143. else
  8144. # We have old collect2
  8145. hardcode_direct=unsupported
  8146. # It fails to find uninstalled libraries when the uninstalled
  8147. # path is not listed in the libpath. Setting hardcode_minus_L
  8148. # to unsupported forces relinking
  8149. hardcode_minus_L=yes
  8150. hardcode_libdir_flag_spec='-L$libdir'
  8151. hardcode_libdir_separator=
  8152. fi
  8153. ;;
  8154. esac
  8155. shared_flag='-shared'
  8156. if test "$aix_use_runtimelinking" = yes; then
  8157. shared_flag="$shared_flag "'${wl}-G'
  8158. fi
  8159. else
  8160. # not using gcc
  8161. if test "$host_cpu" = ia64; then
  8162. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8163. # chokes on -Wl,-G. The following line is correct:
  8164. shared_flag='-G'
  8165. else
  8166. if test "$aix_use_runtimelinking" = yes; then
  8167. shared_flag='${wl}-G'
  8168. else
  8169. shared_flag='${wl}-bM:SRE'
  8170. fi
  8171. fi
  8172. fi
  8173. export_dynamic_flag_spec='${wl}-bexpall'
  8174. # It seems that -bexpall does not export symbols beginning with
  8175. # underscore (_), so it is better to generate a list of symbols to export.
  8176. always_export_symbols=yes
  8177. if test "$aix_use_runtimelinking" = yes; then
  8178. # Warning - without using the other runtime loading flags (-brtl),
  8179. # -berok will link without error, but may produce a broken library.
  8180. allow_undefined_flag='-berok'
  8181. # Determine the default libpath from the value encoded in an
  8182. # empty executable.
  8183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8184. /* end confdefs.h. */
  8185. int
  8186. main ()
  8187. {
  8188. ;
  8189. return 0;
  8190. }
  8191. _ACEOF
  8192. if ac_fn_c_try_link "$LINENO"; then :
  8193. lt_aix_libpath_sed='
  8194. /Import File Strings/,/^$/ {
  8195. /^0/ {
  8196. s/^0 *\(.*\)$/\1/
  8197. p
  8198. }
  8199. }'
  8200. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8201. # Check for a 64-bit object if we didn't find anything.
  8202. if test -z "$aix_libpath"; then
  8203. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8204. fi
  8205. fi
  8206. rm -f core conftest.err conftest.$ac_objext \
  8207. conftest$ac_exeext conftest.$ac_ext
  8208. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8209. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8210. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8211. else
  8212. if test "$host_cpu" = ia64; then
  8213. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8214. allow_undefined_flag="-z nodefs"
  8215. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8216. else
  8217. # Determine the default libpath from the value encoded in an
  8218. # empty executable.
  8219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8220. /* end confdefs.h. */
  8221. int
  8222. main ()
  8223. {
  8224. ;
  8225. return 0;
  8226. }
  8227. _ACEOF
  8228. if ac_fn_c_try_link "$LINENO"; then :
  8229. lt_aix_libpath_sed='
  8230. /Import File Strings/,/^$/ {
  8231. /^0/ {
  8232. s/^0 *\(.*\)$/\1/
  8233. p
  8234. }
  8235. }'
  8236. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8237. # Check for a 64-bit object if we didn't find anything.
  8238. if test -z "$aix_libpath"; then
  8239. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8240. fi
  8241. fi
  8242. rm -f core conftest.err conftest.$ac_objext \
  8243. conftest$ac_exeext conftest.$ac_ext
  8244. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8245. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8246. # Warning - without using the other run time loading flags,
  8247. # -berok will link without error, but may produce a broken library.
  8248. no_undefined_flag=' ${wl}-bernotok'
  8249. allow_undefined_flag=' ${wl}-berok'
  8250. # Exported symbols can be pulled into shared objects from archives
  8251. whole_archive_flag_spec='$convenience'
  8252. archive_cmds_need_lc=yes
  8253. # This is similar to how AIX traditionally builds its shared libraries.
  8254. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8255. fi
  8256. fi
  8257. ;;
  8258. amigaos*)
  8259. case $host_cpu in
  8260. powerpc)
  8261. # see comment about AmigaOS4 .so support
  8262. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8263. archive_expsym_cmds=''
  8264. ;;
  8265. m68k)
  8266. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8267. hardcode_libdir_flag_spec='-L$libdir'
  8268. hardcode_minus_L=yes
  8269. ;;
  8270. esac
  8271. ;;
  8272. bsdi[45]*)
  8273. export_dynamic_flag_spec=-rdynamic
  8274. ;;
  8275. cygwin* | mingw* | pw32* | cegcc*)
  8276. # When not using gcc, we currently assume that we are using
  8277. # Microsoft Visual C++.
  8278. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8279. # no search path for DLLs.
  8280. hardcode_libdir_flag_spec=' '
  8281. allow_undefined_flag=unsupported
  8282. # Tell ltmain to make .lib files, not .a files.
  8283. libext=lib
  8284. # Tell ltmain to make .dll files, not .so files.
  8285. shrext_cmds=".dll"
  8286. # FIXME: Setting linknames here is a bad hack.
  8287. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8288. # The linker will automatically build a .lib file if we build a DLL.
  8289. old_archive_from_new_cmds='true'
  8290. # FIXME: Should let the user specify the lib program.
  8291. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8292. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8293. enable_shared_with_static_runtimes=yes
  8294. ;;
  8295. darwin* | rhapsody*)
  8296. archive_cmds_need_lc=no
  8297. hardcode_direct=no
  8298. hardcode_automatic=yes
  8299. hardcode_shlibpath_var=unsupported
  8300. whole_archive_flag_spec=''
  8301. link_all_deplibs=yes
  8302. allow_undefined_flag="$_lt_dar_allow_undefined"
  8303. case $cc_basename in
  8304. ifort*) _lt_dar_can_shared=yes ;;
  8305. *) _lt_dar_can_shared=$GCC ;;
  8306. esac
  8307. if test "$_lt_dar_can_shared" = "yes"; then
  8308. output_verbose_link_cmd=echo
  8309. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8310. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8311. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8312. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8313. else
  8314. ld_shlibs=no
  8315. fi
  8316. ;;
  8317. dgux*)
  8318. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8319. hardcode_libdir_flag_spec='-L$libdir'
  8320. hardcode_shlibpath_var=no
  8321. ;;
  8322. freebsd1*)
  8323. ld_shlibs=no
  8324. ;;
  8325. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8326. # support. Future versions do this automatically, but an explicit c++rt0.o
  8327. # does not break anything, and helps significantly (at the cost of a little
  8328. # extra space).
  8329. freebsd2.2*)
  8330. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8331. hardcode_libdir_flag_spec='-R$libdir'
  8332. hardcode_direct=yes
  8333. hardcode_shlibpath_var=no
  8334. ;;
  8335. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8336. freebsd2*)
  8337. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8338. hardcode_direct=yes
  8339. hardcode_minus_L=yes
  8340. hardcode_shlibpath_var=no
  8341. ;;
  8342. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8343. freebsd* | dragonfly*)
  8344. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8345. hardcode_libdir_flag_spec='-R$libdir'
  8346. hardcode_direct=yes
  8347. hardcode_shlibpath_var=no
  8348. ;;
  8349. hpux9*)
  8350. if test "$GCC" = yes; then
  8351. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8352. else
  8353. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8354. fi
  8355. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8356. hardcode_libdir_separator=:
  8357. hardcode_direct=yes
  8358. # hardcode_minus_L: Not really in the search PATH,
  8359. # but as the default location of the library.
  8360. hardcode_minus_L=yes
  8361. export_dynamic_flag_spec='${wl}-E'
  8362. ;;
  8363. hpux10*)
  8364. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8365. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8366. else
  8367. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8368. fi
  8369. if test "$with_gnu_ld" = no; then
  8370. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8371. hardcode_libdir_flag_spec_ld='+b $libdir'
  8372. hardcode_libdir_separator=:
  8373. hardcode_direct=yes
  8374. hardcode_direct_absolute=yes
  8375. export_dynamic_flag_spec='${wl}-E'
  8376. # hardcode_minus_L: Not really in the search PATH,
  8377. # but as the default location of the library.
  8378. hardcode_minus_L=yes
  8379. fi
  8380. ;;
  8381. hpux11*)
  8382. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8383. case $host_cpu in
  8384. hppa*64*)
  8385. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8386. ;;
  8387. ia64*)
  8388. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8389. ;;
  8390. *)
  8391. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8392. ;;
  8393. esac
  8394. else
  8395. case $host_cpu in
  8396. hppa*64*)
  8397. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8398. ;;
  8399. ia64*)
  8400. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8401. ;;
  8402. *)
  8403. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8404. ;;
  8405. esac
  8406. fi
  8407. if test "$with_gnu_ld" = no; then
  8408. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8409. hardcode_libdir_separator=:
  8410. case $host_cpu in
  8411. hppa*64*|ia64*)
  8412. hardcode_direct=no
  8413. hardcode_shlibpath_var=no
  8414. ;;
  8415. *)
  8416. hardcode_direct=yes
  8417. hardcode_direct_absolute=yes
  8418. export_dynamic_flag_spec='${wl}-E'
  8419. # hardcode_minus_L: Not really in the search PATH,
  8420. # but as the default location of the library.
  8421. hardcode_minus_L=yes
  8422. ;;
  8423. esac
  8424. fi
  8425. ;;
  8426. irix5* | irix6* | nonstopux*)
  8427. if test "$GCC" = yes; then
  8428. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8429. # Try to use the -exported_symbol ld option, if it does not
  8430. # work, assume that -exports_file does not work either and
  8431. # implicitly export all symbols.
  8432. save_LDFLAGS="$LDFLAGS"
  8433. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8435. /* end confdefs.h. */
  8436. int foo(void) {}
  8437. _ACEOF
  8438. if ac_fn_c_try_link "$LINENO"; then :
  8439. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8440. fi
  8441. rm -f core conftest.err conftest.$ac_objext \
  8442. conftest$ac_exeext conftest.$ac_ext
  8443. LDFLAGS="$save_LDFLAGS"
  8444. else
  8445. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8446. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8447. fi
  8448. archive_cmds_need_lc='no'
  8449. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8450. hardcode_libdir_separator=:
  8451. inherit_rpath=yes
  8452. link_all_deplibs=yes
  8453. ;;
  8454. netbsd*)
  8455. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8456. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8457. else
  8458. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8459. fi
  8460. hardcode_libdir_flag_spec='-R$libdir'
  8461. hardcode_direct=yes
  8462. hardcode_shlibpath_var=no
  8463. ;;
  8464. newsos6)
  8465. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8466. hardcode_direct=yes
  8467. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8468. hardcode_libdir_separator=:
  8469. hardcode_shlibpath_var=no
  8470. ;;
  8471. *nto* | *qnx*)
  8472. ;;
  8473. openbsd*)
  8474. if test -f /usr/libexec/ld.so; then
  8475. hardcode_direct=yes
  8476. hardcode_shlibpath_var=no
  8477. hardcode_direct_absolute=yes
  8478. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8479. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8480. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8481. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8482. export_dynamic_flag_spec='${wl}-E'
  8483. else
  8484. case $host_os in
  8485. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8486. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8487. hardcode_libdir_flag_spec='-R$libdir'
  8488. ;;
  8489. *)
  8490. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8491. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8492. ;;
  8493. esac
  8494. fi
  8495. else
  8496. ld_shlibs=no
  8497. fi
  8498. ;;
  8499. os2*)
  8500. hardcode_libdir_flag_spec='-L$libdir'
  8501. hardcode_minus_L=yes
  8502. allow_undefined_flag=unsupported
  8503. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8504. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8505. ;;
  8506. osf3*)
  8507. if test "$GCC" = yes; then
  8508. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8509. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8510. else
  8511. allow_undefined_flag=' -expect_unresolved \*'
  8512. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8513. fi
  8514. archive_cmds_need_lc='no'
  8515. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8516. hardcode_libdir_separator=:
  8517. ;;
  8518. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8519. if test "$GCC" = yes; then
  8520. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8521. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8522. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8523. else
  8524. allow_undefined_flag=' -expect_unresolved \*'
  8525. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8526. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8527. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8528. # Both c and cxx compiler support -rpath directly
  8529. hardcode_libdir_flag_spec='-rpath $libdir'
  8530. fi
  8531. archive_cmds_need_lc='no'
  8532. hardcode_libdir_separator=:
  8533. ;;
  8534. solaris*)
  8535. no_undefined_flag=' -z defs'
  8536. if test "$GCC" = yes; then
  8537. wlarc='${wl}'
  8538. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8539. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8540. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8541. else
  8542. case `$CC -V 2>&1` in
  8543. *"Compilers 5.0"*)
  8544. wlarc=''
  8545. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8546. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8547. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8548. ;;
  8549. *)
  8550. wlarc='${wl}'
  8551. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8552. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8553. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8554. ;;
  8555. esac
  8556. fi
  8557. hardcode_libdir_flag_spec='-R$libdir'
  8558. hardcode_shlibpath_var=no
  8559. case $host_os in
  8560. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8561. *)
  8562. # The compiler driver will combine and reorder linker options,
  8563. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8564. # but is careful enough not to reorder.
  8565. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8566. if test "$GCC" = yes; then
  8567. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8568. else
  8569. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8570. fi
  8571. ;;
  8572. esac
  8573. link_all_deplibs=yes
  8574. ;;
  8575. sunos4*)
  8576. if test "x$host_vendor" = xsequent; then
  8577. # Use $CC to link under sequent, because it throws in some extra .o
  8578. # files that make .init and .fini sections work.
  8579. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8580. else
  8581. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8582. fi
  8583. hardcode_libdir_flag_spec='-L$libdir'
  8584. hardcode_direct=yes
  8585. hardcode_minus_L=yes
  8586. hardcode_shlibpath_var=no
  8587. ;;
  8588. sysv4)
  8589. case $host_vendor in
  8590. sni)
  8591. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8592. hardcode_direct=yes # is this really true???
  8593. ;;
  8594. siemens)
  8595. ## LD is ld it makes a PLAMLIB
  8596. ## CC just makes a GrossModule.
  8597. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8598. reload_cmds='$CC -r -o $output$reload_objs'
  8599. hardcode_direct=no
  8600. ;;
  8601. motorola)
  8602. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8603. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8604. ;;
  8605. esac
  8606. runpath_var='LD_RUN_PATH'
  8607. hardcode_shlibpath_var=no
  8608. ;;
  8609. sysv4.3*)
  8610. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8611. hardcode_shlibpath_var=no
  8612. export_dynamic_flag_spec='-Bexport'
  8613. ;;
  8614. sysv4*MP*)
  8615. if test -d /usr/nec; then
  8616. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8617. hardcode_shlibpath_var=no
  8618. runpath_var=LD_RUN_PATH
  8619. hardcode_runpath_var=yes
  8620. ld_shlibs=yes
  8621. fi
  8622. ;;
  8623. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8624. no_undefined_flag='${wl}-z,text'
  8625. archive_cmds_need_lc=no
  8626. hardcode_shlibpath_var=no
  8627. runpath_var='LD_RUN_PATH'
  8628. if test "$GCC" = yes; then
  8629. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8630. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8631. else
  8632. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8633. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8634. fi
  8635. ;;
  8636. sysv5* | sco3.2v5* | sco5v6*)
  8637. # Note: We can NOT use -z defs as we might desire, because we do not
  8638. # link with -lc, and that would cause any symbols used from libc to
  8639. # always be unresolved, which means just about no library would
  8640. # ever link correctly. If we're not using GNU ld we use -z text
  8641. # though, which does catch some bad symbols but isn't as heavy-handed
  8642. # as -z defs.
  8643. no_undefined_flag='${wl}-z,text'
  8644. allow_undefined_flag='${wl}-z,nodefs'
  8645. archive_cmds_need_lc=no
  8646. hardcode_shlibpath_var=no
  8647. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8648. hardcode_libdir_separator=':'
  8649. link_all_deplibs=yes
  8650. export_dynamic_flag_spec='${wl}-Bexport'
  8651. runpath_var='LD_RUN_PATH'
  8652. if test "$GCC" = yes; then
  8653. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8654. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8655. else
  8656. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8657. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8658. fi
  8659. ;;
  8660. uts4*)
  8661. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8662. hardcode_libdir_flag_spec='-L$libdir'
  8663. hardcode_shlibpath_var=no
  8664. ;;
  8665. *)
  8666. ld_shlibs=no
  8667. ;;
  8668. esac
  8669. if test x$host_vendor = xsni; then
  8670. case $host in
  8671. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8672. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8673. ;;
  8674. esac
  8675. fi
  8676. fi
  8677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8678. $as_echo "$ld_shlibs" >&6; }
  8679. test "$ld_shlibs" = no && can_build_shared=no
  8680. with_gnu_ld=$with_gnu_ld
  8681. #
  8682. # Do we need to explicitly link libc?
  8683. #
  8684. case "x$archive_cmds_need_lc" in
  8685. x|xyes)
  8686. # Assume -lc should be added
  8687. archive_cmds_need_lc=yes
  8688. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8689. case $archive_cmds in
  8690. *'~'*)
  8691. # FIXME: we may have to deal with multi-command sequences.
  8692. ;;
  8693. '$CC '*)
  8694. # Test whether the compiler implicitly links with -lc since on some
  8695. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8696. # to ld, don't add -lc before -lgcc.
  8697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8698. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8699. $RM conftest*
  8700. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8701. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8702. (eval $ac_compile) 2>&5
  8703. ac_status=$?
  8704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8705. test $ac_status = 0; } 2>conftest.err; then
  8706. soname=conftest
  8707. lib=conftest
  8708. libobjs=conftest.$ac_objext
  8709. deplibs=
  8710. wl=$lt_prog_compiler_wl
  8711. pic_flag=$lt_prog_compiler_pic
  8712. compiler_flags=-v
  8713. linker_flags=-v
  8714. verstring=
  8715. output_objdir=.
  8716. libname=conftest
  8717. lt_save_allow_undefined_flag=$allow_undefined_flag
  8718. allow_undefined_flag=
  8719. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8720. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8721. ac_status=$?
  8722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8723. test $ac_status = 0; }
  8724. then
  8725. archive_cmds_need_lc=no
  8726. else
  8727. archive_cmds_need_lc=yes
  8728. fi
  8729. allow_undefined_flag=$lt_save_allow_undefined_flag
  8730. else
  8731. cat conftest.err 1>&5
  8732. fi
  8733. $RM conftest*
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8735. $as_echo "$archive_cmds_need_lc" >&6; }
  8736. ;;
  8737. esac
  8738. fi
  8739. ;;
  8740. esac
  8741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8742. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8743. if test "$GCC" = yes; then
  8744. case $host_os in
  8745. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8746. *) lt_awk_arg="/^libraries:/" ;;
  8747. esac
  8748. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8749. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8750. # if the path contains ";" then we assume it to be the separator
  8751. # otherwise default to the standard path separator (i.e. ":") - it is
  8752. # assumed that no part of a normal pathname contains ";" but that should
  8753. # okay in the real world where ";" in dirpaths is itself problematic.
  8754. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8755. else
  8756. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8757. fi
  8758. # Ok, now we have the path, separated by spaces, we can step through it
  8759. # and add multilib dir if necessary.
  8760. lt_tmp_lt_search_path_spec=
  8761. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8762. for lt_sys_path in $lt_search_path_spec; do
  8763. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8764. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8765. else
  8766. test -d "$lt_sys_path" && \
  8767. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8768. fi
  8769. done
  8770. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8771. BEGIN {RS=" "; FS="/|\n";} {
  8772. lt_foo="";
  8773. lt_count=0;
  8774. for (lt_i = NF; lt_i > 0; lt_i--) {
  8775. if ($lt_i != "" && $lt_i != ".") {
  8776. if ($lt_i == "..") {
  8777. lt_count++;
  8778. } else {
  8779. if (lt_count == 0) {
  8780. lt_foo="/" $lt_i lt_foo;
  8781. } else {
  8782. lt_count--;
  8783. }
  8784. }
  8785. }
  8786. }
  8787. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8788. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8789. }'`
  8790. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8791. else
  8792. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8793. fi
  8794. library_names_spec=
  8795. libname_spec='lib$name'
  8796. soname_spec=
  8797. shrext_cmds=".so"
  8798. postinstall_cmds=
  8799. postuninstall_cmds=
  8800. finish_cmds=
  8801. finish_eval=
  8802. shlibpath_var=
  8803. shlibpath_overrides_runpath=unknown
  8804. version_type=none
  8805. dynamic_linker="$host_os ld.so"
  8806. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8807. need_lib_prefix=unknown
  8808. hardcode_into_libs=no
  8809. # when you set need_version to no, make sure it does not cause -set_version
  8810. # flags to be left without arguments
  8811. need_version=unknown
  8812. case $host_os in
  8813. aix3*)
  8814. version_type=linux
  8815. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8816. shlibpath_var=LIBPATH
  8817. # AIX 3 has no versioning support, so we append a major version to the name.
  8818. soname_spec='${libname}${release}${shared_ext}$major'
  8819. ;;
  8820. aix[4-9]*)
  8821. version_type=linux
  8822. need_lib_prefix=no
  8823. need_version=no
  8824. hardcode_into_libs=yes
  8825. if test "$host_cpu" = ia64; then
  8826. # AIX 5 supports IA64
  8827. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8828. shlibpath_var=LD_LIBRARY_PATH
  8829. else
  8830. # With GCC up to 2.95.x, collect2 would create an import file
  8831. # for dependence libraries. The import file would start with
  8832. # the line `#! .'. This would cause the generated library to
  8833. # depend on `.', always an invalid library. This was fixed in
  8834. # development snapshots of GCC prior to 3.0.
  8835. case $host_os in
  8836. aix4 | aix4.[01] | aix4.[01].*)
  8837. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8838. echo ' yes '
  8839. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8840. :
  8841. else
  8842. can_build_shared=no
  8843. fi
  8844. ;;
  8845. esac
  8846. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8847. # soname into executable. Probably we can add versioning support to
  8848. # collect2, so additional links can be useful in future.
  8849. if test "$aix_use_runtimelinking" = yes; then
  8850. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8851. # instead of lib<name>.a to let people know that these are not
  8852. # typical AIX shared libraries.
  8853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8854. else
  8855. # We preserve .a as extension for shared libraries through AIX4.2
  8856. # and later when we are not doing run time linking.
  8857. library_names_spec='${libname}${release}.a $libname.a'
  8858. soname_spec='${libname}${release}${shared_ext}$major'
  8859. fi
  8860. shlibpath_var=LIBPATH
  8861. fi
  8862. ;;
  8863. amigaos*)
  8864. case $host_cpu in
  8865. powerpc)
  8866. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8867. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8869. ;;
  8870. m68k)
  8871. library_names_spec='$libname.ixlibrary $libname.a'
  8872. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8873. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8874. ;;
  8875. esac
  8876. ;;
  8877. beos*)
  8878. library_names_spec='${libname}${shared_ext}'
  8879. dynamic_linker="$host_os ld.so"
  8880. shlibpath_var=LIBRARY_PATH
  8881. ;;
  8882. bsdi[45]*)
  8883. version_type=linux
  8884. need_version=no
  8885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8886. soname_spec='${libname}${release}${shared_ext}$major'
  8887. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8888. shlibpath_var=LD_LIBRARY_PATH
  8889. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8890. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8891. # the default ld.so.conf also contains /usr/contrib/lib and
  8892. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8893. # libtool to hard-code these into programs
  8894. ;;
  8895. cygwin* | mingw* | pw32* | cegcc*)
  8896. version_type=windows
  8897. shrext_cmds=".dll"
  8898. need_version=no
  8899. need_lib_prefix=no
  8900. case $GCC,$host_os in
  8901. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8902. library_names_spec='$libname.dll.a'
  8903. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8904. postinstall_cmds='base_file=`basename \${file}`~
  8905. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8906. dldir=$destdir/`dirname \$dlpath`~
  8907. test -d \$dldir || mkdir -p \$dldir~
  8908. $install_prog $dir/$dlname \$dldir/$dlname~
  8909. chmod a+x \$dldir/$dlname~
  8910. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8911. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8912. fi'
  8913. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8914. dlpath=$dir/\$dldll~
  8915. $RM \$dlpath'
  8916. shlibpath_overrides_runpath=yes
  8917. case $host_os in
  8918. cygwin*)
  8919. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8920. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8921. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8922. ;;
  8923. mingw* | cegcc*)
  8924. # MinGW DLLs use traditional 'lib' prefix
  8925. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8926. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8927. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8928. # It is most probably a Windows format PATH printed by
  8929. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8930. # path with ; separators, and with drive letters. We can handle the
  8931. # drive letters (cygwin fileutils understands them), so leave them,
  8932. # especially as we might pass files found there to a mingw objdump,
  8933. # which wouldn't understand a cygwinified path. Ahh.
  8934. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8935. else
  8936. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8937. fi
  8938. ;;
  8939. pw32*)
  8940. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8941. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8942. ;;
  8943. esac
  8944. ;;
  8945. *)
  8946. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8947. ;;
  8948. esac
  8949. dynamic_linker='Win32 ld.exe'
  8950. # FIXME: first we should search . and the directory the executable is in
  8951. shlibpath_var=PATH
  8952. ;;
  8953. darwin* | rhapsody*)
  8954. dynamic_linker="$host_os dyld"
  8955. version_type=darwin
  8956. need_lib_prefix=no
  8957. need_version=no
  8958. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8959. soname_spec='${libname}${release}${major}$shared_ext'
  8960. shlibpath_overrides_runpath=yes
  8961. shlibpath_var=DYLD_LIBRARY_PATH
  8962. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8963. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8964. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8965. ;;
  8966. dgux*)
  8967. version_type=linux
  8968. need_lib_prefix=no
  8969. need_version=no
  8970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8971. soname_spec='${libname}${release}${shared_ext}$major'
  8972. shlibpath_var=LD_LIBRARY_PATH
  8973. ;;
  8974. freebsd1*)
  8975. dynamic_linker=no
  8976. ;;
  8977. freebsd* | dragonfly*)
  8978. # DragonFly does not have aout. When/if they implement a new
  8979. # versioning mechanism, adjust this.
  8980. if test -x /usr/bin/objformat; then
  8981. objformat=`/usr/bin/objformat`
  8982. else
  8983. case $host_os in
  8984. freebsd[123]*) objformat=aout ;;
  8985. *) objformat=elf ;;
  8986. esac
  8987. fi
  8988. version_type=freebsd-$objformat
  8989. case $version_type in
  8990. freebsd-elf*)
  8991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8992. need_version=no
  8993. need_lib_prefix=no
  8994. ;;
  8995. freebsd-*)
  8996. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8997. need_version=yes
  8998. ;;
  8999. esac
  9000. shlibpath_var=LD_LIBRARY_PATH
  9001. case $host_os in
  9002. freebsd2*)
  9003. shlibpath_overrides_runpath=yes
  9004. ;;
  9005. freebsd3.[01]* | freebsdelf3.[01]*)
  9006. shlibpath_overrides_runpath=yes
  9007. hardcode_into_libs=yes
  9008. ;;
  9009. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9010. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9011. shlibpath_overrides_runpath=no
  9012. hardcode_into_libs=yes
  9013. ;;
  9014. *) # from 4.6 on, and DragonFly
  9015. shlibpath_overrides_runpath=yes
  9016. hardcode_into_libs=yes
  9017. ;;
  9018. esac
  9019. ;;
  9020. gnu*)
  9021. version_type=linux
  9022. need_lib_prefix=no
  9023. need_version=no
  9024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9025. soname_spec='${libname}${release}${shared_ext}$major'
  9026. shlibpath_var=LD_LIBRARY_PATH
  9027. hardcode_into_libs=yes
  9028. ;;
  9029. hpux9* | hpux10* | hpux11*)
  9030. # Give a soname corresponding to the major version so that dld.sl refuses to
  9031. # link against other versions.
  9032. version_type=sunos
  9033. need_lib_prefix=no
  9034. need_version=no
  9035. case $host_cpu in
  9036. ia64*)
  9037. shrext_cmds='.so'
  9038. hardcode_into_libs=yes
  9039. dynamic_linker="$host_os dld.so"
  9040. shlibpath_var=LD_LIBRARY_PATH
  9041. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9043. soname_spec='${libname}${release}${shared_ext}$major'
  9044. if test "X$HPUX_IA64_MODE" = X32; then
  9045. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9046. else
  9047. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9048. fi
  9049. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9050. ;;
  9051. hppa*64*)
  9052. shrext_cmds='.sl'
  9053. hardcode_into_libs=yes
  9054. dynamic_linker="$host_os dld.sl"
  9055. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9056. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9058. soname_spec='${libname}${release}${shared_ext}$major'
  9059. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9060. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9061. ;;
  9062. *)
  9063. shrext_cmds='.sl'
  9064. dynamic_linker="$host_os dld.sl"
  9065. shlibpath_var=SHLIB_PATH
  9066. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9068. soname_spec='${libname}${release}${shared_ext}$major'
  9069. ;;
  9070. esac
  9071. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9072. postinstall_cmds='chmod 555 $lib'
  9073. ;;
  9074. interix[3-9]*)
  9075. version_type=linux
  9076. need_lib_prefix=no
  9077. need_version=no
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9079. soname_spec='${libname}${release}${shared_ext}$major'
  9080. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9081. shlibpath_var=LD_LIBRARY_PATH
  9082. shlibpath_overrides_runpath=no
  9083. hardcode_into_libs=yes
  9084. ;;
  9085. irix5* | irix6* | nonstopux*)
  9086. case $host_os in
  9087. nonstopux*) version_type=nonstopux ;;
  9088. *)
  9089. if test "$lt_cv_prog_gnu_ld" = yes; then
  9090. version_type=linux
  9091. else
  9092. version_type=irix
  9093. fi ;;
  9094. esac
  9095. need_lib_prefix=no
  9096. need_version=no
  9097. soname_spec='${libname}${release}${shared_ext}$major'
  9098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9099. case $host_os in
  9100. irix5* | nonstopux*)
  9101. libsuff= shlibsuff=
  9102. ;;
  9103. *)
  9104. case $LD in # libtool.m4 will add one of these switches to LD
  9105. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9106. libsuff= shlibsuff= libmagic=32-bit;;
  9107. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9108. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9109. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9110. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9111. *) libsuff= shlibsuff= libmagic=never-match;;
  9112. esac
  9113. ;;
  9114. esac
  9115. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9116. shlibpath_overrides_runpath=no
  9117. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9118. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9119. hardcode_into_libs=yes
  9120. ;;
  9121. # No shared lib support for Linux oldld, aout, or coff.
  9122. linux*oldld* | linux*aout* | linux*coff*)
  9123. dynamic_linker=no
  9124. ;;
  9125. # This must be Linux ELF.
  9126. linux* | k*bsd*-gnu)
  9127. version_type=linux
  9128. need_lib_prefix=no
  9129. need_version=no
  9130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9131. soname_spec='${libname}${release}${shared_ext}$major'
  9132. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9133. shlibpath_var=LD_LIBRARY_PATH
  9134. shlibpath_overrides_runpath=no
  9135. # Some binutils ld are patched to set DT_RUNPATH
  9136. save_LDFLAGS=$LDFLAGS
  9137. save_libdir=$libdir
  9138. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9139. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9141. /* end confdefs.h. */
  9142. int
  9143. main ()
  9144. {
  9145. ;
  9146. return 0;
  9147. }
  9148. _ACEOF
  9149. if ac_fn_c_try_link "$LINENO"; then :
  9150. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9151. shlibpath_overrides_runpath=yes
  9152. fi
  9153. fi
  9154. rm -f core conftest.err conftest.$ac_objext \
  9155. conftest$ac_exeext conftest.$ac_ext
  9156. LDFLAGS=$save_LDFLAGS
  9157. libdir=$save_libdir
  9158. # This implies no fast_install, which is unacceptable.
  9159. # Some rework will be needed to allow for fast_install
  9160. # before this can be enabled.
  9161. hardcode_into_libs=yes
  9162. # Append ld.so.conf contents to the search path
  9163. if test -f /etc/ld.so.conf; then
  9164. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9165. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9166. fi
  9167. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9168. # powerpc, because MkLinux only supported shared libraries with the
  9169. # GNU dynamic linker. Since this was broken with cross compilers,
  9170. # most powerpc-linux boxes support dynamic linking these days and
  9171. # people can always --disable-shared, the test was removed, and we
  9172. # assume the GNU/Linux dynamic linker is in use.
  9173. dynamic_linker='GNU/Linux ld.so'
  9174. ;;
  9175. netbsd*)
  9176. version_type=sunos
  9177. need_lib_prefix=no
  9178. need_version=no
  9179. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9181. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9182. dynamic_linker='NetBSD (a.out) ld.so'
  9183. else
  9184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9185. soname_spec='${libname}${release}${shared_ext}$major'
  9186. dynamic_linker='NetBSD ld.elf_so'
  9187. fi
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. shlibpath_overrides_runpath=yes
  9190. hardcode_into_libs=yes
  9191. ;;
  9192. newsos6)
  9193. version_type=linux
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9195. shlibpath_var=LD_LIBRARY_PATH
  9196. shlibpath_overrides_runpath=yes
  9197. ;;
  9198. *nto* | *qnx*)
  9199. version_type=qnx
  9200. need_lib_prefix=no
  9201. need_version=no
  9202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9203. soname_spec='${libname}${release}${shared_ext}$major'
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. shlibpath_overrides_runpath=no
  9206. hardcode_into_libs=yes
  9207. dynamic_linker='ldqnx.so'
  9208. ;;
  9209. openbsd*)
  9210. version_type=sunos
  9211. sys_lib_dlsearch_path_spec="/usr/lib"
  9212. need_lib_prefix=no
  9213. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9214. case $host_os in
  9215. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9216. *) need_version=no ;;
  9217. esac
  9218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9219. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9220. shlibpath_var=LD_LIBRARY_PATH
  9221. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9222. case $host_os in
  9223. openbsd2.[89] | openbsd2.[89].*)
  9224. shlibpath_overrides_runpath=no
  9225. ;;
  9226. *)
  9227. shlibpath_overrides_runpath=yes
  9228. ;;
  9229. esac
  9230. else
  9231. shlibpath_overrides_runpath=yes
  9232. fi
  9233. ;;
  9234. os2*)
  9235. libname_spec='$name'
  9236. shrext_cmds=".dll"
  9237. need_lib_prefix=no
  9238. library_names_spec='$libname${shared_ext} $libname.a'
  9239. dynamic_linker='OS/2 ld.exe'
  9240. shlibpath_var=LIBPATH
  9241. ;;
  9242. osf3* | osf4* | osf5*)
  9243. version_type=osf
  9244. need_lib_prefix=no
  9245. need_version=no
  9246. soname_spec='${libname}${release}${shared_ext}$major'
  9247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9248. shlibpath_var=LD_LIBRARY_PATH
  9249. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9250. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9251. ;;
  9252. rdos*)
  9253. dynamic_linker=no
  9254. ;;
  9255. solaris*)
  9256. version_type=linux
  9257. need_lib_prefix=no
  9258. need_version=no
  9259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9260. soname_spec='${libname}${release}${shared_ext}$major'
  9261. shlibpath_var=LD_LIBRARY_PATH
  9262. shlibpath_overrides_runpath=yes
  9263. hardcode_into_libs=yes
  9264. # ldd complains unless libraries are executable
  9265. postinstall_cmds='chmod +x $lib'
  9266. ;;
  9267. sunos4*)
  9268. version_type=sunos
  9269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9270. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9271. shlibpath_var=LD_LIBRARY_PATH
  9272. shlibpath_overrides_runpath=yes
  9273. if test "$with_gnu_ld" = yes; then
  9274. need_lib_prefix=no
  9275. fi
  9276. need_version=yes
  9277. ;;
  9278. sysv4 | sysv4.3*)
  9279. version_type=linux
  9280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9281. soname_spec='${libname}${release}${shared_ext}$major'
  9282. shlibpath_var=LD_LIBRARY_PATH
  9283. case $host_vendor in
  9284. sni)
  9285. shlibpath_overrides_runpath=no
  9286. need_lib_prefix=no
  9287. runpath_var=LD_RUN_PATH
  9288. ;;
  9289. siemens)
  9290. need_lib_prefix=no
  9291. ;;
  9292. motorola)
  9293. need_lib_prefix=no
  9294. need_version=no
  9295. shlibpath_overrides_runpath=no
  9296. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9297. ;;
  9298. esac
  9299. ;;
  9300. sysv4*MP*)
  9301. if test -d /usr/nec ;then
  9302. version_type=linux
  9303. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9304. soname_spec='$libname${shared_ext}.$major'
  9305. shlibpath_var=LD_LIBRARY_PATH
  9306. fi
  9307. ;;
  9308. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9309. version_type=freebsd-elf
  9310. need_lib_prefix=no
  9311. need_version=no
  9312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9313. soname_spec='${libname}${release}${shared_ext}$major'
  9314. shlibpath_var=LD_LIBRARY_PATH
  9315. shlibpath_overrides_runpath=yes
  9316. hardcode_into_libs=yes
  9317. if test "$with_gnu_ld" = yes; then
  9318. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9319. else
  9320. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9321. case $host_os in
  9322. sco3.2v5*)
  9323. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9324. ;;
  9325. esac
  9326. fi
  9327. sys_lib_dlsearch_path_spec='/usr/lib'
  9328. ;;
  9329. tpf*)
  9330. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9331. version_type=linux
  9332. need_lib_prefix=no
  9333. need_version=no
  9334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9335. shlibpath_var=LD_LIBRARY_PATH
  9336. shlibpath_overrides_runpath=no
  9337. hardcode_into_libs=yes
  9338. ;;
  9339. uts4*)
  9340. version_type=linux
  9341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9342. soname_spec='${libname}${release}${shared_ext}$major'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. ;;
  9345. *)
  9346. dynamic_linker=no
  9347. ;;
  9348. esac
  9349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9350. $as_echo "$dynamic_linker" >&6; }
  9351. test "$dynamic_linker" = no && can_build_shared=no
  9352. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9353. if test "$GCC" = yes; then
  9354. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9355. fi
  9356. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9357. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9358. fi
  9359. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9360. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9361. fi
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9363. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9364. hardcode_action=
  9365. if test -n "$hardcode_libdir_flag_spec" ||
  9366. test -n "$runpath_var" ||
  9367. test "X$hardcode_automatic" = "Xyes" ; then
  9368. # We can hardcode non-existent directories.
  9369. if test "$hardcode_direct" != no &&
  9370. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9371. # have to relink, otherwise we might link with an installed library
  9372. # when we should be linking with a yet-to-be-installed one
  9373. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9374. test "$hardcode_minus_L" != no; then
  9375. # Linking always hardcodes the temporary library directory.
  9376. hardcode_action=relink
  9377. else
  9378. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9379. hardcode_action=immediate
  9380. fi
  9381. else
  9382. # We cannot hardcode anything, or else we can only hardcode existing
  9383. # directories.
  9384. hardcode_action=unsupported
  9385. fi
  9386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9387. $as_echo "$hardcode_action" >&6; }
  9388. if test "$hardcode_action" = relink ||
  9389. test "$inherit_rpath" = yes; then
  9390. # Fast installation is not supported
  9391. enable_fast_install=no
  9392. elif test "$shlibpath_overrides_runpath" = yes ||
  9393. test "$enable_shared" = no; then
  9394. # Fast installation is not necessary
  9395. enable_fast_install=needless
  9396. fi
  9397. if test "x$enable_dlopen" != xyes; then
  9398. enable_dlopen=unknown
  9399. enable_dlopen_self=unknown
  9400. enable_dlopen_self_static=unknown
  9401. else
  9402. lt_cv_dlopen=no
  9403. lt_cv_dlopen_libs=
  9404. case $host_os in
  9405. beos*)
  9406. lt_cv_dlopen="load_add_on"
  9407. lt_cv_dlopen_libs=
  9408. lt_cv_dlopen_self=yes
  9409. ;;
  9410. mingw* | pw32* | cegcc*)
  9411. lt_cv_dlopen="LoadLibrary"
  9412. lt_cv_dlopen_libs=
  9413. ;;
  9414. cygwin*)
  9415. lt_cv_dlopen="dlopen"
  9416. lt_cv_dlopen_libs=
  9417. ;;
  9418. darwin*)
  9419. # if libdl is installed we need to link against it
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9421. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9422. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9423. $as_echo_n "(cached) " >&6
  9424. else
  9425. ac_check_lib_save_LIBS=$LIBS
  9426. LIBS="-ldl $LIBS"
  9427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9428. /* end confdefs.h. */
  9429. /* Override any GCC internal prototype to avoid an error.
  9430. Use char because int might match the return type of a GCC
  9431. builtin and then its argument prototype would still apply. */
  9432. #ifdef __cplusplus
  9433. extern "C"
  9434. #endif
  9435. char dlopen ();
  9436. int
  9437. main ()
  9438. {
  9439. return dlopen ();
  9440. ;
  9441. return 0;
  9442. }
  9443. _ACEOF
  9444. if ac_fn_c_try_link "$LINENO"; then :
  9445. ac_cv_lib_dl_dlopen=yes
  9446. else
  9447. ac_cv_lib_dl_dlopen=no
  9448. fi
  9449. rm -f core conftest.err conftest.$ac_objext \
  9450. conftest$ac_exeext conftest.$ac_ext
  9451. LIBS=$ac_check_lib_save_LIBS
  9452. fi
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9454. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9455. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9456. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9457. else
  9458. lt_cv_dlopen="dyld"
  9459. lt_cv_dlopen_libs=
  9460. lt_cv_dlopen_self=yes
  9461. fi
  9462. ;;
  9463. *)
  9464. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9465. if test "x$ac_cv_func_shl_load" = xyes; then :
  9466. lt_cv_dlopen="shl_load"
  9467. else
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9469. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9470. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9471. $as_echo_n "(cached) " >&6
  9472. else
  9473. ac_check_lib_save_LIBS=$LIBS
  9474. LIBS="-ldld $LIBS"
  9475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9476. /* end confdefs.h. */
  9477. /* Override any GCC internal prototype to avoid an error.
  9478. Use char because int might match the return type of a GCC
  9479. builtin and then its argument prototype would still apply. */
  9480. #ifdef __cplusplus
  9481. extern "C"
  9482. #endif
  9483. char shl_load ();
  9484. int
  9485. main ()
  9486. {
  9487. return shl_load ();
  9488. ;
  9489. return 0;
  9490. }
  9491. _ACEOF
  9492. if ac_fn_c_try_link "$LINENO"; then :
  9493. ac_cv_lib_dld_shl_load=yes
  9494. else
  9495. ac_cv_lib_dld_shl_load=no
  9496. fi
  9497. rm -f core conftest.err conftest.$ac_objext \
  9498. conftest$ac_exeext conftest.$ac_ext
  9499. LIBS=$ac_check_lib_save_LIBS
  9500. fi
  9501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9502. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9503. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9504. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9505. else
  9506. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9507. if test "x$ac_cv_func_dlopen" = xyes; then :
  9508. lt_cv_dlopen="dlopen"
  9509. else
  9510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9511. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9512. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9513. $as_echo_n "(cached) " >&6
  9514. else
  9515. ac_check_lib_save_LIBS=$LIBS
  9516. LIBS="-ldl $LIBS"
  9517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9518. /* end confdefs.h. */
  9519. /* Override any GCC internal prototype to avoid an error.
  9520. Use char because int might match the return type of a GCC
  9521. builtin and then its argument prototype would still apply. */
  9522. #ifdef __cplusplus
  9523. extern "C"
  9524. #endif
  9525. char dlopen ();
  9526. int
  9527. main ()
  9528. {
  9529. return dlopen ();
  9530. ;
  9531. return 0;
  9532. }
  9533. _ACEOF
  9534. if ac_fn_c_try_link "$LINENO"; then :
  9535. ac_cv_lib_dl_dlopen=yes
  9536. else
  9537. ac_cv_lib_dl_dlopen=no
  9538. fi
  9539. rm -f core conftest.err conftest.$ac_objext \
  9540. conftest$ac_exeext conftest.$ac_ext
  9541. LIBS=$ac_check_lib_save_LIBS
  9542. fi
  9543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9544. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9545. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9546. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9547. else
  9548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9549. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9550. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9551. $as_echo_n "(cached) " >&6
  9552. else
  9553. ac_check_lib_save_LIBS=$LIBS
  9554. LIBS="-lsvld $LIBS"
  9555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9556. /* end confdefs.h. */
  9557. /* Override any GCC internal prototype to avoid an error.
  9558. Use char because int might match the return type of a GCC
  9559. builtin and then its argument prototype would still apply. */
  9560. #ifdef __cplusplus
  9561. extern "C"
  9562. #endif
  9563. char dlopen ();
  9564. int
  9565. main ()
  9566. {
  9567. return dlopen ();
  9568. ;
  9569. return 0;
  9570. }
  9571. _ACEOF
  9572. if ac_fn_c_try_link "$LINENO"; then :
  9573. ac_cv_lib_svld_dlopen=yes
  9574. else
  9575. ac_cv_lib_svld_dlopen=no
  9576. fi
  9577. rm -f core conftest.err conftest.$ac_objext \
  9578. conftest$ac_exeext conftest.$ac_ext
  9579. LIBS=$ac_check_lib_save_LIBS
  9580. fi
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9582. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9583. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9584. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9585. else
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9587. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9588. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9589. $as_echo_n "(cached) " >&6
  9590. else
  9591. ac_check_lib_save_LIBS=$LIBS
  9592. LIBS="-ldld $LIBS"
  9593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9594. /* end confdefs.h. */
  9595. /* Override any GCC internal prototype to avoid an error.
  9596. Use char because int might match the return type of a GCC
  9597. builtin and then its argument prototype would still apply. */
  9598. #ifdef __cplusplus
  9599. extern "C"
  9600. #endif
  9601. char dld_link ();
  9602. int
  9603. main ()
  9604. {
  9605. return dld_link ();
  9606. ;
  9607. return 0;
  9608. }
  9609. _ACEOF
  9610. if ac_fn_c_try_link "$LINENO"; then :
  9611. ac_cv_lib_dld_dld_link=yes
  9612. else
  9613. ac_cv_lib_dld_dld_link=no
  9614. fi
  9615. rm -f core conftest.err conftest.$ac_objext \
  9616. conftest$ac_exeext conftest.$ac_ext
  9617. LIBS=$ac_check_lib_save_LIBS
  9618. fi
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9620. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9621. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9622. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9623. fi
  9624. fi
  9625. fi
  9626. fi
  9627. fi
  9628. fi
  9629. ;;
  9630. esac
  9631. if test "x$lt_cv_dlopen" != xno; then
  9632. enable_dlopen=yes
  9633. else
  9634. enable_dlopen=no
  9635. fi
  9636. case $lt_cv_dlopen in
  9637. dlopen)
  9638. save_CPPFLAGS="$CPPFLAGS"
  9639. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9640. save_LDFLAGS="$LDFLAGS"
  9641. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9642. save_LIBS="$LIBS"
  9643. LIBS="$lt_cv_dlopen_libs $LIBS"
  9644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9645. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9646. if ${lt_cv_dlopen_self+:} false; then :
  9647. $as_echo_n "(cached) " >&6
  9648. else
  9649. if test "$cross_compiling" = yes; then :
  9650. lt_cv_dlopen_self=cross
  9651. else
  9652. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9653. lt_status=$lt_dlunknown
  9654. cat > conftest.$ac_ext <<_LT_EOF
  9655. #line 11225 "configure"
  9656. #include "confdefs.h"
  9657. #if HAVE_DLFCN_H
  9658. #include <dlfcn.h>
  9659. #endif
  9660. #include <stdio.h>
  9661. #ifdef RTLD_GLOBAL
  9662. # define LT_DLGLOBAL RTLD_GLOBAL
  9663. #else
  9664. # ifdef DL_GLOBAL
  9665. # define LT_DLGLOBAL DL_GLOBAL
  9666. # else
  9667. # define LT_DLGLOBAL 0
  9668. # endif
  9669. #endif
  9670. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9671. find out it does not work in some platform. */
  9672. #ifndef LT_DLLAZY_OR_NOW
  9673. # ifdef RTLD_LAZY
  9674. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9675. # else
  9676. # ifdef DL_LAZY
  9677. # define LT_DLLAZY_OR_NOW DL_LAZY
  9678. # else
  9679. # ifdef RTLD_NOW
  9680. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9681. # else
  9682. # ifdef DL_NOW
  9683. # define LT_DLLAZY_OR_NOW DL_NOW
  9684. # else
  9685. # define LT_DLLAZY_OR_NOW 0
  9686. # endif
  9687. # endif
  9688. # endif
  9689. # endif
  9690. #endif
  9691. void fnord() { int i=42;}
  9692. int main ()
  9693. {
  9694. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9695. int status = $lt_dlunknown;
  9696. if (self)
  9697. {
  9698. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9699. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9700. /* dlclose (self); */
  9701. }
  9702. else
  9703. puts (dlerror ());
  9704. return status;
  9705. }
  9706. _LT_EOF
  9707. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9708. (eval $ac_link) 2>&5
  9709. ac_status=$?
  9710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9711. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9712. (./conftest; exit; ) >&5 2>/dev/null
  9713. lt_status=$?
  9714. case x$lt_status in
  9715. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9716. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9717. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9718. esac
  9719. else :
  9720. # compilation failed
  9721. lt_cv_dlopen_self=no
  9722. fi
  9723. fi
  9724. rm -fr conftest*
  9725. fi
  9726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9727. $as_echo "$lt_cv_dlopen_self" >&6; }
  9728. if test "x$lt_cv_dlopen_self" = xyes; then
  9729. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9731. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9732. if ${lt_cv_dlopen_self_static+:} false; then :
  9733. $as_echo_n "(cached) " >&6
  9734. else
  9735. if test "$cross_compiling" = yes; then :
  9736. lt_cv_dlopen_self_static=cross
  9737. else
  9738. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9739. lt_status=$lt_dlunknown
  9740. cat > conftest.$ac_ext <<_LT_EOF
  9741. #line 11321 "configure"
  9742. #include "confdefs.h"
  9743. #if HAVE_DLFCN_H
  9744. #include <dlfcn.h>
  9745. #endif
  9746. #include <stdio.h>
  9747. #ifdef RTLD_GLOBAL
  9748. # define LT_DLGLOBAL RTLD_GLOBAL
  9749. #else
  9750. # ifdef DL_GLOBAL
  9751. # define LT_DLGLOBAL DL_GLOBAL
  9752. # else
  9753. # define LT_DLGLOBAL 0
  9754. # endif
  9755. #endif
  9756. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9757. find out it does not work in some platform. */
  9758. #ifndef LT_DLLAZY_OR_NOW
  9759. # ifdef RTLD_LAZY
  9760. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9761. # else
  9762. # ifdef DL_LAZY
  9763. # define LT_DLLAZY_OR_NOW DL_LAZY
  9764. # else
  9765. # ifdef RTLD_NOW
  9766. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9767. # else
  9768. # ifdef DL_NOW
  9769. # define LT_DLLAZY_OR_NOW DL_NOW
  9770. # else
  9771. # define LT_DLLAZY_OR_NOW 0
  9772. # endif
  9773. # endif
  9774. # endif
  9775. # endif
  9776. #endif
  9777. void fnord() { int i=42;}
  9778. int main ()
  9779. {
  9780. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9781. int status = $lt_dlunknown;
  9782. if (self)
  9783. {
  9784. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9785. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9786. /* dlclose (self); */
  9787. }
  9788. else
  9789. puts (dlerror ());
  9790. return status;
  9791. }
  9792. _LT_EOF
  9793. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9794. (eval $ac_link) 2>&5
  9795. ac_status=$?
  9796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9797. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9798. (./conftest; exit; ) >&5 2>/dev/null
  9799. lt_status=$?
  9800. case x$lt_status in
  9801. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9802. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9803. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9804. esac
  9805. else :
  9806. # compilation failed
  9807. lt_cv_dlopen_self_static=no
  9808. fi
  9809. fi
  9810. rm -fr conftest*
  9811. fi
  9812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9813. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9814. fi
  9815. CPPFLAGS="$save_CPPFLAGS"
  9816. LDFLAGS="$save_LDFLAGS"
  9817. LIBS="$save_LIBS"
  9818. ;;
  9819. esac
  9820. case $lt_cv_dlopen_self in
  9821. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9822. *) enable_dlopen_self=unknown ;;
  9823. esac
  9824. case $lt_cv_dlopen_self_static in
  9825. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9826. *) enable_dlopen_self_static=unknown ;;
  9827. esac
  9828. fi
  9829. striplib=
  9830. old_striplib=
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9832. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9833. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9834. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9835. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9837. $as_echo "yes" >&6; }
  9838. else
  9839. # FIXME - insert some real tests, host_os isn't really good enough
  9840. case $host_os in
  9841. darwin*)
  9842. if test -n "$STRIP" ; then
  9843. striplib="$STRIP -x"
  9844. old_striplib="$STRIP -S"
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9846. $as_echo "yes" >&6; }
  9847. else
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9849. $as_echo "no" >&6; }
  9850. fi
  9851. ;;
  9852. *)
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9854. $as_echo "no" >&6; }
  9855. ;;
  9856. esac
  9857. fi
  9858. # Report which library types will actually be built
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9860. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9862. $as_echo "$can_build_shared" >&6; }
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9864. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9865. test "$can_build_shared" = "no" && enable_shared=no
  9866. # On AIX, shared libraries and static libraries use the same namespace, and
  9867. # are all built from PIC.
  9868. case $host_os in
  9869. aix3*)
  9870. test "$enable_shared" = yes && enable_static=no
  9871. if test -n "$RANLIB"; then
  9872. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9873. postinstall_cmds='$RANLIB $lib'
  9874. fi
  9875. ;;
  9876. aix[4-9]*)
  9877. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9878. test "$enable_shared" = yes && enable_static=no
  9879. fi
  9880. ;;
  9881. esac
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9883. $as_echo "$enable_shared" >&6; }
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9885. $as_echo_n "checking whether to build static libraries... " >&6; }
  9886. # Make sure either enable_shared or enable_static is yes.
  9887. test "$enable_shared" = yes || enable_static=yes
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9889. $as_echo "$enable_static" >&6; }
  9890. fi
  9891. ac_ext=c
  9892. ac_cpp='$CPP $CPPFLAGS'
  9893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9896. CC="$lt_save_CC"
  9897. ac_config_commands="$ac_config_commands libtool"
  9898. # Only expand once:
  9899. CFLAG_VISIBILITY=
  9900. HAVE_VISIBILITY=0
  9901. if test -n "$GCC"; then
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  9903. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  9904. if ${gl_cv_cc_vis_werror+:} false; then :
  9905. $as_echo_n "(cached) " >&6
  9906. else
  9907. gl_save_CFLAGS="$CFLAGS"
  9908. CFLAGS="$CFLAGS -Werror"
  9909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9910. /* end confdefs.h. */
  9911. int
  9912. main ()
  9913. {
  9914. ;
  9915. return 0;
  9916. }
  9917. _ACEOF
  9918. if ac_fn_c_try_compile "$LINENO"; then :
  9919. gl_cv_cc_vis_werror=yes
  9920. else
  9921. gl_cv_cc_vis_werror=no
  9922. fi
  9923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9924. CFLAGS="$gl_save_CFLAGS"
  9925. fi
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  9927. $as_echo "$gl_cv_cc_vis_werror" >&6; }
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  9929. $as_echo_n "checking for simple visibility declarations... " >&6; }
  9930. if ${gl_cv_cc_visibility+:} false; then :
  9931. $as_echo_n "(cached) " >&6
  9932. else
  9933. gl_save_CFLAGS="$CFLAGS"
  9934. CFLAGS="$CFLAGS -fvisibility=hidden"
  9935. if test $gl_cv_cc_vis_werror = yes; then
  9936. CFLAGS="$CFLAGS -Werror"
  9937. fi
  9938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9939. /* end confdefs.h. */
  9940. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9941. extern __attribute__((__visibility__("default"))) int exportedvar;
  9942. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9943. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9944. void dummyfunc (void) {}
  9945. int
  9946. main ()
  9947. {
  9948. ;
  9949. return 0;
  9950. }
  9951. _ACEOF
  9952. if ac_fn_c_try_compile "$LINENO"; then :
  9953. gl_cv_cc_visibility=yes
  9954. else
  9955. gl_cv_cc_visibility=no
  9956. fi
  9957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9958. CFLAGS="$gl_save_CFLAGS"
  9959. fi
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  9961. $as_echo "$gl_cv_cc_visibility" >&6; }
  9962. if test $gl_cv_cc_visibility = yes; then
  9963. CFLAG_VISIBILITY="-fvisibility=hidden"
  9964. HAVE_VISIBILITY=1
  9965. fi
  9966. fi
  9967. cat >>confdefs.h <<_ACEOF
  9968. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9969. _ACEOF
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9971. $as_echo_n "checking for ANSI C header files... " >&6; }
  9972. if ${ac_cv_header_stdc+:} false; then :
  9973. $as_echo_n "(cached) " >&6
  9974. else
  9975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9976. /* end confdefs.h. */
  9977. #include <stdlib.h>
  9978. #include <stdarg.h>
  9979. #include <string.h>
  9980. #include <float.h>
  9981. int
  9982. main ()
  9983. {
  9984. ;
  9985. return 0;
  9986. }
  9987. _ACEOF
  9988. if ac_fn_c_try_compile "$LINENO"; then :
  9989. ac_cv_header_stdc=yes
  9990. else
  9991. ac_cv_header_stdc=no
  9992. fi
  9993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9994. if test $ac_cv_header_stdc = yes; then
  9995. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9997. /* end confdefs.h. */
  9998. #include <string.h>
  9999. _ACEOF
  10000. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10001. $EGREP "memchr" >/dev/null 2>&1; then :
  10002. else
  10003. ac_cv_header_stdc=no
  10004. fi
  10005. rm -f conftest*
  10006. fi
  10007. if test $ac_cv_header_stdc = yes; then
  10008. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10010. /* end confdefs.h. */
  10011. #include <stdlib.h>
  10012. _ACEOF
  10013. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10014. $EGREP "free" >/dev/null 2>&1; then :
  10015. else
  10016. ac_cv_header_stdc=no
  10017. fi
  10018. rm -f conftest*
  10019. fi
  10020. if test $ac_cv_header_stdc = yes; then
  10021. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10022. if test "$cross_compiling" = yes; then :
  10023. :
  10024. else
  10025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10026. /* end confdefs.h. */
  10027. #include <ctype.h>
  10028. #include <stdlib.h>
  10029. #if ((' ' & 0x0FF) == 0x020)
  10030. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10031. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10032. #else
  10033. # define ISLOWER(c) \
  10034. (('a' <= (c) && (c) <= 'i') \
  10035. || ('j' <= (c) && (c) <= 'r') \
  10036. || ('s' <= (c) && (c) <= 'z'))
  10037. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10038. #endif
  10039. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10040. int
  10041. main ()
  10042. {
  10043. int i;
  10044. for (i = 0; i < 256; i++)
  10045. if (XOR (islower (i), ISLOWER (i))
  10046. || toupper (i) != TOUPPER (i))
  10047. return 2;
  10048. return 0;
  10049. }
  10050. _ACEOF
  10051. if ac_fn_c_try_run "$LINENO"; then :
  10052. else
  10053. ac_cv_header_stdc=no
  10054. fi
  10055. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10056. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10057. fi
  10058. fi
  10059. fi
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10061. $as_echo "$ac_cv_header_stdc" >&6; }
  10062. if test $ac_cv_header_stdc = yes; then
  10063. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10064. fi
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  10066. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  10067. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  10068. $as_echo_n "(cached) " >&6
  10069. else
  10070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10071. /* end confdefs.h. */
  10072. #include <sys/types.h>
  10073. int
  10074. main ()
  10075. {
  10076. return makedev(0, 0);
  10077. ;
  10078. return 0;
  10079. }
  10080. _ACEOF
  10081. if ac_fn_c_try_link "$LINENO"; then :
  10082. ac_cv_header_sys_types_h_makedev=yes
  10083. else
  10084. ac_cv_header_sys_types_h_makedev=no
  10085. fi
  10086. rm -f core conftest.err conftest.$ac_objext \
  10087. conftest$ac_exeext conftest.$ac_ext
  10088. fi
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  10090. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  10091. if test $ac_cv_header_sys_types_h_makedev = no; then
  10092. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  10093. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  10094. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  10095. fi
  10096. if test $ac_cv_header_sys_mkdev_h = no; then
  10097. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  10098. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  10099. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  10100. fi
  10101. fi
  10102. fi
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10104. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10105. if ${ac_cv_header_sys_wait_h+:} false; then :
  10106. $as_echo_n "(cached) " >&6
  10107. else
  10108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10109. /* end confdefs.h. */
  10110. #include <sys/types.h>
  10111. #include <sys/wait.h>
  10112. #ifndef WEXITSTATUS
  10113. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10114. #endif
  10115. #ifndef WIFEXITED
  10116. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10117. #endif
  10118. int
  10119. main ()
  10120. {
  10121. int s;
  10122. wait (&s);
  10123. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10124. ;
  10125. return 0;
  10126. }
  10127. _ACEOF
  10128. if ac_fn_c_try_compile "$LINENO"; then :
  10129. ac_cv_header_sys_wait_h=yes
  10130. else
  10131. ac_cv_header_sys_wait_h=no
  10132. fi
  10133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10134. fi
  10135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10136. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10137. if test $ac_cv_header_sys_wait_h = yes; then
  10138. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10139. fi
  10140. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  10141. do :
  10142. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10143. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10144. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10145. cat >>confdefs.h <<_ACEOF
  10146. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10147. _ACEOF
  10148. fi
  10149. done
  10150. for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
  10151. do :
  10152. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10153. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10154. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10155. cat >>confdefs.h <<_ACEOF
  10156. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10157. _ACEOF
  10158. fi
  10159. done
  10160. for ac_header in getopt.h err.h
  10161. do :
  10162. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10163. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10164. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10165. cat >>confdefs.h <<_ACEOF
  10166. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10167. _ACEOF
  10168. fi
  10169. done
  10170. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  10171. do :
  10172. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10173. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10174. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10175. cat >>confdefs.h <<_ACEOF
  10176. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10177. _ACEOF
  10178. fi
  10179. done
  10180. for ac_header in zlib.h
  10181. do :
  10182. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  10183. if test "x$ac_cv_header_zlib_h" = xyes; then :
  10184. cat >>confdefs.h <<_ACEOF
  10185. #define HAVE_ZLIB_H 1
  10186. _ACEOF
  10187. fi
  10188. done
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10190. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10191. if ${ac_cv_c_const+:} false; then :
  10192. $as_echo_n "(cached) " >&6
  10193. else
  10194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10195. /* end confdefs.h. */
  10196. int
  10197. main ()
  10198. {
  10199. /* FIXME: Include the comments suggested by Paul. */
  10200. #ifndef __cplusplus
  10201. /* Ultrix mips cc rejects this. */
  10202. typedef int charset[2];
  10203. const charset cs;
  10204. /* SunOS 4.1.1 cc rejects this. */
  10205. char const *const *pcpcc;
  10206. char **ppc;
  10207. /* NEC SVR4.0.2 mips cc rejects this. */
  10208. struct point {int x, y;};
  10209. static struct point const zero = {0,0};
  10210. /* AIX XL C 1.02.0.0 rejects this.
  10211. It does not let you subtract one const X* pointer from another in
  10212. an arm of an if-expression whose if-part is not a constant
  10213. expression */
  10214. const char *g = "string";
  10215. pcpcc = &g + (g ? g-g : 0);
  10216. /* HPUX 7.0 cc rejects these. */
  10217. ++pcpcc;
  10218. ppc = (char**) pcpcc;
  10219. pcpcc = (char const *const *) ppc;
  10220. { /* SCO 3.2v4 cc rejects this. */
  10221. char *t;
  10222. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10223. *t++ = 0;
  10224. if (s) return 0;
  10225. }
  10226. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10227. int x[] = {25, 17};
  10228. const int *foo = &x[0];
  10229. ++foo;
  10230. }
  10231. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10232. typedef const int *iptr;
  10233. iptr p = 0;
  10234. ++p;
  10235. }
  10236. { /* AIX XL C 1.02.0.0 rejects this saying
  10237. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10238. struct s { int j; const int *ap[3]; };
  10239. struct s *b; b->j = 5;
  10240. }
  10241. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10242. const int foo = 10;
  10243. if (!foo) return 0;
  10244. }
  10245. return !cs[0] && !zero.x;
  10246. #endif
  10247. ;
  10248. return 0;
  10249. }
  10250. _ACEOF
  10251. if ac_fn_c_try_compile "$LINENO"; then :
  10252. ac_cv_c_const=yes
  10253. else
  10254. ac_cv_c_const=no
  10255. fi
  10256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10257. fi
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10259. $as_echo "$ac_cv_c_const" >&6; }
  10260. if test $ac_cv_c_const = no; then
  10261. $as_echo "#define const /**/" >>confdefs.h
  10262. fi
  10263. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  10264. if test "x$ac_cv_type_off_t" = xyes; then :
  10265. else
  10266. cat >>confdefs.h <<_ACEOF
  10267. #define off_t long int
  10268. _ACEOF
  10269. fi
  10270. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10271. if test "x$ac_cv_type_size_t" = xyes; then :
  10272. else
  10273. cat >>confdefs.h <<_ACEOF
  10274. #define size_t unsigned int
  10275. _ACEOF
  10276. fi
  10277. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  10278. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  10279. cat >>confdefs.h <<_ACEOF
  10280. #define HAVE_STRUCT_STAT_ST_RDEV 1
  10281. _ACEOF
  10282. fi
  10283. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
  10284. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  10285. cat >>confdefs.h <<_ACEOF
  10286. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  10287. _ACEOF
  10288. fi
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  10290. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  10291. if ${ac_cv_struct_tm+:} false; then :
  10292. $as_echo_n "(cached) " >&6
  10293. else
  10294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10295. /* end confdefs.h. */
  10296. #include <sys/types.h>
  10297. #include <time.h>
  10298. int
  10299. main ()
  10300. {
  10301. struct tm tm;
  10302. int *p = &tm.tm_sec;
  10303. return !p;
  10304. ;
  10305. return 0;
  10306. }
  10307. _ACEOF
  10308. if ac_fn_c_try_compile "$LINENO"; then :
  10309. ac_cv_struct_tm=time.h
  10310. else
  10311. ac_cv_struct_tm=sys/time.h
  10312. fi
  10313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10314. fi
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  10316. $as_echo "$ac_cv_struct_tm" >&6; }
  10317. if test $ac_cv_struct_tm = sys/time.h; then
  10318. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  10319. fi
  10320. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  10321. #include <$ac_cv_struct_tm>
  10322. "
  10323. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  10324. cat >>confdefs.h <<_ACEOF
  10325. #define HAVE_STRUCT_TM_TM_ZONE 1
  10326. _ACEOF
  10327. fi
  10328. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  10329. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  10330. else
  10331. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  10332. "
  10333. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  10334. ac_have_decl=1
  10335. else
  10336. ac_have_decl=0
  10337. fi
  10338. cat >>confdefs.h <<_ACEOF
  10339. #define HAVE_DECL_TZNAME $ac_have_decl
  10340. _ACEOF
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  10342. $as_echo_n "checking for tzname... " >&6; }
  10343. if ${ac_cv_var_tzname+:} false; then :
  10344. $as_echo_n "(cached) " >&6
  10345. else
  10346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10347. /* end confdefs.h. */
  10348. #include <time.h>
  10349. #if !HAVE_DECL_TZNAME
  10350. extern char *tzname[];
  10351. #endif
  10352. int
  10353. main ()
  10354. {
  10355. return tzname[0][0];
  10356. ;
  10357. return 0;
  10358. }
  10359. _ACEOF
  10360. if ac_fn_c_try_link "$LINENO"; then :
  10361. ac_cv_var_tzname=yes
  10362. else
  10363. ac_cv_var_tzname=no
  10364. fi
  10365. rm -f core conftest.err conftest.$ac_objext \
  10366. conftest$ac_exeext conftest.$ac_ext
  10367. fi
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  10369. $as_echo "$ac_cv_var_tzname" >&6; }
  10370. if test $ac_cv_var_tzname = yes; then
  10371. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  10372. fi
  10373. fi
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  10375. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  10376. if ${ac_cv_struct_tm_zone+:} false; then :
  10377. $as_echo_n "(cached) " >&6
  10378. else
  10379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10380. /* end confdefs.h. */
  10381. #include <sys/types.h>
  10382. #include <$ac_cv_struct_tm>
  10383. int
  10384. main ()
  10385. {
  10386. struct tm tm; tm.tm_zone;
  10387. ;
  10388. return 0;
  10389. }
  10390. _ACEOF
  10391. if ac_fn_c_try_compile "$LINENO"; then :
  10392. ac_cv_struct_tm_zone=yes
  10393. else
  10394. ac_cv_struct_tm_zone=no
  10395. fi
  10396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10397. fi
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  10399. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  10400. if test "$ac_cv_struct_tm_zone" = yes; then
  10401. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  10402. fi
  10403. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  10404. # consider it declared and we won't give our own extern.
  10405. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  10406. "
  10407. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  10408. ac_have_decl=1
  10409. else
  10410. ac_have_decl=0
  10411. fi
  10412. cat >>confdefs.h <<_ACEOF
  10413. #define HAVE_DECL_TZNAME $ac_have_decl
  10414. _ACEOF
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  10416. $as_echo_n "checking for tzname... " >&6; }
  10417. if ${ac_cv_var_tzname+:} false; then :
  10418. $as_echo_n "(cached) " >&6
  10419. else
  10420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10421. /* end confdefs.h. */
  10422. #include <time.h>
  10423. #if !HAVE_DECL_TZNAME
  10424. extern char *tzname[];
  10425. #endif
  10426. int
  10427. main ()
  10428. {
  10429. return tzname[0][0];
  10430. ;
  10431. return 0;
  10432. }
  10433. _ACEOF
  10434. if ac_fn_c_try_link "$LINENO"; then :
  10435. ac_cv_var_tzname=yes
  10436. else
  10437. ac_cv_var_tzname=no
  10438. fi
  10439. rm -f core conftest.err conftest.$ac_objext \
  10440. conftest$ac_exeext conftest.$ac_ext
  10441. fi
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  10443. $as_echo "$ac_cv_var_tzname" >&6; }
  10444. if test $ac_cv_var_tzname = yes; then
  10445. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  10446. fi
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  10448. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  10449. if ${ac_cv_struct_tm_isdst+:} false; then :
  10450. $as_echo_n "(cached) " >&6
  10451. else
  10452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10453. /* end confdefs.h. */
  10454. #include <sys/types.h>
  10455. #include <$ac_cv_struct_tm>
  10456. int
  10457. main ()
  10458. {
  10459. struct tm tm; tm.tm_isdst;
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_c_try_compile "$LINENO"; then :
  10465. ac_cv_struct_tm_isdst=yes
  10466. else
  10467. ac_cv_struct_tm_isdst=no
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. fi
  10471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  10472. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  10473. if test "$ac_cv_struct_tm_isdst" = yes; then
  10474. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  10475. fi
  10476. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  10477. "
  10478. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  10479. ac_have_decl=1
  10480. else
  10481. ac_have_decl=0
  10482. fi
  10483. cat >>confdefs.h <<_ACEOF
  10484. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  10485. _ACEOF
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  10487. $as_echo_n "checking for daylight... " >&6; }
  10488. if ${ac_cv_var_daylight+:} false; then :
  10489. $as_echo_n "(cached) " >&6
  10490. else
  10491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10492. /* end confdefs.h. */
  10493. #include <time.h>
  10494. #if !HAVE_DECL_DAYLIGHT
  10495. extern int daylight;
  10496. #endif
  10497. int
  10498. main ()
  10499. {
  10500. atoi(daylight);
  10501. ;
  10502. return 0;
  10503. }
  10504. _ACEOF
  10505. if ac_fn_c_try_link "$LINENO"; then :
  10506. ac_cv_var_daylight=yes
  10507. else
  10508. ac_cv_var_daylight=no
  10509. fi
  10510. rm -f core conftest.err conftest.$ac_objext \
  10511. conftest$ac_exeext conftest.$ac_ext
  10512. fi
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  10514. $as_echo "$ac_cv_var_daylight" >&6; }
  10515. if test $ac_cv_var_daylight = yes; then
  10516. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  10517. fi
  10518. # Check whether --enable-largefile was given.
  10519. if test "${enable_largefile+set}" = set; then :
  10520. enableval=$enable_largefile;
  10521. fi
  10522. if test "$enable_largefile" != no; then
  10523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10524. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10525. if ${ac_cv_sys_largefile_CC+:} false; then :
  10526. $as_echo_n "(cached) " >&6
  10527. else
  10528. ac_cv_sys_largefile_CC=no
  10529. if test "$GCC" != yes; then
  10530. ac_save_CC=$CC
  10531. while :; do
  10532. # IRIX 6.2 and later do not support large files by default,
  10533. # so use the C compiler's -n32 option if that helps.
  10534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10535. /* end confdefs.h. */
  10536. #include <sys/types.h>
  10537. /* Check that off_t can represent 2**63 - 1 correctly.
  10538. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10539. since some C++ compilers masquerading as C compilers
  10540. incorrectly reject 9223372036854775807. */
  10541. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10542. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10543. && LARGE_OFF_T % 2147483647 == 1)
  10544. ? 1 : -1];
  10545. int
  10546. main ()
  10547. {
  10548. ;
  10549. return 0;
  10550. }
  10551. _ACEOF
  10552. if ac_fn_c_try_compile "$LINENO"; then :
  10553. break
  10554. fi
  10555. rm -f core conftest.err conftest.$ac_objext
  10556. CC="$CC -n32"
  10557. if ac_fn_c_try_compile "$LINENO"; then :
  10558. ac_cv_sys_largefile_CC=' -n32'; break
  10559. fi
  10560. rm -f core conftest.err conftest.$ac_objext
  10561. break
  10562. done
  10563. CC=$ac_save_CC
  10564. rm -f conftest.$ac_ext
  10565. fi
  10566. fi
  10567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10568. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10569. if test "$ac_cv_sys_largefile_CC" != no; then
  10570. CC=$CC$ac_cv_sys_largefile_CC
  10571. fi
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10573. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10574. if ${ac_cv_sys_file_offset_bits+:} false; then :
  10575. $as_echo_n "(cached) " >&6
  10576. else
  10577. while :; do
  10578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10579. /* end confdefs.h. */
  10580. #include <sys/types.h>
  10581. /* Check that off_t can represent 2**63 - 1 correctly.
  10582. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10583. since some C++ compilers masquerading as C compilers
  10584. incorrectly reject 9223372036854775807. */
  10585. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10586. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10587. && LARGE_OFF_T % 2147483647 == 1)
  10588. ? 1 : -1];
  10589. int
  10590. main ()
  10591. {
  10592. ;
  10593. return 0;
  10594. }
  10595. _ACEOF
  10596. if ac_fn_c_try_compile "$LINENO"; then :
  10597. ac_cv_sys_file_offset_bits=no; break
  10598. fi
  10599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. #define _FILE_OFFSET_BITS 64
  10603. #include <sys/types.h>
  10604. /* Check that off_t can represent 2**63 - 1 correctly.
  10605. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10606. since some C++ compilers masquerading as C compilers
  10607. incorrectly reject 9223372036854775807. */
  10608. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10609. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10610. && LARGE_OFF_T % 2147483647 == 1)
  10611. ? 1 : -1];
  10612. int
  10613. main ()
  10614. {
  10615. ;
  10616. return 0;
  10617. }
  10618. _ACEOF
  10619. if ac_fn_c_try_compile "$LINENO"; then :
  10620. ac_cv_sys_file_offset_bits=64; break
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10623. ac_cv_sys_file_offset_bits=unknown
  10624. break
  10625. done
  10626. fi
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10628. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10629. case $ac_cv_sys_file_offset_bits in #(
  10630. no | unknown) ;;
  10631. *)
  10632. cat >>confdefs.h <<_ACEOF
  10633. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10634. _ACEOF
  10635. ;;
  10636. esac
  10637. rm -rf conftest*
  10638. if test $ac_cv_sys_file_offset_bits = unknown; then
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10640. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10641. if ${ac_cv_sys_large_files+:} false; then :
  10642. $as_echo_n "(cached) " >&6
  10643. else
  10644. while :; do
  10645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10646. /* end confdefs.h. */
  10647. #include <sys/types.h>
  10648. /* Check that off_t can represent 2**63 - 1 correctly.
  10649. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10650. since some C++ compilers masquerading as C compilers
  10651. incorrectly reject 9223372036854775807. */
  10652. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10653. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10654. && LARGE_OFF_T % 2147483647 == 1)
  10655. ? 1 : -1];
  10656. int
  10657. main ()
  10658. {
  10659. ;
  10660. return 0;
  10661. }
  10662. _ACEOF
  10663. if ac_fn_c_try_compile "$LINENO"; then :
  10664. ac_cv_sys_large_files=no; break
  10665. fi
  10666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10668. /* end confdefs.h. */
  10669. #define _LARGE_FILES 1
  10670. #include <sys/types.h>
  10671. /* Check that off_t can represent 2**63 - 1 correctly.
  10672. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10673. since some C++ compilers masquerading as C compilers
  10674. incorrectly reject 9223372036854775807. */
  10675. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10676. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10677. && LARGE_OFF_T % 2147483647 == 1)
  10678. ? 1 : -1];
  10679. int
  10680. main ()
  10681. {
  10682. ;
  10683. return 0;
  10684. }
  10685. _ACEOF
  10686. if ac_fn_c_try_compile "$LINENO"; then :
  10687. ac_cv_sys_large_files=1; break
  10688. fi
  10689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10690. ac_cv_sys_large_files=unknown
  10691. break
  10692. done
  10693. fi
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10695. $as_echo "$ac_cv_sys_large_files" >&6; }
  10696. case $ac_cv_sys_large_files in #(
  10697. no | unknown) ;;
  10698. *)
  10699. cat >>confdefs.h <<_ACEOF
  10700. #define _LARGE_FILES $ac_cv_sys_large_files
  10701. _ACEOF
  10702. ;;
  10703. esac
  10704. rm -rf conftest*
  10705. fi
  10706. fi
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10708. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  10709. if ${ac_cv_sys_largefile_source+:} false; then :
  10710. $as_echo_n "(cached) " >&6
  10711. else
  10712. while :; do
  10713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10714. /* end confdefs.h. */
  10715. #include <sys/types.h> /* for off_t */
  10716. #include <stdio.h>
  10717. int
  10718. main ()
  10719. {
  10720. int (*fp) (FILE *, off_t, int) = fseeko;
  10721. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10722. ;
  10723. return 0;
  10724. }
  10725. _ACEOF
  10726. if ac_fn_c_try_link "$LINENO"; then :
  10727. ac_cv_sys_largefile_source=no; break
  10728. fi
  10729. rm -f core conftest.err conftest.$ac_objext \
  10730. conftest$ac_exeext conftest.$ac_ext
  10731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10732. /* end confdefs.h. */
  10733. #define _LARGEFILE_SOURCE 1
  10734. #include <sys/types.h> /* for off_t */
  10735. #include <stdio.h>
  10736. int
  10737. main ()
  10738. {
  10739. int (*fp) (FILE *, off_t, int) = fseeko;
  10740. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10741. ;
  10742. return 0;
  10743. }
  10744. _ACEOF
  10745. if ac_fn_c_try_link "$LINENO"; then :
  10746. ac_cv_sys_largefile_source=1; break
  10747. fi
  10748. rm -f core conftest.err conftest.$ac_objext \
  10749. conftest$ac_exeext conftest.$ac_ext
  10750. ac_cv_sys_largefile_source=unknown
  10751. break
  10752. done
  10753. fi
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  10755. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  10756. case $ac_cv_sys_largefile_source in #(
  10757. no | unknown) ;;
  10758. *)
  10759. cat >>confdefs.h <<_ACEOF
  10760. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10761. _ACEOF
  10762. ;;
  10763. esac
  10764. rm -rf conftest*
  10765. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10766. # in glibc 2.1.3, but that breaks too many other things.
  10767. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10768. if test $ac_cv_sys_largefile_source != unknown; then
  10769. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  10770. fi
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  10772. $as_echo_n "checking for mbstate_t... " >&6; }
  10773. if ${ac_cv_type_mbstate_t+:} false; then :
  10774. $as_echo_n "(cached) " >&6
  10775. else
  10776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10777. /* end confdefs.h. */
  10778. $ac_includes_default
  10779. # include <wchar.h>
  10780. int
  10781. main ()
  10782. {
  10783. mbstate_t x; return sizeof x;
  10784. ;
  10785. return 0;
  10786. }
  10787. _ACEOF
  10788. if ac_fn_c_try_compile "$LINENO"; then :
  10789. ac_cv_type_mbstate_t=yes
  10790. else
  10791. ac_cv_type_mbstate_t=no
  10792. fi
  10793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10794. fi
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  10796. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  10797. if test $ac_cv_type_mbstate_t = yes; then
  10798. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  10799. else
  10800. $as_echo "#define mbstate_t int" >>confdefs.h
  10801. fi
  10802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  10803. $as_echo_n "checking for struct option in getopt... " >&6; }
  10804. if ${ac_cv_struct_option_getopt_h+:} false; then :
  10805. $as_echo_n "(cached) " >&6
  10806. else
  10807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10808. /* end confdefs.h. */
  10809. #include <getopt.h>
  10810. int
  10811. main ()
  10812. {
  10813. struct option op; op.name;
  10814. ;
  10815. return 0;
  10816. }
  10817. _ACEOF
  10818. if ac_fn_c_try_compile "$LINENO"; then :
  10819. ac_cv_struct_option_getopt_h=yes
  10820. else
  10821. ac_cv_struct_option_getopt_h=no
  10822. fi
  10823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10824. fi
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  10826. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  10827. if test "$ac_cv_struct_option_getopt_h" = yes; then
  10828. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  10829. fi
  10830. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10831. if test "x$ac_cv_type_pid_t" = xyes; then :
  10832. else
  10833. cat >>confdefs.h <<_ACEOF
  10834. #define pid_t int
  10835. _ACEOF
  10836. fi
  10837. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  10838. case $ac_cv_c_uint8_t in #(
  10839. no|yes) ;; #(
  10840. *)
  10841. $as_echo "#define _UINT8_T 1" >>confdefs.h
  10842. cat >>confdefs.h <<_ACEOF
  10843. #define uint8_t $ac_cv_c_uint8_t
  10844. _ACEOF
  10845. ;;
  10846. esac
  10847. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  10848. case $ac_cv_c_uint16_t in #(
  10849. no|yes) ;; #(
  10850. *)
  10851. cat >>confdefs.h <<_ACEOF
  10852. #define uint16_t $ac_cv_c_uint16_t
  10853. _ACEOF
  10854. ;;
  10855. esac
  10856. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  10857. case $ac_cv_c_uint32_t in #(
  10858. no|yes) ;; #(
  10859. *)
  10860. $as_echo "#define _UINT32_T 1" >>confdefs.h
  10861. cat >>confdefs.h <<_ACEOF
  10862. #define uint32_t $ac_cv_c_uint32_t
  10863. _ACEOF
  10864. ;;
  10865. esac
  10866. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  10867. case $ac_cv_c_int32_t in #(
  10868. no|yes) ;; #(
  10869. *)
  10870. cat >>confdefs.h <<_ACEOF
  10871. #define int32_t $ac_cv_c_int32_t
  10872. _ACEOF
  10873. ;;
  10874. esac
  10875. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  10876. case $ac_cv_c_uint64_t in #(
  10877. no|yes) ;; #(
  10878. *)
  10879. $as_echo "#define _UINT64_T 1" >>confdefs.h
  10880. cat >>confdefs.h <<_ACEOF
  10881. #define uint64_t $ac_cv_c_uint64_t
  10882. _ACEOF
  10883. ;;
  10884. esac
  10885. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  10886. case $ac_cv_c_int64_t in #(
  10887. no|yes) ;; #(
  10888. *)
  10889. cat >>confdefs.h <<_ACEOF
  10890. #define int64_t $ac_cv_c_int64_t
  10891. _ACEOF
  10892. ;;
  10893. esac
  10894. for ac_header in $ac_header_list
  10895. do :
  10896. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10897. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  10898. "
  10899. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10900. cat >>confdefs.h <<_ACEOF
  10901. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10902. _ACEOF
  10903. fi
  10904. done
  10905. for ac_func in getpagesize
  10906. do :
  10907. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  10908. if test "x$ac_cv_func_getpagesize" = xyes; then :
  10909. cat >>confdefs.h <<_ACEOF
  10910. #define HAVE_GETPAGESIZE 1
  10911. _ACEOF
  10912. fi
  10913. done
  10914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  10915. $as_echo_n "checking for working mmap... " >&6; }
  10916. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  10917. $as_echo_n "(cached) " >&6
  10918. else
  10919. if test "$cross_compiling" = yes; then :
  10920. ac_cv_func_mmap_fixed_mapped=no
  10921. else
  10922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10923. /* end confdefs.h. */
  10924. $ac_includes_default
  10925. /* malloc might have been renamed as rpl_malloc. */
  10926. #undef malloc
  10927. /* Thanks to Mike Haertel and Jim Avera for this test.
  10928. Here is a matrix of mmap possibilities:
  10929. mmap private not fixed
  10930. mmap private fixed at somewhere currently unmapped
  10931. mmap private fixed at somewhere already mapped
  10932. mmap shared not fixed
  10933. mmap shared fixed at somewhere currently unmapped
  10934. mmap shared fixed at somewhere already mapped
  10935. For private mappings, we should verify that changes cannot be read()
  10936. back from the file, nor mmap's back from the file at a different
  10937. address. (There have been systems where private was not correctly
  10938. implemented like the infamous i386 svr4.0, and systems where the
  10939. VM page cache was not coherent with the file system buffer cache
  10940. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10941. For shared mappings, we should conversely verify that changes get
  10942. propagated back to all the places they're supposed to be.
  10943. Grep wants private fixed already mapped.
  10944. The main things grep needs to know about mmap are:
  10945. * does it exist and is it safe to write into the mmap'd area
  10946. * how to use it (BSD variants) */
  10947. #include <fcntl.h>
  10948. #include <sys/mman.h>
  10949. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10950. char *malloc ();
  10951. #endif
  10952. /* This mess was copied from the GNU getpagesize.h. */
  10953. #ifndef HAVE_GETPAGESIZE
  10954. # ifdef _SC_PAGESIZE
  10955. # define getpagesize() sysconf(_SC_PAGESIZE)
  10956. # else /* no _SC_PAGESIZE */
  10957. # ifdef HAVE_SYS_PARAM_H
  10958. # include <sys/param.h>
  10959. # ifdef EXEC_PAGESIZE
  10960. # define getpagesize() EXEC_PAGESIZE
  10961. # else /* no EXEC_PAGESIZE */
  10962. # ifdef NBPG
  10963. # define getpagesize() NBPG * CLSIZE
  10964. # ifndef CLSIZE
  10965. # define CLSIZE 1
  10966. # endif /* no CLSIZE */
  10967. # else /* no NBPG */
  10968. # ifdef NBPC
  10969. # define getpagesize() NBPC
  10970. # else /* no NBPC */
  10971. # ifdef PAGESIZE
  10972. # define getpagesize() PAGESIZE
  10973. # endif /* PAGESIZE */
  10974. # endif /* no NBPC */
  10975. # endif /* no NBPG */
  10976. # endif /* no EXEC_PAGESIZE */
  10977. # else /* no HAVE_SYS_PARAM_H */
  10978. # define getpagesize() 8192 /* punt totally */
  10979. # endif /* no HAVE_SYS_PARAM_H */
  10980. # endif /* no _SC_PAGESIZE */
  10981. #endif /* no HAVE_GETPAGESIZE */
  10982. int
  10983. main ()
  10984. {
  10985. char *data, *data2, *data3;
  10986. const char *cdata2;
  10987. int i, pagesize;
  10988. int fd, fd2;
  10989. pagesize = getpagesize ();
  10990. /* First, make a file with some known garbage in it. */
  10991. data = (char *) malloc (pagesize);
  10992. if (!data)
  10993. return 1;
  10994. for (i = 0; i < pagesize; ++i)
  10995. *(data + i) = rand ();
  10996. umask (0);
  10997. fd = creat ("conftest.mmap", 0600);
  10998. if (fd < 0)
  10999. return 2;
  11000. if (write (fd, data, pagesize) != pagesize)
  11001. return 3;
  11002. close (fd);
  11003. /* Next, check that the tail of a page is zero-filled. File must have
  11004. non-zero length, otherwise we risk SIGBUS for entire page. */
  11005. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11006. if (fd2 < 0)
  11007. return 4;
  11008. cdata2 = "";
  11009. if (write (fd2, cdata2, 1) != 1)
  11010. return 5;
  11011. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11012. if (data2 == MAP_FAILED)
  11013. return 6;
  11014. for (i = 0; i < pagesize; ++i)
  11015. if (*(data2 + i))
  11016. return 7;
  11017. close (fd2);
  11018. if (munmap (data2, pagesize))
  11019. return 8;
  11020. /* Next, try to mmap the file at a fixed address which already has
  11021. something else allocated at it. If we can, also make sure that
  11022. we see the same garbage. */
  11023. fd = open ("conftest.mmap", O_RDWR);
  11024. if (fd < 0)
  11025. return 9;
  11026. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11027. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11028. return 10;
  11029. for (i = 0; i < pagesize; ++i)
  11030. if (*(data + i) != *(data2 + i))
  11031. return 11;
  11032. /* Finally, make sure that changes to the mapped area do not
  11033. percolate back to the file as seen by read(). (This is a bug on
  11034. some variants of i386 svr4.0.) */
  11035. for (i = 0; i < pagesize; ++i)
  11036. *(data2 + i) = *(data2 + i) + 1;
  11037. data3 = (char *) malloc (pagesize);
  11038. if (!data3)
  11039. return 12;
  11040. if (read (fd, data3, pagesize) != pagesize)
  11041. return 13;
  11042. for (i = 0; i < pagesize; ++i)
  11043. if (*(data + i) != *(data3 + i))
  11044. return 14;
  11045. close (fd);
  11046. return 0;
  11047. }
  11048. _ACEOF
  11049. if ac_fn_c_try_run "$LINENO"; then :
  11050. ac_cv_func_mmap_fixed_mapped=yes
  11051. else
  11052. ac_cv_func_mmap_fixed_mapped=no
  11053. fi
  11054. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11055. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11056. fi
  11057. fi
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11059. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11060. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11061. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11062. fi
  11063. rm -f conftest.mmap conftest.txt
  11064. for ac_header in vfork.h
  11065. do :
  11066. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11067. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11068. cat >>confdefs.h <<_ACEOF
  11069. #define HAVE_VFORK_H 1
  11070. _ACEOF
  11071. fi
  11072. done
  11073. for ac_func in fork vfork
  11074. do :
  11075. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11076. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11077. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11078. cat >>confdefs.h <<_ACEOF
  11079. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11080. _ACEOF
  11081. fi
  11082. done
  11083. if test "x$ac_cv_func_fork" = xyes; then
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11085. $as_echo_n "checking for working fork... " >&6; }
  11086. if ${ac_cv_func_fork_works+:} false; then :
  11087. $as_echo_n "(cached) " >&6
  11088. else
  11089. if test "$cross_compiling" = yes; then :
  11090. ac_cv_func_fork_works=cross
  11091. else
  11092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11093. /* end confdefs.h. */
  11094. $ac_includes_default
  11095. int
  11096. main ()
  11097. {
  11098. /* By Ruediger Kuhlmann. */
  11099. return fork () < 0;
  11100. ;
  11101. return 0;
  11102. }
  11103. _ACEOF
  11104. if ac_fn_c_try_run "$LINENO"; then :
  11105. ac_cv_func_fork_works=yes
  11106. else
  11107. ac_cv_func_fork_works=no
  11108. fi
  11109. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11110. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11111. fi
  11112. fi
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11114. $as_echo "$ac_cv_func_fork_works" >&6; }
  11115. else
  11116. ac_cv_func_fork_works=$ac_cv_func_fork
  11117. fi
  11118. if test "x$ac_cv_func_fork_works" = xcross; then
  11119. case $host in
  11120. *-*-amigaos* | *-*-msdosdjgpp*)
  11121. # Override, as these systems have only a dummy fork() stub
  11122. ac_cv_func_fork_works=no
  11123. ;;
  11124. *)
  11125. ac_cv_func_fork_works=yes
  11126. ;;
  11127. esac
  11128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11129. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11130. fi
  11131. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11132. if test "x$ac_cv_func_vfork" = xyes; then
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11134. $as_echo_n "checking for working vfork... " >&6; }
  11135. if ${ac_cv_func_vfork_works+:} false; then :
  11136. $as_echo_n "(cached) " >&6
  11137. else
  11138. if test "$cross_compiling" = yes; then :
  11139. ac_cv_func_vfork_works=cross
  11140. else
  11141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11142. /* end confdefs.h. */
  11143. /* Thanks to Paul Eggert for this test. */
  11144. $ac_includes_default
  11145. #include <sys/wait.h>
  11146. #ifdef HAVE_VFORK_H
  11147. # include <vfork.h>
  11148. #endif
  11149. /* On some sparc systems, changes by the child to local and incoming
  11150. argument registers are propagated back to the parent. The compiler
  11151. is told about this with #include <vfork.h>, but some compilers
  11152. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11153. static variable whose address is put into a register that is
  11154. clobbered by the vfork. */
  11155. static void
  11156. #ifdef __cplusplus
  11157. sparc_address_test (int arg)
  11158. # else
  11159. sparc_address_test (arg) int arg;
  11160. #endif
  11161. {
  11162. static pid_t child;
  11163. if (!child) {
  11164. child = vfork ();
  11165. if (child < 0) {
  11166. perror ("vfork");
  11167. _exit(2);
  11168. }
  11169. if (!child) {
  11170. arg = getpid();
  11171. write(-1, "", 0);
  11172. _exit (arg);
  11173. }
  11174. }
  11175. }
  11176. int
  11177. main ()
  11178. {
  11179. pid_t parent = getpid ();
  11180. pid_t child;
  11181. sparc_address_test (0);
  11182. child = vfork ();
  11183. if (child == 0) {
  11184. /* Here is another test for sparc vfork register problems. This
  11185. test uses lots of local variables, at least as many local
  11186. variables as main has allocated so far including compiler
  11187. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11188. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11189. reuse the register of parent for one of the local variables,
  11190. since it will think that parent can't possibly be used any more
  11191. in this routine. Assigning to the local variable will thus
  11192. munge parent in the parent process. */
  11193. pid_t
  11194. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11195. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11196. /* Convince the compiler that p..p7 are live; otherwise, it might
  11197. use the same hardware register for all 8 local variables. */
  11198. if (p != p1 || p != p2 || p != p3 || p != p4
  11199. || p != p5 || p != p6 || p != p7)
  11200. _exit(1);
  11201. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11202. from child file descriptors. If the child closes a descriptor
  11203. before it execs or exits, this munges the parent's descriptor
  11204. as well. Test for this by closing stdout in the child. */
  11205. _exit(close(fileno(stdout)) != 0);
  11206. } else {
  11207. int status;
  11208. struct stat st;
  11209. while (wait(&status) != child)
  11210. ;
  11211. return (
  11212. /* Was there some problem with vforking? */
  11213. child < 0
  11214. /* Did the child fail? (This shouldn't happen.) */
  11215. || status
  11216. /* Did the vfork/compiler bug occur? */
  11217. || parent != getpid()
  11218. /* Did the file descriptor bug occur? */
  11219. || fstat(fileno(stdout), &st) != 0
  11220. );
  11221. }
  11222. }
  11223. _ACEOF
  11224. if ac_fn_c_try_run "$LINENO"; then :
  11225. ac_cv_func_vfork_works=yes
  11226. else
  11227. ac_cv_func_vfork_works=no
  11228. fi
  11229. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11230. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11231. fi
  11232. fi
  11233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  11234. $as_echo "$ac_cv_func_vfork_works" >&6; }
  11235. fi;
  11236. if test "x$ac_cv_func_fork_works" = xcross; then
  11237. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11238. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  11239. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  11240. fi
  11241. if test "x$ac_cv_func_vfork_works" = xyes; then
  11242. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  11243. else
  11244. $as_echo "#define vfork fork" >>confdefs.h
  11245. fi
  11246. if test "x$ac_cv_func_fork_works" = xyes; then
  11247. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  11248. fi
  11249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  11250. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  11251. if ${ac_cv_func_mbrtowc+:} false; then :
  11252. $as_echo_n "(cached) " >&6
  11253. else
  11254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11255. /* end confdefs.h. */
  11256. #include <wchar.h>
  11257. int
  11258. main ()
  11259. {
  11260. wchar_t wc;
  11261. char const s[] = "";
  11262. size_t n = 1;
  11263. mbstate_t state;
  11264. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  11265. ;
  11266. return 0;
  11267. }
  11268. _ACEOF
  11269. if ac_fn_c_try_link "$LINENO"; then :
  11270. ac_cv_func_mbrtowc=yes
  11271. else
  11272. ac_cv_func_mbrtowc=no
  11273. fi
  11274. rm -f core conftest.err conftest.$ac_objext \
  11275. conftest$ac_exeext conftest.$ac_ext
  11276. fi
  11277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  11278. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  11279. if test $ac_cv_func_mbrtowc = yes; then
  11280. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  11281. fi
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  11283. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  11284. # Check whether --enable-warnings was given.
  11285. if test "${enable_warnings+set}" = set; then :
  11286. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  11287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11288. $as_echo "no" >&6; }
  11289. WARNINGS=
  11290. else
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11292. $as_echo "yes" >&6; }
  11293. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  11294. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  11295. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  11296. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  11297. fi
  11298. else
  11299. if test "$GCC" = yes; then
  11300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11301. $as_echo "yes" >&6; }
  11302. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  11303. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  11304. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  11305. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  11306. else
  11307. WARNINGS=
  11308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11309. $as_echo "no" >&6; }
  11310. fi
  11311. fi
  11312. for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof
  11313. do :
  11314. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11315. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11316. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11317. cat >>confdefs.h <<_ACEOF
  11318. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11319. _ACEOF
  11320. fi
  11321. done
  11322. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  11323. if test "x$ac_cv_func_getopt_long" = xyes; then :
  11324. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  11325. else
  11326. case " $LIBOBJS " in
  11327. *" getopt_long.$ac_objext "* ) ;;
  11328. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  11329. ;;
  11330. esac
  11331. fi
  11332. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  11333. if test "x$ac_cv_func_asprintf" = xyes; then :
  11334. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  11335. else
  11336. case " $LIBOBJS " in
  11337. *" asprintf.$ac_objext "* ) ;;
  11338. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  11339. ;;
  11340. esac
  11341. fi
  11342. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  11343. if test "x$ac_cv_func_vasprintf" = xyes; then :
  11344. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  11345. else
  11346. case " $LIBOBJS " in
  11347. *" vasprintf.$ac_objext "* ) ;;
  11348. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  11349. ;;
  11350. esac
  11351. fi
  11352. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  11353. if test "x$ac_cv_func_strlcpy" = xyes; then :
  11354. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  11355. else
  11356. case " $LIBOBJS " in
  11357. *" strlcpy.$ac_objext "* ) ;;
  11358. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  11359. ;;
  11360. esac
  11361. fi
  11362. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  11363. if test "x$ac_cv_func_strlcat" = xyes; then :
  11364. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  11365. else
  11366. case " $LIBOBJS " in
  11367. *" strlcat.$ac_objext "* ) ;;
  11368. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  11369. ;;
  11370. esac
  11371. fi
  11372. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  11373. if test "x$ac_cv_func_getline" = xyes; then :
  11374. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  11375. else
  11376. case " $LIBOBJS " in
  11377. *" getline.$ac_objext "* ) ;;
  11378. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  11379. ;;
  11380. esac
  11381. fi
  11382. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  11383. if test "x$ac_cv_func_ctime_r" = xyes; then :
  11384. $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
  11385. else
  11386. case " $LIBOBJS " in
  11387. *" ctime_r.$ac_objext "* ) ;;
  11388. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  11389. ;;
  11390. esac
  11391. fi
  11392. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  11393. if test "x$ac_cv_func_asctime_r" = xyes; then :
  11394. $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
  11395. else
  11396. case " $LIBOBJS " in
  11397. *" asctime_r.$ac_objext "* ) ;;
  11398. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  11399. ;;
  11400. esac
  11401. fi
  11402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  11403. $as_echo_n "checking for gzopen in -lz... " >&6; }
  11404. if ${ac_cv_lib_z_gzopen+:} false; then :
  11405. $as_echo_n "(cached) " >&6
  11406. else
  11407. ac_check_lib_save_LIBS=$LIBS
  11408. LIBS="-lz $LIBS"
  11409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11410. /* end confdefs.h. */
  11411. /* Override any GCC internal prototype to avoid an error.
  11412. Use char because int might match the return type of a GCC
  11413. builtin and then its argument prototype would still apply. */
  11414. #ifdef __cplusplus
  11415. extern "C"
  11416. #endif
  11417. char gzopen ();
  11418. int
  11419. main ()
  11420. {
  11421. return gzopen ();
  11422. ;
  11423. return 0;
  11424. }
  11425. _ACEOF
  11426. if ac_fn_c_try_link "$LINENO"; then :
  11427. ac_cv_lib_z_gzopen=yes
  11428. else
  11429. ac_cv_lib_z_gzopen=no
  11430. fi
  11431. rm -f core conftest.err conftest.$ac_objext \
  11432. conftest$ac_exeext conftest.$ac_ext
  11433. LIBS=$ac_check_lib_save_LIBS
  11434. fi
  11435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  11436. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  11437. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  11438. cat >>confdefs.h <<_ACEOF
  11439. #define HAVE_LIBZ 1
  11440. _ACEOF
  11441. LIBS="-lz $LIBS"
  11442. fi
  11443. if test "$MINGW" = 1; then
  11444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  11445. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  11446. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  11447. $as_echo_n "(cached) " >&6
  11448. else
  11449. ac_check_lib_save_LIBS=$LIBS
  11450. LIBS="-lgnurx $LIBS"
  11451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11452. /* end confdefs.h. */
  11453. /* Override any GCC internal prototype to avoid an error.
  11454. Use char because int might match the return type of a GCC
  11455. builtin and then its argument prototype would still apply. */
  11456. #ifdef __cplusplus
  11457. extern "C"
  11458. #endif
  11459. char regexec ();
  11460. int
  11461. main ()
  11462. {
  11463. return regexec ();
  11464. ;
  11465. return 0;
  11466. }
  11467. _ACEOF
  11468. if ac_fn_c_try_link "$LINENO"; then :
  11469. ac_cv_lib_gnurx_regexec=yes
  11470. else
  11471. ac_cv_lib_gnurx_regexec=no
  11472. fi
  11473. rm -f core conftest.err conftest.$ac_objext \
  11474. conftest$ac_exeext conftest.$ac_ext
  11475. LIBS=$ac_check_lib_save_LIBS
  11476. fi
  11477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  11478. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  11479. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  11480. cat >>confdefs.h <<_ACEOF
  11481. #define HAVE_LIBGNURX 1
  11482. _ACEOF
  11483. LIBS="-lgnurx $LIBS"
  11484. else
  11485. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  11486. fi
  11487. fi
  11488. if test "$cross_compiling" = yes; then
  11489. IS_CROSS_COMPILE_TRUE=
  11490. IS_CROSS_COMPILE_FALSE='#'
  11491. else
  11492. IS_CROSS_COMPILE_TRUE='#'
  11493. IS_CROSS_COMPILE_FALSE=
  11494. fi
  11495. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  11496. cat >confcache <<\_ACEOF
  11497. # This file is a shell script that caches the results of configure
  11498. # tests run on this system so they can be shared between configure
  11499. # scripts and configure runs, see configure's option --config-cache.
  11500. # It is not useful on other systems. If it contains results you don't
  11501. # want to keep, you may remove or edit it.
  11502. #
  11503. # config.status only pays attention to the cache file if you give it
  11504. # the --recheck option to rerun configure.
  11505. #
  11506. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11507. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11508. # following values.
  11509. _ACEOF
  11510. # The following way of writing the cache mishandles newlines in values,
  11511. # but we know of no workaround that is simple, portable, and efficient.
  11512. # So, we kill variables containing newlines.
  11513. # Ultrix sh set writes to stderr and can't be redirected directly,
  11514. # and sets the high bit in the cache file unless we assign to the vars.
  11515. (
  11516. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11517. eval ac_val=\$$ac_var
  11518. case $ac_val in #(
  11519. *${as_nl}*)
  11520. case $ac_var in #(
  11521. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11522. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11523. esac
  11524. case $ac_var in #(
  11525. _ | IFS | as_nl) ;; #(
  11526. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11527. *) { eval $ac_var=; unset $ac_var;} ;;
  11528. esac ;;
  11529. esac
  11530. done
  11531. (set) 2>&1 |
  11532. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11533. *${as_nl}ac_space=\ *)
  11534. # `set' does not quote correctly, so add quotes: double-quote
  11535. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11536. sed -n \
  11537. "s/'/'\\\\''/g;
  11538. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11539. ;; #(
  11540. *)
  11541. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11542. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11543. ;;
  11544. esac |
  11545. sort
  11546. ) |
  11547. sed '
  11548. /^ac_cv_env_/b end
  11549. t clear
  11550. :clear
  11551. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11552. t end
  11553. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11554. :end' >>confcache
  11555. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11556. if test -w "$cache_file"; then
  11557. if test "x$cache_file" != "x/dev/null"; then
  11558. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11559. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11560. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11561. cat confcache >"$cache_file"
  11562. else
  11563. case $cache_file in #(
  11564. */* | ?:*)
  11565. mv -f confcache "$cache_file"$$ &&
  11566. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11567. *)
  11568. mv -f confcache "$cache_file" ;;
  11569. esac
  11570. fi
  11571. fi
  11572. else
  11573. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11574. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11575. fi
  11576. fi
  11577. rm -f confcache
  11578. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11579. # Let make expand exec_prefix.
  11580. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11581. DEFS=-DHAVE_CONFIG_H
  11582. ac_libobjs=
  11583. ac_ltlibobjs=
  11584. U=
  11585. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11586. # 1. Remove the extension, and $U if already installed.
  11587. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11588. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11589. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11590. # will be set to the directory where LIBOBJS objects are built.
  11591. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11592. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11593. done
  11594. LIBOBJS=$ac_libobjs
  11595. LTLIBOBJS=$ac_ltlibobjs
  11596. if test -n "$EXEEXT"; then
  11597. am__EXEEXT_TRUE=
  11598. am__EXEEXT_FALSE='#'
  11599. else
  11600. am__EXEEXT_TRUE='#'
  11601. am__EXEEXT_FALSE=
  11602. fi
  11603. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  11604. as_fn_error $? "conditional \"MINGW\" was never defined.
  11605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11606. fi
  11607. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  11608. as_fn_error $? "conditional \"FSECT5\" was never defined.
  11609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11610. fi
  11611. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11612. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11614. fi
  11615. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11616. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11618. fi
  11619. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  11620. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  11621. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11622. fi
  11623. : "${CONFIG_STATUS=./config.status}"
  11624. ac_write_fail=0
  11625. ac_clean_files_save=$ac_clean_files
  11626. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11627. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11628. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11629. as_write_fail=0
  11630. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11631. #! $SHELL
  11632. # Generated by $as_me.
  11633. # Run this file to recreate the current configuration.
  11634. # Compiler output produced by configure, useful for debugging
  11635. # configure, is in config.log if it exists.
  11636. debug=false
  11637. ac_cs_recheck=false
  11638. ac_cs_silent=false
  11639. SHELL=\${CONFIG_SHELL-$SHELL}
  11640. export SHELL
  11641. _ASEOF
  11642. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11643. ## -------------------- ##
  11644. ## M4sh Initialization. ##
  11645. ## -------------------- ##
  11646. # Be more Bourne compatible
  11647. DUALCASE=1; export DUALCASE # for MKS sh
  11648. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11649. emulate sh
  11650. NULLCMD=:
  11651. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11652. # is contrary to our usage. Disable this feature.
  11653. alias -g '${1+"$@"}'='"$@"'
  11654. setopt NO_GLOB_SUBST
  11655. else
  11656. case `(set -o) 2>/dev/null` in #(
  11657. *posix*) :
  11658. set -o posix ;; #(
  11659. *) :
  11660. ;;
  11661. esac
  11662. fi
  11663. as_nl='
  11664. '
  11665. export as_nl
  11666. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11667. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11668. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11669. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11670. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11671. # but without wasting forks for bash or zsh.
  11672. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11673. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11674. as_echo='print -r --'
  11675. as_echo_n='print -rn --'
  11676. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11677. as_echo='printf %s\n'
  11678. as_echo_n='printf %s'
  11679. else
  11680. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11681. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11682. as_echo_n='/usr/ucb/echo -n'
  11683. else
  11684. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11685. as_echo_n_body='eval
  11686. arg=$1;
  11687. case $arg in #(
  11688. *"$as_nl"*)
  11689. expr "X$arg" : "X\\(.*\\)$as_nl";
  11690. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11691. esac;
  11692. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11693. '
  11694. export as_echo_n_body
  11695. as_echo_n='sh -c $as_echo_n_body as_echo'
  11696. fi
  11697. export as_echo_body
  11698. as_echo='sh -c $as_echo_body as_echo'
  11699. fi
  11700. # The user is always right.
  11701. if test "${PATH_SEPARATOR+set}" != set; then
  11702. PATH_SEPARATOR=:
  11703. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11704. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11705. PATH_SEPARATOR=';'
  11706. }
  11707. fi
  11708. # IFS
  11709. # We need space, tab and new line, in precisely that order. Quoting is
  11710. # there to prevent editors from complaining about space-tab.
  11711. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11712. # splitting by setting IFS to empty value.)
  11713. IFS=" "" $as_nl"
  11714. # Find who we are. Look in the path if we contain no directory separator.
  11715. as_myself=
  11716. case $0 in #((
  11717. *[\\/]* ) as_myself=$0 ;;
  11718. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11719. for as_dir in $PATH
  11720. do
  11721. IFS=$as_save_IFS
  11722. test -z "$as_dir" && as_dir=.
  11723. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11724. done
  11725. IFS=$as_save_IFS
  11726. ;;
  11727. esac
  11728. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11729. # in which case we are not to be found in the path.
  11730. if test "x$as_myself" = x; then
  11731. as_myself=$0
  11732. fi
  11733. if test ! -f "$as_myself"; then
  11734. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11735. exit 1
  11736. fi
  11737. # Unset variables that we do not need and which cause bugs (e.g. in
  11738. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11739. # suppresses any "Segmentation fault" message there. '((' could
  11740. # trigger a bug in pdksh 5.2.14.
  11741. for as_var in BASH_ENV ENV MAIL MAILPATH
  11742. do eval test x\${$as_var+set} = xset \
  11743. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11744. done
  11745. PS1='$ '
  11746. PS2='> '
  11747. PS4='+ '
  11748. # NLS nuisances.
  11749. LC_ALL=C
  11750. export LC_ALL
  11751. LANGUAGE=C
  11752. export LANGUAGE
  11753. # CDPATH.
  11754. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11755. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11756. # ----------------------------------------
  11757. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11758. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11759. # script with STATUS, using 1 if that was 0.
  11760. as_fn_error ()
  11761. {
  11762. as_status=$1; test $as_status -eq 0 && as_status=1
  11763. if test "$4"; then
  11764. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11765. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11766. fi
  11767. $as_echo "$as_me: error: $2" >&2
  11768. as_fn_exit $as_status
  11769. } # as_fn_error
  11770. # as_fn_set_status STATUS
  11771. # -----------------------
  11772. # Set $? to STATUS, without forking.
  11773. as_fn_set_status ()
  11774. {
  11775. return $1
  11776. } # as_fn_set_status
  11777. # as_fn_exit STATUS
  11778. # -----------------
  11779. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11780. as_fn_exit ()
  11781. {
  11782. set +e
  11783. as_fn_set_status $1
  11784. exit $1
  11785. } # as_fn_exit
  11786. # as_fn_unset VAR
  11787. # ---------------
  11788. # Portably unset VAR.
  11789. as_fn_unset ()
  11790. {
  11791. { eval $1=; unset $1;}
  11792. }
  11793. as_unset=as_fn_unset
  11794. # as_fn_append VAR VALUE
  11795. # ----------------------
  11796. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11797. # advantage of any shell optimizations that allow amortized linear growth over
  11798. # repeated appends, instead of the typical quadratic growth present in naive
  11799. # implementations.
  11800. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11801. eval 'as_fn_append ()
  11802. {
  11803. eval $1+=\$2
  11804. }'
  11805. else
  11806. as_fn_append ()
  11807. {
  11808. eval $1=\$$1\$2
  11809. }
  11810. fi # as_fn_append
  11811. # as_fn_arith ARG...
  11812. # ------------------
  11813. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11814. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11815. # must be portable across $(()) and expr.
  11816. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11817. eval 'as_fn_arith ()
  11818. {
  11819. as_val=$(( $* ))
  11820. }'
  11821. else
  11822. as_fn_arith ()
  11823. {
  11824. as_val=`expr "$@" || test $? -eq 1`
  11825. }
  11826. fi # as_fn_arith
  11827. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11828. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11829. as_expr=expr
  11830. else
  11831. as_expr=false
  11832. fi
  11833. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11834. as_basename=basename
  11835. else
  11836. as_basename=false
  11837. fi
  11838. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11839. as_dirname=dirname
  11840. else
  11841. as_dirname=false
  11842. fi
  11843. as_me=`$as_basename -- "$0" ||
  11844. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11845. X"$0" : 'X\(//\)$' \| \
  11846. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11847. $as_echo X/"$0" |
  11848. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11849. s//\1/
  11850. q
  11851. }
  11852. /^X\/\(\/\/\)$/{
  11853. s//\1/
  11854. q
  11855. }
  11856. /^X\/\(\/\).*/{
  11857. s//\1/
  11858. q
  11859. }
  11860. s/.*/./; q'`
  11861. # Avoid depending upon Character Ranges.
  11862. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11863. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11864. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11865. as_cr_digits='0123456789'
  11866. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11867. ECHO_C= ECHO_N= ECHO_T=
  11868. case `echo -n x` in #(((((
  11869. -n*)
  11870. case `echo 'xy\c'` in
  11871. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11872. xy) ECHO_C='\c';;
  11873. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11874. ECHO_T=' ';;
  11875. esac;;
  11876. *)
  11877. ECHO_N='-n';;
  11878. esac
  11879. rm -f conf$$ conf$$.exe conf$$.file
  11880. if test -d conf$$.dir; then
  11881. rm -f conf$$.dir/conf$$.file
  11882. else
  11883. rm -f conf$$.dir
  11884. mkdir conf$$.dir 2>/dev/null
  11885. fi
  11886. if (echo >conf$$.file) 2>/dev/null; then
  11887. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11888. as_ln_s='ln -s'
  11889. # ... but there are two gotchas:
  11890. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11891. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11892. # In both cases, we have to default to `cp -p'.
  11893. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11894. as_ln_s='cp -p'
  11895. elif ln conf$$.file conf$$ 2>/dev/null; then
  11896. as_ln_s=ln
  11897. else
  11898. as_ln_s='cp -p'
  11899. fi
  11900. else
  11901. as_ln_s='cp -p'
  11902. fi
  11903. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11904. rmdir conf$$.dir 2>/dev/null
  11905. # as_fn_mkdir_p
  11906. # -------------
  11907. # Create "$as_dir" as a directory, including parents if necessary.
  11908. as_fn_mkdir_p ()
  11909. {
  11910. case $as_dir in #(
  11911. -*) as_dir=./$as_dir;;
  11912. esac
  11913. test -d "$as_dir" || eval $as_mkdir_p || {
  11914. as_dirs=
  11915. while :; do
  11916. case $as_dir in #(
  11917. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11918. *) as_qdir=$as_dir;;
  11919. esac
  11920. as_dirs="'$as_qdir' $as_dirs"
  11921. as_dir=`$as_dirname -- "$as_dir" ||
  11922. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11923. X"$as_dir" : 'X\(//\)[^/]' \| \
  11924. X"$as_dir" : 'X\(//\)$' \| \
  11925. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11926. $as_echo X"$as_dir" |
  11927. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11928. s//\1/
  11929. q
  11930. }
  11931. /^X\(\/\/\)[^/].*/{
  11932. s//\1/
  11933. q
  11934. }
  11935. /^X\(\/\/\)$/{
  11936. s//\1/
  11937. q
  11938. }
  11939. /^X\(\/\).*/{
  11940. s//\1/
  11941. q
  11942. }
  11943. s/.*/./; q'`
  11944. test -d "$as_dir" && break
  11945. done
  11946. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11947. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11948. } # as_fn_mkdir_p
  11949. if mkdir -p . 2>/dev/null; then
  11950. as_mkdir_p='mkdir -p "$as_dir"'
  11951. else
  11952. test -d ./-p && rmdir ./-p
  11953. as_mkdir_p=false
  11954. fi
  11955. if test -x / >/dev/null 2>&1; then
  11956. as_test_x='test -x'
  11957. else
  11958. if ls -dL / >/dev/null 2>&1; then
  11959. as_ls_L_option=L
  11960. else
  11961. as_ls_L_option=
  11962. fi
  11963. as_test_x='
  11964. eval sh -c '\''
  11965. if test -d "$1"; then
  11966. test -d "$1/.";
  11967. else
  11968. case $1 in #(
  11969. -*)set "./$1";;
  11970. esac;
  11971. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11972. ???[sx]*):;;*)false;;esac;fi
  11973. '\'' sh
  11974. '
  11975. fi
  11976. as_executable_p=$as_test_x
  11977. # Sed expression to map a string onto a valid CPP name.
  11978. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11979. # Sed expression to map a string onto a valid variable name.
  11980. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11981. exec 6>&1
  11982. ## ----------------------------------- ##
  11983. ## Main body of $CONFIG_STATUS script. ##
  11984. ## ----------------------------------- ##
  11985. _ASEOF
  11986. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11987. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11988. # Save the log message, to keep $0 and so on meaningful, and to
  11989. # report actual input values of CONFIG_FILES etc. instead of their
  11990. # values after options handling.
  11991. ac_log="
  11992. This file was extended by file $as_me 5.12, which was
  11993. generated by GNU Autoconf 2.68. Invocation command line was
  11994. CONFIG_FILES = $CONFIG_FILES
  11995. CONFIG_HEADERS = $CONFIG_HEADERS
  11996. CONFIG_LINKS = $CONFIG_LINKS
  11997. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11998. $ $0 $@
  11999. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12000. "
  12001. _ACEOF
  12002. case $ac_config_files in *"
  12003. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12004. esac
  12005. case $ac_config_headers in *"
  12006. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12007. esac
  12008. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12009. # Files that config.status was made for.
  12010. config_files="$ac_config_files"
  12011. config_headers="$ac_config_headers"
  12012. config_commands="$ac_config_commands"
  12013. _ACEOF
  12014. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12015. ac_cs_usage="\
  12016. \`$as_me' instantiates files and other configuration actions
  12017. from templates according to the current configuration. Unless the files
  12018. and actions are specified as TAGs, all are instantiated by default.
  12019. Usage: $0 [OPTION]... [TAG]...
  12020. -h, --help print this help, then exit
  12021. -V, --version print version number and configuration settings, then exit
  12022. --config print configuration, then exit
  12023. -q, --quiet, --silent
  12024. do not print progress messages
  12025. -d, --debug don't remove temporary files
  12026. --recheck update $as_me by reconfiguring in the same conditions
  12027. --file=FILE[:TEMPLATE]
  12028. instantiate the configuration file FILE
  12029. --header=FILE[:TEMPLATE]
  12030. instantiate the configuration header FILE
  12031. Configuration files:
  12032. $config_files
  12033. Configuration headers:
  12034. $config_headers
  12035. Configuration commands:
  12036. $config_commands
  12037. Report bugs to <christos@astron.com>."
  12038. _ACEOF
  12039. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12040. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12041. ac_cs_version="\\
  12042. file config.status 5.12
  12043. configured by $0, generated by GNU Autoconf 2.68,
  12044. with options \\"\$ac_cs_config\\"
  12045. Copyright (C) 2010 Free Software Foundation, Inc.
  12046. This config.status script is free software; the Free Software Foundation
  12047. gives unlimited permission to copy, distribute and modify it."
  12048. ac_pwd='$ac_pwd'
  12049. srcdir='$srcdir'
  12050. INSTALL='$INSTALL'
  12051. MKDIR_P='$MKDIR_P'
  12052. AWK='$AWK'
  12053. test -n "\$AWK" || AWK=awk
  12054. _ACEOF
  12055. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12056. # The default lists apply if the user does not specify any file.
  12057. ac_need_defaults=:
  12058. while test $# != 0
  12059. do
  12060. case $1 in
  12061. --*=?*)
  12062. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12063. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12064. ac_shift=:
  12065. ;;
  12066. --*=)
  12067. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12068. ac_optarg=
  12069. ac_shift=:
  12070. ;;
  12071. *)
  12072. ac_option=$1
  12073. ac_optarg=$2
  12074. ac_shift=shift
  12075. ;;
  12076. esac
  12077. case $ac_option in
  12078. # Handling of the options.
  12079. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12080. ac_cs_recheck=: ;;
  12081. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12082. $as_echo "$ac_cs_version"; exit ;;
  12083. --config | --confi | --conf | --con | --co | --c )
  12084. $as_echo "$ac_cs_config"; exit ;;
  12085. --debug | --debu | --deb | --de | --d | -d )
  12086. debug=: ;;
  12087. --file | --fil | --fi | --f )
  12088. $ac_shift
  12089. case $ac_optarg in
  12090. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12091. '') as_fn_error $? "missing file argument" ;;
  12092. esac
  12093. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12094. ac_need_defaults=false;;
  12095. --header | --heade | --head | --hea )
  12096. $ac_shift
  12097. case $ac_optarg in
  12098. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12099. esac
  12100. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12101. ac_need_defaults=false;;
  12102. --he | --h)
  12103. # Conflict between --help and --header
  12104. as_fn_error $? "ambiguous option: \`$1'
  12105. Try \`$0 --help' for more information.";;
  12106. --help | --hel | -h )
  12107. $as_echo "$ac_cs_usage"; exit ;;
  12108. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12109. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12110. ac_cs_silent=: ;;
  12111. # This is an error.
  12112. -*) as_fn_error $? "unrecognized option: \`$1'
  12113. Try \`$0 --help' for more information." ;;
  12114. *) as_fn_append ac_config_targets " $1"
  12115. ac_need_defaults=false ;;
  12116. esac
  12117. shift
  12118. done
  12119. ac_configure_extra_args=
  12120. if $ac_cs_silent; then
  12121. exec 6>/dev/null
  12122. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12123. fi
  12124. _ACEOF
  12125. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12126. if \$ac_cs_recheck; then
  12127. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12128. shift
  12129. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12130. CONFIG_SHELL='$SHELL'
  12131. export CONFIG_SHELL
  12132. exec "\$@"
  12133. fi
  12134. _ACEOF
  12135. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12136. exec 5>>config.log
  12137. {
  12138. echo
  12139. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12140. ## Running $as_me. ##
  12141. _ASBOX
  12142. $as_echo "$ac_log"
  12143. } >&5
  12144. _ACEOF
  12145. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12146. #
  12147. # INIT-COMMANDS
  12148. #
  12149. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12150. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12151. # if CDPATH is set.
  12152. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12153. sed_quote_subst='$sed_quote_subst'
  12154. double_quote_subst='$double_quote_subst'
  12155. delay_variable_subst='$delay_variable_subst'
  12156. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  12157. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  12158. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  12159. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  12160. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  12161. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  12162. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12163. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  12164. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  12165. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12166. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  12167. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  12168. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  12169. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  12170. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  12171. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12172. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12173. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  12174. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  12175. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  12176. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  12177. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  12178. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  12179. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  12180. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  12181. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  12182. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12183. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12184. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  12185. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  12186. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  12187. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  12188. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12189. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  12190. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  12191. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12192. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12193. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12194. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  12195. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12196. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  12197. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  12198. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  12199. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  12200. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  12201. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12202. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  12203. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  12204. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  12205. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  12206. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12207. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  12208. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  12209. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  12210. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  12211. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  12212. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  12213. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  12214. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  12215. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12216. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  12217. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  12218. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12219. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12220. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  12221. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  12222. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12223. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12224. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  12225. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12226. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12227. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12228. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12229. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12230. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12231. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12232. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12233. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12234. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12235. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12236. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  12237. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  12238. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  12239. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  12240. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12241. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  12242. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  12243. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  12244. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  12245. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  12246. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12247. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12248. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12249. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12250. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12251. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  12252. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12253. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  12254. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  12255. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12256. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12257. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  12258. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12259. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12260. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12261. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12262. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12263. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12264. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  12265. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  12266. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12267. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12268. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  12269. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  12270. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  12271. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  12272. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12273. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12274. LTCC='$LTCC'
  12275. LTCFLAGS='$LTCFLAGS'
  12276. compiler='$compiler_DEFAULT'
  12277. # Quote evaled strings.
  12278. for var in SED \
  12279. GREP \
  12280. EGREP \
  12281. FGREP \
  12282. LD \
  12283. NM \
  12284. LN_S \
  12285. lt_SP2NL \
  12286. lt_NL2SP \
  12287. reload_flag \
  12288. OBJDUMP \
  12289. deplibs_check_method \
  12290. file_magic_cmd \
  12291. AR \
  12292. AR_FLAGS \
  12293. STRIP \
  12294. RANLIB \
  12295. CC \
  12296. CFLAGS \
  12297. compiler \
  12298. lt_cv_sys_global_symbol_pipe \
  12299. lt_cv_sys_global_symbol_to_cdecl \
  12300. lt_cv_sys_global_symbol_to_c_name_address \
  12301. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12302. SHELL \
  12303. ECHO \
  12304. lt_prog_compiler_no_builtin_flag \
  12305. lt_prog_compiler_wl \
  12306. lt_prog_compiler_pic \
  12307. lt_prog_compiler_static \
  12308. lt_cv_prog_compiler_c_o \
  12309. need_locks \
  12310. DSYMUTIL \
  12311. NMEDIT \
  12312. LIPO \
  12313. OTOOL \
  12314. OTOOL64 \
  12315. shrext_cmds \
  12316. export_dynamic_flag_spec \
  12317. whole_archive_flag_spec \
  12318. compiler_needs_object \
  12319. with_gnu_ld \
  12320. allow_undefined_flag \
  12321. no_undefined_flag \
  12322. hardcode_libdir_flag_spec \
  12323. hardcode_libdir_flag_spec_ld \
  12324. hardcode_libdir_separator \
  12325. fix_srcfile_path \
  12326. exclude_expsyms \
  12327. include_expsyms \
  12328. file_list_spec \
  12329. variables_saved_for_relink \
  12330. libname_spec \
  12331. library_names_spec \
  12332. soname_spec \
  12333. finish_eval \
  12334. old_striplib \
  12335. striplib; do
  12336. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12337. *[\\\\\\\`\\"\\\$]*)
  12338. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12339. ;;
  12340. *)
  12341. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12342. ;;
  12343. esac
  12344. done
  12345. # Double-quote double-evaled strings.
  12346. for var in reload_cmds \
  12347. old_postinstall_cmds \
  12348. old_postuninstall_cmds \
  12349. old_archive_cmds \
  12350. extract_expsyms_cmds \
  12351. old_archive_from_new_cmds \
  12352. old_archive_from_expsyms_cmds \
  12353. archive_cmds \
  12354. archive_expsym_cmds \
  12355. module_cmds \
  12356. module_expsym_cmds \
  12357. export_symbols_cmds \
  12358. prelink_cmds \
  12359. postinstall_cmds \
  12360. postuninstall_cmds \
  12361. finish_cmds \
  12362. sys_lib_search_path_spec \
  12363. sys_lib_dlsearch_path_spec; do
  12364. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12365. *[\\\\\\\`\\"\\\$]*)
  12366. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12367. ;;
  12368. *)
  12369. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12370. ;;
  12371. esac
  12372. done
  12373. # Fix-up fallback echo if it was mangled by the above quoting rules.
  12374. case \$lt_ECHO in
  12375. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  12376. ;;
  12377. esac
  12378. ac_aux_dir='$ac_aux_dir'
  12379. xsi_shell='$xsi_shell'
  12380. lt_shell_append='$lt_shell_append'
  12381. # See if we are running on zsh, and set the options which allow our
  12382. # commands through without removal of \ escapes INIT.
  12383. if test -n "\${ZSH_VERSION+set}" ; then
  12384. setopt NO_GLOB_SUBST
  12385. fi
  12386. PACKAGE='$PACKAGE'
  12387. VERSION='$VERSION'
  12388. TIMESTAMP='$TIMESTAMP'
  12389. RM='$RM'
  12390. ofile='$ofile'
  12391. _ACEOF
  12392. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12393. # Handling of arguments.
  12394. for ac_config_target in $ac_config_targets
  12395. do
  12396. case $ac_config_target in
  12397. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12398. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12399. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12400. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12401. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12402. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  12403. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  12404. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12405. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  12406. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12407. esac
  12408. done
  12409. # If the user did not use the arguments to specify the items to instantiate,
  12410. # then the envvar interface is used. Set only those that are not.
  12411. # We use the long form for the default assignment because of an extremely
  12412. # bizarre bug on SunOS 4.1.3.
  12413. if $ac_need_defaults; then
  12414. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12415. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12416. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12417. fi
  12418. # Have a temporary directory for convenience. Make it in the build tree
  12419. # simply because there is no reason against having it here, and in addition,
  12420. # creating and moving files from /tmp can sometimes cause problems.
  12421. # Hook for its removal unless debugging.
  12422. # Note that there is a small window in which the directory will not be cleaned:
  12423. # after its creation but before its name has been assigned to `$tmp'.
  12424. $debug ||
  12425. {
  12426. tmp= ac_tmp=
  12427. trap 'exit_status=$?
  12428. : "${ac_tmp:=$tmp}"
  12429. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12430. ' 0
  12431. trap 'as_fn_exit 1' 1 2 13 15
  12432. }
  12433. # Create a (secure) tmp directory for tmp files.
  12434. {
  12435. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12436. test -d "$tmp"
  12437. } ||
  12438. {
  12439. tmp=./conf$$-$RANDOM
  12440. (umask 077 && mkdir "$tmp")
  12441. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12442. ac_tmp=$tmp
  12443. # Set up the scripts for CONFIG_FILES section.
  12444. # No need to generate them if there are no CONFIG_FILES.
  12445. # This happens for instance with `./config.status config.h'.
  12446. if test -n "$CONFIG_FILES"; then
  12447. ac_cr=`echo X | tr X '\015'`
  12448. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12449. # But we know of no other shell where ac_cr would be empty at this
  12450. # point, so we can use a bashism as a fallback.
  12451. if test "x$ac_cr" = x; then
  12452. eval ac_cr=\$\'\\r\'
  12453. fi
  12454. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12455. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12456. ac_cs_awk_cr='\\r'
  12457. else
  12458. ac_cs_awk_cr=$ac_cr
  12459. fi
  12460. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12461. _ACEOF
  12462. {
  12463. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12464. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12465. echo "_ACEOF"
  12466. } >conf$$subs.sh ||
  12467. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12468. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12469. ac_delim='%!_!# '
  12470. for ac_last_try in false false false false false :; do
  12471. . ./conf$$subs.sh ||
  12472. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12473. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12474. if test $ac_delim_n = $ac_delim_num; then
  12475. break
  12476. elif $ac_last_try; then
  12477. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12478. else
  12479. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12480. fi
  12481. done
  12482. rm -f conf$$subs.sh
  12483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12484. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12485. _ACEOF
  12486. sed -n '
  12487. h
  12488. s/^/S["/; s/!.*/"]=/
  12489. p
  12490. g
  12491. s/^[^!]*!//
  12492. :repl
  12493. t repl
  12494. s/'"$ac_delim"'$//
  12495. t delim
  12496. :nl
  12497. h
  12498. s/\(.\{148\}\)..*/\1/
  12499. t more1
  12500. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12501. p
  12502. n
  12503. b repl
  12504. :more1
  12505. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12506. p
  12507. g
  12508. s/.\{148\}//
  12509. t nl
  12510. :delim
  12511. h
  12512. s/\(.\{148\}\)..*/\1/
  12513. t more2
  12514. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12515. p
  12516. b
  12517. :more2
  12518. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12519. p
  12520. g
  12521. s/.\{148\}//
  12522. t delim
  12523. ' <conf$$subs.awk | sed '
  12524. /^[^""]/{
  12525. N
  12526. s/\n//
  12527. }
  12528. ' >>$CONFIG_STATUS || ac_write_fail=1
  12529. rm -f conf$$subs.awk
  12530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12531. _ACAWK
  12532. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12533. for (key in S) S_is_set[key] = 1
  12534. FS = ""
  12535. }
  12536. {
  12537. line = $ 0
  12538. nfields = split(line, field, "@")
  12539. substed = 0
  12540. len = length(field[1])
  12541. for (i = 2; i < nfields; i++) {
  12542. key = field[i]
  12543. keylen = length(key)
  12544. if (S_is_set[key]) {
  12545. value = S[key]
  12546. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12547. len += length(value) + length(field[++i])
  12548. substed = 1
  12549. } else
  12550. len += 1 + keylen
  12551. }
  12552. print line
  12553. }
  12554. _ACAWK
  12555. _ACEOF
  12556. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12557. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12558. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12559. else
  12560. cat
  12561. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12562. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12563. _ACEOF
  12564. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12565. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12566. # trailing colons and then remove the whole line if VPATH becomes empty
  12567. # (actually we leave an empty line to preserve line numbers).
  12568. if test "x$srcdir" = x.; then
  12569. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12570. h
  12571. s///
  12572. s/^/:/
  12573. s/[ ]*$/:/
  12574. s/:\$(srcdir):/:/g
  12575. s/:\${srcdir}:/:/g
  12576. s/:@srcdir@:/:/g
  12577. s/^:*//
  12578. s/:*$//
  12579. x
  12580. s/\(=[ ]*\).*/\1/
  12581. G
  12582. s/\n//
  12583. s/^[^=]*=[ ]*$//
  12584. }'
  12585. fi
  12586. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12587. fi # test -n "$CONFIG_FILES"
  12588. # Set up the scripts for CONFIG_HEADERS section.
  12589. # No need to generate them if there are no CONFIG_HEADERS.
  12590. # This happens for instance with `./config.status Makefile'.
  12591. if test -n "$CONFIG_HEADERS"; then
  12592. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12593. BEGIN {
  12594. _ACEOF
  12595. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12596. # here-document in config.status, that substitutes the proper values into
  12597. # config.h.in to produce config.h.
  12598. # Create a delimiter string that does not exist in confdefs.h, to ease
  12599. # handling of long lines.
  12600. ac_delim='%!_!# '
  12601. for ac_last_try in false false :; do
  12602. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12603. if test -z "$ac_tt"; then
  12604. break
  12605. elif $ac_last_try; then
  12606. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12607. else
  12608. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12609. fi
  12610. done
  12611. # For the awk script, D is an array of macro values keyed by name,
  12612. # likewise P contains macro parameters if any. Preserve backslash
  12613. # newline sequences.
  12614. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12615. sed -n '
  12616. s/.\{148\}/&'"$ac_delim"'/g
  12617. t rset
  12618. :rset
  12619. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12620. t def
  12621. d
  12622. :def
  12623. s/\\$//
  12624. t bsnl
  12625. s/["\\]/\\&/g
  12626. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12627. D["\1"]=" \3"/p
  12628. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12629. d
  12630. :bsnl
  12631. s/["\\]/\\&/g
  12632. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12633. D["\1"]=" \3\\\\\\n"\\/p
  12634. t cont
  12635. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12636. t cont
  12637. d
  12638. :cont
  12639. n
  12640. s/.\{148\}/&'"$ac_delim"'/g
  12641. t clear
  12642. :clear
  12643. s/\\$//
  12644. t bsnlc
  12645. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12646. d
  12647. :bsnlc
  12648. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12649. b cont
  12650. ' <confdefs.h | sed '
  12651. s/'"$ac_delim"'/"\\\
  12652. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12653. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12654. for (key in D) D_is_set[key] = 1
  12655. FS = ""
  12656. }
  12657. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12658. line = \$ 0
  12659. split(line, arg, " ")
  12660. if (arg[1] == "#") {
  12661. defundef = arg[2]
  12662. mac1 = arg[3]
  12663. } else {
  12664. defundef = substr(arg[1], 2)
  12665. mac1 = arg[2]
  12666. }
  12667. split(mac1, mac2, "(") #)
  12668. macro = mac2[1]
  12669. prefix = substr(line, 1, index(line, defundef) - 1)
  12670. if (D_is_set[macro]) {
  12671. # Preserve the white space surrounding the "#".
  12672. print prefix "define", macro P[macro] D[macro]
  12673. next
  12674. } else {
  12675. # Replace #undef with comments. This is necessary, for example,
  12676. # in the case of _POSIX_SOURCE, which is predefined and required
  12677. # on some systems where configure will not decide to define it.
  12678. if (defundef == "undef") {
  12679. print "/*", prefix defundef, macro, "*/"
  12680. next
  12681. }
  12682. }
  12683. }
  12684. { print }
  12685. _ACAWK
  12686. _ACEOF
  12687. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12688. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12689. fi # test -n "$CONFIG_HEADERS"
  12690. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12691. shift
  12692. for ac_tag
  12693. do
  12694. case $ac_tag in
  12695. :[FHLC]) ac_mode=$ac_tag; continue;;
  12696. esac
  12697. case $ac_mode$ac_tag in
  12698. :[FHL]*:*);;
  12699. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12700. :[FH]-) ac_tag=-:-;;
  12701. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12702. esac
  12703. ac_save_IFS=$IFS
  12704. IFS=:
  12705. set x $ac_tag
  12706. IFS=$ac_save_IFS
  12707. shift
  12708. ac_file=$1
  12709. shift
  12710. case $ac_mode in
  12711. :L) ac_source=$1;;
  12712. :[FH])
  12713. ac_file_inputs=
  12714. for ac_f
  12715. do
  12716. case $ac_f in
  12717. -) ac_f="$ac_tmp/stdin";;
  12718. *) # Look for the file first in the build tree, then in the source tree
  12719. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12720. # because $ac_f cannot contain `:'.
  12721. test -f "$ac_f" ||
  12722. case $ac_f in
  12723. [\\/$]*) false;;
  12724. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12725. esac ||
  12726. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12727. esac
  12728. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12729. as_fn_append ac_file_inputs " '$ac_f'"
  12730. done
  12731. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12732. # use $as_me), people would be surprised to read:
  12733. # /* config.h. Generated by config.status. */
  12734. configure_input='Generated from '`
  12735. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12736. `' by configure.'
  12737. if test x"$ac_file" != x-; then
  12738. configure_input="$ac_file. $configure_input"
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12740. $as_echo "$as_me: creating $ac_file" >&6;}
  12741. fi
  12742. # Neutralize special characters interpreted by sed in replacement strings.
  12743. case $configure_input in #(
  12744. *\&* | *\|* | *\\* )
  12745. ac_sed_conf_input=`$as_echo "$configure_input" |
  12746. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12747. *) ac_sed_conf_input=$configure_input;;
  12748. esac
  12749. case $ac_tag in
  12750. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12751. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12752. esac
  12753. ;;
  12754. esac
  12755. ac_dir=`$as_dirname -- "$ac_file" ||
  12756. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12757. X"$ac_file" : 'X\(//\)[^/]' \| \
  12758. X"$ac_file" : 'X\(//\)$' \| \
  12759. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12760. $as_echo X"$ac_file" |
  12761. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12762. s//\1/
  12763. q
  12764. }
  12765. /^X\(\/\/\)[^/].*/{
  12766. s//\1/
  12767. q
  12768. }
  12769. /^X\(\/\/\)$/{
  12770. s//\1/
  12771. q
  12772. }
  12773. /^X\(\/\).*/{
  12774. s//\1/
  12775. q
  12776. }
  12777. s/.*/./; q'`
  12778. as_dir="$ac_dir"; as_fn_mkdir_p
  12779. ac_builddir=.
  12780. case "$ac_dir" in
  12781. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12782. *)
  12783. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12784. # A ".." for each directory in $ac_dir_suffix.
  12785. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12786. case $ac_top_builddir_sub in
  12787. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12788. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12789. esac ;;
  12790. esac
  12791. ac_abs_top_builddir=$ac_pwd
  12792. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12793. # for backward compatibility:
  12794. ac_top_builddir=$ac_top_build_prefix
  12795. case $srcdir in
  12796. .) # We are building in place.
  12797. ac_srcdir=.
  12798. ac_top_srcdir=$ac_top_builddir_sub
  12799. ac_abs_top_srcdir=$ac_pwd ;;
  12800. [\\/]* | ?:[\\/]* ) # Absolute name.
  12801. ac_srcdir=$srcdir$ac_dir_suffix;
  12802. ac_top_srcdir=$srcdir
  12803. ac_abs_top_srcdir=$srcdir ;;
  12804. *) # Relative name.
  12805. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12806. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12807. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12808. esac
  12809. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12810. case $ac_mode in
  12811. :F)
  12812. #
  12813. # CONFIG_FILE
  12814. #
  12815. case $INSTALL in
  12816. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12817. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12818. esac
  12819. ac_MKDIR_P=$MKDIR_P
  12820. case $MKDIR_P in
  12821. [\\/$]* | ?:[\\/]* ) ;;
  12822. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12823. esac
  12824. _ACEOF
  12825. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12826. # If the template does not know about datarootdir, expand it.
  12827. # FIXME: This hack should be removed a few years after 2.60.
  12828. ac_datarootdir_hack=; ac_datarootdir_seen=
  12829. ac_sed_dataroot='
  12830. /datarootdir/ {
  12831. p
  12832. q
  12833. }
  12834. /@datadir@/p
  12835. /@docdir@/p
  12836. /@infodir@/p
  12837. /@localedir@/p
  12838. /@mandir@/p'
  12839. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12840. *datarootdir*) ac_datarootdir_seen=yes;;
  12841. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12843. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12844. _ACEOF
  12845. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12846. ac_datarootdir_hack='
  12847. s&@datadir@&$datadir&g
  12848. s&@docdir@&$docdir&g
  12849. s&@infodir@&$infodir&g
  12850. s&@localedir@&$localedir&g
  12851. s&@mandir@&$mandir&g
  12852. s&\\\${datarootdir}&$datarootdir&g' ;;
  12853. esac
  12854. _ACEOF
  12855. # Neutralize VPATH when `$srcdir' = `.'.
  12856. # Shell code in configure.ac might set extrasub.
  12857. # FIXME: do we really want to maintain this feature?
  12858. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12859. ac_sed_extra="$ac_vpsub
  12860. $extrasub
  12861. _ACEOF
  12862. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12863. :t
  12864. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12865. s|@configure_input@|$ac_sed_conf_input|;t t
  12866. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12867. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12868. s&@srcdir@&$ac_srcdir&;t t
  12869. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12870. s&@top_srcdir@&$ac_top_srcdir&;t t
  12871. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12872. s&@builddir@&$ac_builddir&;t t
  12873. s&@abs_builddir@&$ac_abs_builddir&;t t
  12874. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12875. s&@INSTALL@&$ac_INSTALL&;t t
  12876. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12877. $ac_datarootdir_hack
  12878. "
  12879. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12880. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12881. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12882. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12883. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12884. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12886. which seems to be undefined. Please make sure it is defined" >&5
  12887. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12888. which seems to be undefined. Please make sure it is defined" >&2;}
  12889. rm -f "$ac_tmp/stdin"
  12890. case $ac_file in
  12891. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12892. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12893. esac \
  12894. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12895. ;;
  12896. :H)
  12897. #
  12898. # CONFIG_HEADER
  12899. #
  12900. if test x"$ac_file" != x-; then
  12901. {
  12902. $as_echo "/* $configure_input */" \
  12903. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12904. } >"$ac_tmp/config.h" \
  12905. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12906. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12907. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12908. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12909. else
  12910. rm -f "$ac_file"
  12911. mv "$ac_tmp/config.h" "$ac_file" \
  12912. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12913. fi
  12914. else
  12915. $as_echo "/* $configure_input */" \
  12916. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12917. || as_fn_error $? "could not create -" "$LINENO" 5
  12918. fi
  12919. # Compute "$ac_file"'s index in $config_headers.
  12920. _am_arg="$ac_file"
  12921. _am_stamp_count=1
  12922. for _am_header in $config_headers :; do
  12923. case $_am_header in
  12924. $_am_arg | $_am_arg:* )
  12925. break ;;
  12926. * )
  12927. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12928. esac
  12929. done
  12930. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12931. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12932. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12933. X"$_am_arg" : 'X\(//\)$' \| \
  12934. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12935. $as_echo X"$_am_arg" |
  12936. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12937. s//\1/
  12938. q
  12939. }
  12940. /^X\(\/\/\)[^/].*/{
  12941. s//\1/
  12942. q
  12943. }
  12944. /^X\(\/\/\)$/{
  12945. s//\1/
  12946. q
  12947. }
  12948. /^X\(\/\).*/{
  12949. s//\1/
  12950. q
  12951. }
  12952. s/.*/./; q'`/stamp-h$_am_stamp_count
  12953. ;;
  12954. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12955. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12956. ;;
  12957. esac
  12958. case $ac_file$ac_mode in
  12959. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12960. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12961. # are listed without --file. Let's play safe and only enable the eval
  12962. # if we detect the quoting.
  12963. case $CONFIG_FILES in
  12964. *\'*) eval set x "$CONFIG_FILES" ;;
  12965. *) set x $CONFIG_FILES ;;
  12966. esac
  12967. shift
  12968. for mf
  12969. do
  12970. # Strip MF so we end up with the name of the file.
  12971. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12972. # Check whether this is an Automake generated Makefile or not.
  12973. # We used to match only the files named `Makefile.in', but
  12974. # some people rename them; so instead we look at the file content.
  12975. # Grep'ing the first line is not enough: some people post-process
  12976. # each Makefile.in and add a new line on top of each file to say so.
  12977. # Grep'ing the whole file is not good either: AIX grep has a line
  12978. # limit of 2048, but all sed's we know have understand at least 4000.
  12979. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12980. dirpart=`$as_dirname -- "$mf" ||
  12981. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12982. X"$mf" : 'X\(//\)[^/]' \| \
  12983. X"$mf" : 'X\(//\)$' \| \
  12984. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12985. $as_echo X"$mf" |
  12986. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12987. s//\1/
  12988. q
  12989. }
  12990. /^X\(\/\/\)[^/].*/{
  12991. s//\1/
  12992. q
  12993. }
  12994. /^X\(\/\/\)$/{
  12995. s//\1/
  12996. q
  12997. }
  12998. /^X\(\/\).*/{
  12999. s//\1/
  13000. q
  13001. }
  13002. s/.*/./; q'`
  13003. else
  13004. continue
  13005. fi
  13006. # Extract the definition of DEPDIR, am__include, and am__quote
  13007. # from the Makefile without running `make'.
  13008. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13009. test -z "$DEPDIR" && continue
  13010. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13011. test -z "am__include" && continue
  13012. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13013. # When using ansi2knr, U may be empty or an underscore; expand it
  13014. U=`sed -n 's/^U = //p' < "$mf"`
  13015. # Find all dependency output files, they are included files with
  13016. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13017. # simplest approach to changing $(DEPDIR) to its actual value in the
  13018. # expansion.
  13019. for file in `sed -n "
  13020. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13021. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13022. # Make sure the directory exists.
  13023. test -f "$dirpart/$file" && continue
  13024. fdir=`$as_dirname -- "$file" ||
  13025. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13026. X"$file" : 'X\(//\)[^/]' \| \
  13027. X"$file" : 'X\(//\)$' \| \
  13028. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13029. $as_echo X"$file" |
  13030. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13031. s//\1/
  13032. q
  13033. }
  13034. /^X\(\/\/\)[^/].*/{
  13035. s//\1/
  13036. q
  13037. }
  13038. /^X\(\/\/\)$/{
  13039. s//\1/
  13040. q
  13041. }
  13042. /^X\(\/\).*/{
  13043. s//\1/
  13044. q
  13045. }
  13046. s/.*/./; q'`
  13047. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13048. # echo "creating $dirpart/$file"
  13049. echo '# dummy' > "$dirpart/$file"
  13050. done
  13051. done
  13052. }
  13053. ;;
  13054. "libtool":C)
  13055. # See if we are running on zsh, and set the options which allow our
  13056. # commands through without removal of \ escapes.
  13057. if test -n "${ZSH_VERSION+set}" ; then
  13058. setopt NO_GLOB_SUBST
  13059. fi
  13060. cfgfile="${ofile}T"
  13061. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13062. $RM "$cfgfile"
  13063. cat <<_LT_EOF >> "$cfgfile"
  13064. #! $SHELL
  13065. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13066. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13067. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13068. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13069. #
  13070. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13071. # 2006, 2007, 2008 Free Software Foundation, Inc.
  13072. # Written by Gordon Matzigkeit, 1996
  13073. #
  13074. # This file is part of GNU Libtool.
  13075. #
  13076. # GNU Libtool is free software; you can redistribute it and/or
  13077. # modify it under the terms of the GNU General Public License as
  13078. # published by the Free Software Foundation; either version 2 of
  13079. # the License, or (at your option) any later version.
  13080. #
  13081. # As a special exception to the GNU General Public License,
  13082. # if you distribute this file as part of a program or library that
  13083. # is built using GNU Libtool, you may include this file under the
  13084. # same distribution terms that you use for the rest of that program.
  13085. #
  13086. # GNU Libtool is distributed in the hope that it will be useful,
  13087. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13088. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13089. # GNU General Public License for more details.
  13090. #
  13091. # You should have received a copy of the GNU General Public License
  13092. # along with GNU Libtool; see the file COPYING. If not, a copy
  13093. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13094. # obtained by writing to the Free Software Foundation, Inc.,
  13095. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13096. # The names of the tagged configurations supported by this script.
  13097. available_tags=""
  13098. # ### BEGIN LIBTOOL CONFIG
  13099. # Which release of libtool.m4 was used?
  13100. macro_version=$macro_version
  13101. macro_revision=$macro_revision
  13102. # Whether or not to build static libraries.
  13103. build_old_libs=$enable_static
  13104. # What type of objects to build.
  13105. pic_mode=$pic_mode
  13106. # Whether or not to build shared libraries.
  13107. build_libtool_libs=$enable_shared
  13108. # Whether or not to optimize for fast installation.
  13109. fast_install=$enable_fast_install
  13110. # The host system.
  13111. host_alias=$host_alias
  13112. host=$host
  13113. host_os=$host_os
  13114. # The build system.
  13115. build_alias=$build_alias
  13116. build=$build
  13117. build_os=$build_os
  13118. # A sed program that does not truncate output.
  13119. SED=$lt_SED
  13120. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13121. Xsed="\$SED -e 1s/^X//"
  13122. # A grep program that handles long lines.
  13123. GREP=$lt_GREP
  13124. # An ERE matcher.
  13125. EGREP=$lt_EGREP
  13126. # A literal string matcher.
  13127. FGREP=$lt_FGREP
  13128. # A BSD- or MS-compatible name lister.
  13129. NM=$lt_NM
  13130. # Whether we need soft or hard links.
  13131. LN_S=$lt_LN_S
  13132. # What is the maximum length of a command?
  13133. max_cmd_len=$max_cmd_len
  13134. # Object file suffix (normally "o").
  13135. objext=$ac_objext
  13136. # Executable file suffix (normally "").
  13137. exeext=$exeext
  13138. # whether the shell understands "unset".
  13139. lt_unset=$lt_unset
  13140. # turn spaces into newlines.
  13141. SP2NL=$lt_lt_SP2NL
  13142. # turn newlines into spaces.
  13143. NL2SP=$lt_lt_NL2SP
  13144. # How to create reloadable object files.
  13145. reload_flag=$lt_reload_flag
  13146. reload_cmds=$lt_reload_cmds
  13147. # An object symbol dumper.
  13148. OBJDUMP=$lt_OBJDUMP
  13149. # Method to check whether dependent libraries are shared objects.
  13150. deplibs_check_method=$lt_deplibs_check_method
  13151. # Command to use when deplibs_check_method == "file_magic".
  13152. file_magic_cmd=$lt_file_magic_cmd
  13153. # The archiver.
  13154. AR=$lt_AR
  13155. AR_FLAGS=$lt_AR_FLAGS
  13156. # A symbol stripping program.
  13157. STRIP=$lt_STRIP
  13158. # Commands used to install an old-style archive.
  13159. RANLIB=$lt_RANLIB
  13160. old_postinstall_cmds=$lt_old_postinstall_cmds
  13161. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13162. # A C compiler.
  13163. LTCC=$lt_CC
  13164. # LTCC compiler flags.
  13165. LTCFLAGS=$lt_CFLAGS
  13166. # Take the output of nm and produce a listing of raw symbols and C names.
  13167. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13168. # Transform the output of nm in a proper C declaration.
  13169. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13170. # Transform the output of nm in a C name address pair.
  13171. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13172. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13173. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13174. # The name of the directory that contains temporary libtool files.
  13175. objdir=$objdir
  13176. # Shell to use when invoking shell scripts.
  13177. SHELL=$lt_SHELL
  13178. # An echo program that does not interpret backslashes.
  13179. ECHO=$lt_ECHO
  13180. # Used to examine libraries when file_magic_cmd begins with "file".
  13181. MAGIC_CMD=$MAGIC_CMD
  13182. # Must we lock files when doing compilation?
  13183. need_locks=$lt_need_locks
  13184. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13185. DSYMUTIL=$lt_DSYMUTIL
  13186. # Tool to change global to local symbols on Mac OS X.
  13187. NMEDIT=$lt_NMEDIT
  13188. # Tool to manipulate fat objects and archives on Mac OS X.
  13189. LIPO=$lt_LIPO
  13190. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13191. OTOOL=$lt_OTOOL
  13192. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13193. OTOOL64=$lt_OTOOL64
  13194. # Old archive suffix (normally "a").
  13195. libext=$libext
  13196. # Shared library suffix (normally ".so").
  13197. shrext_cmds=$lt_shrext_cmds
  13198. # The commands to extract the exported symbol list from a shared archive.
  13199. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13200. # Variables whose values should be saved in libtool wrapper scripts and
  13201. # restored at link time.
  13202. variables_saved_for_relink=$lt_variables_saved_for_relink
  13203. # Do we need the "lib" prefix for modules?
  13204. need_lib_prefix=$need_lib_prefix
  13205. # Do we need a version for libraries?
  13206. need_version=$need_version
  13207. # Library versioning type.
  13208. version_type=$version_type
  13209. # Shared library runtime path variable.
  13210. runpath_var=$runpath_var
  13211. # Shared library path variable.
  13212. shlibpath_var=$shlibpath_var
  13213. # Is shlibpath searched before the hard-coded library search path?
  13214. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13215. # Format of library name prefix.
  13216. libname_spec=$lt_libname_spec
  13217. # List of archive names. First name is the real one, the rest are links.
  13218. # The last name is the one that the linker finds with -lNAME
  13219. library_names_spec=$lt_library_names_spec
  13220. # The coded name of the library, if different from the real name.
  13221. soname_spec=$lt_soname_spec
  13222. # Command to use after installation of a shared archive.
  13223. postinstall_cmds=$lt_postinstall_cmds
  13224. # Command to use after uninstallation of a shared archive.
  13225. postuninstall_cmds=$lt_postuninstall_cmds
  13226. # Commands used to finish a libtool library installation in a directory.
  13227. finish_cmds=$lt_finish_cmds
  13228. # As "finish_cmds", except a single script fragment to be evaled but
  13229. # not shown.
  13230. finish_eval=$lt_finish_eval
  13231. # Whether we should hardcode library paths into libraries.
  13232. hardcode_into_libs=$hardcode_into_libs
  13233. # Compile-time system search path for libraries.
  13234. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13235. # Run-time system search path for libraries.
  13236. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13237. # Whether dlopen is supported.
  13238. dlopen_support=$enable_dlopen
  13239. # Whether dlopen of programs is supported.
  13240. dlopen_self=$enable_dlopen_self
  13241. # Whether dlopen of statically linked programs is supported.
  13242. dlopen_self_static=$enable_dlopen_self_static
  13243. # Commands to strip libraries.
  13244. old_striplib=$lt_old_striplib
  13245. striplib=$lt_striplib
  13246. # The linker used to build libraries.
  13247. LD=$lt_LD
  13248. # Commands used to build an old-style archive.
  13249. old_archive_cmds=$lt_old_archive_cmds
  13250. # A language specific compiler.
  13251. CC=$lt_compiler
  13252. # Is the compiler the GNU compiler?
  13253. with_gcc=$GCC
  13254. # Compiler flag to turn off builtin functions.
  13255. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13256. # How to pass a linker flag through the compiler.
  13257. wl=$lt_lt_prog_compiler_wl
  13258. # Additional compiler flags for building library objects.
  13259. pic_flag=$lt_lt_prog_compiler_pic
  13260. # Compiler flag to prevent dynamic linking.
  13261. link_static_flag=$lt_lt_prog_compiler_static
  13262. # Does compiler simultaneously support -c and -o options?
  13263. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13264. # Whether or not to add -lc for building shared libraries.
  13265. build_libtool_need_lc=$archive_cmds_need_lc
  13266. # Whether or not to disallow shared libs when runtime libs are static.
  13267. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13268. # Compiler flag to allow reflexive dlopens.
  13269. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13270. # Compiler flag to generate shared objects directly from archives.
  13271. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13272. # Whether the compiler copes with passing no objects directly.
  13273. compiler_needs_object=$lt_compiler_needs_object
  13274. # Create an old-style archive from a shared archive.
  13275. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13276. # Create a temporary old-style archive to link instead of a shared archive.
  13277. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13278. # Commands used to build a shared archive.
  13279. archive_cmds=$lt_archive_cmds
  13280. archive_expsym_cmds=$lt_archive_expsym_cmds
  13281. # Commands used to build a loadable module if different from building
  13282. # a shared archive.
  13283. module_cmds=$lt_module_cmds
  13284. module_expsym_cmds=$lt_module_expsym_cmds
  13285. # Whether we are building with GNU ld or not.
  13286. with_gnu_ld=$lt_with_gnu_ld
  13287. # Flag that allows shared libraries with undefined symbols to be built.
  13288. allow_undefined_flag=$lt_allow_undefined_flag
  13289. # Flag that enforces no undefined symbols.
  13290. no_undefined_flag=$lt_no_undefined_flag
  13291. # Flag to hardcode \$libdir into a binary during linking.
  13292. # This must work even if \$libdir does not exist
  13293. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13294. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13295. # during linking. This must work even if \$libdir does not exist.
  13296. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13297. # Whether we need a single "-rpath" flag with a separated argument.
  13298. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13299. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13300. # DIR into the resulting binary.
  13301. hardcode_direct=$hardcode_direct
  13302. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13303. # DIR into the resulting binary and the resulting library dependency is
  13304. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13305. # library is relocated.
  13306. hardcode_direct_absolute=$hardcode_direct_absolute
  13307. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13308. # into the resulting binary.
  13309. hardcode_minus_L=$hardcode_minus_L
  13310. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13311. # into the resulting binary.
  13312. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13313. # Set to "yes" if building a shared library automatically hardcodes DIR
  13314. # into the library and all subsequent libraries and executables linked
  13315. # against it.
  13316. hardcode_automatic=$hardcode_automatic
  13317. # Set to yes if linker adds runtime paths of dependent libraries
  13318. # to runtime path list.
  13319. inherit_rpath=$inherit_rpath
  13320. # Whether libtool must link a program against all its dependency libraries.
  13321. link_all_deplibs=$link_all_deplibs
  13322. # Fix the shell variable \$srcfile for the compiler.
  13323. fix_srcfile_path=$lt_fix_srcfile_path
  13324. # Set to "yes" if exported symbols are required.
  13325. always_export_symbols=$always_export_symbols
  13326. # The commands to list exported symbols.
  13327. export_symbols_cmds=$lt_export_symbols_cmds
  13328. # Symbols that should not be listed in the preloaded symbols.
  13329. exclude_expsyms=$lt_exclude_expsyms
  13330. # Symbols that must always be exported.
  13331. include_expsyms=$lt_include_expsyms
  13332. # Commands necessary for linking programs (against libraries) with templates.
  13333. prelink_cmds=$lt_prelink_cmds
  13334. # Specify filename containing input files.
  13335. file_list_spec=$lt_file_list_spec
  13336. # How to hardcode a shared library path into an executable.
  13337. hardcode_action=$hardcode_action
  13338. # ### END LIBTOOL CONFIG
  13339. _LT_EOF
  13340. case $host_os in
  13341. aix3*)
  13342. cat <<\_LT_EOF >> "$cfgfile"
  13343. # AIX sometimes has problems with the GCC collect2 program. For some
  13344. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13345. # vanish in a puff of smoke.
  13346. if test "X${COLLECT_NAMES+set}" != Xset; then
  13347. COLLECT_NAMES=
  13348. export COLLECT_NAMES
  13349. fi
  13350. _LT_EOF
  13351. ;;
  13352. esac
  13353. ltmain="$ac_aux_dir/ltmain.sh"
  13354. # We use sed instead of cat because bash on DJGPP gets confused if
  13355. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13356. # text mode, it properly converts lines to CR/LF. This bash problem
  13357. # is reportedly fixed, but why not run on old versions too?
  13358. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13359. || (rm -f "$cfgfile"; exit 1)
  13360. case $xsi_shell in
  13361. yes)
  13362. cat << \_LT_EOF >> "$cfgfile"
  13363. # func_dirname file append nondir_replacement
  13364. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13365. # otherwise set result to NONDIR_REPLACEMENT.
  13366. func_dirname ()
  13367. {
  13368. case ${1} in
  13369. */*) func_dirname_result="${1%/*}${2}" ;;
  13370. * ) func_dirname_result="${3}" ;;
  13371. esac
  13372. }
  13373. # func_basename file
  13374. func_basename ()
  13375. {
  13376. func_basename_result="${1##*/}"
  13377. }
  13378. # func_dirname_and_basename file append nondir_replacement
  13379. # perform func_basename and func_dirname in a single function
  13380. # call:
  13381. # dirname: Compute the dirname of FILE. If nonempty,
  13382. # add APPEND to the result, otherwise set result
  13383. # to NONDIR_REPLACEMENT.
  13384. # value returned in "$func_dirname_result"
  13385. # basename: Compute filename of FILE.
  13386. # value retuned in "$func_basename_result"
  13387. # Implementation must be kept synchronized with func_dirname
  13388. # and func_basename. For efficiency, we do not delegate to
  13389. # those functions but instead duplicate the functionality here.
  13390. func_dirname_and_basename ()
  13391. {
  13392. case ${1} in
  13393. */*) func_dirname_result="${1%/*}${2}" ;;
  13394. * ) func_dirname_result="${3}" ;;
  13395. esac
  13396. func_basename_result="${1##*/}"
  13397. }
  13398. # func_stripname prefix suffix name
  13399. # strip PREFIX and SUFFIX off of NAME.
  13400. # PREFIX and SUFFIX must not contain globbing or regex special
  13401. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13402. # dot (in which case that matches only a dot).
  13403. func_stripname ()
  13404. {
  13405. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13406. # positional parameters, so assign one to ordinary parameter first.
  13407. func_stripname_result=${3}
  13408. func_stripname_result=${func_stripname_result#"${1}"}
  13409. func_stripname_result=${func_stripname_result%"${2}"}
  13410. }
  13411. # func_opt_split
  13412. func_opt_split ()
  13413. {
  13414. func_opt_split_opt=${1%%=*}
  13415. func_opt_split_arg=${1#*=}
  13416. }
  13417. # func_lo2o object
  13418. func_lo2o ()
  13419. {
  13420. case ${1} in
  13421. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13422. *) func_lo2o_result=${1} ;;
  13423. esac
  13424. }
  13425. # func_xform libobj-or-source
  13426. func_xform ()
  13427. {
  13428. func_xform_result=${1%.*}.lo
  13429. }
  13430. # func_arith arithmetic-term...
  13431. func_arith ()
  13432. {
  13433. func_arith_result=$(( $* ))
  13434. }
  13435. # func_len string
  13436. # STRING may not start with a hyphen.
  13437. func_len ()
  13438. {
  13439. func_len_result=${#1}
  13440. }
  13441. _LT_EOF
  13442. ;;
  13443. *) # Bourne compatible functions.
  13444. cat << \_LT_EOF >> "$cfgfile"
  13445. # func_dirname file append nondir_replacement
  13446. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13447. # otherwise set result to NONDIR_REPLACEMENT.
  13448. func_dirname ()
  13449. {
  13450. # Extract subdirectory from the argument.
  13451. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  13452. if test "X$func_dirname_result" = "X${1}"; then
  13453. func_dirname_result="${3}"
  13454. else
  13455. func_dirname_result="$func_dirname_result${2}"
  13456. fi
  13457. }
  13458. # func_basename file
  13459. func_basename ()
  13460. {
  13461. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  13462. }
  13463. # func_stripname prefix suffix name
  13464. # strip PREFIX and SUFFIX off of NAME.
  13465. # PREFIX and SUFFIX must not contain globbing or regex special
  13466. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13467. # dot (in which case that matches only a dot).
  13468. # func_strip_suffix prefix name
  13469. func_stripname ()
  13470. {
  13471. case ${2} in
  13472. .*) func_stripname_result=`$ECHO "X${3}" \
  13473. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  13474. *) func_stripname_result=`$ECHO "X${3}" \
  13475. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  13476. esac
  13477. }
  13478. # sed scripts:
  13479. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13480. my_sed_long_arg='1s/^-[^=]*=//'
  13481. # func_opt_split
  13482. func_opt_split ()
  13483. {
  13484. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  13485. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  13486. }
  13487. # func_lo2o object
  13488. func_lo2o ()
  13489. {
  13490. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  13491. }
  13492. # func_xform libobj-or-source
  13493. func_xform ()
  13494. {
  13495. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  13496. }
  13497. # func_arith arithmetic-term...
  13498. func_arith ()
  13499. {
  13500. func_arith_result=`expr "$@"`
  13501. }
  13502. # func_len string
  13503. # STRING may not start with a hyphen.
  13504. func_len ()
  13505. {
  13506. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13507. }
  13508. _LT_EOF
  13509. esac
  13510. case $lt_shell_append in
  13511. yes)
  13512. cat << \_LT_EOF >> "$cfgfile"
  13513. # func_append var value
  13514. # Append VALUE to the end of shell variable VAR.
  13515. func_append ()
  13516. {
  13517. eval "$1+=\$2"
  13518. }
  13519. _LT_EOF
  13520. ;;
  13521. *)
  13522. cat << \_LT_EOF >> "$cfgfile"
  13523. # func_append var value
  13524. # Append VALUE to the end of shell variable VAR.
  13525. func_append ()
  13526. {
  13527. eval "$1=\$$1\$2"
  13528. }
  13529. _LT_EOF
  13530. ;;
  13531. esac
  13532. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13533. || (rm -f "$cfgfile"; exit 1)
  13534. mv -f "$cfgfile" "$ofile" ||
  13535. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13536. chmod +x "$ofile"
  13537. ;;
  13538. esac
  13539. done # for ac_tag
  13540. as_fn_exit 0
  13541. _ACEOF
  13542. ac_clean_files=$ac_clean_files_save
  13543. test $ac_write_fail = 0 ||
  13544. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13545. # configure is writing to config.log, and then calls config.status.
  13546. # config.status does its own redirection, appending to config.log.
  13547. # Unfortunately, on DOS this fails, as config.log is still kept open
  13548. # by configure, so config.status won't be able to write to it; its
  13549. # output is simply discarded. So we exec the FD to /dev/null,
  13550. # effectively closing config.log, so it can be properly (re)opened and
  13551. # appended to by config.status. When coming back to configure, we
  13552. # need to make the FD available again.
  13553. if test "$no_create" != yes; then
  13554. ac_cs_success=:
  13555. ac_config_status_args=
  13556. test "$silent" = yes &&
  13557. ac_config_status_args="$ac_config_status_args --quiet"
  13558. exec 5>/dev/null
  13559. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13560. exec 5>>config.log
  13561. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13562. # would make configure fail if this is the last instruction.
  13563. $ac_cs_success || as_fn_exit 1
  13564. fi
  13565. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13567. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13568. fi