configure 438 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.62 for sqlite 3.8.1.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='sqlite'
  647. PACKAGE_TARNAME='sqlite'
  648. PACKAGE_VERSION='3.8.1'
  649. PACKAGE_STRING='sqlite 3.8.1'
  650. PACKAGE_BUGREPORT=''
  651. # Factoring default headers for most tests.
  652. ac_includes_default="\
  653. #include <stdio.h>
  654. #ifdef HAVE_SYS_TYPES_H
  655. # include <sys/types.h>
  656. #endif
  657. #ifdef HAVE_SYS_STAT_H
  658. # include <sys/stat.h>
  659. #endif
  660. #ifdef STDC_HEADERS
  661. # include <stdlib.h>
  662. # include <stddef.h>
  663. #else
  664. # ifdef HAVE_STDLIB_H
  665. # include <stdlib.h>
  666. # endif
  667. #endif
  668. #ifdef HAVE_STRING_H
  669. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  670. # include <memory.h>
  671. # endif
  672. # include <string.h>
  673. #endif
  674. #ifdef HAVE_STRINGS_H
  675. # include <strings.h>
  676. #endif
  677. #ifdef HAVE_INTTYPES_H
  678. # include <inttypes.h>
  679. #endif
  680. #ifdef HAVE_STDINT_H
  681. # include <stdint.h>
  682. #endif
  683. #ifdef HAVE_UNISTD_H
  684. # include <unistd.h>
  685. #endif"
  686. ac_subst_vars='SHELL
  687. PATH_SEPARATOR
  688. PACKAGE_NAME
  689. PACKAGE_TARNAME
  690. PACKAGE_VERSION
  691. PACKAGE_STRING
  692. PACKAGE_BUGREPORT
  693. exec_prefix
  694. prefix
  695. program_transform_name
  696. bindir
  697. sbindir
  698. libexecdir
  699. datarootdir
  700. datadir
  701. sysconfdir
  702. sharedstatedir
  703. localstatedir
  704. includedir
  705. oldincludedir
  706. docdir
  707. infodir
  708. htmldir
  709. dvidir
  710. pdfdir
  711. psdir
  712. libdir
  713. localedir
  714. mandir
  715. DEFS
  716. ECHO_C
  717. ECHO_N
  718. ECHO_T
  719. LIBS
  720. build_alias
  721. host_alias
  722. target_alias
  723. LIBTOOL
  724. build
  725. build_cpu
  726. build_vendor
  727. build_os
  728. host
  729. host_cpu
  730. host_vendor
  731. host_os
  732. CC
  733. CFLAGS
  734. LDFLAGS
  735. CPPFLAGS
  736. ac_ct_CC
  737. EXEEXT
  738. OBJEXT
  739. SED
  740. GREP
  741. EGREP
  742. FGREP
  743. LD
  744. DUMPBIN
  745. ac_ct_DUMPBIN
  746. NM
  747. LN_S
  748. OBJDUMP
  749. AR
  750. STRIP
  751. RANLIB
  752. lt_ECHO
  753. DSYMUTIL
  754. NMEDIT
  755. LIPO
  756. OTOOL
  757. OTOOL64
  758. CPP
  759. INSTALL_PROGRAM
  760. INSTALL_SCRIPT
  761. INSTALL_DATA
  762. AWK
  763. TCLSH_CMD
  764. TCLLIBDIR
  765. program_prefix
  766. VERSION
  767. RELEASE
  768. VERSION_NUMBER
  769. BUILD_CC
  770. SQLITE_THREADSAFE
  771. XTHREADCONNECT
  772. ALLOWRELEASE
  773. TEMP_STORE
  774. BUILD_EXEEXT
  775. SQLITE_OS_UNIX
  776. SQLITE_OS_WIN
  777. TARGET_EXEEXT
  778. TCL_VERSION
  779. TCL_BIN_DIR
  780. TCL_SRC_DIR
  781. TCL_INCLUDE_SPEC
  782. TCL_LIB_FILE
  783. TCL_LIB_FLAG
  784. TCL_LIB_SPEC
  785. TCL_STUB_LIB_FILE
  786. TCL_STUB_LIB_FLAG
  787. TCL_STUB_LIB_SPEC
  788. HAVE_TCL
  789. TARGET_READLINE_LIBS
  790. TARGET_READLINE_INC
  791. TARGET_HAVE_READLINE
  792. TARGET_DEBUG
  793. USE_AMALGAMATION
  794. OPT_FEATURE_FLAGS
  795. USE_GCOV
  796. BUILD_CFLAGS
  797. LIBOBJS
  798. LTLIBOBJS'
  799. ac_subst_files=''
  800. ac_user_opts='
  801. enable_option_checking
  802. enable_shared
  803. enable_static
  804. with_pic
  805. enable_fast_install
  806. with_gnu_ld
  807. enable_libtool_lock
  808. enable_largefile
  809. with_hints
  810. enable_threadsafe
  811. enable_cross_thread_connections
  812. enable_releasemode
  813. enable_tempstore
  814. enable_tcl
  815. with_tcl
  816. enable_readline
  817. with_readline_lib
  818. with_readline_inc
  819. enable_debug
  820. enable_amalgamation
  821. enable_load_extension
  822. enable_gcov
  823. '
  824. ac_precious_vars='build_alias
  825. host_alias
  826. target_alias
  827. CC
  828. CFLAGS
  829. LDFLAGS
  830. LIBS
  831. CPPFLAGS
  832. CPP
  833. TCLLIBDIR'
  834. # Initialize some variables set by options.
  835. ac_init_help=
  836. ac_init_version=false
  837. ac_unrecognized_opts=
  838. ac_unrecognized_sep=
  839. # The variables have the same names as the options, with
  840. # dashes changed to underlines.
  841. cache_file=/dev/null
  842. exec_prefix=NONE
  843. no_create=
  844. no_recursion=
  845. prefix=NONE
  846. program_prefix=NONE
  847. program_suffix=NONE
  848. program_transform_name=s,x,x,
  849. silent=
  850. site=
  851. srcdir=
  852. verbose=
  853. x_includes=NONE
  854. x_libraries=NONE
  855. # Installation directory options.
  856. # These are left unexpanded so users can "make install exec_prefix=/foo"
  857. # and all the variables that are supposed to be based on exec_prefix
  858. # by default will actually change.
  859. # Use braces instead of parens because sh, perl, etc. also accept them.
  860. # (The list follows the same order as the GNU Coding Standards.)
  861. bindir='${exec_prefix}/bin'
  862. sbindir='${exec_prefix}/sbin'
  863. libexecdir='${exec_prefix}/libexec'
  864. datarootdir='${prefix}/share'
  865. datadir='${datarootdir}'
  866. sysconfdir='${prefix}/etc'
  867. sharedstatedir='${prefix}/com'
  868. localstatedir='${prefix}/var'
  869. includedir='${prefix}/include'
  870. oldincludedir='/usr/include'
  871. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  872. infodir='${datarootdir}/info'
  873. htmldir='${docdir}'
  874. dvidir='${docdir}'
  875. pdfdir='${docdir}'
  876. psdir='${docdir}'
  877. libdir='${exec_prefix}/lib'
  878. localedir='${datarootdir}/locale'
  879. mandir='${datarootdir}/man'
  880. ac_prev=
  881. ac_dashdash=
  882. for ac_option
  883. do
  884. # If the previous option needs an argument, assign it.
  885. if test -n "$ac_prev"; then
  886. eval $ac_prev=\$ac_option
  887. ac_prev=
  888. continue
  889. fi
  890. case $ac_option in
  891. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  892. *) ac_optarg=yes ;;
  893. esac
  894. # Accept the important Cygnus configure options, so we can diagnose typos.
  895. case $ac_dashdash$ac_option in
  896. --)
  897. ac_dashdash=yes ;;
  898. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  899. ac_prev=bindir ;;
  900. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  901. bindir=$ac_optarg ;;
  902. -build | --build | --buil | --bui | --bu)
  903. ac_prev=build_alias ;;
  904. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  905. build_alias=$ac_optarg ;;
  906. -cache-file | --cache-file | --cache-fil | --cache-fi \
  907. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  908. ac_prev=cache_file ;;
  909. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  910. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  911. cache_file=$ac_optarg ;;
  912. --config-cache | -C)
  913. cache_file=config.cache ;;
  914. -datadir | --datadir | --datadi | --datad)
  915. ac_prev=datadir ;;
  916. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  917. datadir=$ac_optarg ;;
  918. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  919. | --dataroo | --dataro | --datar)
  920. ac_prev=datarootdir ;;
  921. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  922. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  923. datarootdir=$ac_optarg ;;
  924. -disable-* | --disable-*)
  925. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  928. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  929. { (exit 1); exit 1; }; }
  930. ac_useropt_orig=$ac_useropt
  931. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  932. case $ac_user_opts in
  933. *"
  934. "enable_$ac_useropt"
  935. "*) ;;
  936. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  937. ac_unrecognized_sep=', ';;
  938. esac
  939. eval enable_$ac_useropt=no ;;
  940. -docdir | --docdir | --docdi | --doc | --do)
  941. ac_prev=docdir ;;
  942. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  943. docdir=$ac_optarg ;;
  944. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  945. ac_prev=dvidir ;;
  946. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  947. dvidir=$ac_optarg ;;
  948. -enable-* | --enable-*)
  949. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  950. # Reject names that are not valid shell variable names.
  951. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  952. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  953. { (exit 1); exit 1; }; }
  954. ac_useropt_orig=$ac_useropt
  955. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  956. case $ac_user_opts in
  957. *"
  958. "enable_$ac_useropt"
  959. "*) ;;
  960. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  961. ac_unrecognized_sep=', ';;
  962. esac
  963. eval enable_$ac_useropt=\$ac_optarg ;;
  964. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  965. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  966. | --exec | --exe | --ex)
  967. ac_prev=exec_prefix ;;
  968. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  969. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  970. | --exec=* | --exe=* | --ex=*)
  971. exec_prefix=$ac_optarg ;;
  972. -gas | --gas | --ga | --g)
  973. # Obsolete; use --with-gas.
  974. with_gas=yes ;;
  975. -help | --help | --hel | --he | -h)
  976. ac_init_help=long ;;
  977. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  978. ac_init_help=recursive ;;
  979. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  980. ac_init_help=short ;;
  981. -host | --host | --hos | --ho)
  982. ac_prev=host_alias ;;
  983. -host=* | --host=* | --hos=* | --ho=*)
  984. host_alias=$ac_optarg ;;
  985. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  986. ac_prev=htmldir ;;
  987. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  988. | --ht=*)
  989. htmldir=$ac_optarg ;;
  990. -includedir | --includedir | --includedi | --included | --include \
  991. | --includ | --inclu | --incl | --inc)
  992. ac_prev=includedir ;;
  993. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  994. | --includ=* | --inclu=* | --incl=* | --inc=*)
  995. includedir=$ac_optarg ;;
  996. -infodir | --infodir | --infodi | --infod | --info | --inf)
  997. ac_prev=infodir ;;
  998. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  999. infodir=$ac_optarg ;;
  1000. -libdir | --libdir | --libdi | --libd)
  1001. ac_prev=libdir ;;
  1002. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1003. libdir=$ac_optarg ;;
  1004. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1005. | --libexe | --libex | --libe)
  1006. ac_prev=libexecdir ;;
  1007. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1008. | --libexe=* | --libex=* | --libe=*)
  1009. libexecdir=$ac_optarg ;;
  1010. -localedir | --localedir | --localedi | --localed | --locale)
  1011. ac_prev=localedir ;;
  1012. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1013. localedir=$ac_optarg ;;
  1014. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1015. | --localstate | --localstat | --localsta | --localst | --locals)
  1016. ac_prev=localstatedir ;;
  1017. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1018. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1019. localstatedir=$ac_optarg ;;
  1020. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1021. ac_prev=mandir ;;
  1022. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1023. mandir=$ac_optarg ;;
  1024. -nfp | --nfp | --nf)
  1025. # Obsolete; use --without-fp.
  1026. with_fp=no ;;
  1027. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1028. | --no-cr | --no-c | -n)
  1029. no_create=yes ;;
  1030. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1031. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1032. no_recursion=yes ;;
  1033. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1034. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1035. | --oldin | --oldi | --old | --ol | --o)
  1036. ac_prev=oldincludedir ;;
  1037. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1038. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1039. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1040. oldincludedir=$ac_optarg ;;
  1041. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1042. ac_prev=prefix ;;
  1043. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1044. prefix=$ac_optarg ;;
  1045. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1046. | --program-pre | --program-pr | --program-p)
  1047. ac_prev=program_prefix ;;
  1048. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1049. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1050. program_prefix=$ac_optarg ;;
  1051. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1052. | --program-suf | --program-su | --program-s)
  1053. ac_prev=program_suffix ;;
  1054. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1055. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1056. program_suffix=$ac_optarg ;;
  1057. -program-transform-name | --program-transform-name \
  1058. | --program-transform-nam | --program-transform-na \
  1059. | --program-transform-n | --program-transform- \
  1060. | --program-transform | --program-transfor \
  1061. | --program-transfo | --program-transf \
  1062. | --program-trans | --program-tran \
  1063. | --progr-tra | --program-tr | --program-t)
  1064. ac_prev=program_transform_name ;;
  1065. -program-transform-name=* | --program-transform-name=* \
  1066. | --program-transform-nam=* | --program-transform-na=* \
  1067. | --program-transform-n=* | --program-transform-=* \
  1068. | --program-transform=* | --program-transfor=* \
  1069. | --program-transfo=* | --program-transf=* \
  1070. | --program-trans=* | --program-tran=* \
  1071. | --progr-tra=* | --program-tr=* | --program-t=*)
  1072. program_transform_name=$ac_optarg ;;
  1073. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1074. ac_prev=pdfdir ;;
  1075. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1076. pdfdir=$ac_optarg ;;
  1077. -psdir | --psdir | --psdi | --psd | --ps)
  1078. ac_prev=psdir ;;
  1079. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1080. psdir=$ac_optarg ;;
  1081. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1082. | -silent | --silent | --silen | --sile | --sil)
  1083. silent=yes ;;
  1084. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1085. ac_prev=sbindir ;;
  1086. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1087. | --sbi=* | --sb=*)
  1088. sbindir=$ac_optarg ;;
  1089. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1090. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1091. | --sharedst | --shareds | --shared | --share | --shar \
  1092. | --sha | --sh)
  1093. ac_prev=sharedstatedir ;;
  1094. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1095. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1096. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1097. | --sha=* | --sh=*)
  1098. sharedstatedir=$ac_optarg ;;
  1099. -site | --site | --sit)
  1100. ac_prev=site ;;
  1101. -site=* | --site=* | --sit=*)
  1102. site=$ac_optarg ;;
  1103. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1104. ac_prev=srcdir ;;
  1105. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1106. srcdir=$ac_optarg ;;
  1107. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1108. | --syscon | --sysco | --sysc | --sys | --sy)
  1109. ac_prev=sysconfdir ;;
  1110. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1111. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1112. sysconfdir=$ac_optarg ;;
  1113. -target | --target | --targe | --targ | --tar | --ta | --t)
  1114. ac_prev=target_alias ;;
  1115. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1116. target_alias=$ac_optarg ;;
  1117. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1118. verbose=yes ;;
  1119. -version | --version | --versio | --versi | --vers | -V)
  1120. ac_init_version=: ;;
  1121. -with-* | --with-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1126. { (exit 1); exit 1; }; }
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=\$ac_optarg ;;
  1137. -without-* | --without-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1142. { (exit 1); exit 1; }; }
  1143. ac_useropt_orig=$ac_useropt
  1144. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1145. case $ac_user_opts in
  1146. *"
  1147. "with_$ac_useropt"
  1148. "*) ;;
  1149. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1150. ac_unrecognized_sep=', ';;
  1151. esac
  1152. eval with_$ac_useropt=no ;;
  1153. --x)
  1154. # Obsolete; use --with-x.
  1155. with_x=yes ;;
  1156. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1157. | --x-incl | --x-inc | --x-in | --x-i)
  1158. ac_prev=x_includes ;;
  1159. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1160. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1161. x_includes=$ac_optarg ;;
  1162. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1163. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1164. ac_prev=x_libraries ;;
  1165. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1166. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1167. x_libraries=$ac_optarg ;;
  1168. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1169. Try \`$0 --help' for more information." >&2
  1170. { (exit 1); exit 1; }; }
  1171. ;;
  1172. *=*)
  1173. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1174. # Reject names that are not valid shell variable names.
  1175. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1176. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1177. { (exit 1); exit 1; }; }
  1178. eval $ac_envvar=\$ac_optarg
  1179. export $ac_envvar ;;
  1180. *)
  1181. # FIXME: should be removed in autoconf 3.0.
  1182. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1183. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1184. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1185. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1186. ;;
  1187. esac
  1188. done
  1189. if test -n "$ac_prev"; then
  1190. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1191. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1192. { (exit 1); exit 1; }; }
  1193. fi
  1194. if test -n "$ac_unrecognized_opts"; then
  1195. case $enable_option_checking in
  1196. no) ;;
  1197. fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1198. { (exit 1); exit 1; }; } ;;
  1199. *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1200. esac
  1201. fi
  1202. # Check all directory arguments for consistency.
  1203. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1204. datadir sysconfdir sharedstatedir localstatedir includedir \
  1205. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1206. libdir localedir mandir
  1207. do
  1208. eval ac_val=\$$ac_var
  1209. # Remove trailing slashes.
  1210. case $ac_val in
  1211. */ )
  1212. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1213. eval $ac_var=\$ac_val;;
  1214. esac
  1215. # Be sure to have absolute directory names.
  1216. case $ac_val in
  1217. [\\/$]* | ?:[\\/]* ) continue;;
  1218. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1219. esac
  1220. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1221. { (exit 1); exit 1; }; }
  1222. done
  1223. # There might be people who depend on the old broken behavior: `$host'
  1224. # used to hold the argument of --host etc.
  1225. # FIXME: To remove some day.
  1226. build=$build_alias
  1227. host=$host_alias
  1228. target=$target_alias
  1229. # FIXME: To remove some day.
  1230. if test "x$host_alias" != x; then
  1231. if test "x$build_alias" = x; then
  1232. cross_compiling=maybe
  1233. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1234. If a cross compiler is detected then cross compile mode will be used." >&2
  1235. elif test "x$build_alias" != "x$host_alias"; then
  1236. cross_compiling=yes
  1237. fi
  1238. fi
  1239. ac_tool_prefix=
  1240. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1241. test "$silent" = yes && exec 6>/dev/null
  1242. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1243. ac_ls_di=`ls -di .` &&
  1244. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1245. { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1246. { (exit 1); exit 1; }; }
  1247. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1248. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1249. { (exit 1); exit 1; }; }
  1250. # Find the source files, if location was not specified.
  1251. if test -z "$srcdir"; then
  1252. ac_srcdir_defaulted=yes
  1253. # Try the directory containing this script, then the parent directory.
  1254. ac_confdir=`$as_dirname -- "$as_myself" ||
  1255. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1256. X"$as_myself" : 'X\(//\)[^/]' \| \
  1257. X"$as_myself" : 'X\(//\)$' \| \
  1258. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1259. $as_echo X"$as_myself" |
  1260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)[^/].*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\/\)$/{
  1269. s//\1/
  1270. q
  1271. }
  1272. /^X\(\/\).*/{
  1273. s//\1/
  1274. q
  1275. }
  1276. s/.*/./; q'`
  1277. srcdir=$ac_confdir
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. srcdir=..
  1280. fi
  1281. else
  1282. ac_srcdir_defaulted=no
  1283. fi
  1284. if test ! -r "$srcdir/$ac_unique_file"; then
  1285. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1286. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1287. { (exit 1); exit 1; }; }
  1288. fi
  1289. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1290. ac_abs_confdir=`(
  1291. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1292. { (exit 1); exit 1; }; }
  1293. pwd)`
  1294. # When building in place, set srcdir=.
  1295. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1296. srcdir=.
  1297. fi
  1298. # Remove unnecessary trailing slashes from srcdir.
  1299. # Double slashes in file names in object file debugging info
  1300. # mess up M-x gdb in Emacs.
  1301. case $srcdir in
  1302. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1303. esac
  1304. for ac_var in $ac_precious_vars; do
  1305. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1306. eval ac_env_${ac_var}_value=\$${ac_var}
  1307. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1308. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1309. done
  1310. #
  1311. # Report the --help message.
  1312. #
  1313. if test "$ac_init_help" = "long"; then
  1314. # Omit some internal or obsolete options to make the list less imposing.
  1315. # This message is too long to be a string in the A/UX 3.1 sh.
  1316. cat <<_ACEOF
  1317. \`configure' configures sqlite 3.8.1 to adapt to many kinds of systems.
  1318. Usage: $0 [OPTION]... [VAR=VALUE]...
  1319. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1320. VAR=VALUE. See below for descriptions of some of the useful variables.
  1321. Defaults for the options are specified in brackets.
  1322. Configuration:
  1323. -h, --help display this help and exit
  1324. --help=short display options specific to this package
  1325. --help=recursive display the short help of all the included packages
  1326. -V, --version display version information and exit
  1327. -q, --quiet, --silent do not print \`checking...' messages
  1328. --cache-file=FILE cache test results in FILE [disabled]
  1329. -C, --config-cache alias for \`--cache-file=config.cache'
  1330. -n, --no-create do not create output files
  1331. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1332. Installation directories:
  1333. --prefix=PREFIX install architecture-independent files in PREFIX
  1334. [$ac_default_prefix]
  1335. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1336. [PREFIX]
  1337. By default, \`make install' will install all the files in
  1338. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1339. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1340. for instance \`--prefix=\$HOME'.
  1341. For better control, use the options below.
  1342. Fine tuning of the installation directories:
  1343. --bindir=DIR user executables [EPREFIX/bin]
  1344. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1345. --libexecdir=DIR program executables [EPREFIX/libexec]
  1346. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1347. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1348. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1349. --libdir=DIR object code libraries [EPREFIX/lib]
  1350. --includedir=DIR C header files [PREFIX/include]
  1351. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1352. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1353. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1354. --infodir=DIR info documentation [DATAROOTDIR/info]
  1355. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1356. --mandir=DIR man documentation [DATAROOTDIR/man]
  1357. --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
  1358. --htmldir=DIR html documentation [DOCDIR]
  1359. --dvidir=DIR dvi documentation [DOCDIR]
  1360. --pdfdir=DIR pdf documentation [DOCDIR]
  1361. --psdir=DIR ps documentation [DOCDIR]
  1362. _ACEOF
  1363. cat <<\_ACEOF
  1364. System types:
  1365. --build=BUILD configure for building on BUILD [guessed]
  1366. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1367. _ACEOF
  1368. fi
  1369. if test -n "$ac_init_help"; then
  1370. case $ac_init_help in
  1371. short | recursive ) echo "Configuration of sqlite 3.8.1:";;
  1372. esac
  1373. cat <<\_ACEOF
  1374. Optional Features:
  1375. --disable-option-checking ignore unrecognized --enable/--with options
  1376. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1377. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1378. --enable-shared[=PKGS] build shared libraries [default=yes]
  1379. --enable-static[=PKGS] build static libraries [default=yes]
  1380. --enable-fast-install[=PKGS]
  1381. optimize for fast installation [default=yes]
  1382. --disable-libtool-lock avoid locking (might break parallel builds)
  1383. --disable-largefile omit support for large files
  1384. --enable-threadsafe Support threadsafe operation
  1385. --enable-cross-thread-connections
  1386. Allow connection sharing across threads
  1387. --enable-releasemode Support libtool link to release mode
  1388. --enable-tempstore Use an in-ram database for temporary tables
  1389. (never,no,yes,always)
  1390. --disable-tcl do not build TCL extension
  1391. --disable-readline disable readline support [default=detect]
  1392. --enable-debug enable debugging & verbose explain
  1393. --disable-amalgamation Disable the amalgamation and instead build all files
  1394. separately
  1395. --enable-load-extension Enable loading of external extensions
  1396. --enable-gcov Enable coverage testing using gcov
  1397. Optional Packages:
  1398. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1399. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1400. --with-pic try to use only PIC/non-PIC objects [default=use
  1401. both]
  1402. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1403. --with-hints=FILE Read configuration options from FILE
  1404. --with-tcl=DIR directory containing tcl configuration
  1405. (tclConfig.sh)
  1406. --with-readline-lib specify readline library
  1407. --with-readline-inc specify readline include paths
  1408. Some influential environment variables:
  1409. CC C compiler command
  1410. CFLAGS C compiler flags
  1411. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1412. nonstandard directory <lib dir>
  1413. LIBS libraries to pass to the linker, e.g. -l<library>
  1414. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1415. you have headers in a nonstandard directory <include dir>
  1416. CPP C preprocessor
  1417. TCLLIBDIR Where to install tcl plugin
  1418. Use these variables to override the choices made by `configure' or to help
  1419. it to find libraries and programs with nonstandard names/locations.
  1420. _ACEOF
  1421. ac_status=$?
  1422. fi
  1423. if test "$ac_init_help" = "recursive"; then
  1424. # If there are subdirs, report their specific --help.
  1425. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1426. test -d "$ac_dir" ||
  1427. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1428. continue
  1429. ac_builddir=.
  1430. case "$ac_dir" in
  1431. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1432. *)
  1433. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1434. # A ".." for each directory in $ac_dir_suffix.
  1435. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1436. case $ac_top_builddir_sub in
  1437. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1438. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1439. esac ;;
  1440. esac
  1441. ac_abs_top_builddir=$ac_pwd
  1442. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1443. # for backward compatibility:
  1444. ac_top_builddir=$ac_top_build_prefix
  1445. case $srcdir in
  1446. .) # We are building in place.
  1447. ac_srcdir=.
  1448. ac_top_srcdir=$ac_top_builddir_sub
  1449. ac_abs_top_srcdir=$ac_pwd ;;
  1450. [\\/]* | ?:[\\/]* ) # Absolute name.
  1451. ac_srcdir=$srcdir$ac_dir_suffix;
  1452. ac_top_srcdir=$srcdir
  1453. ac_abs_top_srcdir=$srcdir ;;
  1454. *) # Relative name.
  1455. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1456. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1457. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1458. esac
  1459. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1460. cd "$ac_dir" || { ac_status=$?; continue; }
  1461. # Check for guested configure.
  1462. if test -f "$ac_srcdir/configure.gnu"; then
  1463. echo &&
  1464. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1465. elif test -f "$ac_srcdir/configure"; then
  1466. echo &&
  1467. $SHELL "$ac_srcdir/configure" --help=recursive
  1468. else
  1469. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1470. fi || ac_status=$?
  1471. cd "$ac_pwd" || { ac_status=$?; break; }
  1472. done
  1473. fi
  1474. test -n "$ac_init_help" && exit $ac_status
  1475. if $ac_init_version; then
  1476. cat <<\_ACEOF
  1477. sqlite configure 3.8.1
  1478. generated by GNU Autoconf 2.62
  1479. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1480. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1481. This configure script is free software; the Free Software Foundation
  1482. gives unlimited permission to copy, distribute and modify it.
  1483. _ACEOF
  1484. exit
  1485. fi
  1486. cat >config.log <<_ACEOF
  1487. This file contains any messages produced by compilers while
  1488. running configure, to aid debugging if configure makes a mistake.
  1489. It was created by sqlite $as_me 3.8.1, which was
  1490. generated by GNU Autoconf 2.62. Invocation command line was
  1491. $ $0 $@
  1492. _ACEOF
  1493. exec 5>>config.log
  1494. {
  1495. cat <<_ASUNAME
  1496. ## --------- ##
  1497. ## Platform. ##
  1498. ## --------- ##
  1499. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1500. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1501. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1502. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1503. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1504. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1505. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1506. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1507. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1508. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1509. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1510. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1511. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1512. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1513. _ASUNAME
  1514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1515. for as_dir in $PATH
  1516. do
  1517. IFS=$as_save_IFS
  1518. test -z "$as_dir" && as_dir=.
  1519. $as_echo "PATH: $as_dir"
  1520. done
  1521. IFS=$as_save_IFS
  1522. } >&5
  1523. cat >&5 <<_ACEOF
  1524. ## ----------- ##
  1525. ## Core tests. ##
  1526. ## ----------- ##
  1527. _ACEOF
  1528. # Keep a trace of the command line.
  1529. # Strip out --no-create and --no-recursion so they do not pile up.
  1530. # Strip out --silent because we don't want to record it for future runs.
  1531. # Also quote any args containing shell meta-characters.
  1532. # Make two passes to allow for proper duplicate-argument suppression.
  1533. ac_configure_args=
  1534. ac_configure_args0=
  1535. ac_configure_args1=
  1536. ac_must_keep_next=false
  1537. for ac_pass in 1 2
  1538. do
  1539. for ac_arg
  1540. do
  1541. case $ac_arg in
  1542. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1543. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1544. | -silent | --silent | --silen | --sile | --sil)
  1545. continue ;;
  1546. *\'*)
  1547. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1548. esac
  1549. case $ac_pass in
  1550. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1551. 2)
  1552. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1553. if test $ac_must_keep_next = true; then
  1554. ac_must_keep_next=false # Got value, back to normal.
  1555. else
  1556. case $ac_arg in
  1557. *=* | --config-cache | -C | -disable-* | --disable-* \
  1558. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1559. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1560. | -with-* | --with-* | -without-* | --without-* | --x)
  1561. case "$ac_configure_args0 " in
  1562. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1563. esac
  1564. ;;
  1565. -* ) ac_must_keep_next=true ;;
  1566. esac
  1567. fi
  1568. ac_configure_args="$ac_configure_args '$ac_arg'"
  1569. ;;
  1570. esac
  1571. done
  1572. done
  1573. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1574. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1575. # When interrupted or exit'd, cleanup temporary files, and complete
  1576. # config.log. We remove comments because anyway the quotes in there
  1577. # would cause problems or look ugly.
  1578. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1579. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1580. trap 'exit_status=$?
  1581. # Save into config.log some information that might help in debugging.
  1582. {
  1583. echo
  1584. cat <<\_ASBOX
  1585. ## ---------------- ##
  1586. ## Cache variables. ##
  1587. ## ---------------- ##
  1588. _ASBOX
  1589. echo
  1590. # The following way of writing the cache mishandles newlines in values,
  1591. (
  1592. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1593. eval ac_val=\$$ac_var
  1594. case $ac_val in #(
  1595. *${as_nl}*)
  1596. case $ac_var in #(
  1597. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1598. $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1599. esac
  1600. case $ac_var in #(
  1601. _ | IFS | as_nl) ;; #(
  1602. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1603. *) $as_unset $ac_var ;;
  1604. esac ;;
  1605. esac
  1606. done
  1607. (set) 2>&1 |
  1608. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1609. *${as_nl}ac_space=\ *)
  1610. sed -n \
  1611. "s/'\''/'\''\\\\'\'''\''/g;
  1612. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1613. ;; #(
  1614. *)
  1615. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1616. ;;
  1617. esac |
  1618. sort
  1619. )
  1620. echo
  1621. cat <<\_ASBOX
  1622. ## ----------------- ##
  1623. ## Output variables. ##
  1624. ## ----------------- ##
  1625. _ASBOX
  1626. echo
  1627. for ac_var in $ac_subst_vars
  1628. do
  1629. eval ac_val=\$$ac_var
  1630. case $ac_val in
  1631. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1632. esac
  1633. $as_echo "$ac_var='\''$ac_val'\''"
  1634. done | sort
  1635. echo
  1636. if test -n "$ac_subst_files"; then
  1637. cat <<\_ASBOX
  1638. ## ------------------- ##
  1639. ## File substitutions. ##
  1640. ## ------------------- ##
  1641. _ASBOX
  1642. echo
  1643. for ac_var in $ac_subst_files
  1644. do
  1645. eval ac_val=\$$ac_var
  1646. case $ac_val in
  1647. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1648. esac
  1649. $as_echo "$ac_var='\''$ac_val'\''"
  1650. done | sort
  1651. echo
  1652. fi
  1653. if test -s confdefs.h; then
  1654. cat <<\_ASBOX
  1655. ## ----------- ##
  1656. ## confdefs.h. ##
  1657. ## ----------- ##
  1658. _ASBOX
  1659. echo
  1660. cat confdefs.h
  1661. echo
  1662. fi
  1663. test "$ac_signal" != 0 &&
  1664. $as_echo "$as_me: caught signal $ac_signal"
  1665. $as_echo "$as_me: exit $exit_status"
  1666. } >&5
  1667. rm -f core *.core core.conftest.* &&
  1668. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1669. exit $exit_status
  1670. ' 0
  1671. for ac_signal in 1 2 13 15; do
  1672. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1673. done
  1674. ac_signal=0
  1675. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1676. rm -f -r conftest* confdefs.h
  1677. # Predefined preprocessor variables.
  1678. cat >>confdefs.h <<_ACEOF
  1679. #define PACKAGE_NAME "$PACKAGE_NAME"
  1680. _ACEOF
  1681. cat >>confdefs.h <<_ACEOF
  1682. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1683. _ACEOF
  1684. cat >>confdefs.h <<_ACEOF
  1685. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1686. _ACEOF
  1687. cat >>confdefs.h <<_ACEOF
  1688. #define PACKAGE_STRING "$PACKAGE_STRING"
  1689. _ACEOF
  1690. cat >>confdefs.h <<_ACEOF
  1691. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1692. _ACEOF
  1693. # Let the site file select an alternate cache file if it wants to.
  1694. # Prefer an explicitly selected file to automatically selected ones.
  1695. ac_site_file1=NONE
  1696. ac_site_file2=NONE
  1697. if test -n "$CONFIG_SITE"; then
  1698. ac_site_file1=$CONFIG_SITE
  1699. elif test "x$prefix" != xNONE; then
  1700. ac_site_file1=$prefix/share/config.site
  1701. ac_site_file2=$prefix/etc/config.site
  1702. else
  1703. ac_site_file1=$ac_default_prefix/share/config.site
  1704. ac_site_file2=$ac_default_prefix/etc/config.site
  1705. fi
  1706. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1707. do
  1708. test "x$ac_site_file" = xNONE && continue
  1709. if test -r "$ac_site_file"; then
  1710. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1711. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1712. sed 's/^/| /' "$ac_site_file" >&5
  1713. . "$ac_site_file"
  1714. fi
  1715. done
  1716. if test -r "$cache_file"; then
  1717. # Some versions of bash will fail to source /dev/null (special
  1718. # files actually), so we avoid doing that.
  1719. if test -f "$cache_file"; then
  1720. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1721. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1722. case $cache_file in
  1723. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1724. *) . "./$cache_file";;
  1725. esac
  1726. fi
  1727. else
  1728. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1729. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1730. >$cache_file
  1731. fi
  1732. # Check that the precious variables saved in the cache have kept the same
  1733. # value.
  1734. ac_cache_corrupted=false
  1735. for ac_var in $ac_precious_vars; do
  1736. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1737. eval ac_new_set=\$ac_env_${ac_var}_set
  1738. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1739. eval ac_new_val=\$ac_env_${ac_var}_value
  1740. case $ac_old_set,$ac_new_set in
  1741. set,)
  1742. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1743. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1744. ac_cache_corrupted=: ;;
  1745. ,set)
  1746. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1747. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1748. ac_cache_corrupted=: ;;
  1749. ,);;
  1750. *)
  1751. if test "x$ac_old_val" != "x$ac_new_val"; then
  1752. # differences in whitespace do not lead to failure.
  1753. ac_old_val_w=`echo x $ac_old_val`
  1754. ac_new_val_w=`echo x $ac_new_val`
  1755. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1756. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1757. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1758. ac_cache_corrupted=:
  1759. else
  1760. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1761. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1762. eval $ac_var=\$ac_old_val
  1763. fi
  1764. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1765. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1766. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1767. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1768. fi;;
  1769. esac
  1770. # Pass precious variables to config.status.
  1771. if test "$ac_new_set" = set; then
  1772. case $ac_new_val in
  1773. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1774. *) ac_arg=$ac_var=$ac_new_val ;;
  1775. esac
  1776. case " $ac_configure_args " in
  1777. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1778. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1779. esac
  1780. fi
  1781. done
  1782. if $ac_cache_corrupted; then
  1783. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1784. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1785. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1786. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1787. { (exit 1); exit 1; }; }
  1788. fi
  1789. ac_ext=c
  1790. ac_cpp='$CPP $CPPFLAGS'
  1791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1794. sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
  1795. if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
  1796. { { $as_echo "$as_me:$LINENO: error: configure script is out of date:
  1797. configure \$PACKAGE_VERSION = $PACKAGE_VERSION
  1798. top level VERSION file = $sqlite_version_sanity_check
  1799. please regen with autoconf" >&5
  1800. $as_echo "$as_me: error: configure script is out of date:
  1801. configure \$PACKAGE_VERSION = $PACKAGE_VERSION
  1802. top level VERSION file = $sqlite_version_sanity_check
  1803. please regen with autoconf" >&2;}
  1804. { (exit 1); exit 1; }; }
  1805. fi
  1806. # The following RCS revision string applies to configure.in
  1807. # $Revision: 1.56 $
  1808. #########
  1809. # Programs needed
  1810. #
  1811. case `pwd` in
  1812. *\ * | *\ *)
  1813. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  1814. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  1815. esac
  1816. macro_version='2.2.6'
  1817. macro_revision='1.3012'
  1818. ltmain="$ac_aux_dir/ltmain.sh"
  1819. ac_aux_dir=
  1820. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1821. if test -f "$ac_dir/install-sh"; then
  1822. ac_aux_dir=$ac_dir
  1823. ac_install_sh="$ac_aux_dir/install-sh -c"
  1824. break
  1825. elif test -f "$ac_dir/install.sh"; then
  1826. ac_aux_dir=$ac_dir
  1827. ac_install_sh="$ac_aux_dir/install.sh -c"
  1828. break
  1829. elif test -f "$ac_dir/shtool"; then
  1830. ac_aux_dir=$ac_dir
  1831. ac_install_sh="$ac_aux_dir/shtool install -c"
  1832. break
  1833. fi
  1834. done
  1835. if test -z "$ac_aux_dir"; then
  1836. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1837. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1838. { (exit 1); exit 1; }; }
  1839. fi
  1840. # These three variables are undocumented and unsupported,
  1841. # and are intended to be withdrawn in a future Autoconf release.
  1842. # They can cause serious problems if a builder's source tree is in a directory
  1843. # whose full name contains unusual characters.
  1844. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1845. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1846. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1847. # Make sure we can run config.sub.
  1848. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1849. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1850. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1851. { (exit 1); exit 1; }; }
  1852. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1853. $as_echo_n "checking build system type... " >&6; }
  1854. if test "${ac_cv_build+set}" = set; then
  1855. $as_echo_n "(cached) " >&6
  1856. else
  1857. ac_build_alias=$build_alias
  1858. test "x$ac_build_alias" = x &&
  1859. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1860. test "x$ac_build_alias" = x &&
  1861. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1862. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1863. { (exit 1); exit 1; }; }
  1864. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1865. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1866. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1867. { (exit 1); exit 1; }; }
  1868. fi
  1869. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1870. $as_echo "$ac_cv_build" >&6; }
  1871. case $ac_cv_build in
  1872. *-*-*) ;;
  1873. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1874. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1875. { (exit 1); exit 1; }; };;
  1876. esac
  1877. build=$ac_cv_build
  1878. ac_save_IFS=$IFS; IFS='-'
  1879. set x $ac_cv_build
  1880. shift
  1881. build_cpu=$1
  1882. build_vendor=$2
  1883. shift; shift
  1884. # Remember, the first character of IFS is used to create $*,
  1885. # except with old shells:
  1886. build_os=$*
  1887. IFS=$ac_save_IFS
  1888. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1889. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  1890. $as_echo_n "checking host system type... " >&6; }
  1891. if test "${ac_cv_host+set}" = set; then
  1892. $as_echo_n "(cached) " >&6
  1893. else
  1894. if test "x$host_alias" = x; then
  1895. ac_cv_host=$ac_cv_build
  1896. else
  1897. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1898. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1899. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1900. { (exit 1); exit 1; }; }
  1901. fi
  1902. fi
  1903. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1904. $as_echo "$ac_cv_host" >&6; }
  1905. case $ac_cv_host in
  1906. *-*-*) ;;
  1907. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1908. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  1909. { (exit 1); exit 1; }; };;
  1910. esac
  1911. host=$ac_cv_host
  1912. ac_save_IFS=$IFS; IFS='-'
  1913. set x $ac_cv_host
  1914. shift
  1915. host_cpu=$1
  1916. host_vendor=$2
  1917. shift; shift
  1918. # Remember, the first character of IFS is used to create $*,
  1919. # except with old shells:
  1920. host_os=$*
  1921. IFS=$ac_save_IFS
  1922. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1923. ac_ext=c
  1924. ac_cpp='$CPP $CPPFLAGS'
  1925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1928. if test -n "$ac_tool_prefix"; then
  1929. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1930. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1931. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1932. $as_echo_n "checking for $ac_word... " >&6; }
  1933. if test "${ac_cv_prog_CC+set}" = set; then
  1934. $as_echo_n "(cached) " >&6
  1935. else
  1936. if test -n "$CC"; then
  1937. ac_cv_prog_CC="$CC" # Let the user override the test.
  1938. else
  1939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1940. for as_dir in $PATH
  1941. do
  1942. IFS=$as_save_IFS
  1943. test -z "$as_dir" && as_dir=.
  1944. for ac_exec_ext in '' $ac_executable_extensions; do
  1945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1946. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1947. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1948. break 2
  1949. fi
  1950. done
  1951. done
  1952. IFS=$as_save_IFS
  1953. fi
  1954. fi
  1955. CC=$ac_cv_prog_CC
  1956. if test -n "$CC"; then
  1957. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1958. $as_echo "$CC" >&6; }
  1959. else
  1960. { $as_echo "$as_me:$LINENO: result: no" >&5
  1961. $as_echo "no" >&6; }
  1962. fi
  1963. fi
  1964. if test -z "$ac_cv_prog_CC"; then
  1965. ac_ct_CC=$CC
  1966. # Extract the first word of "gcc", so it can be a program name with args.
  1967. set dummy gcc; ac_word=$2
  1968. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1969. $as_echo_n "checking for $ac_word... " >&6; }
  1970. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1971. $as_echo_n "(cached) " >&6
  1972. else
  1973. if test -n "$ac_ct_CC"; then
  1974. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1975. else
  1976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1977. for as_dir in $PATH
  1978. do
  1979. IFS=$as_save_IFS
  1980. test -z "$as_dir" && as_dir=.
  1981. for ac_exec_ext in '' $ac_executable_extensions; do
  1982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1983. ac_cv_prog_ac_ct_CC="gcc"
  1984. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1985. break 2
  1986. fi
  1987. done
  1988. done
  1989. IFS=$as_save_IFS
  1990. fi
  1991. fi
  1992. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1993. if test -n "$ac_ct_CC"; then
  1994. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1995. $as_echo "$ac_ct_CC" >&6; }
  1996. else
  1997. { $as_echo "$as_me:$LINENO: result: no" >&5
  1998. $as_echo "no" >&6; }
  1999. fi
  2000. if test "x$ac_ct_CC" = x; then
  2001. CC=""
  2002. else
  2003. case $cross_compiling:$ac_tool_warned in
  2004. yes:)
  2005. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2006. whose name does not start with the host triplet. If you think this
  2007. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2008. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2009. whose name does not start with the host triplet. If you think this
  2010. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2011. ac_tool_warned=yes ;;
  2012. esac
  2013. CC=$ac_ct_CC
  2014. fi
  2015. else
  2016. CC="$ac_cv_prog_CC"
  2017. fi
  2018. if test -z "$CC"; then
  2019. if test -n "$ac_tool_prefix"; then
  2020. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2021. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2022. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2023. $as_echo_n "checking for $ac_word... " >&6; }
  2024. if test "${ac_cv_prog_CC+set}" = set; then
  2025. $as_echo_n "(cached) " >&6
  2026. else
  2027. if test -n "$CC"; then
  2028. ac_cv_prog_CC="$CC" # Let the user override the test.
  2029. else
  2030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2031. for as_dir in $PATH
  2032. do
  2033. IFS=$as_save_IFS
  2034. test -z "$as_dir" && as_dir=.
  2035. for ac_exec_ext in '' $ac_executable_extensions; do
  2036. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2037. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2038. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2039. break 2
  2040. fi
  2041. done
  2042. done
  2043. IFS=$as_save_IFS
  2044. fi
  2045. fi
  2046. CC=$ac_cv_prog_CC
  2047. if test -n "$CC"; then
  2048. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2049. $as_echo "$CC" >&6; }
  2050. else
  2051. { $as_echo "$as_me:$LINENO: result: no" >&5
  2052. $as_echo "no" >&6; }
  2053. fi
  2054. fi
  2055. fi
  2056. if test -z "$CC"; then
  2057. # Extract the first word of "cc", so it can be a program name with args.
  2058. set dummy cc; ac_word=$2
  2059. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2060. $as_echo_n "checking for $ac_word... " >&6; }
  2061. if test "${ac_cv_prog_CC+set}" = set; then
  2062. $as_echo_n "(cached) " >&6
  2063. else
  2064. if test -n "$CC"; then
  2065. ac_cv_prog_CC="$CC" # Let the user override the test.
  2066. else
  2067. ac_prog_rejected=no
  2068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2069. for as_dir in $PATH
  2070. do
  2071. IFS=$as_save_IFS
  2072. test -z "$as_dir" && as_dir=.
  2073. for ac_exec_ext in '' $ac_executable_extensions; do
  2074. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2075. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2076. ac_prog_rejected=yes
  2077. continue
  2078. fi
  2079. ac_cv_prog_CC="cc"
  2080. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2081. break 2
  2082. fi
  2083. done
  2084. done
  2085. IFS=$as_save_IFS
  2086. if test $ac_prog_rejected = yes; then
  2087. # We found a bogon in the path, so make sure we never use it.
  2088. set dummy $ac_cv_prog_CC
  2089. shift
  2090. if test $# != 0; then
  2091. # We chose a different compiler from the bogus one.
  2092. # However, it has the same basename, so the bogon will be chosen
  2093. # first if we set CC to just the basename; use the full file name.
  2094. shift
  2095. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2096. fi
  2097. fi
  2098. fi
  2099. fi
  2100. CC=$ac_cv_prog_CC
  2101. if test -n "$CC"; then
  2102. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2103. $as_echo "$CC" >&6; }
  2104. else
  2105. { $as_echo "$as_me:$LINENO: result: no" >&5
  2106. $as_echo "no" >&6; }
  2107. fi
  2108. fi
  2109. if test -z "$CC"; then
  2110. if test -n "$ac_tool_prefix"; then
  2111. for ac_prog in cl.exe
  2112. do
  2113. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2114. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2115. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2116. $as_echo_n "checking for $ac_word... " >&6; }
  2117. if test "${ac_cv_prog_CC+set}" = set; then
  2118. $as_echo_n "(cached) " >&6
  2119. else
  2120. if test -n "$CC"; then
  2121. ac_cv_prog_CC="$CC" # Let the user override the test.
  2122. else
  2123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2124. for as_dir in $PATH
  2125. do
  2126. IFS=$as_save_IFS
  2127. test -z "$as_dir" && as_dir=.
  2128. for ac_exec_ext in '' $ac_executable_extensions; do
  2129. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2130. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2131. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2132. break 2
  2133. fi
  2134. done
  2135. done
  2136. IFS=$as_save_IFS
  2137. fi
  2138. fi
  2139. CC=$ac_cv_prog_CC
  2140. if test -n "$CC"; then
  2141. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2142. $as_echo "$CC" >&6; }
  2143. else
  2144. { $as_echo "$as_me:$LINENO: result: no" >&5
  2145. $as_echo "no" >&6; }
  2146. fi
  2147. test -n "$CC" && break
  2148. done
  2149. fi
  2150. if test -z "$CC"; then
  2151. ac_ct_CC=$CC
  2152. for ac_prog in cl.exe
  2153. do
  2154. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2155. set dummy $ac_prog; ac_word=$2
  2156. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2157. $as_echo_n "checking for $ac_word... " >&6; }
  2158. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2159. $as_echo_n "(cached) " >&6
  2160. else
  2161. if test -n "$ac_ct_CC"; then
  2162. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2163. else
  2164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2165. for as_dir in $PATH
  2166. do
  2167. IFS=$as_save_IFS
  2168. test -z "$as_dir" && as_dir=.
  2169. for ac_exec_ext in '' $ac_executable_extensions; do
  2170. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2171. ac_cv_prog_ac_ct_CC="$ac_prog"
  2172. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2173. break 2
  2174. fi
  2175. done
  2176. done
  2177. IFS=$as_save_IFS
  2178. fi
  2179. fi
  2180. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2181. if test -n "$ac_ct_CC"; then
  2182. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2183. $as_echo "$ac_ct_CC" >&6; }
  2184. else
  2185. { $as_echo "$as_me:$LINENO: result: no" >&5
  2186. $as_echo "no" >&6; }
  2187. fi
  2188. test -n "$ac_ct_CC" && break
  2189. done
  2190. if test "x$ac_ct_CC" = x; then
  2191. CC=""
  2192. else
  2193. case $cross_compiling:$ac_tool_warned in
  2194. yes:)
  2195. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2196. whose name does not start with the host triplet. If you think this
  2197. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2198. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2199. whose name does not start with the host triplet. If you think this
  2200. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2201. ac_tool_warned=yes ;;
  2202. esac
  2203. CC=$ac_ct_CC
  2204. fi
  2205. fi
  2206. fi
  2207. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2208. See \`config.log' for more details." >&5
  2209. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2210. See \`config.log' for more details." >&2;}
  2211. { (exit 1); exit 1; }; }
  2212. # Provide some information about the compiler.
  2213. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2214. set X $ac_compile
  2215. ac_compiler=$2
  2216. { (ac_try="$ac_compiler --version >&5"
  2217. case "(($ac_try" in
  2218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2219. *) ac_try_echo=$ac_try;;
  2220. esac
  2221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2222. $as_echo "$ac_try_echo") >&5
  2223. (eval "$ac_compiler --version >&5") 2>&5
  2224. ac_status=$?
  2225. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2226. (exit $ac_status); }
  2227. { (ac_try="$ac_compiler -v >&5"
  2228. case "(($ac_try" in
  2229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2230. *) ac_try_echo=$ac_try;;
  2231. esac
  2232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2233. $as_echo "$ac_try_echo") >&5
  2234. (eval "$ac_compiler -v >&5") 2>&5
  2235. ac_status=$?
  2236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2237. (exit $ac_status); }
  2238. { (ac_try="$ac_compiler -V >&5"
  2239. case "(($ac_try" in
  2240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2241. *) ac_try_echo=$ac_try;;
  2242. esac
  2243. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2244. $as_echo "$ac_try_echo") >&5
  2245. (eval "$ac_compiler -V >&5") 2>&5
  2246. ac_status=$?
  2247. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2248. (exit $ac_status); }
  2249. cat >conftest.$ac_ext <<_ACEOF
  2250. /* confdefs.h. */
  2251. _ACEOF
  2252. cat confdefs.h >>conftest.$ac_ext
  2253. cat >>conftest.$ac_ext <<_ACEOF
  2254. /* end confdefs.h. */
  2255. int
  2256. main ()
  2257. {
  2258. ;
  2259. return 0;
  2260. }
  2261. _ACEOF
  2262. ac_clean_files_save=$ac_clean_files
  2263. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2264. # Try to create an executable without -o first, disregard a.out.
  2265. # It will help us diagnose broken compilers, and finding out an intuition
  2266. # of exeext.
  2267. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2268. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2269. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2270. # The possible output files:
  2271. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2272. ac_rmfiles=
  2273. for ac_file in $ac_files
  2274. do
  2275. case $ac_file in
  2276. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2277. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2278. esac
  2279. done
  2280. rm -f $ac_rmfiles
  2281. if { (ac_try="$ac_link_default"
  2282. case "(($ac_try" in
  2283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2284. *) ac_try_echo=$ac_try;;
  2285. esac
  2286. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2287. $as_echo "$ac_try_echo") >&5
  2288. (eval "$ac_link_default") 2>&5
  2289. ac_status=$?
  2290. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2291. (exit $ac_status); }; then
  2292. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2293. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2294. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2295. # so that the user can short-circuit this test for compilers unknown to
  2296. # Autoconf.
  2297. for ac_file in $ac_files ''
  2298. do
  2299. test -f "$ac_file" || continue
  2300. case $ac_file in
  2301. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2302. ;;
  2303. [ab].out )
  2304. # We found the default executable, but exeext='' is most
  2305. # certainly right.
  2306. break;;
  2307. *.* )
  2308. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2309. then :; else
  2310. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2311. fi
  2312. # We set ac_cv_exeext here because the later test for it is not
  2313. # safe: cross compilers may not add the suffix if given an `-o'
  2314. # argument, so we may need to know it at that point already.
  2315. # Even if this section looks crufty: it has the advantage of
  2316. # actually working.
  2317. break;;
  2318. * )
  2319. break;;
  2320. esac
  2321. done
  2322. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2323. else
  2324. ac_file=''
  2325. fi
  2326. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2327. $as_echo "$ac_file" >&6; }
  2328. if test -z "$ac_file"; then
  2329. $as_echo "$as_me: failed program was:" >&5
  2330. sed 's/^/| /' conftest.$ac_ext >&5
  2331. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2332. See \`config.log' for more details." >&5
  2333. $as_echo "$as_me: error: C compiler cannot create executables
  2334. See \`config.log' for more details." >&2;}
  2335. { (exit 77); exit 77; }; }
  2336. fi
  2337. ac_exeext=$ac_cv_exeext
  2338. # Check that the compiler produces executables we can run. If not, either
  2339. # the compiler is broken, or we cross compile.
  2340. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2341. $as_echo_n "checking whether the C compiler works... " >&6; }
  2342. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2343. # If not cross compiling, check that we can run a simple program.
  2344. if test "$cross_compiling" != yes; then
  2345. if { ac_try='./$ac_file'
  2346. { (case "(($ac_try" in
  2347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2348. *) ac_try_echo=$ac_try;;
  2349. esac
  2350. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2351. $as_echo "$ac_try_echo") >&5
  2352. (eval "$ac_try") 2>&5
  2353. ac_status=$?
  2354. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2355. (exit $ac_status); }; }; then
  2356. cross_compiling=no
  2357. else
  2358. if test "$cross_compiling" = maybe; then
  2359. cross_compiling=yes
  2360. else
  2361. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2362. If you meant to cross compile, use \`--host'.
  2363. See \`config.log' for more details." >&5
  2364. $as_echo "$as_me: error: cannot run C compiled programs.
  2365. If you meant to cross compile, use \`--host'.
  2366. See \`config.log' for more details." >&2;}
  2367. { (exit 1); exit 1; }; }
  2368. fi
  2369. fi
  2370. fi
  2371. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2372. $as_echo "yes" >&6; }
  2373. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2374. ac_clean_files=$ac_clean_files_save
  2375. # Check that the compiler produces executables we can run. If not, either
  2376. # the compiler is broken, or we cross compile.
  2377. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2378. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2379. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2380. $as_echo "$cross_compiling" >&6; }
  2381. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2382. $as_echo_n "checking for suffix of executables... " >&6; }
  2383. if { (ac_try="$ac_link"
  2384. case "(($ac_try" in
  2385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2386. *) ac_try_echo=$ac_try;;
  2387. esac
  2388. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2389. $as_echo "$ac_try_echo") >&5
  2390. (eval "$ac_link") 2>&5
  2391. ac_status=$?
  2392. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2393. (exit $ac_status); }; then
  2394. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2395. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2396. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2397. # `rm'.
  2398. for ac_file in conftest.exe conftest conftest.*; do
  2399. test -f "$ac_file" || continue
  2400. case $ac_file in
  2401. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2402. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2403. break;;
  2404. * ) break;;
  2405. esac
  2406. done
  2407. else
  2408. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2409. See \`config.log' for more details." >&5
  2410. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2411. See \`config.log' for more details." >&2;}
  2412. { (exit 1); exit 1; }; }
  2413. fi
  2414. rm -f conftest$ac_cv_exeext
  2415. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2416. $as_echo "$ac_cv_exeext" >&6; }
  2417. rm -f conftest.$ac_ext
  2418. EXEEXT=$ac_cv_exeext
  2419. ac_exeext=$EXEEXT
  2420. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2421. $as_echo_n "checking for suffix of object files... " >&6; }
  2422. if test "${ac_cv_objext+set}" = set; then
  2423. $as_echo_n "(cached) " >&6
  2424. else
  2425. cat >conftest.$ac_ext <<_ACEOF
  2426. /* confdefs.h. */
  2427. _ACEOF
  2428. cat confdefs.h >>conftest.$ac_ext
  2429. cat >>conftest.$ac_ext <<_ACEOF
  2430. /* end confdefs.h. */
  2431. int
  2432. main ()
  2433. {
  2434. ;
  2435. return 0;
  2436. }
  2437. _ACEOF
  2438. rm -f conftest.o conftest.obj
  2439. if { (ac_try="$ac_compile"
  2440. case "(($ac_try" in
  2441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2442. *) ac_try_echo=$ac_try;;
  2443. esac
  2444. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2445. $as_echo "$ac_try_echo") >&5
  2446. (eval "$ac_compile") 2>&5
  2447. ac_status=$?
  2448. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2449. (exit $ac_status); }; then
  2450. for ac_file in conftest.o conftest.obj conftest.*; do
  2451. test -f "$ac_file" || continue;
  2452. case $ac_file in
  2453. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2454. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2455. break;;
  2456. esac
  2457. done
  2458. else
  2459. $as_echo "$as_me: failed program was:" >&5
  2460. sed 's/^/| /' conftest.$ac_ext >&5
  2461. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2462. See \`config.log' for more details." >&5
  2463. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2464. See \`config.log' for more details." >&2;}
  2465. { (exit 1); exit 1; }; }
  2466. fi
  2467. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2468. fi
  2469. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2470. $as_echo "$ac_cv_objext" >&6; }
  2471. OBJEXT=$ac_cv_objext
  2472. ac_objext=$OBJEXT
  2473. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2474. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2475. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2476. $as_echo_n "(cached) " >&6
  2477. else
  2478. cat >conftest.$ac_ext <<_ACEOF
  2479. /* confdefs.h. */
  2480. _ACEOF
  2481. cat confdefs.h >>conftest.$ac_ext
  2482. cat >>conftest.$ac_ext <<_ACEOF
  2483. /* end confdefs.h. */
  2484. int
  2485. main ()
  2486. {
  2487. #ifndef __GNUC__
  2488. choke me
  2489. #endif
  2490. ;
  2491. return 0;
  2492. }
  2493. _ACEOF
  2494. rm -f conftest.$ac_objext
  2495. if { (ac_try="$ac_compile"
  2496. case "(($ac_try" in
  2497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2498. *) ac_try_echo=$ac_try;;
  2499. esac
  2500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2501. $as_echo "$ac_try_echo") >&5
  2502. (eval "$ac_compile") 2>conftest.er1
  2503. ac_status=$?
  2504. grep -v '^ *+' conftest.er1 >conftest.err
  2505. rm -f conftest.er1
  2506. cat conftest.err >&5
  2507. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2508. (exit $ac_status); } && {
  2509. test -z "$ac_c_werror_flag" ||
  2510. test ! -s conftest.err
  2511. } && test -s conftest.$ac_objext; then
  2512. ac_compiler_gnu=yes
  2513. else
  2514. $as_echo "$as_me: failed program was:" >&5
  2515. sed 's/^/| /' conftest.$ac_ext >&5
  2516. ac_compiler_gnu=no
  2517. fi
  2518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2519. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2520. fi
  2521. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2522. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2523. if test $ac_compiler_gnu = yes; then
  2524. GCC=yes
  2525. else
  2526. GCC=
  2527. fi
  2528. ac_test_CFLAGS=${CFLAGS+set}
  2529. ac_save_CFLAGS=$CFLAGS
  2530. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2531. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2532. if test "${ac_cv_prog_cc_g+set}" = set; then
  2533. $as_echo_n "(cached) " >&6
  2534. else
  2535. ac_save_c_werror_flag=$ac_c_werror_flag
  2536. ac_c_werror_flag=yes
  2537. ac_cv_prog_cc_g=no
  2538. CFLAGS="-g"
  2539. cat >conftest.$ac_ext <<_ACEOF
  2540. /* confdefs.h. */
  2541. _ACEOF
  2542. cat confdefs.h >>conftest.$ac_ext
  2543. cat >>conftest.$ac_ext <<_ACEOF
  2544. /* end confdefs.h. */
  2545. int
  2546. main ()
  2547. {
  2548. ;
  2549. return 0;
  2550. }
  2551. _ACEOF
  2552. rm -f conftest.$ac_objext
  2553. if { (ac_try="$ac_compile"
  2554. case "(($ac_try" in
  2555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2556. *) ac_try_echo=$ac_try;;
  2557. esac
  2558. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2559. $as_echo "$ac_try_echo") >&5
  2560. (eval "$ac_compile") 2>conftest.er1
  2561. ac_status=$?
  2562. grep -v '^ *+' conftest.er1 >conftest.err
  2563. rm -f conftest.er1
  2564. cat conftest.err >&5
  2565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2566. (exit $ac_status); } && {
  2567. test -z "$ac_c_werror_flag" ||
  2568. test ! -s conftest.err
  2569. } && test -s conftest.$ac_objext; then
  2570. ac_cv_prog_cc_g=yes
  2571. else
  2572. $as_echo "$as_me: failed program was:" >&5
  2573. sed 's/^/| /' conftest.$ac_ext >&5
  2574. CFLAGS=""
  2575. cat >conftest.$ac_ext <<_ACEOF
  2576. /* confdefs.h. */
  2577. _ACEOF
  2578. cat confdefs.h >>conftest.$ac_ext
  2579. cat >>conftest.$ac_ext <<_ACEOF
  2580. /* end confdefs.h. */
  2581. int
  2582. main ()
  2583. {
  2584. ;
  2585. return 0;
  2586. }
  2587. _ACEOF
  2588. rm -f conftest.$ac_objext
  2589. if { (ac_try="$ac_compile"
  2590. case "(($ac_try" in
  2591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2592. *) ac_try_echo=$ac_try;;
  2593. esac
  2594. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2595. $as_echo "$ac_try_echo") >&5
  2596. (eval "$ac_compile") 2>conftest.er1
  2597. ac_status=$?
  2598. grep -v '^ *+' conftest.er1 >conftest.err
  2599. rm -f conftest.er1
  2600. cat conftest.err >&5
  2601. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2602. (exit $ac_status); } && {
  2603. test -z "$ac_c_werror_flag" ||
  2604. test ! -s conftest.err
  2605. } && test -s conftest.$ac_objext; then
  2606. :
  2607. else
  2608. $as_echo "$as_me: failed program was:" >&5
  2609. sed 's/^/| /' conftest.$ac_ext >&5
  2610. ac_c_werror_flag=$ac_save_c_werror_flag
  2611. CFLAGS="-g"
  2612. cat >conftest.$ac_ext <<_ACEOF
  2613. /* confdefs.h. */
  2614. _ACEOF
  2615. cat confdefs.h >>conftest.$ac_ext
  2616. cat >>conftest.$ac_ext <<_ACEOF
  2617. /* end confdefs.h. */
  2618. int
  2619. main ()
  2620. {
  2621. ;
  2622. return 0;
  2623. }
  2624. _ACEOF
  2625. rm -f conftest.$ac_objext
  2626. if { (ac_try="$ac_compile"
  2627. case "(($ac_try" in
  2628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2629. *) ac_try_echo=$ac_try;;
  2630. esac
  2631. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2632. $as_echo "$ac_try_echo") >&5
  2633. (eval "$ac_compile") 2>conftest.er1
  2634. ac_status=$?
  2635. grep -v '^ *+' conftest.er1 >conftest.err
  2636. rm -f conftest.er1
  2637. cat conftest.err >&5
  2638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); } && {
  2640. test -z "$ac_c_werror_flag" ||
  2641. test ! -s conftest.err
  2642. } && test -s conftest.$ac_objext; then
  2643. ac_cv_prog_cc_g=yes
  2644. else
  2645. $as_echo "$as_me: failed program was:" >&5
  2646. sed 's/^/| /' conftest.$ac_ext >&5
  2647. fi
  2648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2649. fi
  2650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2651. fi
  2652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2653. ac_c_werror_flag=$ac_save_c_werror_flag
  2654. fi
  2655. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2656. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2657. if test "$ac_test_CFLAGS" = set; then
  2658. CFLAGS=$ac_save_CFLAGS
  2659. elif test $ac_cv_prog_cc_g = yes; then
  2660. if test "$GCC" = yes; then
  2661. CFLAGS="-g -O2"
  2662. else
  2663. CFLAGS="-g"
  2664. fi
  2665. else
  2666. if test "$GCC" = yes; then
  2667. CFLAGS="-O2"
  2668. else
  2669. CFLAGS=
  2670. fi
  2671. fi
  2672. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2673. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2674. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2675. $as_echo_n "(cached) " >&6
  2676. else
  2677. ac_cv_prog_cc_c89=no
  2678. ac_save_CC=$CC
  2679. cat >conftest.$ac_ext <<_ACEOF
  2680. /* confdefs.h. */
  2681. _ACEOF
  2682. cat confdefs.h >>conftest.$ac_ext
  2683. cat >>conftest.$ac_ext <<_ACEOF
  2684. /* end confdefs.h. */
  2685. #include <stdarg.h>
  2686. #include <stdio.h>
  2687. #include <sys/types.h>
  2688. #include <sys/stat.h>
  2689. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2690. struct buf { int x; };
  2691. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2692. static char *e (p, i)
  2693. char **p;
  2694. int i;
  2695. {
  2696. return p[i];
  2697. }
  2698. static char *f (char * (*g) (char **, int), char **p, ...)
  2699. {
  2700. char *s;
  2701. va_list v;
  2702. va_start (v,p);
  2703. s = g (p, va_arg (v,int));
  2704. va_end (v);
  2705. return s;
  2706. }
  2707. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2708. function prototypes and stuff, but not '\xHH' hex character constants.
  2709. These don't provoke an error unfortunately, instead are silently treated
  2710. as 'x'. The following induces an error, until -std is added to get
  2711. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2712. array size at least. It's necessary to write '\x00'==0 to get something
  2713. that's true only with -std. */
  2714. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2715. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2716. inside strings and character constants. */
  2717. #define FOO(x) 'x'
  2718. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2719. int test (int i, double x);
  2720. struct s1 {int (*f) (int a);};
  2721. struct s2 {int (*f) (double a);};
  2722. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2723. int argc;
  2724. char **argv;
  2725. int
  2726. main ()
  2727. {
  2728. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2729. ;
  2730. return 0;
  2731. }
  2732. _ACEOF
  2733. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2734. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2735. do
  2736. CC="$ac_save_CC $ac_arg"
  2737. rm -f conftest.$ac_objext
  2738. if { (ac_try="$ac_compile"
  2739. case "(($ac_try" in
  2740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2741. *) ac_try_echo=$ac_try;;
  2742. esac
  2743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2744. $as_echo "$ac_try_echo") >&5
  2745. (eval "$ac_compile") 2>conftest.er1
  2746. ac_status=$?
  2747. grep -v '^ *+' conftest.er1 >conftest.err
  2748. rm -f conftest.er1
  2749. cat conftest.err >&5
  2750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2751. (exit $ac_status); } && {
  2752. test -z "$ac_c_werror_flag" ||
  2753. test ! -s conftest.err
  2754. } && test -s conftest.$ac_objext; then
  2755. ac_cv_prog_cc_c89=$ac_arg
  2756. else
  2757. $as_echo "$as_me: failed program was:" >&5
  2758. sed 's/^/| /' conftest.$ac_ext >&5
  2759. fi
  2760. rm -f core conftest.err conftest.$ac_objext
  2761. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2762. done
  2763. rm -f conftest.$ac_ext
  2764. CC=$ac_save_CC
  2765. fi
  2766. # AC_CACHE_VAL
  2767. case "x$ac_cv_prog_cc_c89" in
  2768. x)
  2769. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  2770. $as_echo "none needed" >&6; } ;;
  2771. xno)
  2772. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  2773. $as_echo "unsupported" >&6; } ;;
  2774. *)
  2775. CC="$CC $ac_cv_prog_cc_c89"
  2776. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2777. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2778. esac
  2779. ac_ext=c
  2780. ac_cpp='$CPP $CPPFLAGS'
  2781. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2782. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2783. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2784. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2785. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2786. if test "${ac_cv_path_SED+set}" = set; then
  2787. $as_echo_n "(cached) " >&6
  2788. else
  2789. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2790. for ac_i in 1 2 3 4 5 6 7; do
  2791. ac_script="$ac_script$as_nl$ac_script"
  2792. done
  2793. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2794. $as_unset ac_script || ac_script=
  2795. if test -z "$SED"; then
  2796. ac_path_SED_found=false
  2797. # Loop through the user's path and test for each of PROGNAME-LIST
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_prog in sed gsed; do
  2804. for ac_exec_ext in '' $ac_executable_extensions; do
  2805. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2806. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2807. # Check for GNU ac_path_SED and select it if it is found.
  2808. # Check for GNU $ac_path_SED
  2809. case `"$ac_path_SED" --version 2>&1` in
  2810. *GNU*)
  2811. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2812. *)
  2813. ac_count=0
  2814. $as_echo_n 0123456789 >"conftest.in"
  2815. while :
  2816. do
  2817. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2818. mv "conftest.tmp" "conftest.in"
  2819. cp "conftest.in" "conftest.nl"
  2820. $as_echo '' >> "conftest.nl"
  2821. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2822. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2823. ac_count=`expr $ac_count + 1`
  2824. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2825. # Best one so far, save it but keep looking for a better one
  2826. ac_cv_path_SED="$ac_path_SED"
  2827. ac_path_SED_max=$ac_count
  2828. fi
  2829. # 10*(2^10) chars as input seems more than enough
  2830. test $ac_count -gt 10 && break
  2831. done
  2832. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2833. esac
  2834. $ac_path_SED_found && break 3
  2835. done
  2836. done
  2837. done
  2838. IFS=$as_save_IFS
  2839. if test -z "$ac_cv_path_SED"; then
  2840. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  2841. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  2842. { (exit 1); exit 1; }; }
  2843. fi
  2844. else
  2845. ac_cv_path_SED=$SED
  2846. fi
  2847. fi
  2848. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  2849. $as_echo "$ac_cv_path_SED" >&6; }
  2850. SED="$ac_cv_path_SED"
  2851. rm -f conftest.sed
  2852. test -z "$SED" && SED=sed
  2853. Xsed="$SED -e 1s/^X//"
  2854. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2855. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2856. if test "${ac_cv_path_GREP+set}" = set; then
  2857. $as_echo_n "(cached) " >&6
  2858. else
  2859. if test -z "$GREP"; then
  2860. ac_path_GREP_found=false
  2861. # Loop through the user's path and test for each of PROGNAME-LIST
  2862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2863. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2864. do
  2865. IFS=$as_save_IFS
  2866. test -z "$as_dir" && as_dir=.
  2867. for ac_prog in grep ggrep; do
  2868. for ac_exec_ext in '' $ac_executable_extensions; do
  2869. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2870. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2871. # Check for GNU ac_path_GREP and select it if it is found.
  2872. # Check for GNU $ac_path_GREP
  2873. case `"$ac_path_GREP" --version 2>&1` in
  2874. *GNU*)
  2875. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2876. *)
  2877. ac_count=0
  2878. $as_echo_n 0123456789 >"conftest.in"
  2879. while :
  2880. do
  2881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2882. mv "conftest.tmp" "conftest.in"
  2883. cp "conftest.in" "conftest.nl"
  2884. $as_echo 'GREP' >> "conftest.nl"
  2885. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2887. ac_count=`expr $ac_count + 1`
  2888. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2889. # Best one so far, save it but keep looking for a better one
  2890. ac_cv_path_GREP="$ac_path_GREP"
  2891. ac_path_GREP_max=$ac_count
  2892. fi
  2893. # 10*(2^10) chars as input seems more than enough
  2894. test $ac_count -gt 10 && break
  2895. done
  2896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2897. esac
  2898. $ac_path_GREP_found && break 3
  2899. done
  2900. done
  2901. done
  2902. IFS=$as_save_IFS
  2903. if test -z "$ac_cv_path_GREP"; then
  2904. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2905. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2906. { (exit 1); exit 1; }; }
  2907. fi
  2908. else
  2909. ac_cv_path_GREP=$GREP
  2910. fi
  2911. fi
  2912. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2913. $as_echo "$ac_cv_path_GREP" >&6; }
  2914. GREP="$ac_cv_path_GREP"
  2915. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  2916. $as_echo_n "checking for egrep... " >&6; }
  2917. if test "${ac_cv_path_EGREP+set}" = set; then
  2918. $as_echo_n "(cached) " >&6
  2919. else
  2920. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2921. then ac_cv_path_EGREP="$GREP -E"
  2922. else
  2923. if test -z "$EGREP"; then
  2924. ac_path_EGREP_found=false
  2925. # Loop through the user's path and test for each of PROGNAME-LIST
  2926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2927. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2928. do
  2929. IFS=$as_save_IFS
  2930. test -z "$as_dir" && as_dir=.
  2931. for ac_prog in egrep; do
  2932. for ac_exec_ext in '' $ac_executable_extensions; do
  2933. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2934. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2935. # Check for GNU ac_path_EGREP and select it if it is found.
  2936. # Check for GNU $ac_path_EGREP
  2937. case `"$ac_path_EGREP" --version 2>&1` in
  2938. *GNU*)
  2939. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2940. *)
  2941. ac_count=0
  2942. $as_echo_n 0123456789 >"conftest.in"
  2943. while :
  2944. do
  2945. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2946. mv "conftest.tmp" "conftest.in"
  2947. cp "conftest.in" "conftest.nl"
  2948. $as_echo 'EGREP' >> "conftest.nl"
  2949. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2950. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2951. ac_count=`expr $ac_count + 1`
  2952. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2953. # Best one so far, save it but keep looking for a better one
  2954. ac_cv_path_EGREP="$ac_path_EGREP"
  2955. ac_path_EGREP_max=$ac_count
  2956. fi
  2957. # 10*(2^10) chars as input seems more than enough
  2958. test $ac_count -gt 10 && break
  2959. done
  2960. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2961. esac
  2962. $ac_path_EGREP_found && break 3
  2963. done
  2964. done
  2965. done
  2966. IFS=$as_save_IFS
  2967. if test -z "$ac_cv_path_EGREP"; then
  2968. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2969. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2970. { (exit 1); exit 1; }; }
  2971. fi
  2972. else
  2973. ac_cv_path_EGREP=$EGREP
  2974. fi
  2975. fi
  2976. fi
  2977. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2978. $as_echo "$ac_cv_path_EGREP" >&6; }
  2979. EGREP="$ac_cv_path_EGREP"
  2980. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  2981. $as_echo_n "checking for fgrep... " >&6; }
  2982. if test "${ac_cv_path_FGREP+set}" = set; then
  2983. $as_echo_n "(cached) " >&6
  2984. else
  2985. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  2986. then ac_cv_path_FGREP="$GREP -F"
  2987. else
  2988. if test -z "$FGREP"; then
  2989. ac_path_FGREP_found=false
  2990. # Loop through the user's path and test for each of PROGNAME-LIST
  2991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2992. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2993. do
  2994. IFS=$as_save_IFS
  2995. test -z "$as_dir" && as_dir=.
  2996. for ac_prog in fgrep; do
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  2999. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3000. # Check for GNU ac_path_FGREP and select it if it is found.
  3001. # Check for GNU $ac_path_FGREP
  3002. case `"$ac_path_FGREP" --version 2>&1` in
  3003. *GNU*)
  3004. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3005. *)
  3006. ac_count=0
  3007. $as_echo_n 0123456789 >"conftest.in"
  3008. while :
  3009. do
  3010. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3011. mv "conftest.tmp" "conftest.in"
  3012. cp "conftest.in" "conftest.nl"
  3013. $as_echo 'FGREP' >> "conftest.nl"
  3014. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3015. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3016. ac_count=`expr $ac_count + 1`
  3017. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3018. # Best one so far, save it but keep looking for a better one
  3019. ac_cv_path_FGREP="$ac_path_FGREP"
  3020. ac_path_FGREP_max=$ac_count
  3021. fi
  3022. # 10*(2^10) chars as input seems more than enough
  3023. test $ac_count -gt 10 && break
  3024. done
  3025. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3026. esac
  3027. $ac_path_FGREP_found && break 3
  3028. done
  3029. done
  3030. done
  3031. IFS=$as_save_IFS
  3032. if test -z "$ac_cv_path_FGREP"; then
  3033. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3034. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3035. { (exit 1); exit 1; }; }
  3036. fi
  3037. else
  3038. ac_cv_path_FGREP=$FGREP
  3039. fi
  3040. fi
  3041. fi
  3042. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3043. $as_echo "$ac_cv_path_FGREP" >&6; }
  3044. FGREP="$ac_cv_path_FGREP"
  3045. test -z "$GREP" && GREP=grep
  3046. # Check whether --with-gnu-ld was given.
  3047. if test "${with_gnu_ld+set}" = set; then
  3048. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3049. else
  3050. with_gnu_ld=no
  3051. fi
  3052. ac_prog=ld
  3053. if test "$GCC" = yes; then
  3054. # Check if gcc -print-prog-name=ld gives a path.
  3055. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3056. $as_echo_n "checking for ld used by $CC... " >&6; }
  3057. case $host in
  3058. *-*-mingw*)
  3059. # gcc leaves a trailing carriage return which upsets mingw
  3060. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3061. *)
  3062. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3063. esac
  3064. case $ac_prog in
  3065. # Accept absolute paths.
  3066. [\\/]* | ?:[\\/]*)
  3067. re_direlt='/[^/][^/]*/\.\./'
  3068. # Canonicalize the pathname of ld
  3069. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3070. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3071. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3072. done
  3073. test -z "$LD" && LD="$ac_prog"
  3074. ;;
  3075. "")
  3076. # If it fails, then pretend we aren't using GCC.
  3077. ac_prog=ld
  3078. ;;
  3079. *)
  3080. # If it is relative, then search for the first ld in PATH.
  3081. with_gnu_ld=unknown
  3082. ;;
  3083. esac
  3084. elif test "$with_gnu_ld" = yes; then
  3085. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3086. $as_echo_n "checking for GNU ld... " >&6; }
  3087. else
  3088. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3089. $as_echo_n "checking for non-GNU ld... " >&6; }
  3090. fi
  3091. if test "${lt_cv_path_LD+set}" = set; then
  3092. $as_echo_n "(cached) " >&6
  3093. else
  3094. if test -z "$LD"; then
  3095. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3096. for ac_dir in $PATH; do
  3097. IFS="$lt_save_ifs"
  3098. test -z "$ac_dir" && ac_dir=.
  3099. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3100. lt_cv_path_LD="$ac_dir/$ac_prog"
  3101. # Check to see if the program is GNU ld. I'd rather use --version,
  3102. # but apparently some variants of GNU ld only accept -v.
  3103. # Break only if it was the GNU/non-GNU ld that we prefer.
  3104. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3105. *GNU* | *'with BFD'*)
  3106. test "$with_gnu_ld" != no && break
  3107. ;;
  3108. *)
  3109. test "$with_gnu_ld" != yes && break
  3110. ;;
  3111. esac
  3112. fi
  3113. done
  3114. IFS="$lt_save_ifs"
  3115. else
  3116. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3117. fi
  3118. fi
  3119. LD="$lt_cv_path_LD"
  3120. if test -n "$LD"; then
  3121. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3122. $as_echo "$LD" >&6; }
  3123. else
  3124. { $as_echo "$as_me:$LINENO: result: no" >&5
  3125. $as_echo "no" >&6; }
  3126. fi
  3127. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3128. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3129. { (exit 1); exit 1; }; }
  3130. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3131. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3132. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3133. $as_echo_n "(cached) " >&6
  3134. else
  3135. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3136. case `$LD -v 2>&1 </dev/null` in
  3137. *GNU* | *'with BFD'*)
  3138. lt_cv_prog_gnu_ld=yes
  3139. ;;
  3140. *)
  3141. lt_cv_prog_gnu_ld=no
  3142. ;;
  3143. esac
  3144. fi
  3145. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3146. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3147. with_gnu_ld=$lt_cv_prog_gnu_ld
  3148. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  3149. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3150. if test "${lt_cv_path_NM+set}" = set; then
  3151. $as_echo_n "(cached) " >&6
  3152. else
  3153. if test -n "$NM"; then
  3154. # Let the user override the test.
  3155. lt_cv_path_NM="$NM"
  3156. else
  3157. lt_nm_to_check="${ac_tool_prefix}nm"
  3158. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3159. lt_nm_to_check="$lt_nm_to_check nm"
  3160. fi
  3161. for lt_tmp_nm in $lt_nm_to_check; do
  3162. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3163. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3164. IFS="$lt_save_ifs"
  3165. test -z "$ac_dir" && ac_dir=.
  3166. tmp_nm="$ac_dir/$lt_tmp_nm"
  3167. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3168. # Check to see if the nm accepts a BSD-compat flag.
  3169. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3170. # nm: unknown option "B" ignored
  3171. # Tru64's nm complains that /dev/null is an invalid object file
  3172. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3173. */dev/null* | *'Invalid file or object type'*)
  3174. lt_cv_path_NM="$tmp_nm -B"
  3175. break
  3176. ;;
  3177. *)
  3178. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3179. */dev/null*)
  3180. lt_cv_path_NM="$tmp_nm -p"
  3181. break
  3182. ;;
  3183. *)
  3184. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3185. continue # so that we can try to find one that supports BSD flags
  3186. ;;
  3187. esac
  3188. ;;
  3189. esac
  3190. fi
  3191. done
  3192. IFS="$lt_save_ifs"
  3193. done
  3194. : ${lt_cv_path_NM=no}
  3195. fi
  3196. fi
  3197. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3198. $as_echo "$lt_cv_path_NM" >&6; }
  3199. if test "$lt_cv_path_NM" != "no"; then
  3200. NM="$lt_cv_path_NM"
  3201. else
  3202. # Didn't find any BSD compatible name lister, look for dumpbin.
  3203. if test -n "$ac_tool_prefix"; then
  3204. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3205. do
  3206. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3207. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3208. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3209. $as_echo_n "checking for $ac_word... " >&6; }
  3210. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  3211. $as_echo_n "(cached) " >&6
  3212. else
  3213. if test -n "$DUMPBIN"; then
  3214. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3215. else
  3216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3217. for as_dir in $PATH
  3218. do
  3219. IFS=$as_save_IFS
  3220. test -z "$as_dir" && as_dir=.
  3221. for ac_exec_ext in '' $ac_executable_extensions; do
  3222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3223. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3224. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3225. break 2
  3226. fi
  3227. done
  3228. done
  3229. IFS=$as_save_IFS
  3230. fi
  3231. fi
  3232. DUMPBIN=$ac_cv_prog_DUMPBIN
  3233. if test -n "$DUMPBIN"; then
  3234. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  3235. $as_echo "$DUMPBIN" >&6; }
  3236. else
  3237. { $as_echo "$as_me:$LINENO: result: no" >&5
  3238. $as_echo "no" >&6; }
  3239. fi
  3240. test -n "$DUMPBIN" && break
  3241. done
  3242. fi
  3243. if test -z "$DUMPBIN"; then
  3244. ac_ct_DUMPBIN=$DUMPBIN
  3245. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3246. do
  3247. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3248. set dummy $ac_prog; ac_word=$2
  3249. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3250. $as_echo_n "checking for $ac_word... " >&6; }
  3251. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. if test -n "$ac_ct_DUMPBIN"; then
  3255. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3256. else
  3257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3258. for as_dir in $PATH
  3259. do
  3260. IFS=$as_save_IFS
  3261. test -z "$as_dir" && as_dir=.
  3262. for ac_exec_ext in '' $ac_executable_extensions; do
  3263. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3264. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3265. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3266. break 2
  3267. fi
  3268. done
  3269. done
  3270. IFS=$as_save_IFS
  3271. fi
  3272. fi
  3273. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3274. if test -n "$ac_ct_DUMPBIN"; then
  3275. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  3276. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3277. else
  3278. { $as_echo "$as_me:$LINENO: result: no" >&5
  3279. $as_echo "no" >&6; }
  3280. fi
  3281. test -n "$ac_ct_DUMPBIN" && break
  3282. done
  3283. if test "x$ac_ct_DUMPBIN" = x; then
  3284. DUMPBIN=":"
  3285. else
  3286. case $cross_compiling:$ac_tool_warned in
  3287. yes:)
  3288. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3289. whose name does not start with the host triplet. If you think this
  3290. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3291. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3292. whose name does not start with the host triplet. If you think this
  3293. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3294. ac_tool_warned=yes ;;
  3295. esac
  3296. DUMPBIN=$ac_ct_DUMPBIN
  3297. fi
  3298. fi
  3299. if test "$DUMPBIN" != ":"; then
  3300. NM="$DUMPBIN"
  3301. fi
  3302. fi
  3303. test -z "$NM" && NM=nm
  3304. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  3305. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3306. if test "${lt_cv_nm_interface+set}" = set; then
  3307. $as_echo_n "(cached) " >&6
  3308. else
  3309. lt_cv_nm_interface="BSD nm"
  3310. echo "int some_variable = 0;" > conftest.$ac_ext
  3311. (eval echo "\"\$as_me:3735: $ac_compile\"" >&5)
  3312. (eval "$ac_compile" 2>conftest.err)
  3313. cat conftest.err >&5
  3314. (eval echo "\"\$as_me:3738: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3315. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3316. cat conftest.err >&5
  3317. (eval echo "\"\$as_me:3741: output\"" >&5)
  3318. cat conftest.out >&5
  3319. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3320. lt_cv_nm_interface="MS dumpbin"
  3321. fi
  3322. rm -f conftest*
  3323. fi
  3324. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  3325. $as_echo "$lt_cv_nm_interface" >&6; }
  3326. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3327. $as_echo_n "checking whether ln -s works... " >&6; }
  3328. LN_S=$as_ln_s
  3329. if test "$LN_S" = "ln -s"; then
  3330. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3331. $as_echo "yes" >&6; }
  3332. else
  3333. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3334. $as_echo "no, using $LN_S" >&6; }
  3335. fi
  3336. # find the maximum length of command line arguments
  3337. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  3338. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3339. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  3340. $as_echo_n "(cached) " >&6
  3341. else
  3342. i=0
  3343. teststring="ABCD"
  3344. case $build_os in
  3345. msdosdjgpp*)
  3346. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3347. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3348. # during glob expansion). Even if it were fixed, the result of this
  3349. # check would be larger than it should be.
  3350. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3351. ;;
  3352. gnu*)
  3353. # Under GNU Hurd, this test is not required because there is
  3354. # no limit to the length of command line arguments.
  3355. # Libtool will interpret -1 as no limit whatsoever
  3356. lt_cv_sys_max_cmd_len=-1;
  3357. ;;
  3358. cygwin* | mingw* | cegcc*)
  3359. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3360. # about 5 minutes as the teststring grows exponentially.
  3361. # Worse, since 9x/ME are not pre-emptively multitasking,
  3362. # you end up with a "frozen" computer, even though with patience
  3363. # the test eventually succeeds (with a max line length of 256k).
  3364. # Instead, let's just punt: use the minimum linelength reported by
  3365. # all of the supported platforms: 8192 (on NT/2K/XP).
  3366. lt_cv_sys_max_cmd_len=8192;
  3367. ;;
  3368. amigaos*)
  3369. # On AmigaOS with pdksh, this test takes hours, literally.
  3370. # So we just punt and use a minimum line length of 8192.
  3371. lt_cv_sys_max_cmd_len=8192;
  3372. ;;
  3373. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3374. # This has been around since 386BSD, at least. Likely further.
  3375. if test -x /sbin/sysctl; then
  3376. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3377. elif test -x /usr/sbin/sysctl; then
  3378. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3379. else
  3380. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3381. fi
  3382. # And add a safety zone
  3383. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3384. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3385. ;;
  3386. interix*)
  3387. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3388. lt_cv_sys_max_cmd_len=196608
  3389. ;;
  3390. osf*)
  3391. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3392. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3393. # nice to cause kernel panics so lets avoid the loop below.
  3394. # First set a reasonable default.
  3395. lt_cv_sys_max_cmd_len=16384
  3396. #
  3397. if test -x /sbin/sysconfig; then
  3398. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3399. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3400. esac
  3401. fi
  3402. ;;
  3403. sco3.2v5*)
  3404. lt_cv_sys_max_cmd_len=102400
  3405. ;;
  3406. sysv5* | sco5v6* | sysv4.2uw2*)
  3407. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3408. if test -n "$kargmax"; then
  3409. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3410. else
  3411. lt_cv_sys_max_cmd_len=32768
  3412. fi
  3413. ;;
  3414. *)
  3415. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3416. if test -n "$lt_cv_sys_max_cmd_len"; then
  3417. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3418. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3419. else
  3420. # Make teststring a little bigger before we do anything with it.
  3421. # a 1K string should be a reasonable start.
  3422. for i in 1 2 3 4 5 6 7 8 ; do
  3423. teststring=$teststring$teststring
  3424. done
  3425. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3426. # If test is not a shell built-in, we'll probably end up computing a
  3427. # maximum length that is only half of the actual maximum length, but
  3428. # we can't tell.
  3429. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  3430. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  3431. test $i != 17 # 1/2 MB should be enough
  3432. do
  3433. i=`expr $i + 1`
  3434. teststring=$teststring$teststring
  3435. done
  3436. # Only check the string length outside the loop.
  3437. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3438. teststring=
  3439. # Add a significant safety factor because C++ compilers can tack on
  3440. # massive amounts of additional arguments before passing them to the
  3441. # linker. It appears as though 1/2 is a usable value.
  3442. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3443. fi
  3444. ;;
  3445. esac
  3446. fi
  3447. if test -n $lt_cv_sys_max_cmd_len ; then
  3448. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  3449. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3450. else
  3451. { $as_echo "$as_me:$LINENO: result: none" >&5
  3452. $as_echo "none" >&6; }
  3453. fi
  3454. max_cmd_len=$lt_cv_sys_max_cmd_len
  3455. : ${CP="cp -f"}
  3456. : ${MV="mv -f"}
  3457. : ${RM="rm -f"}
  3458. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  3459. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3460. # Try some XSI features
  3461. xsi_shell=no
  3462. ( _lt_dummy="a/b/c"
  3463. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  3464. = c,a/b,, \
  3465. && eval 'test $(( 1 + 1 )) -eq 2 \
  3466. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3467. && xsi_shell=yes
  3468. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  3469. $as_echo "$xsi_shell" >&6; }
  3470. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  3471. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3472. lt_shell_append=no
  3473. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3474. >/dev/null 2>&1 \
  3475. && lt_shell_append=yes
  3476. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  3477. $as_echo "$lt_shell_append" >&6; }
  3478. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3479. lt_unset=unset
  3480. else
  3481. lt_unset=false
  3482. fi
  3483. # test EBCDIC or ASCII
  3484. case `echo X|tr X '\101'` in
  3485. A) # ASCII based system
  3486. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  3487. lt_SP2NL='tr \040 \012'
  3488. lt_NL2SP='tr \015\012 \040\040'
  3489. ;;
  3490. *) # EBCDIC based system
  3491. lt_SP2NL='tr \100 \n'
  3492. lt_NL2SP='tr \r\n \100\100'
  3493. ;;
  3494. esac
  3495. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3496. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  3497. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3498. $as_echo_n "(cached) " >&6
  3499. else
  3500. lt_cv_ld_reload_flag='-r'
  3501. fi
  3502. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3503. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  3504. reload_flag=$lt_cv_ld_reload_flag
  3505. case $reload_flag in
  3506. "" | " "*) ;;
  3507. *) reload_flag=" $reload_flag" ;;
  3508. esac
  3509. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3510. case $host_os in
  3511. darwin*)
  3512. if test "$GCC" = yes; then
  3513. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3514. else
  3515. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3516. fi
  3517. ;;
  3518. esac
  3519. if test -n "$ac_tool_prefix"; then
  3520. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3521. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3522. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3523. $as_echo_n "checking for $ac_word... " >&6; }
  3524. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  3525. $as_echo_n "(cached) " >&6
  3526. else
  3527. if test -n "$OBJDUMP"; then
  3528. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3529. else
  3530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3531. for as_dir in $PATH
  3532. do
  3533. IFS=$as_save_IFS
  3534. test -z "$as_dir" && as_dir=.
  3535. for ac_exec_ext in '' $ac_executable_extensions; do
  3536. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3537. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3538. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3539. break 2
  3540. fi
  3541. done
  3542. done
  3543. IFS=$as_save_IFS
  3544. fi
  3545. fi
  3546. OBJDUMP=$ac_cv_prog_OBJDUMP
  3547. if test -n "$OBJDUMP"; then
  3548. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  3549. $as_echo "$OBJDUMP" >&6; }
  3550. else
  3551. { $as_echo "$as_me:$LINENO: result: no" >&5
  3552. $as_echo "no" >&6; }
  3553. fi
  3554. fi
  3555. if test -z "$ac_cv_prog_OBJDUMP"; then
  3556. ac_ct_OBJDUMP=$OBJDUMP
  3557. # Extract the first word of "objdump", so it can be a program name with args.
  3558. set dummy objdump; ac_word=$2
  3559. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3560. $as_echo_n "checking for $ac_word... " >&6; }
  3561. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. if test -n "$ac_ct_OBJDUMP"; then
  3565. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3566. else
  3567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3568. for as_dir in $PATH
  3569. do
  3570. IFS=$as_save_IFS
  3571. test -z "$as_dir" && as_dir=.
  3572. for ac_exec_ext in '' $ac_executable_extensions; do
  3573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3574. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3575. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3576. break 2
  3577. fi
  3578. done
  3579. done
  3580. IFS=$as_save_IFS
  3581. fi
  3582. fi
  3583. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3584. if test -n "$ac_ct_OBJDUMP"; then
  3585. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  3586. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3587. else
  3588. { $as_echo "$as_me:$LINENO: result: no" >&5
  3589. $as_echo "no" >&6; }
  3590. fi
  3591. if test "x$ac_ct_OBJDUMP" = x; then
  3592. OBJDUMP="false"
  3593. else
  3594. case $cross_compiling:$ac_tool_warned in
  3595. yes:)
  3596. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3597. whose name does not start with the host triplet. If you think this
  3598. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3599. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3600. whose name does not start with the host triplet. If you think this
  3601. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3602. ac_tool_warned=yes ;;
  3603. esac
  3604. OBJDUMP=$ac_ct_OBJDUMP
  3605. fi
  3606. else
  3607. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3608. fi
  3609. test -z "$OBJDUMP" && OBJDUMP=objdump
  3610. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3611. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  3612. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3613. $as_echo_n "(cached) " >&6
  3614. else
  3615. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3616. lt_cv_file_magic_test_file=
  3617. lt_cv_deplibs_check_method='unknown'
  3618. # Need to set the preceding variable on all platforms that support
  3619. # interlibrary dependencies.
  3620. # 'none' -- dependencies not supported.
  3621. # `unknown' -- same as none, but documents that we really don't know.
  3622. # 'pass_all' -- all dependencies passed with no checks.
  3623. # 'test_compile' -- check by making test program.
  3624. # 'file_magic [[regex]]' -- check by looking for files in library path
  3625. # which responds to the $file_magic_cmd with a given extended regex.
  3626. # If you have `file' or equivalent on your system and you're not sure
  3627. # whether `pass_all' will *always* work, you probably want this one.
  3628. case $host_os in
  3629. aix[4-9]*)
  3630. lt_cv_deplibs_check_method=pass_all
  3631. ;;
  3632. beos*)
  3633. lt_cv_deplibs_check_method=pass_all
  3634. ;;
  3635. bsdi[45]*)
  3636. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3637. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3638. lt_cv_file_magic_test_file=/shlib/libc.so
  3639. ;;
  3640. cygwin*)
  3641. # func_win32_libid is a shell function defined in ltmain.sh
  3642. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3643. lt_cv_file_magic_cmd='func_win32_libid'
  3644. ;;
  3645. mingw* | pw32*)
  3646. # Base MSYS/MinGW do not provide the 'file' command needed by
  3647. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3648. # unless we find 'file', for example because we are cross-compiling.
  3649. if ( file / ) >/dev/null 2>&1; then
  3650. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3651. lt_cv_file_magic_cmd='func_win32_libid'
  3652. else
  3653. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3654. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3655. fi
  3656. ;;
  3657. cegcc)
  3658. # use the weaker test based on 'objdump'. See mingw*.
  3659. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3660. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3661. ;;
  3662. darwin* | rhapsody*)
  3663. lt_cv_deplibs_check_method=pass_all
  3664. ;;
  3665. freebsd* | dragonfly*)
  3666. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3667. case $host_cpu in
  3668. i*86 )
  3669. # Not sure whether the presence of OpenBSD here was a mistake.
  3670. # Let's accept both of them until this is cleared up.
  3671. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3672. lt_cv_file_magic_cmd=/usr/bin/file
  3673. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3674. ;;
  3675. esac
  3676. else
  3677. lt_cv_deplibs_check_method=pass_all
  3678. fi
  3679. ;;
  3680. gnu*)
  3681. lt_cv_deplibs_check_method=pass_all
  3682. ;;
  3683. hpux10.20* | hpux11*)
  3684. lt_cv_file_magic_cmd=/usr/bin/file
  3685. case $host_cpu in
  3686. ia64*)
  3687. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3688. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3689. ;;
  3690. hppa*64*)
  3691. 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]'
  3692. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3693. ;;
  3694. *)
  3695. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3696. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3697. ;;
  3698. esac
  3699. ;;
  3700. interix[3-9]*)
  3701. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3702. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3703. ;;
  3704. irix5* | irix6* | nonstopux*)
  3705. case $LD in
  3706. *-32|*"-32 ") libmagic=32-bit;;
  3707. *-n32|*"-n32 ") libmagic=N32;;
  3708. *-64|*"-64 ") libmagic=64-bit;;
  3709. *) libmagic=never-match;;
  3710. esac
  3711. lt_cv_deplibs_check_method=pass_all
  3712. ;;
  3713. # This must be Linux ELF.
  3714. linux* | k*bsd*-gnu)
  3715. lt_cv_deplibs_check_method=pass_all
  3716. ;;
  3717. netbsd*)
  3718. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3719. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3720. else
  3721. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3722. fi
  3723. ;;
  3724. newos6*)
  3725. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3726. lt_cv_file_magic_cmd=/usr/bin/file
  3727. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3728. ;;
  3729. *nto* | *qnx*)
  3730. lt_cv_deplibs_check_method=pass_all
  3731. ;;
  3732. openbsd*)
  3733. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3734. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3735. else
  3736. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3737. fi
  3738. ;;
  3739. osf3* | osf4* | osf5*)
  3740. lt_cv_deplibs_check_method=pass_all
  3741. ;;
  3742. rdos*)
  3743. lt_cv_deplibs_check_method=pass_all
  3744. ;;
  3745. solaris*)
  3746. lt_cv_deplibs_check_method=pass_all
  3747. ;;
  3748. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3749. lt_cv_deplibs_check_method=pass_all
  3750. ;;
  3751. sysv4 | sysv4.3*)
  3752. case $host_vendor in
  3753. motorola)
  3754. 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]'
  3755. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3756. ;;
  3757. ncr)
  3758. lt_cv_deplibs_check_method=pass_all
  3759. ;;
  3760. sequent)
  3761. lt_cv_file_magic_cmd='/bin/file'
  3762. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3763. ;;
  3764. sni)
  3765. lt_cv_file_magic_cmd='/bin/file'
  3766. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3767. lt_cv_file_magic_test_file=/lib/libc.so
  3768. ;;
  3769. siemens)
  3770. lt_cv_deplibs_check_method=pass_all
  3771. ;;
  3772. pc)
  3773. lt_cv_deplibs_check_method=pass_all
  3774. ;;
  3775. esac
  3776. ;;
  3777. tpf*)
  3778. lt_cv_deplibs_check_method=pass_all
  3779. ;;
  3780. esac
  3781. fi
  3782. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3783. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  3784. file_magic_cmd=$lt_cv_file_magic_cmd
  3785. deplibs_check_method=$lt_cv_deplibs_check_method
  3786. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3787. if test -n "$ac_tool_prefix"; then
  3788. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3789. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3790. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3791. $as_echo_n "checking for $ac_word... " >&6; }
  3792. if test "${ac_cv_prog_AR+set}" = set; then
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if test -n "$AR"; then
  3796. ac_cv_prog_AR="$AR" # Let the user override the test.
  3797. else
  3798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3799. for as_dir in $PATH
  3800. do
  3801. IFS=$as_save_IFS
  3802. test -z "$as_dir" && as_dir=.
  3803. for ac_exec_ext in '' $ac_executable_extensions; do
  3804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3805. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3806. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3807. break 2
  3808. fi
  3809. done
  3810. done
  3811. IFS=$as_save_IFS
  3812. fi
  3813. fi
  3814. AR=$ac_cv_prog_AR
  3815. if test -n "$AR"; then
  3816. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  3817. $as_echo "$AR" >&6; }
  3818. else
  3819. { $as_echo "$as_me:$LINENO: result: no" >&5
  3820. $as_echo "no" >&6; }
  3821. fi
  3822. fi
  3823. if test -z "$ac_cv_prog_AR"; then
  3824. ac_ct_AR=$AR
  3825. # Extract the first word of "ar", so it can be a program name with args.
  3826. set dummy ar; ac_word=$2
  3827. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3828. $as_echo_n "checking for $ac_word... " >&6; }
  3829. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. if test -n "$ac_ct_AR"; then
  3833. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3834. else
  3835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3836. for as_dir in $PATH
  3837. do
  3838. IFS=$as_save_IFS
  3839. test -z "$as_dir" && as_dir=.
  3840. for ac_exec_ext in '' $ac_executable_extensions; do
  3841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3842. ac_cv_prog_ac_ct_AR="ar"
  3843. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3844. break 2
  3845. fi
  3846. done
  3847. done
  3848. IFS=$as_save_IFS
  3849. fi
  3850. fi
  3851. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3852. if test -n "$ac_ct_AR"; then
  3853. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  3854. $as_echo "$ac_ct_AR" >&6; }
  3855. else
  3856. { $as_echo "$as_me:$LINENO: result: no" >&5
  3857. $as_echo "no" >&6; }
  3858. fi
  3859. if test "x$ac_ct_AR" = x; then
  3860. AR="false"
  3861. else
  3862. case $cross_compiling:$ac_tool_warned in
  3863. yes:)
  3864. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3865. whose name does not start with the host triplet. If you think this
  3866. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3867. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3868. whose name does not start with the host triplet. If you think this
  3869. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3870. ac_tool_warned=yes ;;
  3871. esac
  3872. AR=$ac_ct_AR
  3873. fi
  3874. else
  3875. AR="$ac_cv_prog_AR"
  3876. fi
  3877. test -z "$AR" && AR=ar
  3878. test -z "$AR_FLAGS" && AR_FLAGS=cru
  3879. if test -n "$ac_tool_prefix"; then
  3880. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3881. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3882. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3883. $as_echo_n "checking for $ac_word... " >&6; }
  3884. if test "${ac_cv_prog_STRIP+set}" = set; then
  3885. $as_echo_n "(cached) " >&6
  3886. else
  3887. if test -n "$STRIP"; then
  3888. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3889. else
  3890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3891. for as_dir in $PATH
  3892. do
  3893. IFS=$as_save_IFS
  3894. test -z "$as_dir" && as_dir=.
  3895. for ac_exec_ext in '' $ac_executable_extensions; do
  3896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3897. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3898. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3899. break 2
  3900. fi
  3901. done
  3902. done
  3903. IFS=$as_save_IFS
  3904. fi
  3905. fi
  3906. STRIP=$ac_cv_prog_STRIP
  3907. if test -n "$STRIP"; then
  3908. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  3909. $as_echo "$STRIP" >&6; }
  3910. else
  3911. { $as_echo "$as_me:$LINENO: result: no" >&5
  3912. $as_echo "no" >&6; }
  3913. fi
  3914. fi
  3915. if test -z "$ac_cv_prog_STRIP"; then
  3916. ac_ct_STRIP=$STRIP
  3917. # Extract the first word of "strip", so it can be a program name with args.
  3918. set dummy strip; ac_word=$2
  3919. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3920. $as_echo_n "checking for $ac_word... " >&6; }
  3921. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  3922. $as_echo_n "(cached) " >&6
  3923. else
  3924. if test -n "$ac_ct_STRIP"; then
  3925. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3926. else
  3927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3928. for as_dir in $PATH
  3929. do
  3930. IFS=$as_save_IFS
  3931. test -z "$as_dir" && as_dir=.
  3932. for ac_exec_ext in '' $ac_executable_extensions; do
  3933. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3934. ac_cv_prog_ac_ct_STRIP="strip"
  3935. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3936. break 2
  3937. fi
  3938. done
  3939. done
  3940. IFS=$as_save_IFS
  3941. fi
  3942. fi
  3943. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3944. if test -n "$ac_ct_STRIP"; then
  3945. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  3946. $as_echo "$ac_ct_STRIP" >&6; }
  3947. else
  3948. { $as_echo "$as_me:$LINENO: result: no" >&5
  3949. $as_echo "no" >&6; }
  3950. fi
  3951. if test "x$ac_ct_STRIP" = x; then
  3952. STRIP=":"
  3953. else
  3954. case $cross_compiling:$ac_tool_warned in
  3955. yes:)
  3956. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3957. whose name does not start with the host triplet. If you think this
  3958. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3959. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3960. whose name does not start with the host triplet. If you think this
  3961. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3962. ac_tool_warned=yes ;;
  3963. esac
  3964. STRIP=$ac_ct_STRIP
  3965. fi
  3966. else
  3967. STRIP="$ac_cv_prog_STRIP"
  3968. fi
  3969. test -z "$STRIP" && STRIP=:
  3970. if test -n "$ac_tool_prefix"; then
  3971. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3972. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3973. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3974. $as_echo_n "checking for $ac_word... " >&6; }
  3975. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3976. $as_echo_n "(cached) " >&6
  3977. else
  3978. if test -n "$RANLIB"; then
  3979. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3980. else
  3981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3982. for as_dir in $PATH
  3983. do
  3984. IFS=$as_save_IFS
  3985. test -z "$as_dir" && as_dir=.
  3986. for ac_exec_ext in '' $ac_executable_extensions; do
  3987. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3988. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3989. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3990. break 2
  3991. fi
  3992. done
  3993. done
  3994. IFS=$as_save_IFS
  3995. fi
  3996. fi
  3997. RANLIB=$ac_cv_prog_RANLIB
  3998. if test -n "$RANLIB"; then
  3999. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4000. $as_echo "$RANLIB" >&6; }
  4001. else
  4002. { $as_echo "$as_me:$LINENO: result: no" >&5
  4003. $as_echo "no" >&6; }
  4004. fi
  4005. fi
  4006. if test -z "$ac_cv_prog_RANLIB"; then
  4007. ac_ct_RANLIB=$RANLIB
  4008. # Extract the first word of "ranlib", so it can be a program name with args.
  4009. set dummy ranlib; ac_word=$2
  4010. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4011. $as_echo_n "checking for $ac_word... " >&6; }
  4012. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4013. $as_echo_n "(cached) " >&6
  4014. else
  4015. if test -n "$ac_ct_RANLIB"; then
  4016. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4017. else
  4018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4019. for as_dir in $PATH
  4020. do
  4021. IFS=$as_save_IFS
  4022. test -z "$as_dir" && as_dir=.
  4023. for ac_exec_ext in '' $ac_executable_extensions; do
  4024. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4025. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4026. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4027. break 2
  4028. fi
  4029. done
  4030. done
  4031. IFS=$as_save_IFS
  4032. fi
  4033. fi
  4034. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4035. if test -n "$ac_ct_RANLIB"; then
  4036. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4037. $as_echo "$ac_ct_RANLIB" >&6; }
  4038. else
  4039. { $as_echo "$as_me:$LINENO: result: no" >&5
  4040. $as_echo "no" >&6; }
  4041. fi
  4042. if test "x$ac_ct_RANLIB" = x; then
  4043. RANLIB=":"
  4044. else
  4045. case $cross_compiling:$ac_tool_warned in
  4046. yes:)
  4047. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4048. whose name does not start with the host triplet. If you think this
  4049. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4050. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4051. whose name does not start with the host triplet. If you think this
  4052. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4053. ac_tool_warned=yes ;;
  4054. esac
  4055. RANLIB=$ac_ct_RANLIB
  4056. fi
  4057. else
  4058. RANLIB="$ac_cv_prog_RANLIB"
  4059. fi
  4060. test -z "$RANLIB" && RANLIB=:
  4061. # Determine commands to create old-style static archives.
  4062. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4063. old_postinstall_cmds='chmod 644 $oldlib'
  4064. old_postuninstall_cmds=
  4065. if test -n "$RANLIB"; then
  4066. case $host_os in
  4067. openbsd*)
  4068. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4069. ;;
  4070. *)
  4071. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4072. ;;
  4073. esac
  4074. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4075. fi
  4076. # If no C compiler was specified, use CC.
  4077. LTCC=${LTCC-"$CC"}
  4078. # If no C compiler flags were specified, use CFLAGS.
  4079. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4080. # Allow CC to be a program name with arguments.
  4081. compiler=$CC
  4082. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4083. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4084. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4085. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4086. $as_echo_n "(cached) " >&6
  4087. else
  4088. # These are sane defaults that work on at least a few old systems.
  4089. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4090. # Character class describing NM global symbol codes.
  4091. symcode='[BCDEGRST]'
  4092. # Regexp to match symbols that can be accessed directly from C.
  4093. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4094. # Define system-specific variables.
  4095. case $host_os in
  4096. aix*)
  4097. symcode='[BCDT]'
  4098. ;;
  4099. cygwin* | mingw* | pw32* | cegcc*)
  4100. symcode='[ABCDGISTW]'
  4101. ;;
  4102. hpux*)
  4103. if test "$host_cpu" = ia64; then
  4104. symcode='[ABCDEGRST]'
  4105. fi
  4106. ;;
  4107. irix* | nonstopux*)
  4108. symcode='[BCDEGRST]'
  4109. ;;
  4110. osf*)
  4111. symcode='[BCDEGQRST]'
  4112. ;;
  4113. solaris*)
  4114. symcode='[BDRT]'
  4115. ;;
  4116. sco3.2v5*)
  4117. symcode='[DT]'
  4118. ;;
  4119. sysv4.2uw2*)
  4120. symcode='[DT]'
  4121. ;;
  4122. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4123. symcode='[ABDT]'
  4124. ;;
  4125. sysv4)
  4126. symcode='[DFNSTU]'
  4127. ;;
  4128. esac
  4129. # If we're using GNU nm, then use its standard symbol codes.
  4130. case `$NM -V 2>&1` in
  4131. *GNU* | *'with BFD'*)
  4132. symcode='[ABCDGIRSTW]' ;;
  4133. esac
  4134. # Transform an extracted symbol line into a proper C declaration.
  4135. # Some systems (esp. on ia64) link data and code symbols differently,
  4136. # so use this general approach.
  4137. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4138. # Transform an extracted symbol line into symbol name and symbol address
  4139. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4140. 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'"
  4141. # Handle CRLF in mingw tool chain
  4142. opt_cr=
  4143. case $build_os in
  4144. mingw*)
  4145. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4146. ;;
  4147. esac
  4148. # Try without a prefix underscore, then with it.
  4149. for ac_symprfx in "" "_"; do
  4150. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4151. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4152. # Write the raw and C identifiers.
  4153. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4154. # Fake it for dumpbin and say T for any non-static function
  4155. # and D for any global variable.
  4156. # Also find C++ and __fastcall symbols from MSVC++,
  4157. # which start with @ or ?.
  4158. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4159. " {last_section=section; section=\$ 3};"\
  4160. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4161. " \$ 0!~/External *\|/{next};"\
  4162. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4163. " {if(hide[section]) next};"\
  4164. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4165. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4166. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4167. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4168. " ' prfx=^$ac_symprfx"
  4169. else
  4170. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4171. fi
  4172. # Check to see that the pipe works correctly.
  4173. pipe_works=no
  4174. rm -f conftest*
  4175. cat > conftest.$ac_ext <<_LT_EOF
  4176. #ifdef __cplusplus
  4177. extern "C" {
  4178. #endif
  4179. char nm_test_var;
  4180. void nm_test_func(void);
  4181. void nm_test_func(void){}
  4182. #ifdef __cplusplus
  4183. }
  4184. #endif
  4185. int main(){nm_test_var='a';nm_test_func();return(0);}
  4186. _LT_EOF
  4187. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4188. (eval $ac_compile) 2>&5
  4189. ac_status=$?
  4190. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4191. (exit $ac_status); }; then
  4192. # Now try to grab the symbols.
  4193. nlist=conftest.nm
  4194. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4195. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4196. ac_status=$?
  4197. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4198. (exit $ac_status); } && test -s "$nlist"; then
  4199. # Try sorting and uniquifying the output.
  4200. if sort "$nlist" | uniq > "$nlist"T; then
  4201. mv -f "$nlist"T "$nlist"
  4202. else
  4203. rm -f "$nlist"T
  4204. fi
  4205. # Make sure that we snagged all the symbols we need.
  4206. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4207. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4208. cat <<_LT_EOF > conftest.$ac_ext
  4209. #ifdef __cplusplus
  4210. extern "C" {
  4211. #endif
  4212. _LT_EOF
  4213. # Now generate the symbol file.
  4214. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4215. cat <<_LT_EOF >> conftest.$ac_ext
  4216. /* The mapping between symbol names and symbols. */
  4217. const struct {
  4218. const char *name;
  4219. void *address;
  4220. }
  4221. lt__PROGRAM__LTX_preloaded_symbols[] =
  4222. {
  4223. { "@PROGRAM@", (void *) 0 },
  4224. _LT_EOF
  4225. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4226. cat <<\_LT_EOF >> conftest.$ac_ext
  4227. {0, (void *) 0}
  4228. };
  4229. /* This works around a problem in FreeBSD linker */
  4230. #ifdef FREEBSD_WORKAROUND
  4231. static const void *lt_preloaded_setup() {
  4232. return lt__PROGRAM__LTX_preloaded_symbols;
  4233. }
  4234. #endif
  4235. #ifdef __cplusplus
  4236. }
  4237. #endif
  4238. _LT_EOF
  4239. # Now try linking the two files.
  4240. mv conftest.$ac_objext conftstm.$ac_objext
  4241. lt_save_LIBS="$LIBS"
  4242. lt_save_CFLAGS="$CFLAGS"
  4243. LIBS="conftstm.$ac_objext"
  4244. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4245. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4246. (eval $ac_link) 2>&5
  4247. ac_status=$?
  4248. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4250. pipe_works=yes
  4251. fi
  4252. LIBS="$lt_save_LIBS"
  4253. CFLAGS="$lt_save_CFLAGS"
  4254. else
  4255. echo "cannot find nm_test_func in $nlist" >&5
  4256. fi
  4257. else
  4258. echo "cannot find nm_test_var in $nlist" >&5
  4259. fi
  4260. else
  4261. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4262. fi
  4263. else
  4264. echo "$progname: failed program was:" >&5
  4265. cat conftest.$ac_ext >&5
  4266. fi
  4267. rm -rf conftest* conftst*
  4268. # Do not use the global_symbol_pipe unless it works.
  4269. if test "$pipe_works" = yes; then
  4270. break
  4271. else
  4272. lt_cv_sys_global_symbol_pipe=
  4273. fi
  4274. done
  4275. fi
  4276. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4277. lt_cv_sys_global_symbol_to_cdecl=
  4278. fi
  4279. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4280. { $as_echo "$as_me:$LINENO: result: failed" >&5
  4281. $as_echo "failed" >&6; }
  4282. else
  4283. { $as_echo "$as_me:$LINENO: result: ok" >&5
  4284. $as_echo "ok" >&6; }
  4285. fi
  4286. # Check whether --enable-libtool-lock was given.
  4287. if test "${enable_libtool_lock+set}" = set; then
  4288. enableval=$enable_libtool_lock;
  4289. fi
  4290. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4291. # Some flags need to be propagated to the compiler or linker for good
  4292. # libtool support.
  4293. case $host in
  4294. ia64-*-hpux*)
  4295. # Find out which ABI we are using.
  4296. echo 'int i;' > conftest.$ac_ext
  4297. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4298. (eval $ac_compile) 2>&5
  4299. ac_status=$?
  4300. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4301. (exit $ac_status); }; then
  4302. case `/usr/bin/file conftest.$ac_objext` in
  4303. *ELF-32*)
  4304. HPUX_IA64_MODE="32"
  4305. ;;
  4306. *ELF-64*)
  4307. HPUX_IA64_MODE="64"
  4308. ;;
  4309. esac
  4310. fi
  4311. rm -rf conftest*
  4312. ;;
  4313. *-*-irix6*)
  4314. # Find out which ABI we are using.
  4315. echo '#line 4963 "configure"' > conftest.$ac_ext
  4316. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4317. (eval $ac_compile) 2>&5
  4318. ac_status=$?
  4319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4320. (exit $ac_status); }; then
  4321. if test "$lt_cv_prog_gnu_ld" = yes; then
  4322. case `/usr/bin/file conftest.$ac_objext` in
  4323. *32-bit*)
  4324. LD="${LD-ld} -melf32bsmip"
  4325. ;;
  4326. *N32*)
  4327. LD="${LD-ld} -melf32bmipn32"
  4328. ;;
  4329. *64-bit*)
  4330. LD="${LD-ld} -melf64bmip"
  4331. ;;
  4332. esac
  4333. else
  4334. case `/usr/bin/file conftest.$ac_objext` in
  4335. *32-bit*)
  4336. LD="${LD-ld} -32"
  4337. ;;
  4338. *N32*)
  4339. LD="${LD-ld} -n32"
  4340. ;;
  4341. *64-bit*)
  4342. LD="${LD-ld} -64"
  4343. ;;
  4344. esac
  4345. fi
  4346. fi
  4347. rm -rf conftest*
  4348. ;;
  4349. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4350. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  4351. # Find out which ABI we are using.
  4352. echo 'int i;' > conftest.$ac_ext
  4353. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4354. (eval $ac_compile) 2>&5
  4355. ac_status=$?
  4356. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4357. (exit $ac_status); }; then
  4358. case `/usr/bin/file conftest.o` in
  4359. *32-bit*)
  4360. case $host in
  4361. x86_64-*kfreebsd*-gnu)
  4362. LD="${LD-ld} -m elf_i386_fbsd"
  4363. ;;
  4364. x86_64-*linux*)
  4365. LD="${LD-ld} -m elf_i386"
  4366. ;;
  4367. ppc64-*linux*|powerpc64-*linux*)
  4368. LD="${LD-ld} -m elf32ppclinux"
  4369. ;;
  4370. s390x-*linux*)
  4371. LD="${LD-ld} -m elf_s390"
  4372. ;;
  4373. sparc64-*linux*)
  4374. LD="${LD-ld} -m elf32_sparc"
  4375. ;;
  4376. esac
  4377. ;;
  4378. *64-bit*)
  4379. case $host in
  4380. x86_64-*kfreebsd*-gnu)
  4381. LD="${LD-ld} -m elf_x86_64_fbsd"
  4382. ;;
  4383. x86_64-*linux*)
  4384. LD="${LD-ld} -m elf_x86_64"
  4385. ;;
  4386. ppc*-*linux*|powerpc*-*linux*)
  4387. LD="${LD-ld} -m elf64ppc"
  4388. ;;
  4389. s390*-*linux*|s390*-*tpf*)
  4390. LD="${LD-ld} -m elf64_s390"
  4391. ;;
  4392. sparc*-*linux*)
  4393. LD="${LD-ld} -m elf64_sparc"
  4394. ;;
  4395. esac
  4396. ;;
  4397. esac
  4398. fi
  4399. rm -rf conftest*
  4400. ;;
  4401. *-*-sco3.2v5*)
  4402. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4403. SAVE_CFLAGS="$CFLAGS"
  4404. CFLAGS="$CFLAGS -belf"
  4405. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4406. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4407. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4408. $as_echo_n "(cached) " >&6
  4409. else
  4410. ac_ext=c
  4411. ac_cpp='$CPP $CPPFLAGS'
  4412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4415. cat >conftest.$ac_ext <<_ACEOF
  4416. /* confdefs.h. */
  4417. _ACEOF
  4418. cat confdefs.h >>conftest.$ac_ext
  4419. cat >>conftest.$ac_ext <<_ACEOF
  4420. /* end confdefs.h. */
  4421. int
  4422. main ()
  4423. {
  4424. ;
  4425. return 0;
  4426. }
  4427. _ACEOF
  4428. rm -f conftest.$ac_objext conftest$ac_exeext
  4429. if { (ac_try="$ac_link"
  4430. case "(($ac_try" in
  4431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4432. *) ac_try_echo=$ac_try;;
  4433. esac
  4434. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4435. $as_echo "$ac_try_echo") >&5
  4436. (eval "$ac_link") 2>conftest.er1
  4437. ac_status=$?
  4438. grep -v '^ *+' conftest.er1 >conftest.err
  4439. rm -f conftest.er1
  4440. cat conftest.err >&5
  4441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4442. (exit $ac_status); } && {
  4443. test -z "$ac_c_werror_flag" ||
  4444. test ! -s conftest.err
  4445. } && test -s conftest$ac_exeext && {
  4446. test "$cross_compiling" = yes ||
  4447. $as_test_x conftest$ac_exeext
  4448. }; then
  4449. lt_cv_cc_needs_belf=yes
  4450. else
  4451. $as_echo "$as_me: failed program was:" >&5
  4452. sed 's/^/| /' conftest.$ac_ext >&5
  4453. lt_cv_cc_needs_belf=no
  4454. fi
  4455. rm -rf conftest.dSYM
  4456. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4457. conftest$ac_exeext conftest.$ac_ext
  4458. ac_ext=c
  4459. ac_cpp='$CPP $CPPFLAGS'
  4460. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4461. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4462. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4463. fi
  4464. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4465. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  4466. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4467. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4468. CFLAGS="$SAVE_CFLAGS"
  4469. fi
  4470. ;;
  4471. sparc*-*solaris*)
  4472. # Find out which ABI we are using.
  4473. echo 'int i;' > conftest.$ac_ext
  4474. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4475. (eval $ac_compile) 2>&5
  4476. ac_status=$?
  4477. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4478. (exit $ac_status); }; then
  4479. case `/usr/bin/file conftest.o` in
  4480. *64-bit*)
  4481. case $lt_cv_prog_gnu_ld in
  4482. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4483. *)
  4484. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4485. LD="${LD-ld} -64"
  4486. fi
  4487. ;;
  4488. esac
  4489. ;;
  4490. esac
  4491. fi
  4492. rm -rf conftest*
  4493. ;;
  4494. esac
  4495. need_locks="$enable_libtool_lock"
  4496. case $host_os in
  4497. rhapsody* | darwin*)
  4498. if test -n "$ac_tool_prefix"; then
  4499. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  4500. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  4501. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4502. $as_echo_n "checking for $ac_word... " >&6; }
  4503. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  4504. $as_echo_n "(cached) " >&6
  4505. else
  4506. if test -n "$DSYMUTIL"; then
  4507. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  4508. else
  4509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4510. for as_dir in $PATH
  4511. do
  4512. IFS=$as_save_IFS
  4513. test -z "$as_dir" && as_dir=.
  4514. for ac_exec_ext in '' $ac_executable_extensions; do
  4515. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4516. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  4517. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4518. break 2
  4519. fi
  4520. done
  4521. done
  4522. IFS=$as_save_IFS
  4523. fi
  4524. fi
  4525. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  4526. if test -n "$DSYMUTIL"; then
  4527. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  4528. $as_echo "$DSYMUTIL" >&6; }
  4529. else
  4530. { $as_echo "$as_me:$LINENO: result: no" >&5
  4531. $as_echo "no" >&6; }
  4532. fi
  4533. fi
  4534. if test -z "$ac_cv_prog_DSYMUTIL"; then
  4535. ac_ct_DSYMUTIL=$DSYMUTIL
  4536. # Extract the first word of "dsymutil", so it can be a program name with args.
  4537. set dummy dsymutil; ac_word=$2
  4538. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4539. $as_echo_n "checking for $ac_word... " >&6; }
  4540. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  4541. $as_echo_n "(cached) " >&6
  4542. else
  4543. if test -n "$ac_ct_DSYMUTIL"; then
  4544. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  4545. else
  4546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4547. for as_dir in $PATH
  4548. do
  4549. IFS=$as_save_IFS
  4550. test -z "$as_dir" && as_dir=.
  4551. for ac_exec_ext in '' $ac_executable_extensions; do
  4552. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4553. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  4554. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4555. break 2
  4556. fi
  4557. done
  4558. done
  4559. IFS=$as_save_IFS
  4560. fi
  4561. fi
  4562. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  4563. if test -n "$ac_ct_DSYMUTIL"; then
  4564. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  4565. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  4566. else
  4567. { $as_echo "$as_me:$LINENO: result: no" >&5
  4568. $as_echo "no" >&6; }
  4569. fi
  4570. if test "x$ac_ct_DSYMUTIL" = x; then
  4571. DSYMUTIL=":"
  4572. else
  4573. case $cross_compiling:$ac_tool_warned in
  4574. yes:)
  4575. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4576. whose name does not start with the host triplet. If you think this
  4577. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4578. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4579. whose name does not start with the host triplet. If you think this
  4580. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4581. ac_tool_warned=yes ;;
  4582. esac
  4583. DSYMUTIL=$ac_ct_DSYMUTIL
  4584. fi
  4585. else
  4586. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  4587. fi
  4588. if test -n "$ac_tool_prefix"; then
  4589. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  4590. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  4591. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4592. $as_echo_n "checking for $ac_word... " >&6; }
  4593. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  4594. $as_echo_n "(cached) " >&6
  4595. else
  4596. if test -n "$NMEDIT"; then
  4597. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  4598. else
  4599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4600. for as_dir in $PATH
  4601. do
  4602. IFS=$as_save_IFS
  4603. test -z "$as_dir" && as_dir=.
  4604. for ac_exec_ext in '' $ac_executable_extensions; do
  4605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4606. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  4607. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4608. break 2
  4609. fi
  4610. done
  4611. done
  4612. IFS=$as_save_IFS
  4613. fi
  4614. fi
  4615. NMEDIT=$ac_cv_prog_NMEDIT
  4616. if test -n "$NMEDIT"; then
  4617. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  4618. $as_echo "$NMEDIT" >&6; }
  4619. else
  4620. { $as_echo "$as_me:$LINENO: result: no" >&5
  4621. $as_echo "no" >&6; }
  4622. fi
  4623. fi
  4624. if test -z "$ac_cv_prog_NMEDIT"; then
  4625. ac_ct_NMEDIT=$NMEDIT
  4626. # Extract the first word of "nmedit", so it can be a program name with args.
  4627. set dummy nmedit; ac_word=$2
  4628. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4629. $as_echo_n "checking for $ac_word... " >&6; }
  4630. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  4631. $as_echo_n "(cached) " >&6
  4632. else
  4633. if test -n "$ac_ct_NMEDIT"; then
  4634. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  4635. else
  4636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4637. for as_dir in $PATH
  4638. do
  4639. IFS=$as_save_IFS
  4640. test -z "$as_dir" && as_dir=.
  4641. for ac_exec_ext in '' $ac_executable_extensions; do
  4642. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4643. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  4644. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4645. break 2
  4646. fi
  4647. done
  4648. done
  4649. IFS=$as_save_IFS
  4650. fi
  4651. fi
  4652. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  4653. if test -n "$ac_ct_NMEDIT"; then
  4654. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  4655. $as_echo "$ac_ct_NMEDIT" >&6; }
  4656. else
  4657. { $as_echo "$as_me:$LINENO: result: no" >&5
  4658. $as_echo "no" >&6; }
  4659. fi
  4660. if test "x$ac_ct_NMEDIT" = x; then
  4661. NMEDIT=":"
  4662. else
  4663. case $cross_compiling:$ac_tool_warned in
  4664. yes:)
  4665. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4666. whose name does not start with the host triplet. If you think this
  4667. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4668. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4669. whose name does not start with the host triplet. If you think this
  4670. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4671. ac_tool_warned=yes ;;
  4672. esac
  4673. NMEDIT=$ac_ct_NMEDIT
  4674. fi
  4675. else
  4676. NMEDIT="$ac_cv_prog_NMEDIT"
  4677. fi
  4678. if test -n "$ac_tool_prefix"; then
  4679. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  4680. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  4681. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4682. $as_echo_n "checking for $ac_word... " >&6; }
  4683. if test "${ac_cv_prog_LIPO+set}" = set; then
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. if test -n "$LIPO"; then
  4687. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  4688. else
  4689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4690. for as_dir in $PATH
  4691. do
  4692. IFS=$as_save_IFS
  4693. test -z "$as_dir" && as_dir=.
  4694. for ac_exec_ext in '' $ac_executable_extensions; do
  4695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4696. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  4697. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4698. break 2
  4699. fi
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. fi
  4704. fi
  4705. LIPO=$ac_cv_prog_LIPO
  4706. if test -n "$LIPO"; then
  4707. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  4708. $as_echo "$LIPO" >&6; }
  4709. else
  4710. { $as_echo "$as_me:$LINENO: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712. fi
  4713. fi
  4714. if test -z "$ac_cv_prog_LIPO"; then
  4715. ac_ct_LIPO=$LIPO
  4716. # Extract the first word of "lipo", so it can be a program name with args.
  4717. set dummy lipo; ac_word=$2
  4718. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4719. $as_echo_n "checking for $ac_word... " >&6; }
  4720. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  4721. $as_echo_n "(cached) " >&6
  4722. else
  4723. if test -n "$ac_ct_LIPO"; then
  4724. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  4725. else
  4726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4727. for as_dir in $PATH
  4728. do
  4729. IFS=$as_save_IFS
  4730. test -z "$as_dir" && as_dir=.
  4731. for ac_exec_ext in '' $ac_executable_extensions; do
  4732. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4733. ac_cv_prog_ac_ct_LIPO="lipo"
  4734. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4735. break 2
  4736. fi
  4737. done
  4738. done
  4739. IFS=$as_save_IFS
  4740. fi
  4741. fi
  4742. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  4743. if test -n "$ac_ct_LIPO"; then
  4744. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  4745. $as_echo "$ac_ct_LIPO" >&6; }
  4746. else
  4747. { $as_echo "$as_me:$LINENO: result: no" >&5
  4748. $as_echo "no" >&6; }
  4749. fi
  4750. if test "x$ac_ct_LIPO" = x; then
  4751. LIPO=":"
  4752. else
  4753. case $cross_compiling:$ac_tool_warned in
  4754. yes:)
  4755. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4756. whose name does not start with the host triplet. If you think this
  4757. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4758. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4759. whose name does not start with the host triplet. If you think this
  4760. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4761. ac_tool_warned=yes ;;
  4762. esac
  4763. LIPO=$ac_ct_LIPO
  4764. fi
  4765. else
  4766. LIPO="$ac_cv_prog_LIPO"
  4767. fi
  4768. if test -n "$ac_tool_prefix"; then
  4769. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  4770. set dummy ${ac_tool_prefix}otool; ac_word=$2
  4771. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4772. $as_echo_n "checking for $ac_word... " >&6; }
  4773. if test "${ac_cv_prog_OTOOL+set}" = set; then
  4774. $as_echo_n "(cached) " >&6
  4775. else
  4776. if test -n "$OTOOL"; then
  4777. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  4778. else
  4779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4780. for as_dir in $PATH
  4781. do
  4782. IFS=$as_save_IFS
  4783. test -z "$as_dir" && as_dir=.
  4784. for ac_exec_ext in '' $ac_executable_extensions; do
  4785. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4786. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  4787. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4788. break 2
  4789. fi
  4790. done
  4791. done
  4792. IFS=$as_save_IFS
  4793. fi
  4794. fi
  4795. OTOOL=$ac_cv_prog_OTOOL
  4796. if test -n "$OTOOL"; then
  4797. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  4798. $as_echo "$OTOOL" >&6; }
  4799. else
  4800. { $as_echo "$as_me:$LINENO: result: no" >&5
  4801. $as_echo "no" >&6; }
  4802. fi
  4803. fi
  4804. if test -z "$ac_cv_prog_OTOOL"; then
  4805. ac_ct_OTOOL=$OTOOL
  4806. # Extract the first word of "otool", so it can be a program name with args.
  4807. set dummy otool; ac_word=$2
  4808. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4809. $as_echo_n "checking for $ac_word... " >&6; }
  4810. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  4811. $as_echo_n "(cached) " >&6
  4812. else
  4813. if test -n "$ac_ct_OTOOL"; then
  4814. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  4815. else
  4816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4817. for as_dir in $PATH
  4818. do
  4819. IFS=$as_save_IFS
  4820. test -z "$as_dir" && as_dir=.
  4821. for ac_exec_ext in '' $ac_executable_extensions; do
  4822. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4823. ac_cv_prog_ac_ct_OTOOL="otool"
  4824. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4825. break 2
  4826. fi
  4827. done
  4828. done
  4829. IFS=$as_save_IFS
  4830. fi
  4831. fi
  4832. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  4833. if test -n "$ac_ct_OTOOL"; then
  4834. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  4835. $as_echo "$ac_ct_OTOOL" >&6; }
  4836. else
  4837. { $as_echo "$as_me:$LINENO: result: no" >&5
  4838. $as_echo "no" >&6; }
  4839. fi
  4840. if test "x$ac_ct_OTOOL" = x; then
  4841. OTOOL=":"
  4842. else
  4843. case $cross_compiling:$ac_tool_warned in
  4844. yes:)
  4845. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4846. whose name does not start with the host triplet. If you think this
  4847. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4848. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4849. whose name does not start with the host triplet. If you think this
  4850. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4851. ac_tool_warned=yes ;;
  4852. esac
  4853. OTOOL=$ac_ct_OTOOL
  4854. fi
  4855. else
  4856. OTOOL="$ac_cv_prog_OTOOL"
  4857. fi
  4858. if test -n "$ac_tool_prefix"; then
  4859. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  4860. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  4861. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4862. $as_echo_n "checking for $ac_word... " >&6; }
  4863. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. if test -n "$OTOOL64"; then
  4867. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  4868. else
  4869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4870. for as_dir in $PATH
  4871. do
  4872. IFS=$as_save_IFS
  4873. test -z "$as_dir" && as_dir=.
  4874. for ac_exec_ext in '' $ac_executable_extensions; do
  4875. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4876. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  4877. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4878. break 2
  4879. fi
  4880. done
  4881. done
  4882. IFS=$as_save_IFS
  4883. fi
  4884. fi
  4885. OTOOL64=$ac_cv_prog_OTOOL64
  4886. if test -n "$OTOOL64"; then
  4887. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  4888. $as_echo "$OTOOL64" >&6; }
  4889. else
  4890. { $as_echo "$as_me:$LINENO: result: no" >&5
  4891. $as_echo "no" >&6; }
  4892. fi
  4893. fi
  4894. if test -z "$ac_cv_prog_OTOOL64"; then
  4895. ac_ct_OTOOL64=$OTOOL64
  4896. # Extract the first word of "otool64", so it can be a program name with args.
  4897. set dummy otool64; ac_word=$2
  4898. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4899. $as_echo_n "checking for $ac_word... " >&6; }
  4900. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  4901. $as_echo_n "(cached) " >&6
  4902. else
  4903. if test -n "$ac_ct_OTOOL64"; then
  4904. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  4905. else
  4906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4907. for as_dir in $PATH
  4908. do
  4909. IFS=$as_save_IFS
  4910. test -z "$as_dir" && as_dir=.
  4911. for ac_exec_ext in '' $ac_executable_extensions; do
  4912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4913. ac_cv_prog_ac_ct_OTOOL64="otool64"
  4914. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4915. break 2
  4916. fi
  4917. done
  4918. done
  4919. IFS=$as_save_IFS
  4920. fi
  4921. fi
  4922. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  4923. if test -n "$ac_ct_OTOOL64"; then
  4924. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  4925. $as_echo "$ac_ct_OTOOL64" >&6; }
  4926. else
  4927. { $as_echo "$as_me:$LINENO: result: no" >&5
  4928. $as_echo "no" >&6; }
  4929. fi
  4930. if test "x$ac_ct_OTOOL64" = x; then
  4931. OTOOL64=":"
  4932. else
  4933. case $cross_compiling:$ac_tool_warned in
  4934. yes:)
  4935. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4936. whose name does not start with the host triplet. If you think this
  4937. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4938. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4939. whose name does not start with the host triplet. If you think this
  4940. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4941. ac_tool_warned=yes ;;
  4942. esac
  4943. OTOOL64=$ac_ct_OTOOL64
  4944. fi
  4945. else
  4946. OTOOL64="$ac_cv_prog_OTOOL64"
  4947. fi
  4948. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  4949. $as_echo_n "checking for -single_module linker flag... " >&6; }
  4950. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  4951. $as_echo_n "(cached) " >&6
  4952. else
  4953. lt_cv_apple_cc_single_mod=no
  4954. if test -z "${LT_MULTI_MODULE}"; then
  4955. # By default we will add the -single_module flag. You can override
  4956. # by either setting the environment variable LT_MULTI_MODULE
  4957. # non-empty at configure time, or by adding -multi_module to the
  4958. # link flags.
  4959. rm -rf libconftest.dylib*
  4960. echo "int foo(void){return 1;}" > conftest.c
  4961. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  4962. -dynamiclib -Wl,-single_module conftest.c" >&5
  4963. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  4964. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  4965. _lt_result=$?
  4966. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  4967. lt_cv_apple_cc_single_mod=yes
  4968. else
  4969. cat conftest.err >&5
  4970. fi
  4971. rm -rf libconftest.dylib*
  4972. rm -f conftest.*
  4973. fi
  4974. fi
  4975. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  4976. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  4977. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  4978. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  4979. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. lt_cv_ld_exported_symbols_list=no
  4983. save_LDFLAGS=$LDFLAGS
  4984. echo "_main" > conftest.sym
  4985. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  4986. cat >conftest.$ac_ext <<_ACEOF
  4987. /* confdefs.h. */
  4988. _ACEOF
  4989. cat confdefs.h >>conftest.$ac_ext
  4990. cat >>conftest.$ac_ext <<_ACEOF
  4991. /* end confdefs.h. */
  4992. int
  4993. main ()
  4994. {
  4995. ;
  4996. return 0;
  4997. }
  4998. _ACEOF
  4999. rm -f conftest.$ac_objext conftest$ac_exeext
  5000. if { (ac_try="$ac_link"
  5001. case "(($ac_try" in
  5002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5003. *) ac_try_echo=$ac_try;;
  5004. esac
  5005. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5006. $as_echo "$ac_try_echo") >&5
  5007. (eval "$ac_link") 2>conftest.er1
  5008. ac_status=$?
  5009. grep -v '^ *+' conftest.er1 >conftest.err
  5010. rm -f conftest.er1
  5011. cat conftest.err >&5
  5012. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5013. (exit $ac_status); } && {
  5014. test -z "$ac_c_werror_flag" ||
  5015. test ! -s conftest.err
  5016. } && test -s conftest$ac_exeext && {
  5017. test "$cross_compiling" = yes ||
  5018. $as_test_x conftest$ac_exeext
  5019. }; then
  5020. lt_cv_ld_exported_symbols_list=yes
  5021. else
  5022. $as_echo "$as_me: failed program was:" >&5
  5023. sed 's/^/| /' conftest.$ac_ext >&5
  5024. lt_cv_ld_exported_symbols_list=no
  5025. fi
  5026. rm -rf conftest.dSYM
  5027. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5028. conftest$ac_exeext conftest.$ac_ext
  5029. LDFLAGS="$save_LDFLAGS"
  5030. fi
  5031. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5032. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5033. case $host_os in
  5034. rhapsody* | darwin1.[012])
  5035. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5036. darwin1.*)
  5037. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5038. darwin*) # darwin 5.x on
  5039. # if running on 10.5 or later, the deployment target defaults
  5040. # to the OS version, if on x86, and 10.4, the deployment
  5041. # target defaults to 10.4. Don't you love it?
  5042. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5043. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5044. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5045. 10.[012]*)
  5046. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5047. 10.*)
  5048. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5049. esac
  5050. ;;
  5051. esac
  5052. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5053. _lt_dar_single_mod='$single_module'
  5054. fi
  5055. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5056. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5057. else
  5058. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5059. fi
  5060. if test "$DSYMUTIL" != ":"; then
  5061. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5062. else
  5063. _lt_dsymutil=
  5064. fi
  5065. ;;
  5066. esac
  5067. ac_ext=c
  5068. ac_cpp='$CPP $CPPFLAGS'
  5069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5072. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5073. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5074. # On Suns, sometimes $CPP names a directory.
  5075. if test -n "$CPP" && test -d "$CPP"; then
  5076. CPP=
  5077. fi
  5078. if test -z "$CPP"; then
  5079. if test "${ac_cv_prog_CPP+set}" = set; then
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. # Double quotes because CPP needs to be expanded
  5083. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5084. do
  5085. ac_preproc_ok=false
  5086. for ac_c_preproc_warn_flag in '' yes
  5087. do
  5088. # Use a header file that comes with gcc, so configuring glibc
  5089. # with a fresh cross-compiler works.
  5090. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5091. # <limits.h> exists even on freestanding compilers.
  5092. # On the NeXT, cc -E runs the code through the compiler's parser,
  5093. # not just through cpp. "Syntax error" is here to catch this case.
  5094. cat >conftest.$ac_ext <<_ACEOF
  5095. /* confdefs.h. */
  5096. _ACEOF
  5097. cat confdefs.h >>conftest.$ac_ext
  5098. cat >>conftest.$ac_ext <<_ACEOF
  5099. /* end confdefs.h. */
  5100. #ifdef __STDC__
  5101. # include <limits.h>
  5102. #else
  5103. # include <assert.h>
  5104. #endif
  5105. Syntax error
  5106. _ACEOF
  5107. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5108. case "(($ac_try" in
  5109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5110. *) ac_try_echo=$ac_try;;
  5111. esac
  5112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5113. $as_echo "$ac_try_echo") >&5
  5114. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5115. ac_status=$?
  5116. grep -v '^ *+' conftest.er1 >conftest.err
  5117. rm -f conftest.er1
  5118. cat conftest.err >&5
  5119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5120. (exit $ac_status); } >/dev/null && {
  5121. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5122. test ! -s conftest.err
  5123. }; then
  5124. :
  5125. else
  5126. $as_echo "$as_me: failed program was:" >&5
  5127. sed 's/^/| /' conftest.$ac_ext >&5
  5128. # Broken: fails on valid input.
  5129. continue
  5130. fi
  5131. rm -f conftest.err conftest.$ac_ext
  5132. # OK, works on sane cases. Now check whether nonexistent headers
  5133. # can be detected and how.
  5134. cat >conftest.$ac_ext <<_ACEOF
  5135. /* confdefs.h. */
  5136. _ACEOF
  5137. cat confdefs.h >>conftest.$ac_ext
  5138. cat >>conftest.$ac_ext <<_ACEOF
  5139. /* end confdefs.h. */
  5140. #include <ac_nonexistent.h>
  5141. _ACEOF
  5142. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5143. case "(($ac_try" in
  5144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5145. *) ac_try_echo=$ac_try;;
  5146. esac
  5147. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5148. $as_echo "$ac_try_echo") >&5
  5149. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5150. ac_status=$?
  5151. grep -v '^ *+' conftest.er1 >conftest.err
  5152. rm -f conftest.er1
  5153. cat conftest.err >&5
  5154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5155. (exit $ac_status); } >/dev/null && {
  5156. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5157. test ! -s conftest.err
  5158. }; then
  5159. # Broken: success on invalid input.
  5160. continue
  5161. else
  5162. $as_echo "$as_me: failed program was:" >&5
  5163. sed 's/^/| /' conftest.$ac_ext >&5
  5164. # Passes both tests.
  5165. ac_preproc_ok=:
  5166. break
  5167. fi
  5168. rm -f conftest.err conftest.$ac_ext
  5169. done
  5170. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5171. rm -f conftest.err conftest.$ac_ext
  5172. if $ac_preproc_ok; then
  5173. break
  5174. fi
  5175. done
  5176. ac_cv_prog_CPP=$CPP
  5177. fi
  5178. CPP=$ac_cv_prog_CPP
  5179. else
  5180. ac_cv_prog_CPP=$CPP
  5181. fi
  5182. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5183. $as_echo "$CPP" >&6; }
  5184. ac_preproc_ok=false
  5185. for ac_c_preproc_warn_flag in '' yes
  5186. do
  5187. # Use a header file that comes with gcc, so configuring glibc
  5188. # with a fresh cross-compiler works.
  5189. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5190. # <limits.h> exists even on freestanding compilers.
  5191. # On the NeXT, cc -E runs the code through the compiler's parser,
  5192. # not just through cpp. "Syntax error" is here to catch this case.
  5193. cat >conftest.$ac_ext <<_ACEOF
  5194. /* confdefs.h. */
  5195. _ACEOF
  5196. cat confdefs.h >>conftest.$ac_ext
  5197. cat >>conftest.$ac_ext <<_ACEOF
  5198. /* end confdefs.h. */
  5199. #ifdef __STDC__
  5200. # include <limits.h>
  5201. #else
  5202. # include <assert.h>
  5203. #endif
  5204. Syntax error
  5205. _ACEOF
  5206. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5207. case "(($ac_try" in
  5208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5209. *) ac_try_echo=$ac_try;;
  5210. esac
  5211. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5212. $as_echo "$ac_try_echo") >&5
  5213. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5214. ac_status=$?
  5215. grep -v '^ *+' conftest.er1 >conftest.err
  5216. rm -f conftest.er1
  5217. cat conftest.err >&5
  5218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5219. (exit $ac_status); } >/dev/null && {
  5220. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5221. test ! -s conftest.err
  5222. }; then
  5223. :
  5224. else
  5225. $as_echo "$as_me: failed program was:" >&5
  5226. sed 's/^/| /' conftest.$ac_ext >&5
  5227. # Broken: fails on valid input.
  5228. continue
  5229. fi
  5230. rm -f conftest.err conftest.$ac_ext
  5231. # OK, works on sane cases. Now check whether nonexistent headers
  5232. # can be detected and how.
  5233. cat >conftest.$ac_ext <<_ACEOF
  5234. /* confdefs.h. */
  5235. _ACEOF
  5236. cat confdefs.h >>conftest.$ac_ext
  5237. cat >>conftest.$ac_ext <<_ACEOF
  5238. /* end confdefs.h. */
  5239. #include <ac_nonexistent.h>
  5240. _ACEOF
  5241. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5242. case "(($ac_try" in
  5243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5244. *) ac_try_echo=$ac_try;;
  5245. esac
  5246. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5247. $as_echo "$ac_try_echo") >&5
  5248. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5249. ac_status=$?
  5250. grep -v '^ *+' conftest.er1 >conftest.err
  5251. rm -f conftest.er1
  5252. cat conftest.err >&5
  5253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5254. (exit $ac_status); } >/dev/null && {
  5255. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5256. test ! -s conftest.err
  5257. }; then
  5258. # Broken: success on invalid input.
  5259. continue
  5260. else
  5261. $as_echo "$as_me: failed program was:" >&5
  5262. sed 's/^/| /' conftest.$ac_ext >&5
  5263. # Passes both tests.
  5264. ac_preproc_ok=:
  5265. break
  5266. fi
  5267. rm -f conftest.err conftest.$ac_ext
  5268. done
  5269. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5270. rm -f conftest.err conftest.$ac_ext
  5271. if $ac_preproc_ok; then
  5272. :
  5273. else
  5274. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5275. See \`config.log' for more details." >&5
  5276. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5277. See \`config.log' for more details." >&2;}
  5278. { (exit 1); exit 1; }; }
  5279. fi
  5280. ac_ext=c
  5281. ac_cpp='$CPP $CPPFLAGS'
  5282. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5283. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5284. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5285. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5286. $as_echo_n "checking for ANSI C header files... " >&6; }
  5287. if test "${ac_cv_header_stdc+set}" = set; then
  5288. $as_echo_n "(cached) " >&6
  5289. else
  5290. cat >conftest.$ac_ext <<_ACEOF
  5291. /* confdefs.h. */
  5292. _ACEOF
  5293. cat confdefs.h >>conftest.$ac_ext
  5294. cat >>conftest.$ac_ext <<_ACEOF
  5295. /* end confdefs.h. */
  5296. #include <stdlib.h>
  5297. #include <stdarg.h>
  5298. #include <string.h>
  5299. #include <float.h>
  5300. int
  5301. main ()
  5302. {
  5303. ;
  5304. return 0;
  5305. }
  5306. _ACEOF
  5307. rm -f conftest.$ac_objext
  5308. if { (ac_try="$ac_compile"
  5309. case "(($ac_try" in
  5310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5311. *) ac_try_echo=$ac_try;;
  5312. esac
  5313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5314. $as_echo "$ac_try_echo") >&5
  5315. (eval "$ac_compile") 2>conftest.er1
  5316. ac_status=$?
  5317. grep -v '^ *+' conftest.er1 >conftest.err
  5318. rm -f conftest.er1
  5319. cat conftest.err >&5
  5320. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5321. (exit $ac_status); } && {
  5322. test -z "$ac_c_werror_flag" ||
  5323. test ! -s conftest.err
  5324. } && test -s conftest.$ac_objext; then
  5325. ac_cv_header_stdc=yes
  5326. else
  5327. $as_echo "$as_me: failed program was:" >&5
  5328. sed 's/^/| /' conftest.$ac_ext >&5
  5329. ac_cv_header_stdc=no
  5330. fi
  5331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5332. if test $ac_cv_header_stdc = yes; then
  5333. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5334. cat >conftest.$ac_ext <<_ACEOF
  5335. /* confdefs.h. */
  5336. _ACEOF
  5337. cat confdefs.h >>conftest.$ac_ext
  5338. cat >>conftest.$ac_ext <<_ACEOF
  5339. /* end confdefs.h. */
  5340. #include <string.h>
  5341. _ACEOF
  5342. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5343. $EGREP "memchr" >/dev/null 2>&1; then
  5344. :
  5345. else
  5346. ac_cv_header_stdc=no
  5347. fi
  5348. rm -f conftest*
  5349. fi
  5350. if test $ac_cv_header_stdc = yes; then
  5351. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5352. cat >conftest.$ac_ext <<_ACEOF
  5353. /* confdefs.h. */
  5354. _ACEOF
  5355. cat confdefs.h >>conftest.$ac_ext
  5356. cat >>conftest.$ac_ext <<_ACEOF
  5357. /* end confdefs.h. */
  5358. #include <stdlib.h>
  5359. _ACEOF
  5360. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5361. $EGREP "free" >/dev/null 2>&1; then
  5362. :
  5363. else
  5364. ac_cv_header_stdc=no
  5365. fi
  5366. rm -f conftest*
  5367. fi
  5368. if test $ac_cv_header_stdc = yes; then
  5369. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5370. if test "$cross_compiling" = yes; then
  5371. :
  5372. else
  5373. cat >conftest.$ac_ext <<_ACEOF
  5374. /* confdefs.h. */
  5375. _ACEOF
  5376. cat confdefs.h >>conftest.$ac_ext
  5377. cat >>conftest.$ac_ext <<_ACEOF
  5378. /* end confdefs.h. */
  5379. #include <ctype.h>
  5380. #include <stdlib.h>
  5381. #if ((' ' & 0x0FF) == 0x020)
  5382. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5383. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5384. #else
  5385. # define ISLOWER(c) \
  5386. (('a' <= (c) && (c) <= 'i') \
  5387. || ('j' <= (c) && (c) <= 'r') \
  5388. || ('s' <= (c) && (c) <= 'z'))
  5389. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5390. #endif
  5391. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5392. int
  5393. main ()
  5394. {
  5395. int i;
  5396. for (i = 0; i < 256; i++)
  5397. if (XOR (islower (i), ISLOWER (i))
  5398. || toupper (i) != TOUPPER (i))
  5399. return 2;
  5400. return 0;
  5401. }
  5402. _ACEOF
  5403. rm -f conftest$ac_exeext
  5404. if { (ac_try="$ac_link"
  5405. case "(($ac_try" in
  5406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5407. *) ac_try_echo=$ac_try;;
  5408. esac
  5409. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5410. $as_echo "$ac_try_echo") >&5
  5411. (eval "$ac_link") 2>&5
  5412. ac_status=$?
  5413. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5414. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5415. { (case "(($ac_try" in
  5416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5417. *) ac_try_echo=$ac_try;;
  5418. esac
  5419. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5420. $as_echo "$ac_try_echo") >&5
  5421. (eval "$ac_try") 2>&5
  5422. ac_status=$?
  5423. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5424. (exit $ac_status); }; }; then
  5425. :
  5426. else
  5427. $as_echo "$as_me: program exited with status $ac_status" >&5
  5428. $as_echo "$as_me: failed program was:" >&5
  5429. sed 's/^/| /' conftest.$ac_ext >&5
  5430. ( exit $ac_status )
  5431. ac_cv_header_stdc=no
  5432. fi
  5433. rm -rf conftest.dSYM
  5434. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5435. fi
  5436. fi
  5437. fi
  5438. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5439. $as_echo "$ac_cv_header_stdc" >&6; }
  5440. if test $ac_cv_header_stdc = yes; then
  5441. cat >>confdefs.h <<\_ACEOF
  5442. #define STDC_HEADERS 1
  5443. _ACEOF
  5444. fi
  5445. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5446. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5447. inttypes.h stdint.h unistd.h
  5448. do
  5449. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5450. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5451. $as_echo_n "checking for $ac_header... " >&6; }
  5452. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5453. $as_echo_n "(cached) " >&6
  5454. else
  5455. cat >conftest.$ac_ext <<_ACEOF
  5456. /* confdefs.h. */
  5457. _ACEOF
  5458. cat confdefs.h >>conftest.$ac_ext
  5459. cat >>conftest.$ac_ext <<_ACEOF
  5460. /* end confdefs.h. */
  5461. $ac_includes_default
  5462. #include <$ac_header>
  5463. _ACEOF
  5464. rm -f conftest.$ac_objext
  5465. if { (ac_try="$ac_compile"
  5466. case "(($ac_try" in
  5467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5468. *) ac_try_echo=$ac_try;;
  5469. esac
  5470. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5471. $as_echo "$ac_try_echo") >&5
  5472. (eval "$ac_compile") 2>conftest.er1
  5473. ac_status=$?
  5474. grep -v '^ *+' conftest.er1 >conftest.err
  5475. rm -f conftest.er1
  5476. cat conftest.err >&5
  5477. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5478. (exit $ac_status); } && {
  5479. test -z "$ac_c_werror_flag" ||
  5480. test ! -s conftest.err
  5481. } && test -s conftest.$ac_objext; then
  5482. eval "$as_ac_Header=yes"
  5483. else
  5484. $as_echo "$as_me: failed program was:" >&5
  5485. sed 's/^/| /' conftest.$ac_ext >&5
  5486. eval "$as_ac_Header=no"
  5487. fi
  5488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5489. fi
  5490. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5491. $as_echo "$as_val"'`
  5492. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5493. $as_echo "$ac_res" >&6; }
  5494. if test `eval 'as_val=${'$as_ac_Header'}
  5495. $as_echo "$as_val"'` = yes; then
  5496. cat >>confdefs.h <<_ACEOF
  5497. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5498. _ACEOF
  5499. fi
  5500. done
  5501. for ac_header in dlfcn.h
  5502. do
  5503. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5504. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5505. $as_echo_n "checking for $ac_header... " >&6; }
  5506. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5507. $as_echo_n "(cached) " >&6
  5508. else
  5509. cat >conftest.$ac_ext <<_ACEOF
  5510. /* confdefs.h. */
  5511. _ACEOF
  5512. cat confdefs.h >>conftest.$ac_ext
  5513. cat >>conftest.$ac_ext <<_ACEOF
  5514. /* end confdefs.h. */
  5515. $ac_includes_default
  5516. #include <$ac_header>
  5517. _ACEOF
  5518. rm -f conftest.$ac_objext
  5519. if { (ac_try="$ac_compile"
  5520. case "(($ac_try" in
  5521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5522. *) ac_try_echo=$ac_try;;
  5523. esac
  5524. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5525. $as_echo "$ac_try_echo") >&5
  5526. (eval "$ac_compile") 2>conftest.er1
  5527. ac_status=$?
  5528. grep -v '^ *+' conftest.er1 >conftest.err
  5529. rm -f conftest.er1
  5530. cat conftest.err >&5
  5531. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5532. (exit $ac_status); } && {
  5533. test -z "$ac_c_werror_flag" ||
  5534. test ! -s conftest.err
  5535. } && test -s conftest.$ac_objext; then
  5536. eval "$as_ac_Header=yes"
  5537. else
  5538. $as_echo "$as_me: failed program was:" >&5
  5539. sed 's/^/| /' conftest.$ac_ext >&5
  5540. eval "$as_ac_Header=no"
  5541. fi
  5542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5543. fi
  5544. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5545. $as_echo "$as_val"'`
  5546. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5547. $as_echo "$ac_res" >&6; }
  5548. if test `eval 'as_val=${'$as_ac_Header'}
  5549. $as_echo "$as_val"'` = yes; then
  5550. cat >>confdefs.h <<_ACEOF
  5551. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5552. _ACEOF
  5553. fi
  5554. done
  5555. # Set options
  5556. enable_dlopen=no
  5557. enable_win32_dll=no
  5558. # Check whether --enable-shared was given.
  5559. if test "${enable_shared+set}" = set; then
  5560. enableval=$enable_shared; p=${PACKAGE-default}
  5561. case $enableval in
  5562. yes) enable_shared=yes ;;
  5563. no) enable_shared=no ;;
  5564. *)
  5565. enable_shared=no
  5566. # Look at the argument we got. We use all the common list separators.
  5567. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5568. for pkg in $enableval; do
  5569. IFS="$lt_save_ifs"
  5570. if test "X$pkg" = "X$p"; then
  5571. enable_shared=yes
  5572. fi
  5573. done
  5574. IFS="$lt_save_ifs"
  5575. ;;
  5576. esac
  5577. else
  5578. enable_shared=yes
  5579. fi
  5580. # Check whether --enable-static was given.
  5581. if test "${enable_static+set}" = set; then
  5582. enableval=$enable_static; p=${PACKAGE-default}
  5583. case $enableval in
  5584. yes) enable_static=yes ;;
  5585. no) enable_static=no ;;
  5586. *)
  5587. enable_static=no
  5588. # Look at the argument we got. We use all the common list separators.
  5589. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5590. for pkg in $enableval; do
  5591. IFS="$lt_save_ifs"
  5592. if test "X$pkg" = "X$p"; then
  5593. enable_static=yes
  5594. fi
  5595. done
  5596. IFS="$lt_save_ifs"
  5597. ;;
  5598. esac
  5599. else
  5600. enable_static=yes
  5601. fi
  5602. # Check whether --with-pic was given.
  5603. if test "${with_pic+set}" = set; then
  5604. withval=$with_pic; pic_mode="$withval"
  5605. else
  5606. pic_mode=default
  5607. fi
  5608. test -z "$pic_mode" && pic_mode=default
  5609. # Check whether --enable-fast-install was given.
  5610. if test "${enable_fast_install+set}" = set; then
  5611. enableval=$enable_fast_install; p=${PACKAGE-default}
  5612. case $enableval in
  5613. yes) enable_fast_install=yes ;;
  5614. no) enable_fast_install=no ;;
  5615. *)
  5616. enable_fast_install=no
  5617. # Look at the argument we got. We use all the common list separators.
  5618. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5619. for pkg in $enableval; do
  5620. IFS="$lt_save_ifs"
  5621. if test "X$pkg" = "X$p"; then
  5622. enable_fast_install=yes
  5623. fi
  5624. done
  5625. IFS="$lt_save_ifs"
  5626. ;;
  5627. esac
  5628. else
  5629. enable_fast_install=yes
  5630. fi
  5631. # This can be used to rebuild libtool when needed
  5632. LIBTOOL_DEPS="$ltmain"
  5633. # Always use our own libtool.
  5634. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  5635. test -z "$LN_S" && LN_S="ln -s"
  5636. if test -n "${ZSH_VERSION+set}" ; then
  5637. setopt NO_GLOB_SUBST
  5638. fi
  5639. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  5640. $as_echo_n "checking for objdir... " >&6; }
  5641. if test "${lt_cv_objdir+set}" = set; then
  5642. $as_echo_n "(cached) " >&6
  5643. else
  5644. rm -f .libs 2>/dev/null
  5645. mkdir .libs 2>/dev/null
  5646. if test -d .libs; then
  5647. lt_cv_objdir=.libs
  5648. else
  5649. # MS-DOS does not allow filenames that begin with a dot.
  5650. lt_cv_objdir=_libs
  5651. fi
  5652. rmdir .libs 2>/dev/null
  5653. fi
  5654. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5655. $as_echo "$lt_cv_objdir" >&6; }
  5656. objdir=$lt_cv_objdir
  5657. cat >>confdefs.h <<_ACEOF
  5658. #define LT_OBJDIR "$lt_cv_objdir/"
  5659. _ACEOF
  5660. case $host_os in
  5661. aix3*)
  5662. # AIX sometimes has problems with the GCC collect2 program. For some
  5663. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5664. # vanish in a puff of smoke.
  5665. if test "X${COLLECT_NAMES+set}" != Xset; then
  5666. COLLECT_NAMES=
  5667. export COLLECT_NAMES
  5668. fi
  5669. ;;
  5670. esac
  5671. # Sed substitution that helps us do robust quoting. It backslashifies
  5672. # metacharacters that are still active within double-quoted strings.
  5673. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5674. # Same as above, but do not quote variable references.
  5675. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5676. # Sed substitution to delay expansion of an escaped shell variable in a
  5677. # double_quote_subst'ed string.
  5678. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5679. # Sed substitution to delay expansion of an escaped single quote.
  5680. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5681. # Sed substitution to avoid accidental globbing in evaled expressions
  5682. no_glob_subst='s/\*/\\\*/g'
  5683. # Global variables:
  5684. ofile=libtool
  5685. can_build_shared=yes
  5686. # All known linkers require a `.a' archive for static linking (except MSVC,
  5687. # which needs '.lib').
  5688. libext=a
  5689. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5690. old_CC="$CC"
  5691. old_CFLAGS="$CFLAGS"
  5692. # Set sane defaults for various variables
  5693. test -z "$CC" && CC=cc
  5694. test -z "$LTCC" && LTCC=$CC
  5695. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5696. test -z "$LD" && LD=ld
  5697. test -z "$ac_objext" && ac_objext=o
  5698. for cc_temp in $compiler""; do
  5699. case $cc_temp in
  5700. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5701. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5702. \-*) ;;
  5703. *) break;;
  5704. esac
  5705. done
  5706. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5707. # Only perform the check for file, if the check method requires it
  5708. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5709. case $deplibs_check_method in
  5710. file_magic*)
  5711. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5712. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5713. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  5714. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. case $MAGIC_CMD in
  5718. [\\/*] | ?:[\\/]*)
  5719. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5720. ;;
  5721. *)
  5722. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5723. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5724. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5725. for ac_dir in $ac_dummy; do
  5726. IFS="$lt_save_ifs"
  5727. test -z "$ac_dir" && ac_dir=.
  5728. if test -f $ac_dir/${ac_tool_prefix}file; then
  5729. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5730. if test -n "$file_magic_test_file"; then
  5731. case $deplibs_check_method in
  5732. "file_magic "*)
  5733. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5734. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5735. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5736. $EGREP "$file_magic_regex" > /dev/null; then
  5737. :
  5738. else
  5739. cat <<_LT_EOF 1>&2
  5740. *** Warning: the command libtool uses to detect shared libraries,
  5741. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5742. *** The result is that libtool may fail to recognize shared libraries
  5743. *** as such. This will affect the creation of libtool libraries that
  5744. *** depend on shared libraries, but programs linked with such libtool
  5745. *** libraries will work regardless of this problem. Nevertheless, you
  5746. *** may want to report the problem to your system manager and/or to
  5747. *** bug-libtool@gnu.org
  5748. _LT_EOF
  5749. fi ;;
  5750. esac
  5751. fi
  5752. break
  5753. fi
  5754. done
  5755. IFS="$lt_save_ifs"
  5756. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5757. ;;
  5758. esac
  5759. fi
  5760. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5761. if test -n "$MAGIC_CMD"; then
  5762. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5763. $as_echo "$MAGIC_CMD" >&6; }
  5764. else
  5765. { $as_echo "$as_me:$LINENO: result: no" >&5
  5766. $as_echo "no" >&6; }
  5767. fi
  5768. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5769. if test -n "$ac_tool_prefix"; then
  5770. { $as_echo "$as_me:$LINENO: checking for file" >&5
  5771. $as_echo_n "checking for file... " >&6; }
  5772. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5773. $as_echo_n "(cached) " >&6
  5774. else
  5775. case $MAGIC_CMD in
  5776. [\\/*] | ?:[\\/]*)
  5777. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5778. ;;
  5779. *)
  5780. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5781. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5782. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5783. for ac_dir in $ac_dummy; do
  5784. IFS="$lt_save_ifs"
  5785. test -z "$ac_dir" && ac_dir=.
  5786. if test -f $ac_dir/file; then
  5787. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5788. if test -n "$file_magic_test_file"; then
  5789. case $deplibs_check_method in
  5790. "file_magic "*)
  5791. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5792. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5793. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5794. $EGREP "$file_magic_regex" > /dev/null; then
  5795. :
  5796. else
  5797. cat <<_LT_EOF 1>&2
  5798. *** Warning: the command libtool uses to detect shared libraries,
  5799. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5800. *** The result is that libtool may fail to recognize shared libraries
  5801. *** as such. This will affect the creation of libtool libraries that
  5802. *** depend on shared libraries, but programs linked with such libtool
  5803. *** libraries will work regardless of this problem. Nevertheless, you
  5804. *** may want to report the problem to your system manager and/or to
  5805. *** bug-libtool@gnu.org
  5806. _LT_EOF
  5807. fi ;;
  5808. esac
  5809. fi
  5810. break
  5811. fi
  5812. done
  5813. IFS="$lt_save_ifs"
  5814. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5815. ;;
  5816. esac
  5817. fi
  5818. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5819. if test -n "$MAGIC_CMD"; then
  5820. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5821. $as_echo "$MAGIC_CMD" >&6; }
  5822. else
  5823. { $as_echo "$as_me:$LINENO: result: no" >&5
  5824. $as_echo "no" >&6; }
  5825. fi
  5826. else
  5827. MAGIC_CMD=:
  5828. fi
  5829. fi
  5830. fi
  5831. ;;
  5832. esac
  5833. # Use C for the default configuration in the libtool script
  5834. lt_save_CC="$CC"
  5835. ac_ext=c
  5836. ac_cpp='$CPP $CPPFLAGS'
  5837. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5838. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5839. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5840. # Source file extension for C test sources.
  5841. ac_ext=c
  5842. # Object file extension for compiled C test sources.
  5843. objext=o
  5844. objext=$objext
  5845. # Code to be used in simple compile tests
  5846. lt_simple_compile_test_code="int some_variable = 0;"
  5847. # Code to be used in simple link tests
  5848. lt_simple_link_test_code='int main(){return(0);}'
  5849. # If no C compiler was specified, use CC.
  5850. LTCC=${LTCC-"$CC"}
  5851. # If no C compiler flags were specified, use CFLAGS.
  5852. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5853. # Allow CC to be a program name with arguments.
  5854. compiler=$CC
  5855. # Save the default compiler, since it gets overwritten when the other
  5856. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5857. compiler_DEFAULT=$CC
  5858. # save warnings/boilerplate of simple test code
  5859. ac_outfile=conftest.$ac_objext
  5860. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  5861. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5862. _lt_compiler_boilerplate=`cat conftest.err`
  5863. $RM conftest*
  5864. ac_outfile=conftest.$ac_objext
  5865. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  5866. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5867. _lt_linker_boilerplate=`cat conftest.err`
  5868. $RM -r conftest*
  5869. if test -n "$compiler"; then
  5870. lt_prog_compiler_no_builtin_flag=
  5871. if test "$GCC" = yes; then
  5872. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5873. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5874. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  5875. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5876. $as_echo_n "(cached) " >&6
  5877. else
  5878. lt_cv_prog_compiler_rtti_exceptions=no
  5879. ac_outfile=conftest.$ac_objext
  5880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5881. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5882. # Insert the option either (1) after the last *FLAGS variable, or
  5883. # (2) before a word containing "conftest.", or (3) at the end.
  5884. # Note that $ac_compile itself does not contain backslashes and begins
  5885. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5886. # The option is referenced via a variable to avoid confusing sed.
  5887. lt_compile=`echo "$ac_compile" | $SED \
  5888. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5889. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5890. -e 's:$: $lt_compiler_flag:'`
  5891. (eval echo "\"\$as_me:6832: $lt_compile\"" >&5)
  5892. (eval "$lt_compile" 2>conftest.err)
  5893. ac_status=$?
  5894. cat conftest.err >&5
  5895. echo "$as_me:6836: \$? = $ac_status" >&5
  5896. if (exit $ac_status) && test -s "$ac_outfile"; then
  5897. # The compiler can only warn and ignore the option if not recognized
  5898. # So say no if there are warnings other than the usual output.
  5899. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5900. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5901. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5902. lt_cv_prog_compiler_rtti_exceptions=yes
  5903. fi
  5904. fi
  5905. $RM conftest*
  5906. fi
  5907. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5908. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  5909. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5910. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5911. else
  5912. :
  5913. fi
  5914. fi
  5915. lt_prog_compiler_wl=
  5916. lt_prog_compiler_pic=
  5917. lt_prog_compiler_static=
  5918. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5919. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  5920. if test "$GCC" = yes; then
  5921. lt_prog_compiler_wl='-Wl,'
  5922. lt_prog_compiler_static='-static'
  5923. case $host_os in
  5924. aix*)
  5925. # All AIX code is PIC.
  5926. if test "$host_cpu" = ia64; then
  5927. # AIX 5 now supports IA64 processor
  5928. lt_prog_compiler_static='-Bstatic'
  5929. fi
  5930. ;;
  5931. amigaos*)
  5932. case $host_cpu in
  5933. powerpc)
  5934. # see comment about AmigaOS4 .so support
  5935. lt_prog_compiler_pic='-fPIC'
  5936. ;;
  5937. m68k)
  5938. # FIXME: we need at least 68020 code to build shared libraries, but
  5939. # adding the `-m68020' flag to GCC prevents building anything better,
  5940. # like `-m68040'.
  5941. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5942. ;;
  5943. esac
  5944. ;;
  5945. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5946. # PIC is the default for these OSes.
  5947. ;;
  5948. mingw* | cygwin* | pw32* | os2* | cegcc*)
  5949. # This hack is so that the source file can tell whether it is being
  5950. # built for inclusion in a dll (and should export symbols for example).
  5951. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5952. # (--disable-auto-import) libraries
  5953. lt_prog_compiler_pic='-DDLL_EXPORT'
  5954. ;;
  5955. darwin* | rhapsody*)
  5956. # PIC is the default on this platform
  5957. # Common symbols not allowed in MH_DYLIB files
  5958. lt_prog_compiler_pic='-fno-common'
  5959. ;;
  5960. hpux*)
  5961. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  5962. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  5963. # sets the default TLS model and affects inlining.
  5964. case $host_cpu in
  5965. hppa*64*)
  5966. # +Z the default
  5967. ;;
  5968. *)
  5969. lt_prog_compiler_pic='-fPIC'
  5970. ;;
  5971. esac
  5972. ;;
  5973. interix[3-9]*)
  5974. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5975. # Instead, we relocate shared libraries at runtime.
  5976. ;;
  5977. msdosdjgpp*)
  5978. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5979. # on systems that don't support them.
  5980. lt_prog_compiler_can_build_shared=no
  5981. enable_shared=no
  5982. ;;
  5983. *nto* | *qnx*)
  5984. # QNX uses GNU C++, but need to define -shared option too, otherwise
  5985. # it will coredump.
  5986. lt_prog_compiler_pic='-fPIC -shared'
  5987. ;;
  5988. sysv4*MP*)
  5989. if test -d /usr/nec; then
  5990. lt_prog_compiler_pic=-Kconform_pic
  5991. fi
  5992. ;;
  5993. *)
  5994. lt_prog_compiler_pic='-fPIC'
  5995. ;;
  5996. esac
  5997. else
  5998. # PORTME Check for flag to pass linker flags through the system compiler.
  5999. case $host_os in
  6000. aix*)
  6001. lt_prog_compiler_wl='-Wl,'
  6002. if test "$host_cpu" = ia64; then
  6003. # AIX 5 now supports IA64 processor
  6004. lt_prog_compiler_static='-Bstatic'
  6005. else
  6006. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6007. fi
  6008. ;;
  6009. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6010. # This hack is so that the source file can tell whether it is being
  6011. # built for inclusion in a dll (and should export symbols for example).
  6012. lt_prog_compiler_pic='-DDLL_EXPORT'
  6013. ;;
  6014. hpux9* | hpux10* | hpux11*)
  6015. lt_prog_compiler_wl='-Wl,'
  6016. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6017. # not for PA HP-UX.
  6018. case $host_cpu in
  6019. hppa*64*|ia64*)
  6020. # +Z the default
  6021. ;;
  6022. *)
  6023. lt_prog_compiler_pic='+Z'
  6024. ;;
  6025. esac
  6026. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6027. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6028. ;;
  6029. irix5* | irix6* | nonstopux*)
  6030. lt_prog_compiler_wl='-Wl,'
  6031. # PIC (with -KPIC) is the default.
  6032. lt_prog_compiler_static='-non_shared'
  6033. ;;
  6034. linux* | k*bsd*-gnu)
  6035. case $cc_basename in
  6036. # old Intel for x86_64 which still supported -KPIC.
  6037. ecc*)
  6038. lt_prog_compiler_wl='-Wl,'
  6039. lt_prog_compiler_pic='-KPIC'
  6040. lt_prog_compiler_static='-static'
  6041. ;;
  6042. # icc used to be incompatible with GCC.
  6043. # ICC 10 doesn't accept -KPIC any more.
  6044. icc* | ifort*)
  6045. lt_prog_compiler_wl='-Wl,'
  6046. lt_prog_compiler_pic='-fPIC'
  6047. lt_prog_compiler_static='-static'
  6048. ;;
  6049. # Lahey Fortran 8.1.
  6050. lf95*)
  6051. lt_prog_compiler_wl='-Wl,'
  6052. lt_prog_compiler_pic='--shared'
  6053. lt_prog_compiler_static='--static'
  6054. ;;
  6055. pgcc* | pgf77* | pgf90* | pgf95*)
  6056. # Portland Group compilers (*not* the Pentium gcc compiler,
  6057. # which looks to be a dead project)
  6058. lt_prog_compiler_wl='-Wl,'
  6059. lt_prog_compiler_pic='-fpic'
  6060. lt_prog_compiler_static='-Bstatic'
  6061. ;;
  6062. ccc*)
  6063. lt_prog_compiler_wl='-Wl,'
  6064. # All Alpha code is PIC.
  6065. lt_prog_compiler_static='-non_shared'
  6066. ;;
  6067. xl*)
  6068. # IBM XL C 8.0/Fortran 10.1 on PPC
  6069. lt_prog_compiler_wl='-Wl,'
  6070. lt_prog_compiler_pic='-qpic'
  6071. lt_prog_compiler_static='-qstaticlink'
  6072. ;;
  6073. *)
  6074. case `$CC -V 2>&1 | sed 5q` in
  6075. *Sun\ C*)
  6076. # Sun C 5.9
  6077. lt_prog_compiler_pic='-KPIC'
  6078. lt_prog_compiler_static='-Bstatic'
  6079. lt_prog_compiler_wl='-Wl,'
  6080. ;;
  6081. *Sun\ F*)
  6082. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6083. lt_prog_compiler_pic='-KPIC'
  6084. lt_prog_compiler_static='-Bstatic'
  6085. lt_prog_compiler_wl=''
  6086. ;;
  6087. esac
  6088. ;;
  6089. esac
  6090. ;;
  6091. newsos6)
  6092. lt_prog_compiler_pic='-KPIC'
  6093. lt_prog_compiler_static='-Bstatic'
  6094. ;;
  6095. *nto* | *qnx*)
  6096. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6097. # it will coredump.
  6098. lt_prog_compiler_pic='-fPIC -shared'
  6099. ;;
  6100. osf3* | osf4* | osf5*)
  6101. lt_prog_compiler_wl='-Wl,'
  6102. # All OSF/1 code is PIC.
  6103. lt_prog_compiler_static='-non_shared'
  6104. ;;
  6105. rdos*)
  6106. lt_prog_compiler_static='-non_shared'
  6107. ;;
  6108. solaris*)
  6109. lt_prog_compiler_pic='-KPIC'
  6110. lt_prog_compiler_static='-Bstatic'
  6111. case $cc_basename in
  6112. f77* | f90* | f95*)
  6113. lt_prog_compiler_wl='-Qoption ld ';;
  6114. *)
  6115. lt_prog_compiler_wl='-Wl,';;
  6116. esac
  6117. ;;
  6118. sunos4*)
  6119. lt_prog_compiler_wl='-Qoption ld '
  6120. lt_prog_compiler_pic='-PIC'
  6121. lt_prog_compiler_static='-Bstatic'
  6122. ;;
  6123. sysv4 | sysv4.2uw2* | sysv4.3*)
  6124. lt_prog_compiler_wl='-Wl,'
  6125. lt_prog_compiler_pic='-KPIC'
  6126. lt_prog_compiler_static='-Bstatic'
  6127. ;;
  6128. sysv4*MP*)
  6129. if test -d /usr/nec ;then
  6130. lt_prog_compiler_pic='-Kconform_pic'
  6131. lt_prog_compiler_static='-Bstatic'
  6132. fi
  6133. ;;
  6134. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6135. lt_prog_compiler_wl='-Wl,'
  6136. lt_prog_compiler_pic='-KPIC'
  6137. lt_prog_compiler_static='-Bstatic'
  6138. ;;
  6139. unicos*)
  6140. lt_prog_compiler_wl='-Wl,'
  6141. lt_prog_compiler_can_build_shared=no
  6142. ;;
  6143. uts4*)
  6144. lt_prog_compiler_pic='-pic'
  6145. lt_prog_compiler_static='-Bstatic'
  6146. ;;
  6147. *)
  6148. lt_prog_compiler_can_build_shared=no
  6149. ;;
  6150. esac
  6151. fi
  6152. case $host_os in
  6153. # For platforms which do not support PIC, -DPIC is meaningless:
  6154. *djgpp*)
  6155. lt_prog_compiler_pic=
  6156. ;;
  6157. *)
  6158. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6159. ;;
  6160. esac
  6161. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6162. $as_echo "$lt_prog_compiler_pic" >&6; }
  6163. #
  6164. # Check to make sure the PIC flag actually works.
  6165. #
  6166. if test -n "$lt_prog_compiler_pic"; then
  6167. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6168. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6169. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6170. $as_echo_n "(cached) " >&6
  6171. else
  6172. lt_cv_prog_compiler_pic_works=no
  6173. ac_outfile=conftest.$ac_objext
  6174. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6175. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6176. # Insert the option either (1) after the last *FLAGS variable, or
  6177. # (2) before a word containing "conftest.", or (3) at the end.
  6178. # Note that $ac_compile itself does not contain backslashes and begins
  6179. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6180. # The option is referenced via a variable to avoid confusing sed.
  6181. lt_compile=`echo "$ac_compile" | $SED \
  6182. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6183. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6184. -e 's:$: $lt_compiler_flag:'`
  6185. (eval echo "\"\$as_me:7171: $lt_compile\"" >&5)
  6186. (eval "$lt_compile" 2>conftest.err)
  6187. ac_status=$?
  6188. cat conftest.err >&5
  6189. echo "$as_me:7175: \$? = $ac_status" >&5
  6190. if (exit $ac_status) && test -s "$ac_outfile"; then
  6191. # The compiler can only warn and ignore the option if not recognized
  6192. # So say no if there are warnings other than the usual output.
  6193. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6194. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6195. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6196. lt_cv_prog_compiler_pic_works=yes
  6197. fi
  6198. fi
  6199. $RM conftest*
  6200. fi
  6201. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6202. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6203. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6204. case $lt_prog_compiler_pic in
  6205. "" | " "*) ;;
  6206. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6207. esac
  6208. else
  6209. lt_prog_compiler_pic=
  6210. lt_prog_compiler_can_build_shared=no
  6211. fi
  6212. fi
  6213. #
  6214. # Check to make sure the static flag actually works.
  6215. #
  6216. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6217. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6218. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6219. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  6220. $as_echo_n "(cached) " >&6
  6221. else
  6222. lt_cv_prog_compiler_static_works=no
  6223. save_LDFLAGS="$LDFLAGS"
  6224. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6225. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6226. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6227. # The linker can only warn and ignore the option if not recognized
  6228. # So say no if there are warnings
  6229. if test -s conftest.err; then
  6230. # Append any errors to the config.log.
  6231. cat conftest.err 1>&5
  6232. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6233. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6234. if diff conftest.exp conftest.er2 >/dev/null; then
  6235. lt_cv_prog_compiler_static_works=yes
  6236. fi
  6237. else
  6238. lt_cv_prog_compiler_static_works=yes
  6239. fi
  6240. fi
  6241. $RM -r conftest*
  6242. LDFLAGS="$save_LDFLAGS"
  6243. fi
  6244. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  6245. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6246. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6247. :
  6248. else
  6249. lt_prog_compiler_static=
  6250. fi
  6251. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6252. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6253. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6254. $as_echo_n "(cached) " >&6
  6255. else
  6256. lt_cv_prog_compiler_c_o=no
  6257. $RM -r conftest 2>/dev/null
  6258. mkdir conftest
  6259. cd conftest
  6260. mkdir out
  6261. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6262. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6263. # Insert the option either (1) after the last *FLAGS variable, or
  6264. # (2) before a word containing "conftest.", or (3) at the end.
  6265. # Note that $ac_compile itself does not contain backslashes and begins
  6266. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6267. lt_compile=`echo "$ac_compile" | $SED \
  6268. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6269. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6270. -e 's:$: $lt_compiler_flag:'`
  6271. (eval echo "\"\$as_me:7276: $lt_compile\"" >&5)
  6272. (eval "$lt_compile" 2>out/conftest.err)
  6273. ac_status=$?
  6274. cat out/conftest.err >&5
  6275. echo "$as_me:7280: \$? = $ac_status" >&5
  6276. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6277. then
  6278. # The compiler can only warn and ignore the option if not recognized
  6279. # So say no if there are warnings
  6280. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6281. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6282. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6283. lt_cv_prog_compiler_c_o=yes
  6284. fi
  6285. fi
  6286. chmod u+w . 2>&5
  6287. $RM conftest*
  6288. # SGI C++ compiler will create directory out/ii_files/ for
  6289. # template instantiation
  6290. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6291. $RM out/* && rmdir out
  6292. cd ..
  6293. $RM -r conftest
  6294. $RM conftest*
  6295. fi
  6296. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6297. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6298. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6299. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6300. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. lt_cv_prog_compiler_c_o=no
  6304. $RM -r conftest 2>/dev/null
  6305. mkdir conftest
  6306. cd conftest
  6307. mkdir out
  6308. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6309. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6310. # Insert the option either (1) after the last *FLAGS variable, or
  6311. # (2) before a word containing "conftest.", or (3) at the end.
  6312. # Note that $ac_compile itself does not contain backslashes and begins
  6313. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6314. lt_compile=`echo "$ac_compile" | $SED \
  6315. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6316. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6317. -e 's:$: $lt_compiler_flag:'`
  6318. (eval echo "\"\$as_me:7331: $lt_compile\"" >&5)
  6319. (eval "$lt_compile" 2>out/conftest.err)
  6320. ac_status=$?
  6321. cat out/conftest.err >&5
  6322. echo "$as_me:7335: \$? = $ac_status" >&5
  6323. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6324. then
  6325. # The compiler can only warn and ignore the option if not recognized
  6326. # So say no if there are warnings
  6327. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6328. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6329. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6330. lt_cv_prog_compiler_c_o=yes
  6331. fi
  6332. fi
  6333. chmod u+w . 2>&5
  6334. $RM conftest*
  6335. # SGI C++ compiler will create directory out/ii_files/ for
  6336. # template instantiation
  6337. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6338. $RM out/* && rmdir out
  6339. cd ..
  6340. $RM -r conftest
  6341. $RM conftest*
  6342. fi
  6343. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6344. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6345. hard_links="nottested"
  6346. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6347. # do not overwrite the value of need_locks provided by the user
  6348. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6349. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6350. hard_links=yes
  6351. $RM conftest*
  6352. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6353. touch conftest.a
  6354. ln conftest.a conftest.b 2>&5 || hard_links=no
  6355. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6356. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  6357. $as_echo "$hard_links" >&6; }
  6358. if test "$hard_links" = no; then
  6359. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6360. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6361. need_locks=warn
  6362. fi
  6363. else
  6364. need_locks=no
  6365. fi
  6366. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6367. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6368. runpath_var=
  6369. allow_undefined_flag=
  6370. always_export_symbols=no
  6371. archive_cmds=
  6372. archive_expsym_cmds=
  6373. compiler_needs_object=no
  6374. enable_shared_with_static_runtimes=no
  6375. export_dynamic_flag_spec=
  6376. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6377. hardcode_automatic=no
  6378. hardcode_direct=no
  6379. hardcode_direct_absolute=no
  6380. hardcode_libdir_flag_spec=
  6381. hardcode_libdir_flag_spec_ld=
  6382. hardcode_libdir_separator=
  6383. hardcode_minus_L=no
  6384. hardcode_shlibpath_var=unsupported
  6385. inherit_rpath=no
  6386. link_all_deplibs=unknown
  6387. module_cmds=
  6388. module_expsym_cmds=
  6389. old_archive_from_new_cmds=
  6390. old_archive_from_expsyms_cmds=
  6391. thread_safe_flag_spec=
  6392. whole_archive_flag_spec=
  6393. # include_expsyms should be a list of space-separated symbols to be *always*
  6394. # included in the symbol list
  6395. include_expsyms=
  6396. # exclude_expsyms can be an extended regexp of symbols to exclude
  6397. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6398. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6399. # as well as any symbol that contains `d'.
  6400. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6401. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6402. # platforms (ab)use it in PIC code, but their linkers get confused if
  6403. # the symbol is explicitly referenced. Since portable code cannot
  6404. # rely on this symbol name, it's probably fine to never include it in
  6405. # preloaded symbol tables.
  6406. # Exclude shared library initialization/finalization symbols.
  6407. extract_expsyms_cmds=
  6408. case $host_os in
  6409. cygwin* | mingw* | pw32* | cegcc*)
  6410. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6411. # When not using gcc, we currently assume that we are using
  6412. # Microsoft Visual C++.
  6413. if test "$GCC" != yes; then
  6414. with_gnu_ld=no
  6415. fi
  6416. ;;
  6417. interix*)
  6418. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6419. with_gnu_ld=yes
  6420. ;;
  6421. openbsd*)
  6422. with_gnu_ld=no
  6423. ;;
  6424. esac
  6425. ld_shlibs=yes
  6426. if test "$with_gnu_ld" = yes; then
  6427. # If archive_cmds runs LD, not CC, wlarc should be empty
  6428. wlarc='${wl}'
  6429. # Set some defaults for GNU ld with shared library support. These
  6430. # are reset later if shared libraries are not supported. Putting them
  6431. # here allows them to be overridden if necessary.
  6432. runpath_var=LD_RUN_PATH
  6433. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6434. export_dynamic_flag_spec='${wl}--export-dynamic'
  6435. # ancient GNU ld didn't support --whole-archive et. al.
  6436. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6437. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6438. else
  6439. whole_archive_flag_spec=
  6440. fi
  6441. supports_anon_versioning=no
  6442. case `$LD -v 2>&1` in
  6443. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6444. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6445. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6446. *\ 2.11.*) ;; # other 2.11 versions
  6447. *) supports_anon_versioning=yes ;;
  6448. esac
  6449. # See if GNU ld supports shared libraries.
  6450. case $host_os in
  6451. aix[3-9]*)
  6452. # On AIX/PPC, the GNU linker is very broken
  6453. if test "$host_cpu" != ia64; then
  6454. ld_shlibs=no
  6455. cat <<_LT_EOF 1>&2
  6456. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6457. *** to be unable to reliably create shared libraries on AIX.
  6458. *** Therefore, libtool is disabling shared libraries support. If you
  6459. *** really care for shared libraries, you may want to modify your PATH
  6460. *** so that a non-GNU linker is found, and then restart.
  6461. _LT_EOF
  6462. fi
  6463. ;;
  6464. amigaos*)
  6465. case $host_cpu in
  6466. powerpc)
  6467. # see comment about AmigaOS4 .so support
  6468. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6469. archive_expsym_cmds=''
  6470. ;;
  6471. m68k)
  6472. 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)'
  6473. hardcode_libdir_flag_spec='-L$libdir'
  6474. hardcode_minus_L=yes
  6475. ;;
  6476. esac
  6477. ;;
  6478. beos*)
  6479. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6480. allow_undefined_flag=unsupported
  6481. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6482. # support --undefined. This deserves some investigation. FIXME
  6483. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6484. else
  6485. ld_shlibs=no
  6486. fi
  6487. ;;
  6488. cygwin* | mingw* | pw32* | cegcc*)
  6489. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6490. # as there is no search path for DLLs.
  6491. hardcode_libdir_flag_spec='-L$libdir'
  6492. allow_undefined_flag=unsupported
  6493. always_export_symbols=no
  6494. enable_shared_with_static_runtimes=yes
  6495. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6496. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6497. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6498. # If the export-symbols file already is a .def file (1st line
  6499. # is EXPORTS), use it as is; otherwise, prepend...
  6500. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6501. cp $export_symbols $output_objdir/$soname.def;
  6502. else
  6503. echo EXPORTS > $output_objdir/$soname.def;
  6504. cat $export_symbols >> $output_objdir/$soname.def;
  6505. fi~
  6506. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6507. else
  6508. ld_shlibs=no
  6509. fi
  6510. ;;
  6511. interix[3-9]*)
  6512. hardcode_direct=no
  6513. hardcode_shlibpath_var=no
  6514. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6515. export_dynamic_flag_spec='${wl}-E'
  6516. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6517. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6518. # default) and relocated if they conflict, which is a slow very memory
  6519. # consuming and fragmenting process. To avoid this, we pick a random,
  6520. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6521. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6522. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6523. 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'
  6524. ;;
  6525. gnu* | linux* | tpf* | k*bsd*-gnu)
  6526. tmp_diet=no
  6527. if test "$host_os" = linux-dietlibc; then
  6528. case $cc_basename in
  6529. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  6530. esac
  6531. fi
  6532. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6533. && test "$tmp_diet" = no
  6534. then
  6535. tmp_addflag=
  6536. tmp_sharedflag='-shared'
  6537. case $cc_basename,$host_cpu in
  6538. pgcc*) # Portland Group C compiler
  6539. 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'
  6540. tmp_addflag=' $pic_flag'
  6541. ;;
  6542. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6543. 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'
  6544. tmp_addflag=' $pic_flag -Mnomain' ;;
  6545. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6546. tmp_addflag=' -i_dynamic' ;;
  6547. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6548. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6549. ifc* | ifort*) # Intel Fortran compiler
  6550. tmp_addflag=' -nofor_main' ;;
  6551. lf95*) # Lahey Fortran 8.1
  6552. whole_archive_flag_spec=
  6553. tmp_sharedflag='--shared' ;;
  6554. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  6555. tmp_sharedflag='-qmkshrobj'
  6556. tmp_addflag= ;;
  6557. esac
  6558. case `$CC -V 2>&1 | sed 5q` in
  6559. *Sun\ C*) # Sun C 5.9
  6560. 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'
  6561. compiler_needs_object=yes
  6562. tmp_sharedflag='-G' ;;
  6563. *Sun\ F*) # Sun Fortran 8.3
  6564. tmp_sharedflag='-G' ;;
  6565. esac
  6566. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6567. if test "x$supports_anon_versioning" = xyes; then
  6568. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  6569. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6570. echo "local: *; };" >> $output_objdir/$libname.ver~
  6571. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6572. fi
  6573. case $cc_basename in
  6574. xlf*)
  6575. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  6576. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  6577. hardcode_libdir_flag_spec=
  6578. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6579. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  6580. if test "x$supports_anon_versioning" = xyes; then
  6581. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  6582. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6583. echo "local: *; };" >> $output_objdir/$libname.ver~
  6584. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  6585. fi
  6586. ;;
  6587. esac
  6588. else
  6589. ld_shlibs=no
  6590. fi
  6591. ;;
  6592. netbsd*)
  6593. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6594. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6595. wlarc=
  6596. else
  6597. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6598. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6599. fi
  6600. ;;
  6601. solaris*)
  6602. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  6603. ld_shlibs=no
  6604. cat <<_LT_EOF 1>&2
  6605. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6606. *** create shared libraries on Solaris systems. Therefore, libtool
  6607. *** is disabling shared libraries support. We urge you to upgrade GNU
  6608. *** binutils to release 2.9.1 or newer. Another option is to modify
  6609. *** your PATH or compiler configuration so that the native linker is
  6610. *** used, and then restart.
  6611. _LT_EOF
  6612. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6613. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6614. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6615. else
  6616. ld_shlibs=no
  6617. fi
  6618. ;;
  6619. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6620. case `$LD -v 2>&1` in
  6621. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6622. ld_shlibs=no
  6623. cat <<_LT_EOF 1>&2
  6624. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6625. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6626. *** is disabling shared libraries support. We urge you to upgrade GNU
  6627. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6628. *** your PATH or compiler configuration so that the native linker is
  6629. *** used, and then restart.
  6630. _LT_EOF
  6631. ;;
  6632. *)
  6633. # For security reasons, it is highly recommended that you always
  6634. # use absolute paths for naming shared libraries, and exclude the
  6635. # DT_RUNPATH tag from executables and libraries. But doing so
  6636. # requires that you compile everything twice, which is a pain.
  6637. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6638. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6639. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6640. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6641. else
  6642. ld_shlibs=no
  6643. fi
  6644. ;;
  6645. esac
  6646. ;;
  6647. sunos4*)
  6648. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6649. wlarc=
  6650. hardcode_direct=yes
  6651. hardcode_shlibpath_var=no
  6652. ;;
  6653. *)
  6654. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6655. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6656. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6657. else
  6658. ld_shlibs=no
  6659. fi
  6660. ;;
  6661. esac
  6662. if test "$ld_shlibs" = no; then
  6663. runpath_var=
  6664. hardcode_libdir_flag_spec=
  6665. export_dynamic_flag_spec=
  6666. whole_archive_flag_spec=
  6667. fi
  6668. else
  6669. # PORTME fill in a description of your system's linker (not GNU ld)
  6670. case $host_os in
  6671. aix3*)
  6672. allow_undefined_flag=unsupported
  6673. always_export_symbols=yes
  6674. 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'
  6675. # Note: this linker hardcodes the directories in LIBPATH if there
  6676. # are no directories specified by -L.
  6677. hardcode_minus_L=yes
  6678. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6679. # Neither direct hardcoding nor static linking is supported with a
  6680. # broken collect2.
  6681. hardcode_direct=unsupported
  6682. fi
  6683. ;;
  6684. aix[4-9]*)
  6685. if test "$host_cpu" = ia64; then
  6686. # On IA64, the linker does run time linking by default, so we don't
  6687. # have to do anything special.
  6688. aix_use_runtimelinking=no
  6689. exp_sym_flag='-Bexport'
  6690. no_entry_flag=""
  6691. else
  6692. # If we're using GNU nm, then we don't want the "-C" option.
  6693. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6694. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6695. 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'
  6696. else
  6697. 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'
  6698. fi
  6699. aix_use_runtimelinking=no
  6700. # Test if we are trying to use run time linking or normal
  6701. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6702. # need to do runtime linking.
  6703. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  6704. for ld_flag in $LDFLAGS; do
  6705. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6706. aix_use_runtimelinking=yes
  6707. break
  6708. fi
  6709. done
  6710. ;;
  6711. esac
  6712. exp_sym_flag='-bexport'
  6713. no_entry_flag='-bnoentry'
  6714. fi
  6715. # When large executables or shared objects are built, AIX ld can
  6716. # have problems creating the table of contents. If linking a library
  6717. # or program results in "error TOC overflow" add -mminimal-toc to
  6718. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6719. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6720. archive_cmds=''
  6721. hardcode_direct=yes
  6722. hardcode_direct_absolute=yes
  6723. hardcode_libdir_separator=':'
  6724. link_all_deplibs=yes
  6725. file_list_spec='${wl}-f,'
  6726. if test "$GCC" = yes; then
  6727. case $host_os in aix4.[012]|aix4.[012].*)
  6728. # We only want to do this on AIX 4.2 and lower, the check
  6729. # below for broken collect2 doesn't work under 4.3+
  6730. collect2name=`${CC} -print-prog-name=collect2`
  6731. if test -f "$collect2name" &&
  6732. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6733. then
  6734. # We have reworked collect2
  6735. :
  6736. else
  6737. # We have old collect2
  6738. hardcode_direct=unsupported
  6739. # It fails to find uninstalled libraries when the uninstalled
  6740. # path is not listed in the libpath. Setting hardcode_minus_L
  6741. # to unsupported forces relinking
  6742. hardcode_minus_L=yes
  6743. hardcode_libdir_flag_spec='-L$libdir'
  6744. hardcode_libdir_separator=
  6745. fi
  6746. ;;
  6747. esac
  6748. shared_flag='-shared'
  6749. if test "$aix_use_runtimelinking" = yes; then
  6750. shared_flag="$shared_flag "'${wl}-G'
  6751. fi
  6752. else
  6753. # not using gcc
  6754. if test "$host_cpu" = ia64; then
  6755. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6756. # chokes on -Wl,-G. The following line is correct:
  6757. shared_flag='-G'
  6758. else
  6759. if test "$aix_use_runtimelinking" = yes; then
  6760. shared_flag='${wl}-G'
  6761. else
  6762. shared_flag='${wl}-bM:SRE'
  6763. fi
  6764. fi
  6765. fi
  6766. export_dynamic_flag_spec='${wl}-bexpall'
  6767. # It seems that -bexpall does not export symbols beginning with
  6768. # underscore (_), so it is better to generate a list of symbols to export.
  6769. always_export_symbols=yes
  6770. if test "$aix_use_runtimelinking" = yes; then
  6771. # Warning - without using the other runtime loading flags (-brtl),
  6772. # -berok will link without error, but may produce a broken library.
  6773. allow_undefined_flag='-berok'
  6774. # Determine the default libpath from the value encoded in an
  6775. # empty executable.
  6776. cat >conftest.$ac_ext <<_ACEOF
  6777. /* confdefs.h. */
  6778. _ACEOF
  6779. cat confdefs.h >>conftest.$ac_ext
  6780. cat >>conftest.$ac_ext <<_ACEOF
  6781. /* end confdefs.h. */
  6782. int
  6783. main ()
  6784. {
  6785. ;
  6786. return 0;
  6787. }
  6788. _ACEOF
  6789. rm -f conftest.$ac_objext conftest$ac_exeext
  6790. if { (ac_try="$ac_link"
  6791. case "(($ac_try" in
  6792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6793. *) ac_try_echo=$ac_try;;
  6794. esac
  6795. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6796. $as_echo "$ac_try_echo") >&5
  6797. (eval "$ac_link") 2>conftest.er1
  6798. ac_status=$?
  6799. grep -v '^ *+' conftest.er1 >conftest.err
  6800. rm -f conftest.er1
  6801. cat conftest.err >&5
  6802. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6803. (exit $ac_status); } && {
  6804. test -z "$ac_c_werror_flag" ||
  6805. test ! -s conftest.err
  6806. } && test -s conftest$ac_exeext && {
  6807. test "$cross_compiling" = yes ||
  6808. $as_test_x conftest$ac_exeext
  6809. }; then
  6810. lt_aix_libpath_sed='
  6811. /Import File Strings/,/^$/ {
  6812. /^0/ {
  6813. s/^0 *\(.*\)$/\1/
  6814. p
  6815. }
  6816. }'
  6817. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6818. # Check for a 64-bit object if we didn't find anything.
  6819. if test -z "$aix_libpath"; then
  6820. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6821. fi
  6822. else
  6823. $as_echo "$as_me: failed program was:" >&5
  6824. sed 's/^/| /' conftest.$ac_ext >&5
  6825. fi
  6826. rm -rf conftest.dSYM
  6827. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6828. conftest$ac_exeext conftest.$ac_ext
  6829. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6830. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6831. 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"
  6832. else
  6833. if test "$host_cpu" = ia64; then
  6834. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6835. allow_undefined_flag="-z nodefs"
  6836. 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"
  6837. else
  6838. # Determine the default libpath from the value encoded in an
  6839. # empty executable.
  6840. cat >conftest.$ac_ext <<_ACEOF
  6841. /* confdefs.h. */
  6842. _ACEOF
  6843. cat confdefs.h >>conftest.$ac_ext
  6844. cat >>conftest.$ac_ext <<_ACEOF
  6845. /* end confdefs.h. */
  6846. int
  6847. main ()
  6848. {
  6849. ;
  6850. return 0;
  6851. }
  6852. _ACEOF
  6853. rm -f conftest.$ac_objext conftest$ac_exeext
  6854. if { (ac_try="$ac_link"
  6855. case "(($ac_try" in
  6856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6857. *) ac_try_echo=$ac_try;;
  6858. esac
  6859. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6860. $as_echo "$ac_try_echo") >&5
  6861. (eval "$ac_link") 2>conftest.er1
  6862. ac_status=$?
  6863. grep -v '^ *+' conftest.er1 >conftest.err
  6864. rm -f conftest.er1
  6865. cat conftest.err >&5
  6866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6867. (exit $ac_status); } && {
  6868. test -z "$ac_c_werror_flag" ||
  6869. test ! -s conftest.err
  6870. } && test -s conftest$ac_exeext && {
  6871. test "$cross_compiling" = yes ||
  6872. $as_test_x conftest$ac_exeext
  6873. }; then
  6874. lt_aix_libpath_sed='
  6875. /Import File Strings/,/^$/ {
  6876. /^0/ {
  6877. s/^0 *\(.*\)$/\1/
  6878. p
  6879. }
  6880. }'
  6881. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6882. # Check for a 64-bit object if we didn't find anything.
  6883. if test -z "$aix_libpath"; then
  6884. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6885. fi
  6886. else
  6887. $as_echo "$as_me: failed program was:" >&5
  6888. sed 's/^/| /' conftest.$ac_ext >&5
  6889. fi
  6890. rm -rf conftest.dSYM
  6891. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6892. conftest$ac_exeext conftest.$ac_ext
  6893. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6894. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6895. # Warning - without using the other run time loading flags,
  6896. # -berok will link without error, but may produce a broken library.
  6897. no_undefined_flag=' ${wl}-bernotok'
  6898. allow_undefined_flag=' ${wl}-berok'
  6899. # Exported symbols can be pulled into shared objects from archives
  6900. whole_archive_flag_spec='$convenience'
  6901. archive_cmds_need_lc=yes
  6902. # This is similar to how AIX traditionally builds its shared libraries.
  6903. 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'
  6904. fi
  6905. fi
  6906. ;;
  6907. amigaos*)
  6908. case $host_cpu in
  6909. powerpc)
  6910. # see comment about AmigaOS4 .so support
  6911. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6912. archive_expsym_cmds=''
  6913. ;;
  6914. m68k)
  6915. 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)'
  6916. hardcode_libdir_flag_spec='-L$libdir'
  6917. hardcode_minus_L=yes
  6918. ;;
  6919. esac
  6920. ;;
  6921. bsdi[45]*)
  6922. export_dynamic_flag_spec=-rdynamic
  6923. ;;
  6924. cygwin* | mingw* | pw32* | cegcc*)
  6925. # When not using gcc, we currently assume that we are using
  6926. # Microsoft Visual C++.
  6927. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6928. # no search path for DLLs.
  6929. hardcode_libdir_flag_spec=' '
  6930. allow_undefined_flag=unsupported
  6931. # Tell ltmain to make .lib files, not .a files.
  6932. libext=lib
  6933. # Tell ltmain to make .dll files, not .so files.
  6934. shrext_cmds=".dll"
  6935. # FIXME: Setting linknames here is a bad hack.
  6936. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6937. # The linker will automatically build a .lib file if we build a DLL.
  6938. old_archive_from_new_cmds='true'
  6939. # FIXME: Should let the user specify the lib program.
  6940. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6941. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6942. enable_shared_with_static_runtimes=yes
  6943. ;;
  6944. darwin* | rhapsody*)
  6945. archive_cmds_need_lc=no
  6946. hardcode_direct=no
  6947. hardcode_automatic=yes
  6948. hardcode_shlibpath_var=unsupported
  6949. whole_archive_flag_spec=''
  6950. link_all_deplibs=yes
  6951. allow_undefined_flag="$_lt_dar_allow_undefined"
  6952. case $cc_basename in
  6953. ifort*) _lt_dar_can_shared=yes ;;
  6954. *) _lt_dar_can_shared=$GCC ;;
  6955. esac
  6956. if test "$_lt_dar_can_shared" = "yes"; then
  6957. output_verbose_link_cmd=echo
  6958. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  6959. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  6960. 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}"
  6961. 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}"
  6962. else
  6963. ld_shlibs=no
  6964. fi
  6965. ;;
  6966. dgux*)
  6967. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6968. hardcode_libdir_flag_spec='-L$libdir'
  6969. hardcode_shlibpath_var=no
  6970. ;;
  6971. freebsd1*)
  6972. ld_shlibs=no
  6973. ;;
  6974. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6975. # support. Future versions do this automatically, but an explicit c++rt0.o
  6976. # does not break anything, and helps significantly (at the cost of a little
  6977. # extra space).
  6978. freebsd2.2*)
  6979. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6980. hardcode_libdir_flag_spec='-R$libdir'
  6981. hardcode_direct=yes
  6982. hardcode_shlibpath_var=no
  6983. ;;
  6984. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6985. freebsd2*)
  6986. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6987. hardcode_direct=yes
  6988. hardcode_minus_L=yes
  6989. hardcode_shlibpath_var=no
  6990. ;;
  6991. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6992. freebsd* | dragonfly*)
  6993. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6994. hardcode_libdir_flag_spec='-R$libdir'
  6995. hardcode_direct=yes
  6996. hardcode_shlibpath_var=no
  6997. ;;
  6998. hpux9*)
  6999. if test "$GCC" = yes; then
  7000. 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'
  7001. else
  7002. 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'
  7003. fi
  7004. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7005. hardcode_libdir_separator=:
  7006. hardcode_direct=yes
  7007. # hardcode_minus_L: Not really in the search PATH,
  7008. # but as the default location of the library.
  7009. hardcode_minus_L=yes
  7010. export_dynamic_flag_spec='${wl}-E'
  7011. ;;
  7012. hpux10*)
  7013. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7014. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7015. else
  7016. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7017. fi
  7018. if test "$with_gnu_ld" = no; then
  7019. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7020. hardcode_libdir_flag_spec_ld='+b $libdir'
  7021. hardcode_libdir_separator=:
  7022. hardcode_direct=yes
  7023. hardcode_direct_absolute=yes
  7024. export_dynamic_flag_spec='${wl}-E'
  7025. # hardcode_minus_L: Not really in the search PATH,
  7026. # but as the default location of the library.
  7027. hardcode_minus_L=yes
  7028. fi
  7029. ;;
  7030. hpux11*)
  7031. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7032. case $host_cpu in
  7033. hppa*64*)
  7034. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7035. ;;
  7036. ia64*)
  7037. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7038. ;;
  7039. *)
  7040. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7041. ;;
  7042. esac
  7043. else
  7044. case $host_cpu in
  7045. hppa*64*)
  7046. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7047. ;;
  7048. ia64*)
  7049. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7050. ;;
  7051. *)
  7052. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7053. ;;
  7054. esac
  7055. fi
  7056. if test "$with_gnu_ld" = no; then
  7057. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7058. hardcode_libdir_separator=:
  7059. case $host_cpu in
  7060. hppa*64*|ia64*)
  7061. hardcode_direct=no
  7062. hardcode_shlibpath_var=no
  7063. ;;
  7064. *)
  7065. hardcode_direct=yes
  7066. hardcode_direct_absolute=yes
  7067. export_dynamic_flag_spec='${wl}-E'
  7068. # hardcode_minus_L: Not really in the search PATH,
  7069. # but as the default location of the library.
  7070. hardcode_minus_L=yes
  7071. ;;
  7072. esac
  7073. fi
  7074. ;;
  7075. irix5* | irix6* | nonstopux*)
  7076. if test "$GCC" = yes; then
  7077. 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'
  7078. # Try to use the -exported_symbol ld option, if it does not
  7079. # work, assume that -exports_file does not work either and
  7080. # implicitly export all symbols.
  7081. save_LDFLAGS="$LDFLAGS"
  7082. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7083. cat >conftest.$ac_ext <<_ACEOF
  7084. int foo(void) {}
  7085. _ACEOF
  7086. rm -f conftest.$ac_objext conftest$ac_exeext
  7087. if { (ac_try="$ac_link"
  7088. case "(($ac_try" in
  7089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7090. *) ac_try_echo=$ac_try;;
  7091. esac
  7092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7093. $as_echo "$ac_try_echo") >&5
  7094. (eval "$ac_link") 2>conftest.er1
  7095. ac_status=$?
  7096. grep -v '^ *+' conftest.er1 >conftest.err
  7097. rm -f conftest.er1
  7098. cat conftest.err >&5
  7099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7100. (exit $ac_status); } && {
  7101. test -z "$ac_c_werror_flag" ||
  7102. test ! -s conftest.err
  7103. } && test -s conftest$ac_exeext && {
  7104. test "$cross_compiling" = yes ||
  7105. $as_test_x conftest$ac_exeext
  7106. }; then
  7107. 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'
  7108. else
  7109. $as_echo "$as_me: failed program was:" >&5
  7110. sed 's/^/| /' conftest.$ac_ext >&5
  7111. fi
  7112. rm -rf conftest.dSYM
  7113. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7114. conftest$ac_exeext conftest.$ac_ext
  7115. LDFLAGS="$save_LDFLAGS"
  7116. else
  7117. 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'
  7118. 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'
  7119. fi
  7120. archive_cmds_need_lc='no'
  7121. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7122. hardcode_libdir_separator=:
  7123. inherit_rpath=yes
  7124. link_all_deplibs=yes
  7125. ;;
  7126. netbsd*)
  7127. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7128. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7129. else
  7130. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7131. fi
  7132. hardcode_libdir_flag_spec='-R$libdir'
  7133. hardcode_direct=yes
  7134. hardcode_shlibpath_var=no
  7135. ;;
  7136. newsos6)
  7137. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7138. hardcode_direct=yes
  7139. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7140. hardcode_libdir_separator=:
  7141. hardcode_shlibpath_var=no
  7142. ;;
  7143. *nto* | *qnx*)
  7144. ;;
  7145. openbsd*)
  7146. if test -f /usr/libexec/ld.so; then
  7147. hardcode_direct=yes
  7148. hardcode_shlibpath_var=no
  7149. hardcode_direct_absolute=yes
  7150. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7151. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7152. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7153. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7154. export_dynamic_flag_spec='${wl}-E'
  7155. else
  7156. case $host_os in
  7157. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7158. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7159. hardcode_libdir_flag_spec='-R$libdir'
  7160. ;;
  7161. *)
  7162. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7163. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7164. ;;
  7165. esac
  7166. fi
  7167. else
  7168. ld_shlibs=no
  7169. fi
  7170. ;;
  7171. os2*)
  7172. hardcode_libdir_flag_spec='-L$libdir'
  7173. hardcode_minus_L=yes
  7174. allow_undefined_flag=unsupported
  7175. 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'
  7176. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7177. ;;
  7178. osf3*)
  7179. if test "$GCC" = yes; then
  7180. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7181. 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'
  7182. else
  7183. allow_undefined_flag=' -expect_unresolved \*'
  7184. 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'
  7185. fi
  7186. archive_cmds_need_lc='no'
  7187. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7188. hardcode_libdir_separator=:
  7189. ;;
  7190. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7191. if test "$GCC" = yes; then
  7192. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7193. 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'
  7194. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7195. else
  7196. allow_undefined_flag=' -expect_unresolved \*'
  7197. 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'
  7198. 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~
  7199. $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'
  7200. # Both c and cxx compiler support -rpath directly
  7201. hardcode_libdir_flag_spec='-rpath $libdir'
  7202. fi
  7203. archive_cmds_need_lc='no'
  7204. hardcode_libdir_separator=:
  7205. ;;
  7206. solaris*)
  7207. no_undefined_flag=' -z defs'
  7208. if test "$GCC" = yes; then
  7209. wlarc='${wl}'
  7210. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7211. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7212. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7213. else
  7214. case `$CC -V 2>&1` in
  7215. *"Compilers 5.0"*)
  7216. wlarc=''
  7217. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7218. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7219. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7220. ;;
  7221. *)
  7222. wlarc='${wl}'
  7223. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7224. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7225. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7226. ;;
  7227. esac
  7228. fi
  7229. hardcode_libdir_flag_spec='-R$libdir'
  7230. hardcode_shlibpath_var=no
  7231. case $host_os in
  7232. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7233. *)
  7234. # The compiler driver will combine and reorder linker options,
  7235. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7236. # but is careful enough not to reorder.
  7237. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7238. if test "$GCC" = yes; then
  7239. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7240. else
  7241. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7242. fi
  7243. ;;
  7244. esac
  7245. link_all_deplibs=yes
  7246. ;;
  7247. sunos4*)
  7248. if test "x$host_vendor" = xsequent; then
  7249. # Use $CC to link under sequent, because it throws in some extra .o
  7250. # files that make .init and .fini sections work.
  7251. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7252. else
  7253. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7254. fi
  7255. hardcode_libdir_flag_spec='-L$libdir'
  7256. hardcode_direct=yes
  7257. hardcode_minus_L=yes
  7258. hardcode_shlibpath_var=no
  7259. ;;
  7260. sysv4)
  7261. case $host_vendor in
  7262. sni)
  7263. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7264. hardcode_direct=yes # is this really true???
  7265. ;;
  7266. siemens)
  7267. ## LD is ld it makes a PLAMLIB
  7268. ## CC just makes a GrossModule.
  7269. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7270. reload_cmds='$CC -r -o $output$reload_objs'
  7271. hardcode_direct=no
  7272. ;;
  7273. motorola)
  7274. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7275. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7276. ;;
  7277. esac
  7278. runpath_var='LD_RUN_PATH'
  7279. hardcode_shlibpath_var=no
  7280. ;;
  7281. sysv4.3*)
  7282. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7283. hardcode_shlibpath_var=no
  7284. export_dynamic_flag_spec='-Bexport'
  7285. ;;
  7286. sysv4*MP*)
  7287. if test -d /usr/nec; then
  7288. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7289. hardcode_shlibpath_var=no
  7290. runpath_var=LD_RUN_PATH
  7291. hardcode_runpath_var=yes
  7292. ld_shlibs=yes
  7293. fi
  7294. ;;
  7295. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7296. no_undefined_flag='${wl}-z,text'
  7297. archive_cmds_need_lc=no
  7298. hardcode_shlibpath_var=no
  7299. runpath_var='LD_RUN_PATH'
  7300. if test "$GCC" = yes; then
  7301. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7302. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7303. else
  7304. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7305. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7306. fi
  7307. ;;
  7308. sysv5* | sco3.2v5* | sco5v6*)
  7309. # Note: We can NOT use -z defs as we might desire, because we do not
  7310. # link with -lc, and that would cause any symbols used from libc to
  7311. # always be unresolved, which means just about no library would
  7312. # ever link correctly. If we're not using GNU ld we use -z text
  7313. # though, which does catch some bad symbols but isn't as heavy-handed
  7314. # as -z defs.
  7315. no_undefined_flag='${wl}-z,text'
  7316. allow_undefined_flag='${wl}-z,nodefs'
  7317. archive_cmds_need_lc=no
  7318. hardcode_shlibpath_var=no
  7319. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7320. hardcode_libdir_separator=':'
  7321. link_all_deplibs=yes
  7322. export_dynamic_flag_spec='${wl}-Bexport'
  7323. runpath_var='LD_RUN_PATH'
  7324. if test "$GCC" = yes; then
  7325. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7326. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7327. else
  7328. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7329. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7330. fi
  7331. ;;
  7332. uts4*)
  7333. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7334. hardcode_libdir_flag_spec='-L$libdir'
  7335. hardcode_shlibpath_var=no
  7336. ;;
  7337. *)
  7338. ld_shlibs=no
  7339. ;;
  7340. esac
  7341. if test x$host_vendor = xsni; then
  7342. case $host in
  7343. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7344. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7345. ;;
  7346. esac
  7347. fi
  7348. fi
  7349. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7350. $as_echo "$ld_shlibs" >&6; }
  7351. test "$ld_shlibs" = no && can_build_shared=no
  7352. with_gnu_ld=$with_gnu_ld
  7353. #
  7354. # Do we need to explicitly link libc?
  7355. #
  7356. case "x$archive_cmds_need_lc" in
  7357. x|xyes)
  7358. # Assume -lc should be added
  7359. archive_cmds_need_lc=yes
  7360. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7361. case $archive_cmds in
  7362. *'~'*)
  7363. # FIXME: we may have to deal with multi-command sequences.
  7364. ;;
  7365. '$CC '*)
  7366. # Test whether the compiler implicitly links with -lc since on some
  7367. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7368. # to ld, don't add -lc before -lgcc.
  7369. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7370. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7371. $RM conftest*
  7372. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7373. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7374. (eval $ac_compile) 2>&5
  7375. ac_status=$?
  7376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7377. (exit $ac_status); } 2>conftest.err; then
  7378. soname=conftest
  7379. lib=conftest
  7380. libobjs=conftest.$ac_objext
  7381. deplibs=
  7382. wl=$lt_prog_compiler_wl
  7383. pic_flag=$lt_prog_compiler_pic
  7384. compiler_flags=-v
  7385. linker_flags=-v
  7386. verstring=
  7387. output_objdir=.
  7388. libname=conftest
  7389. lt_save_allow_undefined_flag=$allow_undefined_flag
  7390. allow_undefined_flag=
  7391. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7392. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7393. ac_status=$?
  7394. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7395. (exit $ac_status); }
  7396. then
  7397. archive_cmds_need_lc=no
  7398. else
  7399. archive_cmds_need_lc=yes
  7400. fi
  7401. allow_undefined_flag=$lt_save_allow_undefined_flag
  7402. else
  7403. cat conftest.err 1>&5
  7404. fi
  7405. $RM conftest*
  7406. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7407. $as_echo "$archive_cmds_need_lc" >&6; }
  7408. ;;
  7409. esac
  7410. fi
  7411. ;;
  7412. esac
  7413. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7414. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7415. if test "$GCC" = yes; then
  7416. case $host_os in
  7417. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7418. *) lt_awk_arg="/^libraries:/" ;;
  7419. esac
  7420. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7421. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7422. # if the path contains ";" then we assume it to be the separator
  7423. # otherwise default to the standard path separator (i.e. ":") - it is
  7424. # assumed that no part of a normal pathname contains ";" but that should
  7425. # okay in the real world where ";" in dirpaths is itself problematic.
  7426. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7427. else
  7428. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7429. fi
  7430. # Ok, now we have the path, separated by spaces, we can step through it
  7431. # and add multilib dir if necessary.
  7432. lt_tmp_lt_search_path_spec=
  7433. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7434. for lt_sys_path in $lt_search_path_spec; do
  7435. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7436. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7437. else
  7438. test -d "$lt_sys_path" && \
  7439. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7440. fi
  7441. done
  7442. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7443. BEGIN {RS=" "; FS="/|\n";} {
  7444. lt_foo="";
  7445. lt_count=0;
  7446. for (lt_i = NF; lt_i > 0; lt_i--) {
  7447. if ($lt_i != "" && $lt_i != ".") {
  7448. if ($lt_i == "..") {
  7449. lt_count++;
  7450. } else {
  7451. if (lt_count == 0) {
  7452. lt_foo="/" $lt_i lt_foo;
  7453. } else {
  7454. lt_count--;
  7455. }
  7456. }
  7457. }
  7458. }
  7459. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7460. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7461. }'`
  7462. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7463. else
  7464. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7465. fi
  7466. library_names_spec=
  7467. libname_spec='lib$name'
  7468. soname_spec=
  7469. shrext_cmds=".so"
  7470. postinstall_cmds=
  7471. postuninstall_cmds=
  7472. finish_cmds=
  7473. finish_eval=
  7474. shlibpath_var=
  7475. shlibpath_overrides_runpath=unknown
  7476. version_type=none
  7477. dynamic_linker="$host_os ld.so"
  7478. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7479. need_lib_prefix=unknown
  7480. hardcode_into_libs=no
  7481. # when you set need_version to no, make sure it does not cause -set_version
  7482. # flags to be left without arguments
  7483. need_version=unknown
  7484. case $host_os in
  7485. aix3*)
  7486. version_type=linux
  7487. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7488. shlibpath_var=LIBPATH
  7489. # AIX 3 has no versioning support, so we append a major version to the name.
  7490. soname_spec='${libname}${release}${shared_ext}$major'
  7491. ;;
  7492. aix[4-9]*)
  7493. version_type=linux
  7494. need_lib_prefix=no
  7495. need_version=no
  7496. hardcode_into_libs=yes
  7497. if test "$host_cpu" = ia64; then
  7498. # AIX 5 supports IA64
  7499. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7500. shlibpath_var=LD_LIBRARY_PATH
  7501. else
  7502. # With GCC up to 2.95.x, collect2 would create an import file
  7503. # for dependence libraries. The import file would start with
  7504. # the line `#! .'. This would cause the generated library to
  7505. # depend on `.', always an invalid library. This was fixed in
  7506. # development snapshots of GCC prior to 3.0.
  7507. case $host_os in
  7508. aix4 | aix4.[01] | aix4.[01].*)
  7509. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7510. echo ' yes '
  7511. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  7512. :
  7513. else
  7514. can_build_shared=no
  7515. fi
  7516. ;;
  7517. esac
  7518. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7519. # soname into executable. Probably we can add versioning support to
  7520. # collect2, so additional links can be useful in future.
  7521. if test "$aix_use_runtimelinking" = yes; then
  7522. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7523. # instead of lib<name>.a to let people know that these are not
  7524. # typical AIX shared libraries.
  7525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7526. else
  7527. # We preserve .a as extension for shared libraries through AIX4.2
  7528. # and later when we are not doing run time linking.
  7529. library_names_spec='${libname}${release}.a $libname.a'
  7530. soname_spec='${libname}${release}${shared_ext}$major'
  7531. fi
  7532. shlibpath_var=LIBPATH
  7533. fi
  7534. ;;
  7535. amigaos*)
  7536. case $host_cpu in
  7537. powerpc)
  7538. # Since July 2007 AmigaOS4 officially supports .so libraries.
  7539. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  7540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7541. ;;
  7542. m68k)
  7543. library_names_spec='$libname.ixlibrary $libname.a'
  7544. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7545. 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'
  7546. ;;
  7547. esac
  7548. ;;
  7549. beos*)
  7550. library_names_spec='${libname}${shared_ext}'
  7551. dynamic_linker="$host_os ld.so"
  7552. shlibpath_var=LIBRARY_PATH
  7553. ;;
  7554. bsdi[45]*)
  7555. version_type=linux
  7556. need_version=no
  7557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7558. soname_spec='${libname}${release}${shared_ext}$major'
  7559. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7560. shlibpath_var=LD_LIBRARY_PATH
  7561. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7562. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7563. # the default ld.so.conf also contains /usr/contrib/lib and
  7564. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7565. # libtool to hard-code these into programs
  7566. ;;
  7567. cygwin* | mingw* | pw32* | cegcc*)
  7568. version_type=windows
  7569. shrext_cmds=".dll"
  7570. need_version=no
  7571. need_lib_prefix=no
  7572. case $GCC,$host_os in
  7573. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  7574. library_names_spec='$libname.dll.a'
  7575. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7576. postinstall_cmds='base_file=`basename \${file}`~
  7577. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  7578. dldir=$destdir/`dirname \$dlpath`~
  7579. test -d \$dldir || mkdir -p \$dldir~
  7580. $install_prog $dir/$dlname \$dldir/$dlname~
  7581. chmod a+x \$dldir/$dlname~
  7582. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  7583. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  7584. fi'
  7585. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7586. dlpath=$dir/\$dldll~
  7587. $RM \$dlpath'
  7588. shlibpath_overrides_runpath=yes
  7589. case $host_os in
  7590. cygwin*)
  7591. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7592. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7593. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7594. ;;
  7595. mingw* | cegcc*)
  7596. # MinGW DLLs use traditional 'lib' prefix
  7597. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7598. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7599. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  7600. # It is most probably a Windows format PATH printed by
  7601. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7602. # path with ; separators, and with drive letters. We can handle the
  7603. # drive letters (cygwin fileutils understands them), so leave them,
  7604. # especially as we might pass files found there to a mingw objdump,
  7605. # which wouldn't understand a cygwinified path. Ahh.
  7606. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7607. else
  7608. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7609. fi
  7610. ;;
  7611. pw32*)
  7612. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7613. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7614. ;;
  7615. esac
  7616. ;;
  7617. *)
  7618. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7619. ;;
  7620. esac
  7621. dynamic_linker='Win32 ld.exe'
  7622. # FIXME: first we should search . and the directory the executable is in
  7623. shlibpath_var=PATH
  7624. ;;
  7625. darwin* | rhapsody*)
  7626. dynamic_linker="$host_os dyld"
  7627. version_type=darwin
  7628. need_lib_prefix=no
  7629. need_version=no
  7630. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7631. soname_spec='${libname}${release}${major}$shared_ext'
  7632. shlibpath_overrides_runpath=yes
  7633. shlibpath_var=DYLD_LIBRARY_PATH
  7634. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7635. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7636. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7637. ;;
  7638. dgux*)
  7639. version_type=linux
  7640. need_lib_prefix=no
  7641. need_version=no
  7642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7643. soname_spec='${libname}${release}${shared_ext}$major'
  7644. shlibpath_var=LD_LIBRARY_PATH
  7645. ;;
  7646. freebsd1*)
  7647. dynamic_linker=no
  7648. ;;
  7649. freebsd* | dragonfly*)
  7650. # DragonFly does not have aout. When/if they implement a new
  7651. # versioning mechanism, adjust this.
  7652. if test -x /usr/bin/objformat; then
  7653. objformat=`/usr/bin/objformat`
  7654. else
  7655. case $host_os in
  7656. freebsd[123]*) objformat=aout ;;
  7657. *) objformat=elf ;;
  7658. esac
  7659. fi
  7660. # Handle Gentoo/FreeBSD as it was Linux
  7661. case $host_vendor in
  7662. gentoo)
  7663. version_type=linux ;;
  7664. *)
  7665. version_type=freebsd-$objformat ;;
  7666. esac
  7667. case $version_type in
  7668. freebsd-elf*)
  7669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7670. need_version=no
  7671. need_lib_prefix=no
  7672. ;;
  7673. freebsd-*)
  7674. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7675. need_version=yes
  7676. ;;
  7677. linux)
  7678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7679. soname_spec='${libname}${release}${shared_ext}$major'
  7680. need_lib_prefix=no
  7681. need_version=no
  7682. ;;
  7683. esac
  7684. shlibpath_var=LD_LIBRARY_PATH
  7685. case $host_os in
  7686. freebsd2*)
  7687. shlibpath_overrides_runpath=yes
  7688. ;;
  7689. freebsd3.[01]* | freebsdelf3.[01]*)
  7690. shlibpath_overrides_runpath=yes
  7691. hardcode_into_libs=yes
  7692. ;;
  7693. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7694. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7695. shlibpath_overrides_runpath=no
  7696. hardcode_into_libs=yes
  7697. ;;
  7698. *) # from 4.6 on, and DragonFly
  7699. shlibpath_overrides_runpath=yes
  7700. hardcode_into_libs=yes
  7701. ;;
  7702. esac
  7703. ;;
  7704. gnu*)
  7705. version_type=linux
  7706. need_lib_prefix=no
  7707. need_version=no
  7708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7709. soname_spec='${libname}${release}${shared_ext}$major'
  7710. shlibpath_var=LD_LIBRARY_PATH
  7711. hardcode_into_libs=yes
  7712. ;;
  7713. hpux9* | hpux10* | hpux11*)
  7714. # Give a soname corresponding to the major version so that dld.sl refuses to
  7715. # link against other versions.
  7716. version_type=sunos
  7717. need_lib_prefix=no
  7718. need_version=no
  7719. case $host_cpu in
  7720. ia64*)
  7721. shrext_cmds='.so'
  7722. hardcode_into_libs=yes
  7723. dynamic_linker="$host_os dld.so"
  7724. shlibpath_var=LD_LIBRARY_PATH
  7725. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7727. soname_spec='${libname}${release}${shared_ext}$major'
  7728. if test "X$HPUX_IA64_MODE" = X32; then
  7729. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7730. else
  7731. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7732. fi
  7733. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7734. ;;
  7735. hppa*64*)
  7736. shrext_cmds='.sl'
  7737. hardcode_into_libs=yes
  7738. dynamic_linker="$host_os dld.sl"
  7739. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7740. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7742. soname_spec='${libname}${release}${shared_ext}$major'
  7743. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7744. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7745. ;;
  7746. *)
  7747. shrext_cmds='.sl'
  7748. dynamic_linker="$host_os dld.sl"
  7749. shlibpath_var=SHLIB_PATH
  7750. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7752. soname_spec='${libname}${release}${shared_ext}$major'
  7753. ;;
  7754. esac
  7755. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7756. postinstall_cmds='chmod 555 $lib'
  7757. ;;
  7758. interix[3-9]*)
  7759. version_type=linux
  7760. need_lib_prefix=no
  7761. need_version=no
  7762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7763. soname_spec='${libname}${release}${shared_ext}$major'
  7764. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7765. shlibpath_var=LD_LIBRARY_PATH
  7766. shlibpath_overrides_runpath=no
  7767. hardcode_into_libs=yes
  7768. ;;
  7769. irix5* | irix6* | nonstopux*)
  7770. case $host_os in
  7771. nonstopux*) version_type=nonstopux ;;
  7772. *)
  7773. if test "$lt_cv_prog_gnu_ld" = yes; then
  7774. version_type=linux
  7775. else
  7776. version_type=irix
  7777. fi ;;
  7778. esac
  7779. need_lib_prefix=no
  7780. need_version=no
  7781. soname_spec='${libname}${release}${shared_ext}$major'
  7782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7783. case $host_os in
  7784. irix5* | nonstopux*)
  7785. libsuff= shlibsuff=
  7786. ;;
  7787. *)
  7788. case $LD in # libtool.m4 will add one of these switches to LD
  7789. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7790. libsuff= shlibsuff= libmagic=32-bit;;
  7791. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7792. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7793. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7794. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7795. *) libsuff= shlibsuff= libmagic=never-match;;
  7796. esac
  7797. ;;
  7798. esac
  7799. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7800. shlibpath_overrides_runpath=no
  7801. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7802. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7803. hardcode_into_libs=yes
  7804. ;;
  7805. # No shared lib support for Linux oldld, aout, or coff.
  7806. linux*oldld* | linux*aout* | linux*coff*)
  7807. dynamic_linker=no
  7808. ;;
  7809. # This must be Linux ELF.
  7810. linux* | k*bsd*-gnu)
  7811. version_type=linux
  7812. need_lib_prefix=no
  7813. need_version=no
  7814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7815. soname_spec='${libname}${release}${shared_ext}$major'
  7816. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7817. shlibpath_var=LD_LIBRARY_PATH
  7818. shlibpath_overrides_runpath=no
  7819. # Some binutils ld are patched to set DT_RUNPATH
  7820. save_LDFLAGS=$LDFLAGS
  7821. save_libdir=$libdir
  7822. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  7823. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  7824. cat >conftest.$ac_ext <<_ACEOF
  7825. /* confdefs.h. */
  7826. _ACEOF
  7827. cat confdefs.h >>conftest.$ac_ext
  7828. cat >>conftest.$ac_ext <<_ACEOF
  7829. /* end confdefs.h. */
  7830. int
  7831. main ()
  7832. {
  7833. ;
  7834. return 0;
  7835. }
  7836. _ACEOF
  7837. rm -f conftest.$ac_objext conftest$ac_exeext
  7838. if { (ac_try="$ac_link"
  7839. case "(($ac_try" in
  7840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7841. *) ac_try_echo=$ac_try;;
  7842. esac
  7843. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7844. $as_echo "$ac_try_echo") >&5
  7845. (eval "$ac_link") 2>conftest.er1
  7846. ac_status=$?
  7847. grep -v '^ *+' conftest.er1 >conftest.err
  7848. rm -f conftest.er1
  7849. cat conftest.err >&5
  7850. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7851. (exit $ac_status); } && {
  7852. test -z "$ac_c_werror_flag" ||
  7853. test ! -s conftest.err
  7854. } && test -s conftest$ac_exeext && {
  7855. test "$cross_compiling" = yes ||
  7856. $as_test_x conftest$ac_exeext
  7857. }; then
  7858. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  7859. shlibpath_overrides_runpath=yes
  7860. fi
  7861. else
  7862. $as_echo "$as_me: failed program was:" >&5
  7863. sed 's/^/| /' conftest.$ac_ext >&5
  7864. fi
  7865. rm -rf conftest.dSYM
  7866. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7867. conftest$ac_exeext conftest.$ac_ext
  7868. LDFLAGS=$save_LDFLAGS
  7869. libdir=$save_libdir
  7870. # This implies no fast_install, which is unacceptable.
  7871. # Some rework will be needed to allow for fast_install
  7872. # before this can be enabled.
  7873. hardcode_into_libs=yes
  7874. # Append ld.so.conf contents to the search path
  7875. if test -f /etc/ld.so.conf; then
  7876. 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' ' '`
  7877. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7878. fi
  7879. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7880. # powerpc, because MkLinux only supported shared libraries with the
  7881. # GNU dynamic linker. Since this was broken with cross compilers,
  7882. # most powerpc-linux boxes support dynamic linking these days and
  7883. # people can always --disable-shared, the test was removed, and we
  7884. # assume the GNU/Linux dynamic linker is in use.
  7885. dynamic_linker='GNU/Linux ld.so'
  7886. ;;
  7887. netbsd*)
  7888. version_type=sunos
  7889. need_lib_prefix=no
  7890. need_version=no
  7891. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7893. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7894. dynamic_linker='NetBSD (a.out) ld.so'
  7895. else
  7896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7897. soname_spec='${libname}${release}${shared_ext}$major'
  7898. dynamic_linker='NetBSD ld.elf_so'
  7899. fi
  7900. shlibpath_var=LD_LIBRARY_PATH
  7901. shlibpath_overrides_runpath=yes
  7902. hardcode_into_libs=yes
  7903. ;;
  7904. newsos6)
  7905. version_type=linux
  7906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7907. shlibpath_var=LD_LIBRARY_PATH
  7908. shlibpath_overrides_runpath=yes
  7909. ;;
  7910. *nto* | *qnx*)
  7911. version_type=qnx
  7912. need_lib_prefix=no
  7913. need_version=no
  7914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7915. soname_spec='${libname}${release}${shared_ext}$major'
  7916. shlibpath_var=LD_LIBRARY_PATH
  7917. shlibpath_overrides_runpath=no
  7918. hardcode_into_libs=yes
  7919. dynamic_linker='ldqnx.so'
  7920. ;;
  7921. openbsd*)
  7922. version_type=sunos
  7923. sys_lib_dlsearch_path_spec="/usr/lib"
  7924. need_lib_prefix=no
  7925. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7926. case $host_os in
  7927. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7928. *) need_version=no ;;
  7929. esac
  7930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7931. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7932. shlibpath_var=LD_LIBRARY_PATH
  7933. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7934. case $host_os in
  7935. openbsd2.[89] | openbsd2.[89].*)
  7936. shlibpath_overrides_runpath=no
  7937. ;;
  7938. *)
  7939. shlibpath_overrides_runpath=yes
  7940. ;;
  7941. esac
  7942. else
  7943. shlibpath_overrides_runpath=yes
  7944. fi
  7945. ;;
  7946. os2*)
  7947. libname_spec='$name'
  7948. shrext_cmds=".dll"
  7949. need_lib_prefix=no
  7950. library_names_spec='$libname${shared_ext} $libname.a'
  7951. dynamic_linker='OS/2 ld.exe'
  7952. shlibpath_var=LIBPATH
  7953. ;;
  7954. osf3* | osf4* | osf5*)
  7955. version_type=osf
  7956. need_lib_prefix=no
  7957. need_version=no
  7958. soname_spec='${libname}${release}${shared_ext}$major'
  7959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7960. shlibpath_var=LD_LIBRARY_PATH
  7961. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7962. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7963. ;;
  7964. rdos*)
  7965. dynamic_linker=no
  7966. ;;
  7967. solaris*)
  7968. version_type=linux
  7969. need_lib_prefix=no
  7970. need_version=no
  7971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7972. soname_spec='${libname}${release}${shared_ext}$major'
  7973. shlibpath_var=LD_LIBRARY_PATH
  7974. shlibpath_overrides_runpath=yes
  7975. hardcode_into_libs=yes
  7976. # ldd complains unless libraries are executable
  7977. postinstall_cmds='chmod +x $lib'
  7978. ;;
  7979. sunos4*)
  7980. version_type=sunos
  7981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7982. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7983. shlibpath_var=LD_LIBRARY_PATH
  7984. shlibpath_overrides_runpath=yes
  7985. if test "$with_gnu_ld" = yes; then
  7986. need_lib_prefix=no
  7987. fi
  7988. need_version=yes
  7989. ;;
  7990. sysv4 | sysv4.3*)
  7991. version_type=linux
  7992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7993. soname_spec='${libname}${release}${shared_ext}$major'
  7994. shlibpath_var=LD_LIBRARY_PATH
  7995. case $host_vendor in
  7996. sni)
  7997. shlibpath_overrides_runpath=no
  7998. need_lib_prefix=no
  7999. runpath_var=LD_RUN_PATH
  8000. ;;
  8001. siemens)
  8002. need_lib_prefix=no
  8003. ;;
  8004. motorola)
  8005. need_lib_prefix=no
  8006. need_version=no
  8007. shlibpath_overrides_runpath=no
  8008. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8009. ;;
  8010. esac
  8011. ;;
  8012. sysv4*MP*)
  8013. if test -d /usr/nec ;then
  8014. version_type=linux
  8015. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8016. soname_spec='$libname${shared_ext}.$major'
  8017. shlibpath_var=LD_LIBRARY_PATH
  8018. fi
  8019. ;;
  8020. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8021. version_type=freebsd-elf
  8022. need_lib_prefix=no
  8023. need_version=no
  8024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8025. soname_spec='${libname}${release}${shared_ext}$major'
  8026. shlibpath_var=LD_LIBRARY_PATH
  8027. shlibpath_overrides_runpath=yes
  8028. hardcode_into_libs=yes
  8029. if test "$with_gnu_ld" = yes; then
  8030. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8031. else
  8032. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8033. case $host_os in
  8034. sco3.2v5*)
  8035. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8036. ;;
  8037. esac
  8038. fi
  8039. sys_lib_dlsearch_path_spec='/usr/lib'
  8040. ;;
  8041. tpf*)
  8042. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8043. version_type=linux
  8044. need_lib_prefix=no
  8045. need_version=no
  8046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8047. shlibpath_var=LD_LIBRARY_PATH
  8048. shlibpath_overrides_runpath=no
  8049. hardcode_into_libs=yes
  8050. ;;
  8051. uts4*)
  8052. version_type=linux
  8053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8054. soname_spec='${libname}${release}${shared_ext}$major'
  8055. shlibpath_var=LD_LIBRARY_PATH
  8056. ;;
  8057. *)
  8058. dynamic_linker=no
  8059. ;;
  8060. esac
  8061. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8062. $as_echo "$dynamic_linker" >&6; }
  8063. test "$dynamic_linker" = no && can_build_shared=no
  8064. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8065. if test "$GCC" = yes; then
  8066. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8067. fi
  8068. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8069. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8070. fi
  8071. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8072. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8073. fi
  8074. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8075. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8076. hardcode_action=
  8077. if test -n "$hardcode_libdir_flag_spec" ||
  8078. test -n "$runpath_var" ||
  8079. test "X$hardcode_automatic" = "Xyes" ; then
  8080. # We can hardcode non-existent directories.
  8081. if test "$hardcode_direct" != no &&
  8082. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8083. # have to relink, otherwise we might link with an installed library
  8084. # when we should be linking with a yet-to-be-installed one
  8085. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8086. test "$hardcode_minus_L" != no; then
  8087. # Linking always hardcodes the temporary library directory.
  8088. hardcode_action=relink
  8089. else
  8090. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8091. hardcode_action=immediate
  8092. fi
  8093. else
  8094. # We cannot hardcode anything, or else we can only hardcode existing
  8095. # directories.
  8096. hardcode_action=unsupported
  8097. fi
  8098. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8099. $as_echo "$hardcode_action" >&6; }
  8100. if test "$hardcode_action" = relink ||
  8101. test "$inherit_rpath" = yes; then
  8102. # Fast installation is not supported
  8103. enable_fast_install=no
  8104. elif test "$shlibpath_overrides_runpath" = yes ||
  8105. test "$enable_shared" = no; then
  8106. # Fast installation is not necessary
  8107. enable_fast_install=needless
  8108. fi
  8109. if test "x$enable_dlopen" != xyes; then
  8110. enable_dlopen=unknown
  8111. enable_dlopen_self=unknown
  8112. enable_dlopen_self_static=unknown
  8113. else
  8114. lt_cv_dlopen=no
  8115. lt_cv_dlopen_libs=
  8116. case $host_os in
  8117. beos*)
  8118. lt_cv_dlopen="load_add_on"
  8119. lt_cv_dlopen_libs=
  8120. lt_cv_dlopen_self=yes
  8121. ;;
  8122. mingw* | pw32* | cegcc*)
  8123. lt_cv_dlopen="LoadLibrary"
  8124. lt_cv_dlopen_libs=
  8125. ;;
  8126. cygwin*)
  8127. lt_cv_dlopen="dlopen"
  8128. lt_cv_dlopen_libs=
  8129. ;;
  8130. darwin*)
  8131. # if libdl is installed we need to link against it
  8132. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8133. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8134. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8135. $as_echo_n "(cached) " >&6
  8136. else
  8137. ac_check_lib_save_LIBS=$LIBS
  8138. LIBS="-ldl $LIBS"
  8139. cat >conftest.$ac_ext <<_ACEOF
  8140. /* confdefs.h. */
  8141. _ACEOF
  8142. cat confdefs.h >>conftest.$ac_ext
  8143. cat >>conftest.$ac_ext <<_ACEOF
  8144. /* end confdefs.h. */
  8145. /* Override any GCC internal prototype to avoid an error.
  8146. Use char because int might match the return type of a GCC
  8147. builtin and then its argument prototype would still apply. */
  8148. #ifdef __cplusplus
  8149. extern "C"
  8150. #endif
  8151. char dlopen ();
  8152. int
  8153. main ()
  8154. {
  8155. return dlopen ();
  8156. ;
  8157. return 0;
  8158. }
  8159. _ACEOF
  8160. rm -f conftest.$ac_objext conftest$ac_exeext
  8161. if { (ac_try="$ac_link"
  8162. case "(($ac_try" in
  8163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8164. *) ac_try_echo=$ac_try;;
  8165. esac
  8166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8167. $as_echo "$ac_try_echo") >&5
  8168. (eval "$ac_link") 2>conftest.er1
  8169. ac_status=$?
  8170. grep -v '^ *+' conftest.er1 >conftest.err
  8171. rm -f conftest.er1
  8172. cat conftest.err >&5
  8173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8174. (exit $ac_status); } && {
  8175. test -z "$ac_c_werror_flag" ||
  8176. test ! -s conftest.err
  8177. } && test -s conftest$ac_exeext && {
  8178. test "$cross_compiling" = yes ||
  8179. $as_test_x conftest$ac_exeext
  8180. }; then
  8181. ac_cv_lib_dl_dlopen=yes
  8182. else
  8183. $as_echo "$as_me: failed program was:" >&5
  8184. sed 's/^/| /' conftest.$ac_ext >&5
  8185. ac_cv_lib_dl_dlopen=no
  8186. fi
  8187. rm -rf conftest.dSYM
  8188. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8189. conftest$ac_exeext conftest.$ac_ext
  8190. LIBS=$ac_check_lib_save_LIBS
  8191. fi
  8192. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8193. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8194. if test $ac_cv_lib_dl_dlopen = yes; then
  8195. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8196. else
  8197. lt_cv_dlopen="dyld"
  8198. lt_cv_dlopen_libs=
  8199. lt_cv_dlopen_self=yes
  8200. fi
  8201. ;;
  8202. *)
  8203. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  8204. $as_echo_n "checking for shl_load... " >&6; }
  8205. if test "${ac_cv_func_shl_load+set}" = set; then
  8206. $as_echo_n "(cached) " >&6
  8207. else
  8208. cat >conftest.$ac_ext <<_ACEOF
  8209. /* confdefs.h. */
  8210. _ACEOF
  8211. cat confdefs.h >>conftest.$ac_ext
  8212. cat >>conftest.$ac_ext <<_ACEOF
  8213. /* end confdefs.h. */
  8214. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8215. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8216. #define shl_load innocuous_shl_load
  8217. /* System header to define __stub macros and hopefully few prototypes,
  8218. which can conflict with char shl_load (); below.
  8219. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8220. <limits.h> exists even on freestanding compilers. */
  8221. #ifdef __STDC__
  8222. # include <limits.h>
  8223. #else
  8224. # include <assert.h>
  8225. #endif
  8226. #undef shl_load
  8227. /* Override any GCC internal prototype to avoid an error.
  8228. Use char because int might match the return type of a GCC
  8229. builtin and then its argument prototype would still apply. */
  8230. #ifdef __cplusplus
  8231. extern "C"
  8232. #endif
  8233. char shl_load ();
  8234. /* The GNU C library defines this for functions which it implements
  8235. to always fail with ENOSYS. Some functions are actually named
  8236. something starting with __ and the normal name is an alias. */
  8237. #if defined __stub_shl_load || defined __stub___shl_load
  8238. choke me
  8239. #endif
  8240. int
  8241. main ()
  8242. {
  8243. return shl_load ();
  8244. ;
  8245. return 0;
  8246. }
  8247. _ACEOF
  8248. rm -f conftest.$ac_objext conftest$ac_exeext
  8249. if { (ac_try="$ac_link"
  8250. case "(($ac_try" in
  8251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8252. *) ac_try_echo=$ac_try;;
  8253. esac
  8254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8255. $as_echo "$ac_try_echo") >&5
  8256. (eval "$ac_link") 2>conftest.er1
  8257. ac_status=$?
  8258. grep -v '^ *+' conftest.er1 >conftest.err
  8259. rm -f conftest.er1
  8260. cat conftest.err >&5
  8261. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8262. (exit $ac_status); } && {
  8263. test -z "$ac_c_werror_flag" ||
  8264. test ! -s conftest.err
  8265. } && test -s conftest$ac_exeext && {
  8266. test "$cross_compiling" = yes ||
  8267. $as_test_x conftest$ac_exeext
  8268. }; then
  8269. ac_cv_func_shl_load=yes
  8270. else
  8271. $as_echo "$as_me: failed program was:" >&5
  8272. sed 's/^/| /' conftest.$ac_ext >&5
  8273. ac_cv_func_shl_load=no
  8274. fi
  8275. rm -rf conftest.dSYM
  8276. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8277. conftest$ac_exeext conftest.$ac_ext
  8278. fi
  8279. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8280. $as_echo "$ac_cv_func_shl_load" >&6; }
  8281. if test $ac_cv_func_shl_load = yes; then
  8282. lt_cv_dlopen="shl_load"
  8283. else
  8284. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8285. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8286. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8287. $as_echo_n "(cached) " >&6
  8288. else
  8289. ac_check_lib_save_LIBS=$LIBS
  8290. LIBS="-ldld $LIBS"
  8291. cat >conftest.$ac_ext <<_ACEOF
  8292. /* confdefs.h. */
  8293. _ACEOF
  8294. cat confdefs.h >>conftest.$ac_ext
  8295. cat >>conftest.$ac_ext <<_ACEOF
  8296. /* end confdefs.h. */
  8297. /* Override any GCC internal prototype to avoid an error.
  8298. Use char because int might match the return type of a GCC
  8299. builtin and then its argument prototype would still apply. */
  8300. #ifdef __cplusplus
  8301. extern "C"
  8302. #endif
  8303. char shl_load ();
  8304. int
  8305. main ()
  8306. {
  8307. return shl_load ();
  8308. ;
  8309. return 0;
  8310. }
  8311. _ACEOF
  8312. rm -f conftest.$ac_objext conftest$ac_exeext
  8313. if { (ac_try="$ac_link"
  8314. case "(($ac_try" in
  8315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8316. *) ac_try_echo=$ac_try;;
  8317. esac
  8318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8319. $as_echo "$ac_try_echo") >&5
  8320. (eval "$ac_link") 2>conftest.er1
  8321. ac_status=$?
  8322. grep -v '^ *+' conftest.er1 >conftest.err
  8323. rm -f conftest.er1
  8324. cat conftest.err >&5
  8325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8326. (exit $ac_status); } && {
  8327. test -z "$ac_c_werror_flag" ||
  8328. test ! -s conftest.err
  8329. } && test -s conftest$ac_exeext && {
  8330. test "$cross_compiling" = yes ||
  8331. $as_test_x conftest$ac_exeext
  8332. }; then
  8333. ac_cv_lib_dld_shl_load=yes
  8334. else
  8335. $as_echo "$as_me: failed program was:" >&5
  8336. sed 's/^/| /' conftest.$ac_ext >&5
  8337. ac_cv_lib_dld_shl_load=no
  8338. fi
  8339. rm -rf conftest.dSYM
  8340. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8341. conftest$ac_exeext conftest.$ac_ext
  8342. LIBS=$ac_check_lib_save_LIBS
  8343. fi
  8344. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8345. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8346. if test $ac_cv_lib_dld_shl_load = yes; then
  8347. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8348. else
  8349. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  8350. $as_echo_n "checking for dlopen... " >&6; }
  8351. if test "${ac_cv_func_dlopen+set}" = set; then
  8352. $as_echo_n "(cached) " >&6
  8353. else
  8354. cat >conftest.$ac_ext <<_ACEOF
  8355. /* confdefs.h. */
  8356. _ACEOF
  8357. cat confdefs.h >>conftest.$ac_ext
  8358. cat >>conftest.$ac_ext <<_ACEOF
  8359. /* end confdefs.h. */
  8360. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8361. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8362. #define dlopen innocuous_dlopen
  8363. /* System header to define __stub macros and hopefully few prototypes,
  8364. which can conflict with char dlopen (); below.
  8365. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8366. <limits.h> exists even on freestanding compilers. */
  8367. #ifdef __STDC__
  8368. # include <limits.h>
  8369. #else
  8370. # include <assert.h>
  8371. #endif
  8372. #undef dlopen
  8373. /* Override any GCC internal prototype to avoid an error.
  8374. Use char because int might match the return type of a GCC
  8375. builtin and then its argument prototype would still apply. */
  8376. #ifdef __cplusplus
  8377. extern "C"
  8378. #endif
  8379. char dlopen ();
  8380. /* The GNU C library defines this for functions which it implements
  8381. to always fail with ENOSYS. Some functions are actually named
  8382. something starting with __ and the normal name is an alias. */
  8383. #if defined __stub_dlopen || defined __stub___dlopen
  8384. choke me
  8385. #endif
  8386. int
  8387. main ()
  8388. {
  8389. return dlopen ();
  8390. ;
  8391. return 0;
  8392. }
  8393. _ACEOF
  8394. rm -f conftest.$ac_objext conftest$ac_exeext
  8395. if { (ac_try="$ac_link"
  8396. case "(($ac_try" in
  8397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8398. *) ac_try_echo=$ac_try;;
  8399. esac
  8400. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8401. $as_echo "$ac_try_echo") >&5
  8402. (eval "$ac_link") 2>conftest.er1
  8403. ac_status=$?
  8404. grep -v '^ *+' conftest.er1 >conftest.err
  8405. rm -f conftest.er1
  8406. cat conftest.err >&5
  8407. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8408. (exit $ac_status); } && {
  8409. test -z "$ac_c_werror_flag" ||
  8410. test ! -s conftest.err
  8411. } && test -s conftest$ac_exeext && {
  8412. test "$cross_compiling" = yes ||
  8413. $as_test_x conftest$ac_exeext
  8414. }; then
  8415. ac_cv_func_dlopen=yes
  8416. else
  8417. $as_echo "$as_me: failed program was:" >&5
  8418. sed 's/^/| /' conftest.$ac_ext >&5
  8419. ac_cv_func_dlopen=no
  8420. fi
  8421. rm -rf conftest.dSYM
  8422. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8423. conftest$ac_exeext conftest.$ac_ext
  8424. fi
  8425. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8426. $as_echo "$ac_cv_func_dlopen" >&6; }
  8427. if test $ac_cv_func_dlopen = yes; then
  8428. lt_cv_dlopen="dlopen"
  8429. else
  8430. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8431. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8432. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8433. $as_echo_n "(cached) " >&6
  8434. else
  8435. ac_check_lib_save_LIBS=$LIBS
  8436. LIBS="-ldl $LIBS"
  8437. cat >conftest.$ac_ext <<_ACEOF
  8438. /* confdefs.h. */
  8439. _ACEOF
  8440. cat confdefs.h >>conftest.$ac_ext
  8441. cat >>conftest.$ac_ext <<_ACEOF
  8442. /* end confdefs.h. */
  8443. /* Override any GCC internal prototype to avoid an error.
  8444. Use char because int might match the return type of a GCC
  8445. builtin and then its argument prototype would still apply. */
  8446. #ifdef __cplusplus
  8447. extern "C"
  8448. #endif
  8449. char dlopen ();
  8450. int
  8451. main ()
  8452. {
  8453. return dlopen ();
  8454. ;
  8455. return 0;
  8456. }
  8457. _ACEOF
  8458. rm -f conftest.$ac_objext conftest$ac_exeext
  8459. if { (ac_try="$ac_link"
  8460. case "(($ac_try" in
  8461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8462. *) ac_try_echo=$ac_try;;
  8463. esac
  8464. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8465. $as_echo "$ac_try_echo") >&5
  8466. (eval "$ac_link") 2>conftest.er1
  8467. ac_status=$?
  8468. grep -v '^ *+' conftest.er1 >conftest.err
  8469. rm -f conftest.er1
  8470. cat conftest.err >&5
  8471. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8472. (exit $ac_status); } && {
  8473. test -z "$ac_c_werror_flag" ||
  8474. test ! -s conftest.err
  8475. } && test -s conftest$ac_exeext && {
  8476. test "$cross_compiling" = yes ||
  8477. $as_test_x conftest$ac_exeext
  8478. }; then
  8479. ac_cv_lib_dl_dlopen=yes
  8480. else
  8481. $as_echo "$as_me: failed program was:" >&5
  8482. sed 's/^/| /' conftest.$ac_ext >&5
  8483. ac_cv_lib_dl_dlopen=no
  8484. fi
  8485. rm -rf conftest.dSYM
  8486. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8487. conftest$ac_exeext conftest.$ac_ext
  8488. LIBS=$ac_check_lib_save_LIBS
  8489. fi
  8490. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8491. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8492. if test $ac_cv_lib_dl_dlopen = yes; then
  8493. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8494. else
  8495. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8496. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8497. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8498. $as_echo_n "(cached) " >&6
  8499. else
  8500. ac_check_lib_save_LIBS=$LIBS
  8501. LIBS="-lsvld $LIBS"
  8502. cat >conftest.$ac_ext <<_ACEOF
  8503. /* confdefs.h. */
  8504. _ACEOF
  8505. cat confdefs.h >>conftest.$ac_ext
  8506. cat >>conftest.$ac_ext <<_ACEOF
  8507. /* end confdefs.h. */
  8508. /* Override any GCC internal prototype to avoid an error.
  8509. Use char because int might match the return type of a GCC
  8510. builtin and then its argument prototype would still apply. */
  8511. #ifdef __cplusplus
  8512. extern "C"
  8513. #endif
  8514. char dlopen ();
  8515. int
  8516. main ()
  8517. {
  8518. return dlopen ();
  8519. ;
  8520. return 0;
  8521. }
  8522. _ACEOF
  8523. rm -f conftest.$ac_objext conftest$ac_exeext
  8524. if { (ac_try="$ac_link"
  8525. case "(($ac_try" in
  8526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8527. *) ac_try_echo=$ac_try;;
  8528. esac
  8529. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8530. $as_echo "$ac_try_echo") >&5
  8531. (eval "$ac_link") 2>conftest.er1
  8532. ac_status=$?
  8533. grep -v '^ *+' conftest.er1 >conftest.err
  8534. rm -f conftest.er1
  8535. cat conftest.err >&5
  8536. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8537. (exit $ac_status); } && {
  8538. test -z "$ac_c_werror_flag" ||
  8539. test ! -s conftest.err
  8540. } && test -s conftest$ac_exeext && {
  8541. test "$cross_compiling" = yes ||
  8542. $as_test_x conftest$ac_exeext
  8543. }; then
  8544. ac_cv_lib_svld_dlopen=yes
  8545. else
  8546. $as_echo "$as_me: failed program was:" >&5
  8547. sed 's/^/| /' conftest.$ac_ext >&5
  8548. ac_cv_lib_svld_dlopen=no
  8549. fi
  8550. rm -rf conftest.dSYM
  8551. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8552. conftest$ac_exeext conftest.$ac_ext
  8553. LIBS=$ac_check_lib_save_LIBS
  8554. fi
  8555. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8556. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8557. if test $ac_cv_lib_svld_dlopen = yes; then
  8558. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8559. else
  8560. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8561. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8562. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8563. $as_echo_n "(cached) " >&6
  8564. else
  8565. ac_check_lib_save_LIBS=$LIBS
  8566. LIBS="-ldld $LIBS"
  8567. cat >conftest.$ac_ext <<_ACEOF
  8568. /* confdefs.h. */
  8569. _ACEOF
  8570. cat confdefs.h >>conftest.$ac_ext
  8571. cat >>conftest.$ac_ext <<_ACEOF
  8572. /* end confdefs.h. */
  8573. /* Override any GCC internal prototype to avoid an error.
  8574. Use char because int might match the return type of a GCC
  8575. builtin and then its argument prototype would still apply. */
  8576. #ifdef __cplusplus
  8577. extern "C"
  8578. #endif
  8579. char dld_link ();
  8580. int
  8581. main ()
  8582. {
  8583. return dld_link ();
  8584. ;
  8585. return 0;
  8586. }
  8587. _ACEOF
  8588. rm -f conftest.$ac_objext conftest$ac_exeext
  8589. if { (ac_try="$ac_link"
  8590. case "(($ac_try" in
  8591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8592. *) ac_try_echo=$ac_try;;
  8593. esac
  8594. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8595. $as_echo "$ac_try_echo") >&5
  8596. (eval "$ac_link") 2>conftest.er1
  8597. ac_status=$?
  8598. grep -v '^ *+' conftest.er1 >conftest.err
  8599. rm -f conftest.er1
  8600. cat conftest.err >&5
  8601. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8602. (exit $ac_status); } && {
  8603. test -z "$ac_c_werror_flag" ||
  8604. test ! -s conftest.err
  8605. } && test -s conftest$ac_exeext && {
  8606. test "$cross_compiling" = yes ||
  8607. $as_test_x conftest$ac_exeext
  8608. }; then
  8609. ac_cv_lib_dld_dld_link=yes
  8610. else
  8611. $as_echo "$as_me: failed program was:" >&5
  8612. sed 's/^/| /' conftest.$ac_ext >&5
  8613. ac_cv_lib_dld_dld_link=no
  8614. fi
  8615. rm -rf conftest.dSYM
  8616. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8617. conftest$ac_exeext conftest.$ac_ext
  8618. LIBS=$ac_check_lib_save_LIBS
  8619. fi
  8620. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8621. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8622. if test $ac_cv_lib_dld_dld_link = yes; then
  8623. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8624. fi
  8625. fi
  8626. fi
  8627. fi
  8628. fi
  8629. fi
  8630. ;;
  8631. esac
  8632. if test "x$lt_cv_dlopen" != xno; then
  8633. enable_dlopen=yes
  8634. else
  8635. enable_dlopen=no
  8636. fi
  8637. case $lt_cv_dlopen in
  8638. dlopen)
  8639. save_CPPFLAGS="$CPPFLAGS"
  8640. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8641. save_LDFLAGS="$LDFLAGS"
  8642. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8643. save_LIBS="$LIBS"
  8644. LIBS="$lt_cv_dlopen_libs $LIBS"
  8645. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8646. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8647. if test "${lt_cv_dlopen_self+set}" = set; then
  8648. $as_echo_n "(cached) " >&6
  8649. else
  8650. if test "$cross_compiling" = yes; then :
  8651. lt_cv_dlopen_self=cross
  8652. else
  8653. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8654. lt_status=$lt_dlunknown
  8655. cat > conftest.$ac_ext <<_LT_EOF
  8656. #line 10144 "configure"
  8657. #include "confdefs.h"
  8658. #if HAVE_DLFCN_H
  8659. #include <dlfcn.h>
  8660. #endif
  8661. #include <stdio.h>
  8662. #ifdef RTLD_GLOBAL
  8663. # define LT_DLGLOBAL RTLD_GLOBAL
  8664. #else
  8665. # ifdef DL_GLOBAL
  8666. # define LT_DLGLOBAL DL_GLOBAL
  8667. # else
  8668. # define LT_DLGLOBAL 0
  8669. # endif
  8670. #endif
  8671. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8672. find out it does not work in some platform. */
  8673. #ifndef LT_DLLAZY_OR_NOW
  8674. # ifdef RTLD_LAZY
  8675. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8676. # else
  8677. # ifdef DL_LAZY
  8678. # define LT_DLLAZY_OR_NOW DL_LAZY
  8679. # else
  8680. # ifdef RTLD_NOW
  8681. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8682. # else
  8683. # ifdef DL_NOW
  8684. # define LT_DLLAZY_OR_NOW DL_NOW
  8685. # else
  8686. # define LT_DLLAZY_OR_NOW 0
  8687. # endif
  8688. # endif
  8689. # endif
  8690. # endif
  8691. #endif
  8692. void fnord() { int i=42;}
  8693. int main ()
  8694. {
  8695. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8696. int status = $lt_dlunknown;
  8697. if (self)
  8698. {
  8699. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8700. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8701. /* dlclose (self); */
  8702. }
  8703. else
  8704. puts (dlerror ());
  8705. return status;
  8706. }
  8707. _LT_EOF
  8708. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8709. (eval $ac_link) 2>&5
  8710. ac_status=$?
  8711. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8712. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8713. (./conftest; exit; ) >&5 2>/dev/null
  8714. lt_status=$?
  8715. case x$lt_status in
  8716. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8717. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8718. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8719. esac
  8720. else :
  8721. # compilation failed
  8722. lt_cv_dlopen_self=no
  8723. fi
  8724. fi
  8725. rm -fr conftest*
  8726. fi
  8727. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8728. $as_echo "$lt_cv_dlopen_self" >&6; }
  8729. if test "x$lt_cv_dlopen_self" = xyes; then
  8730. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8731. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8732. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  8733. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8734. $as_echo_n "(cached) " >&6
  8735. else
  8736. if test "$cross_compiling" = yes; then :
  8737. lt_cv_dlopen_self_static=cross
  8738. else
  8739. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8740. lt_status=$lt_dlunknown
  8741. cat > conftest.$ac_ext <<_LT_EOF
  8742. #line 10240 "configure"
  8743. #include "confdefs.h"
  8744. #if HAVE_DLFCN_H
  8745. #include <dlfcn.h>
  8746. #endif
  8747. #include <stdio.h>
  8748. #ifdef RTLD_GLOBAL
  8749. # define LT_DLGLOBAL RTLD_GLOBAL
  8750. #else
  8751. # ifdef DL_GLOBAL
  8752. # define LT_DLGLOBAL DL_GLOBAL
  8753. # else
  8754. # define LT_DLGLOBAL 0
  8755. # endif
  8756. #endif
  8757. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8758. find out it does not work in some platform. */
  8759. #ifndef LT_DLLAZY_OR_NOW
  8760. # ifdef RTLD_LAZY
  8761. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8762. # else
  8763. # ifdef DL_LAZY
  8764. # define LT_DLLAZY_OR_NOW DL_LAZY
  8765. # else
  8766. # ifdef RTLD_NOW
  8767. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8768. # else
  8769. # ifdef DL_NOW
  8770. # define LT_DLLAZY_OR_NOW DL_NOW
  8771. # else
  8772. # define LT_DLLAZY_OR_NOW 0
  8773. # endif
  8774. # endif
  8775. # endif
  8776. # endif
  8777. #endif
  8778. void fnord() { int i=42;}
  8779. int main ()
  8780. {
  8781. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8782. int status = $lt_dlunknown;
  8783. if (self)
  8784. {
  8785. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8786. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8787. /* dlclose (self); */
  8788. }
  8789. else
  8790. puts (dlerror ());
  8791. return status;
  8792. }
  8793. _LT_EOF
  8794. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8795. (eval $ac_link) 2>&5
  8796. ac_status=$?
  8797. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8798. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8799. (./conftest; exit; ) >&5 2>/dev/null
  8800. lt_status=$?
  8801. case x$lt_status in
  8802. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8803. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8804. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8805. esac
  8806. else :
  8807. # compilation failed
  8808. lt_cv_dlopen_self_static=no
  8809. fi
  8810. fi
  8811. rm -fr conftest*
  8812. fi
  8813. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8814. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  8815. fi
  8816. CPPFLAGS="$save_CPPFLAGS"
  8817. LDFLAGS="$save_LDFLAGS"
  8818. LIBS="$save_LIBS"
  8819. ;;
  8820. esac
  8821. case $lt_cv_dlopen_self in
  8822. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8823. *) enable_dlopen_self=unknown ;;
  8824. esac
  8825. case $lt_cv_dlopen_self_static in
  8826. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8827. *) enable_dlopen_self_static=unknown ;;
  8828. esac
  8829. fi
  8830. striplib=
  8831. old_striplib=
  8832. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8833. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  8834. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  8835. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8836. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8837. { $as_echo "$as_me:$LINENO: result: yes" >&5
  8838. $as_echo "yes" >&6; }
  8839. else
  8840. # FIXME - insert some real tests, host_os isn't really good enough
  8841. case $host_os in
  8842. darwin*)
  8843. if test -n "$STRIP" ; then
  8844. striplib="$STRIP -x"
  8845. old_striplib="$STRIP -S"
  8846. { $as_echo "$as_me:$LINENO: result: yes" >&5
  8847. $as_echo "yes" >&6; }
  8848. else
  8849. { $as_echo "$as_me:$LINENO: result: no" >&5
  8850. $as_echo "no" >&6; }
  8851. fi
  8852. ;;
  8853. *)
  8854. { $as_echo "$as_me:$LINENO: result: no" >&5
  8855. $as_echo "no" >&6; }
  8856. ;;
  8857. esac
  8858. fi
  8859. # Report which library types will actually be built
  8860. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8861. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  8862. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8863. $as_echo "$can_build_shared" >&6; }
  8864. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8865. $as_echo_n "checking whether to build shared libraries... " >&6; }
  8866. test "$can_build_shared" = "no" && enable_shared=no
  8867. # On AIX, shared libraries and static libraries use the same namespace, and
  8868. # are all built from PIC.
  8869. case $host_os in
  8870. aix3*)
  8871. test "$enable_shared" = yes && enable_static=no
  8872. if test -n "$RANLIB"; then
  8873. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8874. postinstall_cmds='$RANLIB $lib'
  8875. fi
  8876. ;;
  8877. aix[4-9]*)
  8878. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8879. test "$enable_shared" = yes && enable_static=no
  8880. fi
  8881. ;;
  8882. esac
  8883. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  8884. $as_echo "$enable_shared" >&6; }
  8885. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8886. $as_echo_n "checking whether to build static libraries... " >&6; }
  8887. # Make sure either enable_shared or enable_static is yes.
  8888. test "$enable_shared" = yes || enable_static=yes
  8889. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  8890. $as_echo "$enable_static" >&6; }
  8891. fi
  8892. ac_ext=c
  8893. ac_cpp='$CPP $CPPFLAGS'
  8894. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8895. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8896. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8897. CC="$lt_save_CC"
  8898. ac_config_commands="$ac_config_commands libtool"
  8899. # Only expand once:
  8900. # Find a good install program. We prefer a C program (faster),
  8901. # so one script is as good as another. But avoid the broken or
  8902. # incompatible versions:
  8903. # SysV /etc/install, /usr/sbin/install
  8904. # SunOS /usr/etc/install
  8905. # IRIX /sbin/install
  8906. # AIX /bin/install
  8907. # AmigaOS /C/install, which installs bootblocks on floppy discs
  8908. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  8909. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  8910. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  8911. # OS/2's system install, which has a completely different semantic
  8912. # ./install, which can be erroneously created by make from ./install.sh.
  8913. # Reject install programs that cannot install multiple files.
  8914. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  8915. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  8916. if test -z "$INSTALL"; then
  8917. if test "${ac_cv_path_install+set}" = set; then
  8918. $as_echo_n "(cached) " >&6
  8919. else
  8920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8921. for as_dir in $PATH
  8922. do
  8923. IFS=$as_save_IFS
  8924. test -z "$as_dir" && as_dir=.
  8925. # Account for people who put trailing slashes in PATH elements.
  8926. case $as_dir/ in
  8927. ./ | .// | /cC/* | \
  8928. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  8929. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  8930. /usr/ucb/* ) ;;
  8931. *)
  8932. # OSF1 and SCO ODT 3.0 have their own names for install.
  8933. # Don't use installbsd from OSF since it installs stuff as root
  8934. # by default.
  8935. for ac_prog in ginstall scoinst install; do
  8936. for ac_exec_ext in '' $ac_executable_extensions; do
  8937. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  8938. if test $ac_prog = install &&
  8939. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8940. # AIX install. It has an incompatible calling convention.
  8941. :
  8942. elif test $ac_prog = install &&
  8943. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8944. # program-specific install script used by HP pwplus--don't use.
  8945. :
  8946. else
  8947. rm -rf conftest.one conftest.two conftest.dir
  8948. echo one > conftest.one
  8949. echo two > conftest.two
  8950. mkdir conftest.dir
  8951. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  8952. test -s conftest.one && test -s conftest.two &&
  8953. test -s conftest.dir/conftest.one &&
  8954. test -s conftest.dir/conftest.two
  8955. then
  8956. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  8957. break 3
  8958. fi
  8959. fi
  8960. fi
  8961. done
  8962. done
  8963. ;;
  8964. esac
  8965. done
  8966. IFS=$as_save_IFS
  8967. rm -rf conftest.one conftest.two conftest.dir
  8968. fi
  8969. if test "${ac_cv_path_install+set}" = set; then
  8970. INSTALL=$ac_cv_path_install
  8971. else
  8972. # As a last resort, use the slow shell script. Don't cache a
  8973. # value for INSTALL within a source directory, because that will
  8974. # break other packages using the cache if that directory is
  8975. # removed, or if the value is a relative name.
  8976. INSTALL=$ac_install_sh
  8977. fi
  8978. fi
  8979. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  8980. $as_echo "$INSTALL" >&6; }
  8981. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  8982. # It thinks the first close brace ends the variable substitution.
  8983. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  8984. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  8985. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  8986. for ac_prog in gawk mawk nawk awk
  8987. do
  8988. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8989. set dummy $ac_prog; ac_word=$2
  8990. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8991. $as_echo_n "checking for $ac_word... " >&6; }
  8992. if test "${ac_cv_prog_AWK+set}" = set; then
  8993. $as_echo_n "(cached) " >&6
  8994. else
  8995. if test -n "$AWK"; then
  8996. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  8997. else
  8998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8999. for as_dir in $PATH
  9000. do
  9001. IFS=$as_save_IFS
  9002. test -z "$as_dir" && as_dir=.
  9003. for ac_exec_ext in '' $ac_executable_extensions; do
  9004. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9005. ac_cv_prog_AWK="$ac_prog"
  9006. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9007. break 2
  9008. fi
  9009. done
  9010. done
  9011. IFS=$as_save_IFS
  9012. fi
  9013. fi
  9014. AWK=$ac_cv_prog_AWK
  9015. if test -n "$AWK"; then
  9016. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  9017. $as_echo "$AWK" >&6; }
  9018. else
  9019. { $as_echo "$as_me:$LINENO: result: no" >&5
  9020. $as_echo "no" >&6; }
  9021. fi
  9022. test -n "$AWK" && break
  9023. done
  9024. #########
  9025. # Enable large file support (if special flags are necessary)
  9026. #
  9027. # Check whether --enable-largefile was given.
  9028. if test "${enable_largefile+set}" = set; then
  9029. enableval=$enable_largefile;
  9030. fi
  9031. if test "$enable_largefile" != no; then
  9032. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9033. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9034. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9035. $as_echo_n "(cached) " >&6
  9036. else
  9037. ac_cv_sys_largefile_CC=no
  9038. if test "$GCC" != yes; then
  9039. ac_save_CC=$CC
  9040. while :; do
  9041. # IRIX 6.2 and later do not support large files by default,
  9042. # so use the C compiler's -n32 option if that helps.
  9043. cat >conftest.$ac_ext <<_ACEOF
  9044. /* confdefs.h. */
  9045. _ACEOF
  9046. cat confdefs.h >>conftest.$ac_ext
  9047. cat >>conftest.$ac_ext <<_ACEOF
  9048. /* end confdefs.h. */
  9049. #include <sys/types.h>
  9050. /* Check that off_t can represent 2**63 - 1 correctly.
  9051. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9052. since some C++ compilers masquerading as C compilers
  9053. incorrectly reject 9223372036854775807. */
  9054. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9055. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9056. && LARGE_OFF_T % 2147483647 == 1)
  9057. ? 1 : -1];
  9058. int
  9059. main ()
  9060. {
  9061. ;
  9062. return 0;
  9063. }
  9064. _ACEOF
  9065. rm -f conftest.$ac_objext
  9066. if { (ac_try="$ac_compile"
  9067. case "(($ac_try" in
  9068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9069. *) ac_try_echo=$ac_try;;
  9070. esac
  9071. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9072. $as_echo "$ac_try_echo") >&5
  9073. (eval "$ac_compile") 2>conftest.er1
  9074. ac_status=$?
  9075. grep -v '^ *+' conftest.er1 >conftest.err
  9076. rm -f conftest.er1
  9077. cat conftest.err >&5
  9078. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9079. (exit $ac_status); } && {
  9080. test -z "$ac_c_werror_flag" ||
  9081. test ! -s conftest.err
  9082. } && test -s conftest.$ac_objext; then
  9083. break
  9084. else
  9085. $as_echo "$as_me: failed program was:" >&5
  9086. sed 's/^/| /' conftest.$ac_ext >&5
  9087. fi
  9088. rm -f core conftest.err conftest.$ac_objext
  9089. CC="$CC -n32"
  9090. rm -f conftest.$ac_objext
  9091. if { (ac_try="$ac_compile"
  9092. case "(($ac_try" in
  9093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9094. *) ac_try_echo=$ac_try;;
  9095. esac
  9096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9097. $as_echo "$ac_try_echo") >&5
  9098. (eval "$ac_compile") 2>conftest.er1
  9099. ac_status=$?
  9100. grep -v '^ *+' conftest.er1 >conftest.err
  9101. rm -f conftest.er1
  9102. cat conftest.err >&5
  9103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9104. (exit $ac_status); } && {
  9105. test -z "$ac_c_werror_flag" ||
  9106. test ! -s conftest.err
  9107. } && test -s conftest.$ac_objext; then
  9108. ac_cv_sys_largefile_CC=' -n32'; break
  9109. else
  9110. $as_echo "$as_me: failed program was:" >&5
  9111. sed 's/^/| /' conftest.$ac_ext >&5
  9112. fi
  9113. rm -f core conftest.err conftest.$ac_objext
  9114. break
  9115. done
  9116. CC=$ac_save_CC
  9117. rm -f conftest.$ac_ext
  9118. fi
  9119. fi
  9120. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9121. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  9122. if test "$ac_cv_sys_largefile_CC" != no; then
  9123. CC=$CC$ac_cv_sys_largefile_CC
  9124. fi
  9125. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9126. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  9127. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9128. $as_echo_n "(cached) " >&6
  9129. else
  9130. while :; do
  9131. cat >conftest.$ac_ext <<_ACEOF
  9132. /* confdefs.h. */
  9133. _ACEOF
  9134. cat confdefs.h >>conftest.$ac_ext
  9135. cat >>conftest.$ac_ext <<_ACEOF
  9136. /* end confdefs.h. */
  9137. #include <sys/types.h>
  9138. /* Check that off_t can represent 2**63 - 1 correctly.
  9139. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9140. since some C++ compilers masquerading as C compilers
  9141. incorrectly reject 9223372036854775807. */
  9142. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9143. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9144. && LARGE_OFF_T % 2147483647 == 1)
  9145. ? 1 : -1];
  9146. int
  9147. main ()
  9148. {
  9149. ;
  9150. return 0;
  9151. }
  9152. _ACEOF
  9153. rm -f conftest.$ac_objext
  9154. if { (ac_try="$ac_compile"
  9155. case "(($ac_try" in
  9156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9157. *) ac_try_echo=$ac_try;;
  9158. esac
  9159. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9160. $as_echo "$ac_try_echo") >&5
  9161. (eval "$ac_compile") 2>conftest.er1
  9162. ac_status=$?
  9163. grep -v '^ *+' conftest.er1 >conftest.err
  9164. rm -f conftest.er1
  9165. cat conftest.err >&5
  9166. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9167. (exit $ac_status); } && {
  9168. test -z "$ac_c_werror_flag" ||
  9169. test ! -s conftest.err
  9170. } && test -s conftest.$ac_objext; then
  9171. ac_cv_sys_file_offset_bits=no; break
  9172. else
  9173. $as_echo "$as_me: failed program was:" >&5
  9174. sed 's/^/| /' conftest.$ac_ext >&5
  9175. fi
  9176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9177. cat >conftest.$ac_ext <<_ACEOF
  9178. /* confdefs.h. */
  9179. _ACEOF
  9180. cat confdefs.h >>conftest.$ac_ext
  9181. cat >>conftest.$ac_ext <<_ACEOF
  9182. /* end confdefs.h. */
  9183. #define _FILE_OFFSET_BITS 64
  9184. #include <sys/types.h>
  9185. /* Check that off_t can represent 2**63 - 1 correctly.
  9186. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9187. since some C++ compilers masquerading as C compilers
  9188. incorrectly reject 9223372036854775807. */
  9189. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9190. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9191. && LARGE_OFF_T % 2147483647 == 1)
  9192. ? 1 : -1];
  9193. int
  9194. main ()
  9195. {
  9196. ;
  9197. return 0;
  9198. }
  9199. _ACEOF
  9200. rm -f conftest.$ac_objext
  9201. if { (ac_try="$ac_compile"
  9202. case "(($ac_try" in
  9203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9204. *) ac_try_echo=$ac_try;;
  9205. esac
  9206. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9207. $as_echo "$ac_try_echo") >&5
  9208. (eval "$ac_compile") 2>conftest.er1
  9209. ac_status=$?
  9210. grep -v '^ *+' conftest.er1 >conftest.err
  9211. rm -f conftest.er1
  9212. cat conftest.err >&5
  9213. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9214. (exit $ac_status); } && {
  9215. test -z "$ac_c_werror_flag" ||
  9216. test ! -s conftest.err
  9217. } && test -s conftest.$ac_objext; then
  9218. ac_cv_sys_file_offset_bits=64; break
  9219. else
  9220. $as_echo "$as_me: failed program was:" >&5
  9221. sed 's/^/| /' conftest.$ac_ext >&5
  9222. fi
  9223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9224. ac_cv_sys_file_offset_bits=unknown
  9225. break
  9226. done
  9227. fi
  9228. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9229. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  9230. case $ac_cv_sys_file_offset_bits in #(
  9231. no | unknown) ;;
  9232. *)
  9233. cat >>confdefs.h <<_ACEOF
  9234. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9235. _ACEOF
  9236. ;;
  9237. esac
  9238. rm -rf conftest*
  9239. if test $ac_cv_sys_file_offset_bits = unknown; then
  9240. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9241. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  9242. if test "${ac_cv_sys_large_files+set}" = set; then
  9243. $as_echo_n "(cached) " >&6
  9244. else
  9245. while :; do
  9246. cat >conftest.$ac_ext <<_ACEOF
  9247. /* confdefs.h. */
  9248. _ACEOF
  9249. cat confdefs.h >>conftest.$ac_ext
  9250. cat >>conftest.$ac_ext <<_ACEOF
  9251. /* end confdefs.h. */
  9252. #include <sys/types.h>
  9253. /* Check that off_t can represent 2**63 - 1 correctly.
  9254. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9255. since some C++ compilers masquerading as C compilers
  9256. incorrectly reject 9223372036854775807. */
  9257. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9258. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9259. && LARGE_OFF_T % 2147483647 == 1)
  9260. ? 1 : -1];
  9261. int
  9262. main ()
  9263. {
  9264. ;
  9265. return 0;
  9266. }
  9267. _ACEOF
  9268. rm -f conftest.$ac_objext
  9269. if { (ac_try="$ac_compile"
  9270. case "(($ac_try" in
  9271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9272. *) ac_try_echo=$ac_try;;
  9273. esac
  9274. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9275. $as_echo "$ac_try_echo") >&5
  9276. (eval "$ac_compile") 2>conftest.er1
  9277. ac_status=$?
  9278. grep -v '^ *+' conftest.er1 >conftest.err
  9279. rm -f conftest.er1
  9280. cat conftest.err >&5
  9281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); } && {
  9283. test -z "$ac_c_werror_flag" ||
  9284. test ! -s conftest.err
  9285. } && test -s conftest.$ac_objext; then
  9286. ac_cv_sys_large_files=no; break
  9287. else
  9288. $as_echo "$as_me: failed program was:" >&5
  9289. sed 's/^/| /' conftest.$ac_ext >&5
  9290. fi
  9291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9292. cat >conftest.$ac_ext <<_ACEOF
  9293. /* confdefs.h. */
  9294. _ACEOF
  9295. cat confdefs.h >>conftest.$ac_ext
  9296. cat >>conftest.$ac_ext <<_ACEOF
  9297. /* end confdefs.h. */
  9298. #define _LARGE_FILES 1
  9299. #include <sys/types.h>
  9300. /* Check that off_t can represent 2**63 - 1 correctly.
  9301. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9302. since some C++ compilers masquerading as C compilers
  9303. incorrectly reject 9223372036854775807. */
  9304. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9305. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9306. && LARGE_OFF_T % 2147483647 == 1)
  9307. ? 1 : -1];
  9308. int
  9309. main ()
  9310. {
  9311. ;
  9312. return 0;
  9313. }
  9314. _ACEOF
  9315. rm -f conftest.$ac_objext
  9316. if { (ac_try="$ac_compile"
  9317. case "(($ac_try" in
  9318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9319. *) ac_try_echo=$ac_try;;
  9320. esac
  9321. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9322. $as_echo "$ac_try_echo") >&5
  9323. (eval "$ac_compile") 2>conftest.er1
  9324. ac_status=$?
  9325. grep -v '^ *+' conftest.er1 >conftest.err
  9326. rm -f conftest.er1
  9327. cat conftest.err >&5
  9328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9329. (exit $ac_status); } && {
  9330. test -z "$ac_c_werror_flag" ||
  9331. test ! -s conftest.err
  9332. } && test -s conftest.$ac_objext; then
  9333. ac_cv_sys_large_files=1; break
  9334. else
  9335. $as_echo "$as_me: failed program was:" >&5
  9336. sed 's/^/| /' conftest.$ac_ext >&5
  9337. fi
  9338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9339. ac_cv_sys_large_files=unknown
  9340. break
  9341. done
  9342. fi
  9343. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9344. $as_echo "$ac_cv_sys_large_files" >&6; }
  9345. case $ac_cv_sys_large_files in #(
  9346. no | unknown) ;;
  9347. *)
  9348. cat >>confdefs.h <<_ACEOF
  9349. #define _LARGE_FILES $ac_cv_sys_large_files
  9350. _ACEOF
  9351. ;;
  9352. esac
  9353. rm -rf conftest*
  9354. fi
  9355. fi
  9356. #########
  9357. # Check for needed/wanted data types
  9358. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  9359. $as_echo_n "checking for int8_t... " >&6; }
  9360. if test "${ac_cv_type_int8_t+set}" = set; then
  9361. $as_echo_n "(cached) " >&6
  9362. else
  9363. ac_cv_type_int8_t=no
  9364. cat >conftest.$ac_ext <<_ACEOF
  9365. /* confdefs.h. */
  9366. _ACEOF
  9367. cat confdefs.h >>conftest.$ac_ext
  9368. cat >>conftest.$ac_ext <<_ACEOF
  9369. /* end confdefs.h. */
  9370. $ac_includes_default
  9371. int
  9372. main ()
  9373. {
  9374. if (sizeof (int8_t))
  9375. return 0;
  9376. ;
  9377. return 0;
  9378. }
  9379. _ACEOF
  9380. rm -f conftest.$ac_objext
  9381. if { (ac_try="$ac_compile"
  9382. case "(($ac_try" in
  9383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9384. *) ac_try_echo=$ac_try;;
  9385. esac
  9386. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9387. $as_echo "$ac_try_echo") >&5
  9388. (eval "$ac_compile") 2>conftest.er1
  9389. ac_status=$?
  9390. grep -v '^ *+' conftest.er1 >conftest.err
  9391. rm -f conftest.er1
  9392. cat conftest.err >&5
  9393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9394. (exit $ac_status); } && {
  9395. test -z "$ac_c_werror_flag" ||
  9396. test ! -s conftest.err
  9397. } && test -s conftest.$ac_objext; then
  9398. cat >conftest.$ac_ext <<_ACEOF
  9399. /* confdefs.h. */
  9400. _ACEOF
  9401. cat confdefs.h >>conftest.$ac_ext
  9402. cat >>conftest.$ac_ext <<_ACEOF
  9403. /* end confdefs.h. */
  9404. $ac_includes_default
  9405. int
  9406. main ()
  9407. {
  9408. if (sizeof ((int8_t)))
  9409. return 0;
  9410. ;
  9411. return 0;
  9412. }
  9413. _ACEOF
  9414. rm -f conftest.$ac_objext
  9415. if { (ac_try="$ac_compile"
  9416. case "(($ac_try" in
  9417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9418. *) ac_try_echo=$ac_try;;
  9419. esac
  9420. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9421. $as_echo "$ac_try_echo") >&5
  9422. (eval "$ac_compile") 2>conftest.er1
  9423. ac_status=$?
  9424. grep -v '^ *+' conftest.er1 >conftest.err
  9425. rm -f conftest.er1
  9426. cat conftest.err >&5
  9427. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9428. (exit $ac_status); } && {
  9429. test -z "$ac_c_werror_flag" ||
  9430. test ! -s conftest.err
  9431. } && test -s conftest.$ac_objext; then
  9432. :
  9433. else
  9434. $as_echo "$as_me: failed program was:" >&5
  9435. sed 's/^/| /' conftest.$ac_ext >&5
  9436. ac_cv_type_int8_t=yes
  9437. fi
  9438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9439. else
  9440. $as_echo "$as_me: failed program was:" >&5
  9441. sed 's/^/| /' conftest.$ac_ext >&5
  9442. fi
  9443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9444. fi
  9445. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  9446. $as_echo "$ac_cv_type_int8_t" >&6; }
  9447. if test $ac_cv_type_int8_t = yes; then
  9448. cat >>confdefs.h <<_ACEOF
  9449. #define HAVE_INT8_T 1
  9450. _ACEOF
  9451. fi
  9452. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  9453. $as_echo_n "checking for int16_t... " >&6; }
  9454. if test "${ac_cv_type_int16_t+set}" = set; then
  9455. $as_echo_n "(cached) " >&6
  9456. else
  9457. ac_cv_type_int16_t=no
  9458. cat >conftest.$ac_ext <<_ACEOF
  9459. /* confdefs.h. */
  9460. _ACEOF
  9461. cat confdefs.h >>conftest.$ac_ext
  9462. cat >>conftest.$ac_ext <<_ACEOF
  9463. /* end confdefs.h. */
  9464. $ac_includes_default
  9465. int
  9466. main ()
  9467. {
  9468. if (sizeof (int16_t))
  9469. return 0;
  9470. ;
  9471. return 0;
  9472. }
  9473. _ACEOF
  9474. rm -f conftest.$ac_objext
  9475. if { (ac_try="$ac_compile"
  9476. case "(($ac_try" in
  9477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9478. *) ac_try_echo=$ac_try;;
  9479. esac
  9480. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9481. $as_echo "$ac_try_echo") >&5
  9482. (eval "$ac_compile") 2>conftest.er1
  9483. ac_status=$?
  9484. grep -v '^ *+' conftest.er1 >conftest.err
  9485. rm -f conftest.er1
  9486. cat conftest.err >&5
  9487. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9488. (exit $ac_status); } && {
  9489. test -z "$ac_c_werror_flag" ||
  9490. test ! -s conftest.err
  9491. } && test -s conftest.$ac_objext; then
  9492. cat >conftest.$ac_ext <<_ACEOF
  9493. /* confdefs.h. */
  9494. _ACEOF
  9495. cat confdefs.h >>conftest.$ac_ext
  9496. cat >>conftest.$ac_ext <<_ACEOF
  9497. /* end confdefs.h. */
  9498. $ac_includes_default
  9499. int
  9500. main ()
  9501. {
  9502. if (sizeof ((int16_t)))
  9503. return 0;
  9504. ;
  9505. return 0;
  9506. }
  9507. _ACEOF
  9508. rm -f conftest.$ac_objext
  9509. if { (ac_try="$ac_compile"
  9510. case "(($ac_try" in
  9511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9512. *) ac_try_echo=$ac_try;;
  9513. esac
  9514. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9515. $as_echo "$ac_try_echo") >&5
  9516. (eval "$ac_compile") 2>conftest.er1
  9517. ac_status=$?
  9518. grep -v '^ *+' conftest.er1 >conftest.err
  9519. rm -f conftest.er1
  9520. cat conftest.err >&5
  9521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522. (exit $ac_status); } && {
  9523. test -z "$ac_c_werror_flag" ||
  9524. test ! -s conftest.err
  9525. } && test -s conftest.$ac_objext; then
  9526. :
  9527. else
  9528. $as_echo "$as_me: failed program was:" >&5
  9529. sed 's/^/| /' conftest.$ac_ext >&5
  9530. ac_cv_type_int16_t=yes
  9531. fi
  9532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9533. else
  9534. $as_echo "$as_me: failed program was:" >&5
  9535. sed 's/^/| /' conftest.$ac_ext >&5
  9536. fi
  9537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9538. fi
  9539. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  9540. $as_echo "$ac_cv_type_int16_t" >&6; }
  9541. if test $ac_cv_type_int16_t = yes; then
  9542. cat >>confdefs.h <<_ACEOF
  9543. #define HAVE_INT16_T 1
  9544. _ACEOF
  9545. fi
  9546. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  9547. $as_echo_n "checking for int32_t... " >&6; }
  9548. if test "${ac_cv_type_int32_t+set}" = set; then
  9549. $as_echo_n "(cached) " >&6
  9550. else
  9551. ac_cv_type_int32_t=no
  9552. cat >conftest.$ac_ext <<_ACEOF
  9553. /* confdefs.h. */
  9554. _ACEOF
  9555. cat confdefs.h >>conftest.$ac_ext
  9556. cat >>conftest.$ac_ext <<_ACEOF
  9557. /* end confdefs.h. */
  9558. $ac_includes_default
  9559. int
  9560. main ()
  9561. {
  9562. if (sizeof (int32_t))
  9563. return 0;
  9564. ;
  9565. return 0;
  9566. }
  9567. _ACEOF
  9568. rm -f conftest.$ac_objext
  9569. if { (ac_try="$ac_compile"
  9570. case "(($ac_try" in
  9571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9572. *) ac_try_echo=$ac_try;;
  9573. esac
  9574. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9575. $as_echo "$ac_try_echo") >&5
  9576. (eval "$ac_compile") 2>conftest.er1
  9577. ac_status=$?
  9578. grep -v '^ *+' conftest.er1 >conftest.err
  9579. rm -f conftest.er1
  9580. cat conftest.err >&5
  9581. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9582. (exit $ac_status); } && {
  9583. test -z "$ac_c_werror_flag" ||
  9584. test ! -s conftest.err
  9585. } && test -s conftest.$ac_objext; then
  9586. cat >conftest.$ac_ext <<_ACEOF
  9587. /* confdefs.h. */
  9588. _ACEOF
  9589. cat confdefs.h >>conftest.$ac_ext
  9590. cat >>conftest.$ac_ext <<_ACEOF
  9591. /* end confdefs.h. */
  9592. $ac_includes_default
  9593. int
  9594. main ()
  9595. {
  9596. if (sizeof ((int32_t)))
  9597. return 0;
  9598. ;
  9599. return 0;
  9600. }
  9601. _ACEOF
  9602. rm -f conftest.$ac_objext
  9603. if { (ac_try="$ac_compile"
  9604. case "(($ac_try" in
  9605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9606. *) ac_try_echo=$ac_try;;
  9607. esac
  9608. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9609. $as_echo "$ac_try_echo") >&5
  9610. (eval "$ac_compile") 2>conftest.er1
  9611. ac_status=$?
  9612. grep -v '^ *+' conftest.er1 >conftest.err
  9613. rm -f conftest.er1
  9614. cat conftest.err >&5
  9615. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9616. (exit $ac_status); } && {
  9617. test -z "$ac_c_werror_flag" ||
  9618. test ! -s conftest.err
  9619. } && test -s conftest.$ac_objext; then
  9620. :
  9621. else
  9622. $as_echo "$as_me: failed program was:" >&5
  9623. sed 's/^/| /' conftest.$ac_ext >&5
  9624. ac_cv_type_int32_t=yes
  9625. fi
  9626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9627. else
  9628. $as_echo "$as_me: failed program was:" >&5
  9629. sed 's/^/| /' conftest.$ac_ext >&5
  9630. fi
  9631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9632. fi
  9633. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  9634. $as_echo "$ac_cv_type_int32_t" >&6; }
  9635. if test $ac_cv_type_int32_t = yes; then
  9636. cat >>confdefs.h <<_ACEOF
  9637. #define HAVE_INT32_T 1
  9638. _ACEOF
  9639. fi
  9640. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  9641. $as_echo_n "checking for int64_t... " >&6; }
  9642. if test "${ac_cv_type_int64_t+set}" = set; then
  9643. $as_echo_n "(cached) " >&6
  9644. else
  9645. ac_cv_type_int64_t=no
  9646. cat >conftest.$ac_ext <<_ACEOF
  9647. /* confdefs.h. */
  9648. _ACEOF
  9649. cat confdefs.h >>conftest.$ac_ext
  9650. cat >>conftest.$ac_ext <<_ACEOF
  9651. /* end confdefs.h. */
  9652. $ac_includes_default
  9653. int
  9654. main ()
  9655. {
  9656. if (sizeof (int64_t))
  9657. return 0;
  9658. ;
  9659. return 0;
  9660. }
  9661. _ACEOF
  9662. rm -f conftest.$ac_objext
  9663. if { (ac_try="$ac_compile"
  9664. case "(($ac_try" in
  9665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9666. *) ac_try_echo=$ac_try;;
  9667. esac
  9668. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9669. $as_echo "$ac_try_echo") >&5
  9670. (eval "$ac_compile") 2>conftest.er1
  9671. ac_status=$?
  9672. grep -v '^ *+' conftest.er1 >conftest.err
  9673. rm -f conftest.er1
  9674. cat conftest.err >&5
  9675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9676. (exit $ac_status); } && {
  9677. test -z "$ac_c_werror_flag" ||
  9678. test ! -s conftest.err
  9679. } && test -s conftest.$ac_objext; then
  9680. cat >conftest.$ac_ext <<_ACEOF
  9681. /* confdefs.h. */
  9682. _ACEOF
  9683. cat confdefs.h >>conftest.$ac_ext
  9684. cat >>conftest.$ac_ext <<_ACEOF
  9685. /* end confdefs.h. */
  9686. $ac_includes_default
  9687. int
  9688. main ()
  9689. {
  9690. if (sizeof ((int64_t)))
  9691. return 0;
  9692. ;
  9693. return 0;
  9694. }
  9695. _ACEOF
  9696. rm -f conftest.$ac_objext
  9697. if { (ac_try="$ac_compile"
  9698. case "(($ac_try" in
  9699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9700. *) ac_try_echo=$ac_try;;
  9701. esac
  9702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9703. $as_echo "$ac_try_echo") >&5
  9704. (eval "$ac_compile") 2>conftest.er1
  9705. ac_status=$?
  9706. grep -v '^ *+' conftest.er1 >conftest.err
  9707. rm -f conftest.er1
  9708. cat conftest.err >&5
  9709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9710. (exit $ac_status); } && {
  9711. test -z "$ac_c_werror_flag" ||
  9712. test ! -s conftest.err
  9713. } && test -s conftest.$ac_objext; then
  9714. :
  9715. else
  9716. $as_echo "$as_me: failed program was:" >&5
  9717. sed 's/^/| /' conftest.$ac_ext >&5
  9718. ac_cv_type_int64_t=yes
  9719. fi
  9720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9721. else
  9722. $as_echo "$as_me: failed program was:" >&5
  9723. sed 's/^/| /' conftest.$ac_ext >&5
  9724. fi
  9725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9726. fi
  9727. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
  9728. $as_echo "$ac_cv_type_int64_t" >&6; }
  9729. if test $ac_cv_type_int64_t = yes; then
  9730. cat >>confdefs.h <<_ACEOF
  9731. #define HAVE_INT64_T 1
  9732. _ACEOF
  9733. fi
  9734. { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
  9735. $as_echo_n "checking for intptr_t... " >&6; }
  9736. if test "${ac_cv_type_intptr_t+set}" = set; then
  9737. $as_echo_n "(cached) " >&6
  9738. else
  9739. ac_cv_type_intptr_t=no
  9740. cat >conftest.$ac_ext <<_ACEOF
  9741. /* confdefs.h. */
  9742. _ACEOF
  9743. cat confdefs.h >>conftest.$ac_ext
  9744. cat >>conftest.$ac_ext <<_ACEOF
  9745. /* end confdefs.h. */
  9746. $ac_includes_default
  9747. int
  9748. main ()
  9749. {
  9750. if (sizeof (intptr_t))
  9751. return 0;
  9752. ;
  9753. return 0;
  9754. }
  9755. _ACEOF
  9756. rm -f conftest.$ac_objext
  9757. if { (ac_try="$ac_compile"
  9758. case "(($ac_try" in
  9759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9760. *) ac_try_echo=$ac_try;;
  9761. esac
  9762. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9763. $as_echo "$ac_try_echo") >&5
  9764. (eval "$ac_compile") 2>conftest.er1
  9765. ac_status=$?
  9766. grep -v '^ *+' conftest.er1 >conftest.err
  9767. rm -f conftest.er1
  9768. cat conftest.err >&5
  9769. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9770. (exit $ac_status); } && {
  9771. test -z "$ac_c_werror_flag" ||
  9772. test ! -s conftest.err
  9773. } && test -s conftest.$ac_objext; then
  9774. cat >conftest.$ac_ext <<_ACEOF
  9775. /* confdefs.h. */
  9776. _ACEOF
  9777. cat confdefs.h >>conftest.$ac_ext
  9778. cat >>conftest.$ac_ext <<_ACEOF
  9779. /* end confdefs.h. */
  9780. $ac_includes_default
  9781. int
  9782. main ()
  9783. {
  9784. if (sizeof ((intptr_t)))
  9785. return 0;
  9786. ;
  9787. return 0;
  9788. }
  9789. _ACEOF
  9790. rm -f conftest.$ac_objext
  9791. if { (ac_try="$ac_compile"
  9792. case "(($ac_try" in
  9793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9794. *) ac_try_echo=$ac_try;;
  9795. esac
  9796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9797. $as_echo "$ac_try_echo") >&5
  9798. (eval "$ac_compile") 2>conftest.er1
  9799. ac_status=$?
  9800. grep -v '^ *+' conftest.er1 >conftest.err
  9801. rm -f conftest.er1
  9802. cat conftest.err >&5
  9803. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9804. (exit $ac_status); } && {
  9805. test -z "$ac_c_werror_flag" ||
  9806. test ! -s conftest.err
  9807. } && test -s conftest.$ac_objext; then
  9808. :
  9809. else
  9810. $as_echo "$as_me: failed program was:" >&5
  9811. sed 's/^/| /' conftest.$ac_ext >&5
  9812. ac_cv_type_intptr_t=yes
  9813. fi
  9814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9815. else
  9816. $as_echo "$as_me: failed program was:" >&5
  9817. sed 's/^/| /' conftest.$ac_ext >&5
  9818. fi
  9819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9820. fi
  9821. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  9822. $as_echo "$ac_cv_type_intptr_t" >&6; }
  9823. if test $ac_cv_type_intptr_t = yes; then
  9824. cat >>confdefs.h <<_ACEOF
  9825. #define HAVE_INTPTR_T 1
  9826. _ACEOF
  9827. fi
  9828. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  9829. $as_echo_n "checking for uint8_t... " >&6; }
  9830. if test "${ac_cv_type_uint8_t+set}" = set; then
  9831. $as_echo_n "(cached) " >&6
  9832. else
  9833. ac_cv_type_uint8_t=no
  9834. cat >conftest.$ac_ext <<_ACEOF
  9835. /* confdefs.h. */
  9836. _ACEOF
  9837. cat confdefs.h >>conftest.$ac_ext
  9838. cat >>conftest.$ac_ext <<_ACEOF
  9839. /* end confdefs.h. */
  9840. $ac_includes_default
  9841. int
  9842. main ()
  9843. {
  9844. if (sizeof (uint8_t))
  9845. return 0;
  9846. ;
  9847. return 0;
  9848. }
  9849. _ACEOF
  9850. rm -f conftest.$ac_objext
  9851. if { (ac_try="$ac_compile"
  9852. case "(($ac_try" in
  9853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9854. *) ac_try_echo=$ac_try;;
  9855. esac
  9856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9857. $as_echo "$ac_try_echo") >&5
  9858. (eval "$ac_compile") 2>conftest.er1
  9859. ac_status=$?
  9860. grep -v '^ *+' conftest.er1 >conftest.err
  9861. rm -f conftest.er1
  9862. cat conftest.err >&5
  9863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9864. (exit $ac_status); } && {
  9865. test -z "$ac_c_werror_flag" ||
  9866. test ! -s conftest.err
  9867. } && test -s conftest.$ac_objext; then
  9868. cat >conftest.$ac_ext <<_ACEOF
  9869. /* confdefs.h. */
  9870. _ACEOF
  9871. cat confdefs.h >>conftest.$ac_ext
  9872. cat >>conftest.$ac_ext <<_ACEOF
  9873. /* end confdefs.h. */
  9874. $ac_includes_default
  9875. int
  9876. main ()
  9877. {
  9878. if (sizeof ((uint8_t)))
  9879. return 0;
  9880. ;
  9881. return 0;
  9882. }
  9883. _ACEOF
  9884. rm -f conftest.$ac_objext
  9885. if { (ac_try="$ac_compile"
  9886. case "(($ac_try" in
  9887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9888. *) ac_try_echo=$ac_try;;
  9889. esac
  9890. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9891. $as_echo "$ac_try_echo") >&5
  9892. (eval "$ac_compile") 2>conftest.er1
  9893. ac_status=$?
  9894. grep -v '^ *+' conftest.er1 >conftest.err
  9895. rm -f conftest.er1
  9896. cat conftest.err >&5
  9897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9898. (exit $ac_status); } && {
  9899. test -z "$ac_c_werror_flag" ||
  9900. test ! -s conftest.err
  9901. } && test -s conftest.$ac_objext; then
  9902. :
  9903. else
  9904. $as_echo "$as_me: failed program was:" >&5
  9905. sed 's/^/| /' conftest.$ac_ext >&5
  9906. ac_cv_type_uint8_t=yes
  9907. fi
  9908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9909. else
  9910. $as_echo "$as_me: failed program was:" >&5
  9911. sed 's/^/| /' conftest.$ac_ext >&5
  9912. fi
  9913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9914. fi
  9915. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  9916. $as_echo "$ac_cv_type_uint8_t" >&6; }
  9917. if test $ac_cv_type_uint8_t = yes; then
  9918. cat >>confdefs.h <<_ACEOF
  9919. #define HAVE_UINT8_T 1
  9920. _ACEOF
  9921. fi
  9922. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  9923. $as_echo_n "checking for uint16_t... " >&6; }
  9924. if test "${ac_cv_type_uint16_t+set}" = set; then
  9925. $as_echo_n "(cached) " >&6
  9926. else
  9927. ac_cv_type_uint16_t=no
  9928. cat >conftest.$ac_ext <<_ACEOF
  9929. /* confdefs.h. */
  9930. _ACEOF
  9931. cat confdefs.h >>conftest.$ac_ext
  9932. cat >>conftest.$ac_ext <<_ACEOF
  9933. /* end confdefs.h. */
  9934. $ac_includes_default
  9935. int
  9936. main ()
  9937. {
  9938. if (sizeof (uint16_t))
  9939. return 0;
  9940. ;
  9941. return 0;
  9942. }
  9943. _ACEOF
  9944. rm -f conftest.$ac_objext
  9945. if { (ac_try="$ac_compile"
  9946. case "(($ac_try" in
  9947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9948. *) ac_try_echo=$ac_try;;
  9949. esac
  9950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9951. $as_echo "$ac_try_echo") >&5
  9952. (eval "$ac_compile") 2>conftest.er1
  9953. ac_status=$?
  9954. grep -v '^ *+' conftest.er1 >conftest.err
  9955. rm -f conftest.er1
  9956. cat conftest.err >&5
  9957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. (exit $ac_status); } && {
  9959. test -z "$ac_c_werror_flag" ||
  9960. test ! -s conftest.err
  9961. } && test -s conftest.$ac_objext; then
  9962. cat >conftest.$ac_ext <<_ACEOF
  9963. /* confdefs.h. */
  9964. _ACEOF
  9965. cat confdefs.h >>conftest.$ac_ext
  9966. cat >>conftest.$ac_ext <<_ACEOF
  9967. /* end confdefs.h. */
  9968. $ac_includes_default
  9969. int
  9970. main ()
  9971. {
  9972. if (sizeof ((uint16_t)))
  9973. return 0;
  9974. ;
  9975. return 0;
  9976. }
  9977. _ACEOF
  9978. rm -f conftest.$ac_objext
  9979. if { (ac_try="$ac_compile"
  9980. case "(($ac_try" in
  9981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9982. *) ac_try_echo=$ac_try;;
  9983. esac
  9984. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9985. $as_echo "$ac_try_echo") >&5
  9986. (eval "$ac_compile") 2>conftest.er1
  9987. ac_status=$?
  9988. grep -v '^ *+' conftest.er1 >conftest.err
  9989. rm -f conftest.er1
  9990. cat conftest.err >&5
  9991. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9992. (exit $ac_status); } && {
  9993. test -z "$ac_c_werror_flag" ||
  9994. test ! -s conftest.err
  9995. } && test -s conftest.$ac_objext; then
  9996. :
  9997. else
  9998. $as_echo "$as_me: failed program was:" >&5
  9999. sed 's/^/| /' conftest.$ac_ext >&5
  10000. ac_cv_type_uint16_t=yes
  10001. fi
  10002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10003. else
  10004. $as_echo "$as_me: failed program was:" >&5
  10005. sed 's/^/| /' conftest.$ac_ext >&5
  10006. fi
  10007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10008. fi
  10009. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  10010. $as_echo "$ac_cv_type_uint16_t" >&6; }
  10011. if test $ac_cv_type_uint16_t = yes; then
  10012. cat >>confdefs.h <<_ACEOF
  10013. #define HAVE_UINT16_T 1
  10014. _ACEOF
  10015. fi
  10016. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  10017. $as_echo_n "checking for uint32_t... " >&6; }
  10018. if test "${ac_cv_type_uint32_t+set}" = set; then
  10019. $as_echo_n "(cached) " >&6
  10020. else
  10021. ac_cv_type_uint32_t=no
  10022. cat >conftest.$ac_ext <<_ACEOF
  10023. /* confdefs.h. */
  10024. _ACEOF
  10025. cat confdefs.h >>conftest.$ac_ext
  10026. cat >>conftest.$ac_ext <<_ACEOF
  10027. /* end confdefs.h. */
  10028. $ac_includes_default
  10029. int
  10030. main ()
  10031. {
  10032. if (sizeof (uint32_t))
  10033. return 0;
  10034. ;
  10035. return 0;
  10036. }
  10037. _ACEOF
  10038. rm -f conftest.$ac_objext
  10039. if { (ac_try="$ac_compile"
  10040. case "(($ac_try" in
  10041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10042. *) ac_try_echo=$ac_try;;
  10043. esac
  10044. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10045. $as_echo "$ac_try_echo") >&5
  10046. (eval "$ac_compile") 2>conftest.er1
  10047. ac_status=$?
  10048. grep -v '^ *+' conftest.er1 >conftest.err
  10049. rm -f conftest.er1
  10050. cat conftest.err >&5
  10051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10052. (exit $ac_status); } && {
  10053. test -z "$ac_c_werror_flag" ||
  10054. test ! -s conftest.err
  10055. } && test -s conftest.$ac_objext; then
  10056. cat >conftest.$ac_ext <<_ACEOF
  10057. /* confdefs.h. */
  10058. _ACEOF
  10059. cat confdefs.h >>conftest.$ac_ext
  10060. cat >>conftest.$ac_ext <<_ACEOF
  10061. /* end confdefs.h. */
  10062. $ac_includes_default
  10063. int
  10064. main ()
  10065. {
  10066. if (sizeof ((uint32_t)))
  10067. return 0;
  10068. ;
  10069. return 0;
  10070. }
  10071. _ACEOF
  10072. rm -f conftest.$ac_objext
  10073. if { (ac_try="$ac_compile"
  10074. case "(($ac_try" in
  10075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10076. *) ac_try_echo=$ac_try;;
  10077. esac
  10078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10079. $as_echo "$ac_try_echo") >&5
  10080. (eval "$ac_compile") 2>conftest.er1
  10081. ac_status=$?
  10082. grep -v '^ *+' conftest.er1 >conftest.err
  10083. rm -f conftest.er1
  10084. cat conftest.err >&5
  10085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10086. (exit $ac_status); } && {
  10087. test -z "$ac_c_werror_flag" ||
  10088. test ! -s conftest.err
  10089. } && test -s conftest.$ac_objext; then
  10090. :
  10091. else
  10092. $as_echo "$as_me: failed program was:" >&5
  10093. sed 's/^/| /' conftest.$ac_ext >&5
  10094. ac_cv_type_uint32_t=yes
  10095. fi
  10096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10097. else
  10098. $as_echo "$as_me: failed program was:" >&5
  10099. sed 's/^/| /' conftest.$ac_ext >&5
  10100. fi
  10101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10102. fi
  10103. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  10104. $as_echo "$ac_cv_type_uint32_t" >&6; }
  10105. if test $ac_cv_type_uint32_t = yes; then
  10106. cat >>confdefs.h <<_ACEOF
  10107. #define HAVE_UINT32_T 1
  10108. _ACEOF
  10109. fi
  10110. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  10111. $as_echo_n "checking for uint64_t... " >&6; }
  10112. if test "${ac_cv_type_uint64_t+set}" = set; then
  10113. $as_echo_n "(cached) " >&6
  10114. else
  10115. ac_cv_type_uint64_t=no
  10116. cat >conftest.$ac_ext <<_ACEOF
  10117. /* confdefs.h. */
  10118. _ACEOF
  10119. cat confdefs.h >>conftest.$ac_ext
  10120. cat >>conftest.$ac_ext <<_ACEOF
  10121. /* end confdefs.h. */
  10122. $ac_includes_default
  10123. int
  10124. main ()
  10125. {
  10126. if (sizeof (uint64_t))
  10127. return 0;
  10128. ;
  10129. return 0;
  10130. }
  10131. _ACEOF
  10132. rm -f conftest.$ac_objext
  10133. if { (ac_try="$ac_compile"
  10134. case "(($ac_try" in
  10135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10136. *) ac_try_echo=$ac_try;;
  10137. esac
  10138. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10139. $as_echo "$ac_try_echo") >&5
  10140. (eval "$ac_compile") 2>conftest.er1
  10141. ac_status=$?
  10142. grep -v '^ *+' conftest.er1 >conftest.err
  10143. rm -f conftest.er1
  10144. cat conftest.err >&5
  10145. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10146. (exit $ac_status); } && {
  10147. test -z "$ac_c_werror_flag" ||
  10148. test ! -s conftest.err
  10149. } && test -s conftest.$ac_objext; then
  10150. cat >conftest.$ac_ext <<_ACEOF
  10151. /* confdefs.h. */
  10152. _ACEOF
  10153. cat confdefs.h >>conftest.$ac_ext
  10154. cat >>conftest.$ac_ext <<_ACEOF
  10155. /* end confdefs.h. */
  10156. $ac_includes_default
  10157. int
  10158. main ()
  10159. {
  10160. if (sizeof ((uint64_t)))
  10161. return 0;
  10162. ;
  10163. return 0;
  10164. }
  10165. _ACEOF
  10166. rm -f conftest.$ac_objext
  10167. if { (ac_try="$ac_compile"
  10168. case "(($ac_try" in
  10169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10170. *) ac_try_echo=$ac_try;;
  10171. esac
  10172. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10173. $as_echo "$ac_try_echo") >&5
  10174. (eval "$ac_compile") 2>conftest.er1
  10175. ac_status=$?
  10176. grep -v '^ *+' conftest.er1 >conftest.err
  10177. rm -f conftest.er1
  10178. cat conftest.err >&5
  10179. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10180. (exit $ac_status); } && {
  10181. test -z "$ac_c_werror_flag" ||
  10182. test ! -s conftest.err
  10183. } && test -s conftest.$ac_objext; then
  10184. :
  10185. else
  10186. $as_echo "$as_me: failed program was:" >&5
  10187. sed 's/^/| /' conftest.$ac_ext >&5
  10188. ac_cv_type_uint64_t=yes
  10189. fi
  10190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10191. else
  10192. $as_echo "$as_me: failed program was:" >&5
  10193. sed 's/^/| /' conftest.$ac_ext >&5
  10194. fi
  10195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10196. fi
  10197. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
  10198. $as_echo "$ac_cv_type_uint64_t" >&6; }
  10199. if test $ac_cv_type_uint64_t = yes; then
  10200. cat >>confdefs.h <<_ACEOF
  10201. #define HAVE_UINT64_T 1
  10202. _ACEOF
  10203. fi
  10204. { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
  10205. $as_echo_n "checking for uintptr_t... " >&6; }
  10206. if test "${ac_cv_type_uintptr_t+set}" = set; then
  10207. $as_echo_n "(cached) " >&6
  10208. else
  10209. ac_cv_type_uintptr_t=no
  10210. cat >conftest.$ac_ext <<_ACEOF
  10211. /* confdefs.h. */
  10212. _ACEOF
  10213. cat confdefs.h >>conftest.$ac_ext
  10214. cat >>conftest.$ac_ext <<_ACEOF
  10215. /* end confdefs.h. */
  10216. $ac_includes_default
  10217. int
  10218. main ()
  10219. {
  10220. if (sizeof (uintptr_t))
  10221. return 0;
  10222. ;
  10223. return 0;
  10224. }
  10225. _ACEOF
  10226. rm -f conftest.$ac_objext
  10227. if { (ac_try="$ac_compile"
  10228. case "(($ac_try" in
  10229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10230. *) ac_try_echo=$ac_try;;
  10231. esac
  10232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10233. $as_echo "$ac_try_echo") >&5
  10234. (eval "$ac_compile") 2>conftest.er1
  10235. ac_status=$?
  10236. grep -v '^ *+' conftest.er1 >conftest.err
  10237. rm -f conftest.er1
  10238. cat conftest.err >&5
  10239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10240. (exit $ac_status); } && {
  10241. test -z "$ac_c_werror_flag" ||
  10242. test ! -s conftest.err
  10243. } && test -s conftest.$ac_objext; then
  10244. cat >conftest.$ac_ext <<_ACEOF
  10245. /* confdefs.h. */
  10246. _ACEOF
  10247. cat confdefs.h >>conftest.$ac_ext
  10248. cat >>conftest.$ac_ext <<_ACEOF
  10249. /* end confdefs.h. */
  10250. $ac_includes_default
  10251. int
  10252. main ()
  10253. {
  10254. if (sizeof ((uintptr_t)))
  10255. return 0;
  10256. ;
  10257. return 0;
  10258. }
  10259. _ACEOF
  10260. rm -f conftest.$ac_objext
  10261. if { (ac_try="$ac_compile"
  10262. case "(($ac_try" in
  10263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10264. *) ac_try_echo=$ac_try;;
  10265. esac
  10266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10267. $as_echo "$ac_try_echo") >&5
  10268. (eval "$ac_compile") 2>conftest.er1
  10269. ac_status=$?
  10270. grep -v '^ *+' conftest.er1 >conftest.err
  10271. rm -f conftest.er1
  10272. cat conftest.err >&5
  10273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10274. (exit $ac_status); } && {
  10275. test -z "$ac_c_werror_flag" ||
  10276. test ! -s conftest.err
  10277. } && test -s conftest.$ac_objext; then
  10278. :
  10279. else
  10280. $as_echo "$as_me: failed program was:" >&5
  10281. sed 's/^/| /' conftest.$ac_ext >&5
  10282. ac_cv_type_uintptr_t=yes
  10283. fi
  10284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10285. else
  10286. $as_echo "$as_me: failed program was:" >&5
  10287. sed 's/^/| /' conftest.$ac_ext >&5
  10288. fi
  10289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10290. fi
  10291. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  10292. $as_echo "$ac_cv_type_uintptr_t" >&6; }
  10293. if test $ac_cv_type_uintptr_t = yes; then
  10294. cat >>confdefs.h <<_ACEOF
  10295. #define HAVE_UINTPTR_T 1
  10296. _ACEOF
  10297. fi
  10298. #########
  10299. # Check for needed/wanted headers
  10300. for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
  10301. do
  10302. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10303. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10304. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10305. $as_echo_n "checking for $ac_header... " >&6; }
  10306. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10307. $as_echo_n "(cached) " >&6
  10308. fi
  10309. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10310. $as_echo "$as_val"'`
  10311. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10312. $as_echo "$ac_res" >&6; }
  10313. else
  10314. # Is the header compilable?
  10315. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10316. $as_echo_n "checking $ac_header usability... " >&6; }
  10317. cat >conftest.$ac_ext <<_ACEOF
  10318. /* confdefs.h. */
  10319. _ACEOF
  10320. cat confdefs.h >>conftest.$ac_ext
  10321. cat >>conftest.$ac_ext <<_ACEOF
  10322. /* end confdefs.h. */
  10323. $ac_includes_default
  10324. #include <$ac_header>
  10325. _ACEOF
  10326. rm -f conftest.$ac_objext
  10327. if { (ac_try="$ac_compile"
  10328. case "(($ac_try" in
  10329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10330. *) ac_try_echo=$ac_try;;
  10331. esac
  10332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10333. $as_echo "$ac_try_echo") >&5
  10334. (eval "$ac_compile") 2>conftest.er1
  10335. ac_status=$?
  10336. grep -v '^ *+' conftest.er1 >conftest.err
  10337. rm -f conftest.er1
  10338. cat conftest.err >&5
  10339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10340. (exit $ac_status); } && {
  10341. test -z "$ac_c_werror_flag" ||
  10342. test ! -s conftest.err
  10343. } && test -s conftest.$ac_objext; then
  10344. ac_header_compiler=yes
  10345. else
  10346. $as_echo "$as_me: failed program was:" >&5
  10347. sed 's/^/| /' conftest.$ac_ext >&5
  10348. ac_header_compiler=no
  10349. fi
  10350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10351. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10352. $as_echo "$ac_header_compiler" >&6; }
  10353. # Is the header present?
  10354. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10355. $as_echo_n "checking $ac_header presence... " >&6; }
  10356. cat >conftest.$ac_ext <<_ACEOF
  10357. /* confdefs.h. */
  10358. _ACEOF
  10359. cat confdefs.h >>conftest.$ac_ext
  10360. cat >>conftest.$ac_ext <<_ACEOF
  10361. /* end confdefs.h. */
  10362. #include <$ac_header>
  10363. _ACEOF
  10364. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10365. case "(($ac_try" in
  10366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10367. *) ac_try_echo=$ac_try;;
  10368. esac
  10369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10370. $as_echo "$ac_try_echo") >&5
  10371. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10372. ac_status=$?
  10373. grep -v '^ *+' conftest.er1 >conftest.err
  10374. rm -f conftest.er1
  10375. cat conftest.err >&5
  10376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10377. (exit $ac_status); } >/dev/null && {
  10378. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10379. test ! -s conftest.err
  10380. }; then
  10381. ac_header_preproc=yes
  10382. else
  10383. $as_echo "$as_me: failed program was:" >&5
  10384. sed 's/^/| /' conftest.$ac_ext >&5
  10385. ac_header_preproc=no
  10386. fi
  10387. rm -f conftest.err conftest.$ac_ext
  10388. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10389. $as_echo "$ac_header_preproc" >&6; }
  10390. # So? What about this header?
  10391. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10392. yes:no: )
  10393. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10394. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10395. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10396. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10397. ac_header_preproc=yes
  10398. ;;
  10399. no:yes:* )
  10400. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10401. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10402. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10403. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10404. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10405. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10406. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10407. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10408. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10409. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10410. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10411. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10412. ;;
  10413. esac
  10414. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10415. $as_echo_n "checking for $ac_header... " >&6; }
  10416. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10417. $as_echo_n "(cached) " >&6
  10418. else
  10419. eval "$as_ac_Header=\$ac_header_preproc"
  10420. fi
  10421. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10422. $as_echo "$as_val"'`
  10423. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10424. $as_echo "$ac_res" >&6; }
  10425. fi
  10426. if test `eval 'as_val=${'$as_ac_Header'}
  10427. $as_echo "$as_val"'` = yes; then
  10428. cat >>confdefs.h <<_ACEOF
  10429. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10430. _ACEOF
  10431. fi
  10432. done
  10433. #########
  10434. # Figure out whether or not we have these functions
  10435. #
  10436. for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size
  10437. do
  10438. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10439. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10440. $as_echo_n "checking for $ac_func... " >&6; }
  10441. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10442. $as_echo_n "(cached) " >&6
  10443. else
  10444. cat >conftest.$ac_ext <<_ACEOF
  10445. /* confdefs.h. */
  10446. _ACEOF
  10447. cat confdefs.h >>conftest.$ac_ext
  10448. cat >>conftest.$ac_ext <<_ACEOF
  10449. /* end confdefs.h. */
  10450. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10451. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10452. #define $ac_func innocuous_$ac_func
  10453. /* System header to define __stub macros and hopefully few prototypes,
  10454. which can conflict with char $ac_func (); below.
  10455. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10456. <limits.h> exists even on freestanding compilers. */
  10457. #ifdef __STDC__
  10458. # include <limits.h>
  10459. #else
  10460. # include <assert.h>
  10461. #endif
  10462. #undef $ac_func
  10463. /* Override any GCC internal prototype to avoid an error.
  10464. Use char because int might match the return type of a GCC
  10465. builtin and then its argument prototype would still apply. */
  10466. #ifdef __cplusplus
  10467. extern "C"
  10468. #endif
  10469. char $ac_func ();
  10470. /* The GNU C library defines this for functions which it implements
  10471. to always fail with ENOSYS. Some functions are actually named
  10472. something starting with __ and the normal name is an alias. */
  10473. #if defined __stub_$ac_func || defined __stub___$ac_func
  10474. choke me
  10475. #endif
  10476. int
  10477. main ()
  10478. {
  10479. return $ac_func ();
  10480. ;
  10481. return 0;
  10482. }
  10483. _ACEOF
  10484. rm -f conftest.$ac_objext conftest$ac_exeext
  10485. if { (ac_try="$ac_link"
  10486. case "(($ac_try" in
  10487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10488. *) ac_try_echo=$ac_try;;
  10489. esac
  10490. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10491. $as_echo "$ac_try_echo") >&5
  10492. (eval "$ac_link") 2>conftest.er1
  10493. ac_status=$?
  10494. grep -v '^ *+' conftest.er1 >conftest.err
  10495. rm -f conftest.er1
  10496. cat conftest.err >&5
  10497. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10498. (exit $ac_status); } && {
  10499. test -z "$ac_c_werror_flag" ||
  10500. test ! -s conftest.err
  10501. } && test -s conftest$ac_exeext && {
  10502. test "$cross_compiling" = yes ||
  10503. $as_test_x conftest$ac_exeext
  10504. }; then
  10505. eval "$as_ac_var=yes"
  10506. else
  10507. $as_echo "$as_me: failed program was:" >&5
  10508. sed 's/^/| /' conftest.$ac_ext >&5
  10509. eval "$as_ac_var=no"
  10510. fi
  10511. rm -rf conftest.dSYM
  10512. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10513. conftest$ac_exeext conftest.$ac_ext
  10514. fi
  10515. ac_res=`eval 'as_val=${'$as_ac_var'}
  10516. $as_echo "$as_val"'`
  10517. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10518. $as_echo "$ac_res" >&6; }
  10519. if test `eval 'as_val=${'$as_ac_var'}
  10520. $as_echo "$as_val"'` = yes; then
  10521. cat >>confdefs.h <<_ACEOF
  10522. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10523. _ACEOF
  10524. fi
  10525. done
  10526. #########
  10527. # By default, we use the amalgamation (this may be changed below...)
  10528. #
  10529. USE_AMALGAMATION=1
  10530. #########
  10531. # See whether we can run specific tclsh versions known to work well;
  10532. # if not, then we fall back to plain tclsh.
  10533. # TODO: try other versions before falling back?
  10534. #
  10535. for ac_prog in tclsh8.6 tclsh8.5 tclsh
  10536. do
  10537. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10538. set dummy $ac_prog; ac_word=$2
  10539. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10540. $as_echo_n "checking for $ac_word... " >&6; }
  10541. if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
  10542. $as_echo_n "(cached) " >&6
  10543. else
  10544. if test -n "$TCLSH_CMD"; then
  10545. ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
  10546. else
  10547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10548. for as_dir in $PATH
  10549. do
  10550. IFS=$as_save_IFS
  10551. test -z "$as_dir" && as_dir=.
  10552. for ac_exec_ext in '' $ac_executable_extensions; do
  10553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10554. ac_cv_prog_TCLSH_CMD="$ac_prog"
  10555. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10556. break 2
  10557. fi
  10558. done
  10559. done
  10560. IFS=$as_save_IFS
  10561. fi
  10562. fi
  10563. TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
  10564. if test -n "$TCLSH_CMD"; then
  10565. { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
  10566. $as_echo "$TCLSH_CMD" >&6; }
  10567. else
  10568. { $as_echo "$as_me:$LINENO: result: no" >&5
  10569. $as_echo "no" >&6; }
  10570. fi
  10571. test -n "$TCLSH_CMD" && break
  10572. done
  10573. test -n "$TCLSH_CMD" || TCLSH_CMD="none"
  10574. if test "$TCLSH_CMD" = "none"; then
  10575. # If we can't find a local tclsh, then building the amalgamation will fail.
  10576. # We act as though --disable-amalgamation has been used.
  10577. echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
  10578. USE_AMALGAMATION=0
  10579. TCLSH_CMD="tclsh"
  10580. fi
  10581. if test "x${TCLLIBDIR+set}" != "xset" ; then
  10582. TCLLIBDIR='$(libdir)'
  10583. for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
  10584. TCLLIBDIR=$i
  10585. break
  10586. done
  10587. TCLLIBDIR="${TCLLIBDIR}/sqlite3"
  10588. fi
  10589. #########
  10590. # Set up an appropriate program prefix
  10591. #
  10592. if test "$program_prefix" = "NONE"; then
  10593. program_prefix=""
  10594. fi
  10595. VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
  10596. { $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
  10597. $as_echo "$as_me: Version set to $VERSION" >&6;}
  10598. RELEASE=`cat $srcdir/VERSION`
  10599. { $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
  10600. $as_echo "$as_me: Release set to $RELEASE" >&6;}
  10601. VERSION_NUMBER=`cat $srcdir/VERSION \
  10602. | sed 's/[^0-9]/ /g' \
  10603. | awk '{printf "%d%03d%03d",$1,$2,$3}'`
  10604. { $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
  10605. $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
  10606. #########
  10607. # Check to see if the --with-hints=FILE option is used. If there is none,
  10608. # then check for a files named "$host.hints" and ../$hosts.hints where
  10609. # $host is the hostname of the build system. If still no hints are
  10610. # found, try looking in $system.hints and ../$system.hints where
  10611. # $system is the result of uname -s.
  10612. #
  10613. # Check whether --with-hints was given.
  10614. if test "${with_hints+set}" = set; then
  10615. withval=$with_hints; hints=$withval
  10616. fi
  10617. if test "$hints" = ""; then
  10618. host=`hostname | sed 's/\..*//'`
  10619. if test -r $host.hints; then
  10620. hints=$host.hints
  10621. else
  10622. if test -r ../$host.hints; then
  10623. hints=../$host.hints
  10624. fi
  10625. fi
  10626. fi
  10627. if test "$hints" = ""; then
  10628. sys=`uname -s`
  10629. if test -r $sys.hints; then
  10630. hints=$sys.hints
  10631. else
  10632. if test -r ../$sys.hints; then
  10633. hints=../$sys.hints
  10634. fi
  10635. fi
  10636. fi
  10637. if test "$hints" != ""; then
  10638. { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
  10639. $as_echo "reading hints from $hints" >&6; }
  10640. . $hints
  10641. fi
  10642. #########
  10643. # Locate a compiler for the build machine. This compiler should
  10644. # generate command-line programs that run on the build machine.
  10645. #
  10646. if test x"$cross_compiling" = xno; then
  10647. BUILD_CC=$CC
  10648. BUILD_CFLAGS=$CFLAGS
  10649. else
  10650. if test "${BUILD_CC+set}" != set; then
  10651. for ac_prog in gcc cc cl
  10652. do
  10653. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10654. set dummy $ac_prog; ac_word=$2
  10655. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10656. $as_echo_n "checking for $ac_word... " >&6; }
  10657. if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  10658. $as_echo_n "(cached) " >&6
  10659. else
  10660. if test -n "$BUILD_CC"; then
  10661. ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  10662. else
  10663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10664. for as_dir in $PATH
  10665. do
  10666. IFS=$as_save_IFS
  10667. test -z "$as_dir" && as_dir=.
  10668. for ac_exec_ext in '' $ac_executable_extensions; do
  10669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10670. ac_cv_prog_BUILD_CC="$ac_prog"
  10671. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10672. break 2
  10673. fi
  10674. done
  10675. done
  10676. IFS=$as_save_IFS
  10677. fi
  10678. fi
  10679. BUILD_CC=$ac_cv_prog_BUILD_CC
  10680. if test -n "$BUILD_CC"; then
  10681. { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
  10682. $as_echo "$BUILD_CC" >&6; }
  10683. else
  10684. { $as_echo "$as_me:$LINENO: result: no" >&5
  10685. $as_echo "no" >&6; }
  10686. fi
  10687. test -n "$BUILD_CC" && break
  10688. done
  10689. fi
  10690. if test "${BUILD_CFLAGS+set}" != set; then
  10691. BUILD_CFLAGS="-g"
  10692. fi
  10693. fi
  10694. ##########
  10695. # Do we want to support multithreaded use of sqlite
  10696. #
  10697. # Check whether --enable-threadsafe was given.
  10698. if test "${enable_threadsafe+set}" = set; then
  10699. enableval=$enable_threadsafe;
  10700. else
  10701. enable_threadsafe=yes
  10702. fi
  10703. { $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
  10704. $as_echo_n "checking whether to support threadsafe operation... " >&6; }
  10705. if test "$enable_threadsafe" = "no"; then
  10706. SQLITE_THREADSAFE=0
  10707. { $as_echo "$as_me:$LINENO: result: no" >&5
  10708. $as_echo "no" >&6; }
  10709. else
  10710. SQLITE_THREADSAFE=1
  10711. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10712. $as_echo "yes" >&6; }
  10713. fi
  10714. if test "$SQLITE_THREADSAFE" = "1"; then
  10715. { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
  10716. $as_echo_n "checking for library containing pthread_create... " >&6; }
  10717. if test "${ac_cv_search_pthread_create+set}" = set; then
  10718. $as_echo_n "(cached) " >&6
  10719. else
  10720. ac_func_search_save_LIBS=$LIBS
  10721. cat >conftest.$ac_ext <<_ACEOF
  10722. /* confdefs.h. */
  10723. _ACEOF
  10724. cat confdefs.h >>conftest.$ac_ext
  10725. cat >>conftest.$ac_ext <<_ACEOF
  10726. /* end confdefs.h. */
  10727. /* Override any GCC internal prototype to avoid an error.
  10728. Use char because int might match the return type of a GCC
  10729. builtin and then its argument prototype would still apply. */
  10730. #ifdef __cplusplus
  10731. extern "C"
  10732. #endif
  10733. char pthread_create ();
  10734. int
  10735. main ()
  10736. {
  10737. return pthread_create ();
  10738. ;
  10739. return 0;
  10740. }
  10741. _ACEOF
  10742. for ac_lib in '' pthread; do
  10743. if test -z "$ac_lib"; then
  10744. ac_res="none required"
  10745. else
  10746. ac_res=-l$ac_lib
  10747. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10748. fi
  10749. rm -f conftest.$ac_objext conftest$ac_exeext
  10750. if { (ac_try="$ac_link"
  10751. case "(($ac_try" in
  10752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10753. *) ac_try_echo=$ac_try;;
  10754. esac
  10755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10756. $as_echo "$ac_try_echo") >&5
  10757. (eval "$ac_link") 2>conftest.er1
  10758. ac_status=$?
  10759. grep -v '^ *+' conftest.er1 >conftest.err
  10760. rm -f conftest.er1
  10761. cat conftest.err >&5
  10762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10763. (exit $ac_status); } && {
  10764. test -z "$ac_c_werror_flag" ||
  10765. test ! -s conftest.err
  10766. } && test -s conftest$ac_exeext && {
  10767. test "$cross_compiling" = yes ||
  10768. $as_test_x conftest$ac_exeext
  10769. }; then
  10770. ac_cv_search_pthread_create=$ac_res
  10771. else
  10772. $as_echo "$as_me: failed program was:" >&5
  10773. sed 's/^/| /' conftest.$ac_ext >&5
  10774. fi
  10775. rm -rf conftest.dSYM
  10776. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10777. conftest$ac_exeext
  10778. if test "${ac_cv_search_pthread_create+set}" = set; then
  10779. break
  10780. fi
  10781. done
  10782. if test "${ac_cv_search_pthread_create+set}" = set; then
  10783. :
  10784. else
  10785. ac_cv_search_pthread_create=no
  10786. fi
  10787. rm conftest.$ac_ext
  10788. LIBS=$ac_func_search_save_LIBS
  10789. fi
  10790. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
  10791. $as_echo "$ac_cv_search_pthread_create" >&6; }
  10792. ac_res=$ac_cv_search_pthread_create
  10793. if test "$ac_res" != no; then
  10794. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10795. fi
  10796. fi
  10797. ##########
  10798. # Do we want to allow a connection created in one thread to be used
  10799. # in another thread. This does not work on many Linux systems (ex: RedHat 9)
  10800. # due to bugs in the threading implementations. This is thus off by default.
  10801. #
  10802. # Check whether --enable-cross-thread-connections was given.
  10803. if test "${enable_cross_thread_connections+set}" = set; then
  10804. enableval=$enable_cross_thread_connections;
  10805. else
  10806. enable_xthreadconnect=no
  10807. fi
  10808. { $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
  10809. $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
  10810. if test "$enable_xthreadconnect" = "no"; then
  10811. XTHREADCONNECT=''
  10812. { $as_echo "$as_me:$LINENO: result: no" >&5
  10813. $as_echo "no" >&6; }
  10814. else
  10815. XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
  10816. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10817. $as_echo "yes" >&6; }
  10818. fi
  10819. ##########
  10820. # Do we want to support release
  10821. #
  10822. # Check whether --enable-releasemode was given.
  10823. if test "${enable_releasemode+set}" = set; then
  10824. enableval=$enable_releasemode;
  10825. else
  10826. enable_releasemode=no
  10827. fi
  10828. { $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
  10829. $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
  10830. if test "$enable_releasemode" = "no"; then
  10831. ALLOWRELEASE=""
  10832. { $as_echo "$as_me:$LINENO: result: no" >&5
  10833. $as_echo "no" >&6; }
  10834. else
  10835. ALLOWRELEASE="-release `cat $srcdir/VERSION`"
  10836. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10837. $as_echo "yes" >&6; }
  10838. fi
  10839. ##########
  10840. # Do we want temporary databases in memory
  10841. #
  10842. # Check whether --enable-tempstore was given.
  10843. if test "${enable_tempstore+set}" = set; then
  10844. enableval=$enable_tempstore;
  10845. else
  10846. enable_tempstore=no
  10847. fi
  10848. { $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
  10849. $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
  10850. case "$enable_tempstore" in
  10851. never )
  10852. TEMP_STORE=0
  10853. { $as_echo "$as_me:$LINENO: result: never" >&5
  10854. $as_echo "never" >&6; }
  10855. ;;
  10856. no )
  10857. TEMP_STORE=1
  10858. { $as_echo "$as_me:$LINENO: result: no" >&5
  10859. $as_echo "no" >&6; }
  10860. ;;
  10861. yes )
  10862. TEMP_STORE=2
  10863. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10864. $as_echo "yes" >&6; }
  10865. ;;
  10866. always )
  10867. TEMP_STORE=3
  10868. { $as_echo "$as_me:$LINENO: result: always" >&5
  10869. $as_echo "always" >&6; }
  10870. ;;
  10871. * )
  10872. TEMP_STORE=1
  10873. { $as_echo "$as_me:$LINENO: result: no" >&5
  10874. $as_echo "no" >&6; }
  10875. ;;
  10876. esac
  10877. ###########
  10878. # Lots of things are different if we are compiling for Windows using
  10879. # the CYGWIN environment. So check for that special case and handle
  10880. # things accordingly.
  10881. #
  10882. { $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
  10883. $as_echo_n "checking if executables have the .exe suffix... " >&6; }
  10884. if test "$config_BUILD_EXEEXT" = ".exe"; then
  10885. CYGWIN=yes
  10886. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10887. $as_echo "yes" >&6; }
  10888. else
  10889. { $as_echo "$as_me:$LINENO: result: unknown" >&5
  10890. $as_echo "unknown" >&6; }
  10891. fi
  10892. if test "$CYGWIN" != "yes"; then
  10893. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  10894. $as_echo_n "checking host system type... " >&6; }
  10895. if test "${ac_cv_host+set}" = set; then
  10896. $as_echo_n "(cached) " >&6
  10897. else
  10898. if test "x$host_alias" = x; then
  10899. ac_cv_host=$ac_cv_build
  10900. else
  10901. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  10902. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  10903. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  10904. { (exit 1); exit 1; }; }
  10905. fi
  10906. fi
  10907. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  10908. $as_echo "$ac_cv_host" >&6; }
  10909. case $ac_cv_host in
  10910. *-*-*) ;;
  10911. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  10912. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  10913. { (exit 1); exit 1; }; };;
  10914. esac
  10915. host=$ac_cv_host
  10916. ac_save_IFS=$IFS; IFS='-'
  10917. set x $ac_cv_host
  10918. shift
  10919. host_cpu=$1
  10920. host_vendor=$2
  10921. shift; shift
  10922. # Remember, the first character of IFS is used to create $*,
  10923. # except with old shells:
  10924. host_os=$*
  10925. IFS=$ac_save_IFS
  10926. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  10927. case $host_os in
  10928. *cygwin* ) CYGWIN=yes;;
  10929. * ) CYGWIN=no;;
  10930. esac
  10931. fi
  10932. if test "$CYGWIN" = "yes"; then
  10933. BUILD_EXEEXT=.exe
  10934. else
  10935. BUILD_EXEEXT=$EXEEXT
  10936. fi
  10937. if test x"$cross_compiling" = xno; then
  10938. TARGET_EXEEXT=$BUILD_EXEEXT
  10939. else
  10940. TARGET_EXEEXT=$config_TARGET_EXEEXT
  10941. fi
  10942. if test "$TARGET_EXEEXT" = ".exe"; then
  10943. SQLITE_OS_UNIX=0
  10944. SQLITE_OS_WIN=1
  10945. CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
  10946. else
  10947. SQLITE_OS_UNIX=1
  10948. SQLITE_OS_WIN=0
  10949. CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
  10950. fi
  10951. ##########
  10952. # Figure out all the parameters needed to compile against Tcl.
  10953. #
  10954. # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
  10955. # macros in the in the tcl.m4 file of the standard TCL distribution.
  10956. # Those macros could not be used directly since we have to make some
  10957. # minor changes to accomodate systems that do not have TCL installed.
  10958. #
  10959. # Check whether --enable-tcl was given.
  10960. if test "${enable_tcl+set}" = set; then
  10961. enableval=$enable_tcl; use_tcl=$enableval
  10962. else
  10963. use_tcl=yes
  10964. fi
  10965. if test "${use_tcl}" = "yes" ; then
  10966. # Check whether --with-tcl was given.
  10967. if test "${with_tcl+set}" = set; then
  10968. withval=$with_tcl; with_tclconfig=${withval}
  10969. fi
  10970. { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
  10971. $as_echo_n "checking for Tcl configuration... " >&6; }
  10972. if test "${ac_cv_c_tclconfig+set}" = set; then
  10973. $as_echo_n "(cached) " >&6
  10974. else
  10975. # First check to see if --with-tcl was specified.
  10976. if test x"${with_tclconfig}" != x ; then
  10977. if test -f "${with_tclconfig}/tclConfig.sh" ; then
  10978. ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
  10979. else
  10980. { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
  10981. $as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
  10982. { (exit 1); exit 1; }; }
  10983. fi
  10984. fi
  10985. # Start autosearch by asking tclsh
  10986. if test x"${ac_cv_c_tclconfig}" = x ; then
  10987. if test x"$cross_compiling" = xno; then
  10988. for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
  10989. do
  10990. if test -f "$i/tclConfig.sh" ; then
  10991. ac_cv_c_tclconfig="$i"
  10992. break
  10993. fi
  10994. done
  10995. fi
  10996. fi
  10997. # then check for a private Tcl installation
  10998. if test x"${ac_cv_c_tclconfig}" = x ; then
  10999. for i in \
  11000. ../tcl \
  11001. `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  11002. `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
  11003. `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
  11004. ../../tcl \
  11005. `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  11006. `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
  11007. `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
  11008. ../../../tcl \
  11009. `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  11010. `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
  11011. `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
  11012. do
  11013. if test -f "$i/unix/tclConfig.sh" ; then
  11014. ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
  11015. break
  11016. fi
  11017. done
  11018. fi
  11019. # check in a few common install locations
  11020. if test x"${ac_cv_c_tclconfig}" = x ; then
  11021. for i in \
  11022. `ls -d ${libdir} 2>/dev/null` \
  11023. `ls -d /usr/local/lib 2>/dev/null` \
  11024. `ls -d /usr/contrib/lib 2>/dev/null` \
  11025. `ls -d /usr/lib 2>/dev/null`
  11026. do
  11027. if test -f "$i/tclConfig.sh" ; then
  11028. ac_cv_c_tclconfig=`(cd $i; pwd)`
  11029. break
  11030. fi
  11031. done
  11032. fi
  11033. # check in a few other private locations
  11034. if test x"${ac_cv_c_tclconfig}" = x ; then
  11035. for i in \
  11036. ${srcdir}/../tcl \
  11037. `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  11038. `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
  11039. `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
  11040. do
  11041. if test -f "$i/unix/tclConfig.sh" ; then
  11042. ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
  11043. break
  11044. fi
  11045. done
  11046. fi
  11047. fi
  11048. if test x"${ac_cv_c_tclconfig}" = x ; then
  11049. use_tcl=no
  11050. { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
  11051. $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
  11052. { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
  11053. $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
  11054. { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
  11055. $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
  11056. else
  11057. TCL_BIN_DIR=${ac_cv_c_tclconfig}
  11058. { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
  11059. $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
  11060. { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
  11061. $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
  11062. if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
  11063. { $as_echo "$as_me:$LINENO: result: loading" >&5
  11064. $as_echo "loading" >&6; }
  11065. . $TCL_BIN_DIR/tclConfig.sh
  11066. else
  11067. { $as_echo "$as_me:$LINENO: result: file not found" >&5
  11068. $as_echo "file not found" >&6; }
  11069. fi
  11070. #
  11071. # If the TCL_BIN_DIR is the build directory (not the install directory),
  11072. # then set the common variable name to the value of the build variables.
  11073. # For example, the variable TCL_LIB_SPEC will be set to the value
  11074. # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
  11075. # instead of TCL_BUILD_LIB_SPEC since it will work with both an
  11076. # installed and uninstalled version of Tcl.
  11077. #
  11078. if test -f $TCL_BIN_DIR/Makefile ; then
  11079. TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
  11080. TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
  11081. TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
  11082. fi
  11083. #
  11084. # eval is required to do the TCL_DBGX substitution
  11085. #
  11086. eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
  11087. eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
  11088. eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
  11089. eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
  11090. eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
  11091. eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
  11092. fi
  11093. fi
  11094. if test "${use_tcl}" = "no" ; then
  11095. HAVE_TCL=""
  11096. else
  11097. HAVE_TCL=1
  11098. fi
  11099. ##########
  11100. # Figure out what C libraries are required to compile programs
  11101. # that use "readline()" library.
  11102. #
  11103. TARGET_READLINE_LIBS=""
  11104. TARGET_READLINE_INC=""
  11105. TARGET_HAVE_READLINE=0
  11106. # Check whether --enable-readline was given.
  11107. if test "${enable_readline+set}" = set; then
  11108. enableval=$enable_readline; with_readline=$enableval
  11109. else
  11110. with_readline=auto
  11111. fi
  11112. if test x"$with_readline" != xno; then
  11113. found="yes"
  11114. # Check whether --with-readline-lib was given.
  11115. if test "${with_readline_lib+set}" = set; then
  11116. withval=$with_readline_lib; with_readline_lib=$withval
  11117. else
  11118. with_readline_lib="auto"
  11119. fi
  11120. if test "x$with_readline_lib" = xauto; then
  11121. save_LIBS="$LIBS"
  11122. LIBS=""
  11123. { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
  11124. $as_echo_n "checking for library containing tgetent... " >&6; }
  11125. if test "${ac_cv_search_tgetent+set}" = set; then
  11126. $as_echo_n "(cached) " >&6
  11127. else
  11128. ac_func_search_save_LIBS=$LIBS
  11129. cat >conftest.$ac_ext <<_ACEOF
  11130. /* confdefs.h. */
  11131. _ACEOF
  11132. cat confdefs.h >>conftest.$ac_ext
  11133. cat >>conftest.$ac_ext <<_ACEOF
  11134. /* end confdefs.h. */
  11135. /* Override any GCC internal prototype to avoid an error.
  11136. Use char because int might match the return type of a GCC
  11137. builtin and then its argument prototype would still apply. */
  11138. #ifdef __cplusplus
  11139. extern "C"
  11140. #endif
  11141. char tgetent ();
  11142. int
  11143. main ()
  11144. {
  11145. return tgetent ();
  11146. ;
  11147. return 0;
  11148. }
  11149. _ACEOF
  11150. for ac_lib in '' readline ncurses curses termcap; do
  11151. if test -z "$ac_lib"; then
  11152. ac_res="none required"
  11153. else
  11154. ac_res=-l$ac_lib
  11155. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11156. fi
  11157. rm -f conftest.$ac_objext conftest$ac_exeext
  11158. if { (ac_try="$ac_link"
  11159. case "(($ac_try" in
  11160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11161. *) ac_try_echo=$ac_try;;
  11162. esac
  11163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11164. $as_echo "$ac_try_echo") >&5
  11165. (eval "$ac_link") 2>conftest.er1
  11166. ac_status=$?
  11167. grep -v '^ *+' conftest.er1 >conftest.err
  11168. rm -f conftest.er1
  11169. cat conftest.err >&5
  11170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11171. (exit $ac_status); } && {
  11172. test -z "$ac_c_werror_flag" ||
  11173. test ! -s conftest.err
  11174. } && test -s conftest$ac_exeext && {
  11175. test "$cross_compiling" = yes ||
  11176. $as_test_x conftest$ac_exeext
  11177. }; then
  11178. ac_cv_search_tgetent=$ac_res
  11179. else
  11180. $as_echo "$as_me: failed program was:" >&5
  11181. sed 's/^/| /' conftest.$ac_ext >&5
  11182. fi
  11183. rm -rf conftest.dSYM
  11184. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11185. conftest$ac_exeext
  11186. if test "${ac_cv_search_tgetent+set}" = set; then
  11187. break
  11188. fi
  11189. done
  11190. if test "${ac_cv_search_tgetent+set}" = set; then
  11191. :
  11192. else
  11193. ac_cv_search_tgetent=no
  11194. fi
  11195. rm conftest.$ac_ext
  11196. LIBS=$ac_func_search_save_LIBS
  11197. fi
  11198. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
  11199. $as_echo "$ac_cv_search_tgetent" >&6; }
  11200. ac_res=$ac_cv_search_tgetent
  11201. if test "$ac_res" != no; then
  11202. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11203. term_LIBS="$LIBS"
  11204. else
  11205. term_LIBS=""
  11206. fi
  11207. { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
  11208. $as_echo_n "checking for readline in -lreadline... " >&6; }
  11209. if test "${ac_cv_lib_readline_readline+set}" = set; then
  11210. $as_echo_n "(cached) " >&6
  11211. else
  11212. ac_check_lib_save_LIBS=$LIBS
  11213. LIBS="-lreadline $LIBS"
  11214. cat >conftest.$ac_ext <<_ACEOF
  11215. /* confdefs.h. */
  11216. _ACEOF
  11217. cat confdefs.h >>conftest.$ac_ext
  11218. cat >>conftest.$ac_ext <<_ACEOF
  11219. /* end confdefs.h. */
  11220. /* Override any GCC internal prototype to avoid an error.
  11221. Use char because int might match the return type of a GCC
  11222. builtin and then its argument prototype would still apply. */
  11223. #ifdef __cplusplus
  11224. extern "C"
  11225. #endif
  11226. char readline ();
  11227. int
  11228. main ()
  11229. {
  11230. return readline ();
  11231. ;
  11232. return 0;
  11233. }
  11234. _ACEOF
  11235. rm -f conftest.$ac_objext conftest$ac_exeext
  11236. if { (ac_try="$ac_link"
  11237. case "(($ac_try" in
  11238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11239. *) ac_try_echo=$ac_try;;
  11240. esac
  11241. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11242. $as_echo "$ac_try_echo") >&5
  11243. (eval "$ac_link") 2>conftest.er1
  11244. ac_status=$?
  11245. grep -v '^ *+' conftest.er1 >conftest.err
  11246. rm -f conftest.er1
  11247. cat conftest.err >&5
  11248. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11249. (exit $ac_status); } && {
  11250. test -z "$ac_c_werror_flag" ||
  11251. test ! -s conftest.err
  11252. } && test -s conftest$ac_exeext && {
  11253. test "$cross_compiling" = yes ||
  11254. $as_test_x conftest$ac_exeext
  11255. }; then
  11256. ac_cv_lib_readline_readline=yes
  11257. else
  11258. $as_echo "$as_me: failed program was:" >&5
  11259. sed 's/^/| /' conftest.$ac_ext >&5
  11260. ac_cv_lib_readline_readline=no
  11261. fi
  11262. rm -rf conftest.dSYM
  11263. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11264. conftest$ac_exeext conftest.$ac_ext
  11265. LIBS=$ac_check_lib_save_LIBS
  11266. fi
  11267. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
  11268. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  11269. if test $ac_cv_lib_readline_readline = yes; then
  11270. TARGET_READLINE_LIBS="-lreadline"
  11271. else
  11272. found="no"
  11273. fi
  11274. TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
  11275. LIBS="$save_LIBS"
  11276. else
  11277. TARGET_READLINE_LIBS="$with_readline_lib"
  11278. fi
  11279. # Check whether --with-readline-inc was given.
  11280. if test "${with_readline_inc+set}" = set; then
  11281. withval=$with_readline_inc; with_readline_inc=$withval
  11282. else
  11283. with_readline_inc="auto"
  11284. fi
  11285. if test "x$with_readline_inc" = xauto; then
  11286. if test "${ac_cv_header_readline_h+set}" = set; then
  11287. { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
  11288. $as_echo_n "checking for readline.h... " >&6; }
  11289. if test "${ac_cv_header_readline_h+set}" = set; then
  11290. $as_echo_n "(cached) " >&6
  11291. fi
  11292. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
  11293. $as_echo "$ac_cv_header_readline_h" >&6; }
  11294. else
  11295. # Is the header compilable?
  11296. { $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
  11297. $as_echo_n "checking readline.h usability... " >&6; }
  11298. cat >conftest.$ac_ext <<_ACEOF
  11299. /* confdefs.h. */
  11300. _ACEOF
  11301. cat confdefs.h >>conftest.$ac_ext
  11302. cat >>conftest.$ac_ext <<_ACEOF
  11303. /* end confdefs.h. */
  11304. $ac_includes_default
  11305. #include <readline.h>
  11306. _ACEOF
  11307. rm -f conftest.$ac_objext
  11308. if { (ac_try="$ac_compile"
  11309. case "(($ac_try" in
  11310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11311. *) ac_try_echo=$ac_try;;
  11312. esac
  11313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11314. $as_echo "$ac_try_echo") >&5
  11315. (eval "$ac_compile") 2>conftest.er1
  11316. ac_status=$?
  11317. grep -v '^ *+' conftest.er1 >conftest.err
  11318. rm -f conftest.er1
  11319. cat conftest.err >&5
  11320. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11321. (exit $ac_status); } && {
  11322. test -z "$ac_c_werror_flag" ||
  11323. test ! -s conftest.err
  11324. } && test -s conftest.$ac_objext; then
  11325. ac_header_compiler=yes
  11326. else
  11327. $as_echo "$as_me: failed program was:" >&5
  11328. sed 's/^/| /' conftest.$ac_ext >&5
  11329. ac_header_compiler=no
  11330. fi
  11331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11332. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11333. $as_echo "$ac_header_compiler" >&6; }
  11334. # Is the header present?
  11335. { $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
  11336. $as_echo_n "checking readline.h presence... " >&6; }
  11337. cat >conftest.$ac_ext <<_ACEOF
  11338. /* confdefs.h. */
  11339. _ACEOF
  11340. cat confdefs.h >>conftest.$ac_ext
  11341. cat >>conftest.$ac_ext <<_ACEOF
  11342. /* end confdefs.h. */
  11343. #include <readline.h>
  11344. _ACEOF
  11345. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11346. case "(($ac_try" in
  11347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11348. *) ac_try_echo=$ac_try;;
  11349. esac
  11350. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11351. $as_echo "$ac_try_echo") >&5
  11352. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11353. ac_status=$?
  11354. grep -v '^ *+' conftest.er1 >conftest.err
  11355. rm -f conftest.er1
  11356. cat conftest.err >&5
  11357. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11358. (exit $ac_status); } >/dev/null && {
  11359. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11360. test ! -s conftest.err
  11361. }; then
  11362. ac_header_preproc=yes
  11363. else
  11364. $as_echo "$as_me: failed program was:" >&5
  11365. sed 's/^/| /' conftest.$ac_ext >&5
  11366. ac_header_preproc=no
  11367. fi
  11368. rm -f conftest.err conftest.$ac_ext
  11369. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11370. $as_echo "$ac_header_preproc" >&6; }
  11371. # So? What about this header?
  11372. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11373. yes:no: )
  11374. { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11375. $as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11376. { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
  11377. $as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
  11378. ac_header_preproc=yes
  11379. ;;
  11380. no:yes:* )
  11381. { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
  11382. $as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
  11383. { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
  11384. $as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
  11385. { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
  11386. $as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
  11387. { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
  11388. $as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11389. { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
  11390. $as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
  11391. { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
  11392. $as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
  11393. ;;
  11394. esac
  11395. { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
  11396. $as_echo_n "checking for readline.h... " >&6; }
  11397. if test "${ac_cv_header_readline_h+set}" = set; then
  11398. $as_echo_n "(cached) " >&6
  11399. else
  11400. ac_cv_header_readline_h=$ac_header_preproc
  11401. fi
  11402. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
  11403. $as_echo "$ac_cv_header_readline_h" >&6; }
  11404. fi
  11405. if test $ac_cv_header_readline_h = yes; then
  11406. found="yes"
  11407. else
  11408. found="no"
  11409. if test "$cross_compiling" != yes; then
  11410. for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
  11411. for subdir in include include/readline; do
  11412. as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
  11413. { $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
  11414. $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
  11415. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  11416. $as_echo_n "(cached) " >&6
  11417. else
  11418. test "$cross_compiling" = yes &&
  11419. { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  11420. $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  11421. { (exit 1); exit 1; }; }
  11422. if test -r "$dir/$subdir/readline.h"; then
  11423. eval "$as_ac_File=yes"
  11424. else
  11425. eval "$as_ac_File=no"
  11426. fi
  11427. fi
  11428. ac_res=`eval 'as_val=${'$as_ac_File'}
  11429. $as_echo "$as_val"'`
  11430. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11431. $as_echo "$ac_res" >&6; }
  11432. if test `eval 'as_val=${'$as_ac_File'}
  11433. $as_echo "$as_val"'` = yes; then
  11434. found=yes
  11435. fi
  11436. if test "$found" = "yes"; then
  11437. TARGET_READLINE_INC="-I$dir/$subdir"
  11438. break
  11439. fi
  11440. done
  11441. test "$found" = "yes" && break
  11442. done
  11443. fi
  11444. fi
  11445. else
  11446. TARGET_READLINE_INC="$with_readline_inc"
  11447. fi
  11448. if test x"$found" = xno; then
  11449. TARGET_READLINE_LIBS=""
  11450. TARGET_READLINE_INC=""
  11451. TARGET_HAVE_READLINE=0
  11452. else
  11453. TARGET_HAVE_READLINE=1
  11454. fi
  11455. fi
  11456. ##########
  11457. # Figure out what C libraries are required to compile programs
  11458. # that use "fdatasync()" function.
  11459. #
  11460. { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
  11461. $as_echo_n "checking for library containing fdatasync... " >&6; }
  11462. if test "${ac_cv_search_fdatasync+set}" = set; then
  11463. $as_echo_n "(cached) " >&6
  11464. else
  11465. ac_func_search_save_LIBS=$LIBS
  11466. cat >conftest.$ac_ext <<_ACEOF
  11467. /* confdefs.h. */
  11468. _ACEOF
  11469. cat confdefs.h >>conftest.$ac_ext
  11470. cat >>conftest.$ac_ext <<_ACEOF
  11471. /* end confdefs.h. */
  11472. /* Override any GCC internal prototype to avoid an error.
  11473. Use char because int might match the return type of a GCC
  11474. builtin and then its argument prototype would still apply. */
  11475. #ifdef __cplusplus
  11476. extern "C"
  11477. #endif
  11478. char fdatasync ();
  11479. int
  11480. main ()
  11481. {
  11482. return fdatasync ();
  11483. ;
  11484. return 0;
  11485. }
  11486. _ACEOF
  11487. for ac_lib in '' rt; do
  11488. if test -z "$ac_lib"; then
  11489. ac_res="none required"
  11490. else
  11491. ac_res=-l$ac_lib
  11492. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11493. fi
  11494. rm -f conftest.$ac_objext conftest$ac_exeext
  11495. if { (ac_try="$ac_link"
  11496. case "(($ac_try" in
  11497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11498. *) ac_try_echo=$ac_try;;
  11499. esac
  11500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11501. $as_echo "$ac_try_echo") >&5
  11502. (eval "$ac_link") 2>conftest.er1
  11503. ac_status=$?
  11504. grep -v '^ *+' conftest.er1 >conftest.err
  11505. rm -f conftest.er1
  11506. cat conftest.err >&5
  11507. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11508. (exit $ac_status); } && {
  11509. test -z "$ac_c_werror_flag" ||
  11510. test ! -s conftest.err
  11511. } && test -s conftest$ac_exeext && {
  11512. test "$cross_compiling" = yes ||
  11513. $as_test_x conftest$ac_exeext
  11514. }; then
  11515. ac_cv_search_fdatasync=$ac_res
  11516. else
  11517. $as_echo "$as_me: failed program was:" >&5
  11518. sed 's/^/| /' conftest.$ac_ext >&5
  11519. fi
  11520. rm -rf conftest.dSYM
  11521. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11522. conftest$ac_exeext
  11523. if test "${ac_cv_search_fdatasync+set}" = set; then
  11524. break
  11525. fi
  11526. done
  11527. if test "${ac_cv_search_fdatasync+set}" = set; then
  11528. :
  11529. else
  11530. ac_cv_search_fdatasync=no
  11531. fi
  11532. rm conftest.$ac_ext
  11533. LIBS=$ac_func_search_save_LIBS
  11534. fi
  11535. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
  11536. $as_echo "$ac_cv_search_fdatasync" >&6; }
  11537. ac_res=$ac_cv_search_fdatasync
  11538. if test "$ac_res" != no; then
  11539. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11540. fi
  11541. #########
  11542. # check for debug enabled
  11543. # Check whether --enable-debug was given.
  11544. if test "${enable_debug+set}" = set; then
  11545. enableval=$enable_debug; use_debug=$enableval
  11546. else
  11547. use_debug=no
  11548. fi
  11549. if test "${use_debug}" = "yes" ; then
  11550. TARGET_DEBUG="-DSQLITE_DEBUG=1"
  11551. else
  11552. TARGET_DEBUG="-DNDEBUG"
  11553. fi
  11554. #########
  11555. # See whether we should use the amalgamation to build
  11556. # Check whether --enable-amalgamation was given.
  11557. if test "${enable_amalgamation+set}" = set; then
  11558. enableval=$enable_amalgamation; use_amalgamation=$enableval
  11559. else
  11560. use_amalgamation=yes
  11561. fi
  11562. if test "${use_amalgamation}" != "yes" ; then
  11563. USE_AMALGAMATION=0
  11564. fi
  11565. #########
  11566. # See whether we should allow loadable extensions
  11567. # Check whether --enable-load-extension was given.
  11568. if test "${enable_load_extension+set}" = set; then
  11569. enableval=$enable_load_extension; use_loadextension=$enableval
  11570. else
  11571. use_loadextension=no
  11572. fi
  11573. if test "${use_loadextension}" = "yes" ; then
  11574. OPT_FEATURE_FLAGS=""
  11575. { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  11576. $as_echo_n "checking for library containing dlopen... " >&6; }
  11577. if test "${ac_cv_search_dlopen+set}" = set; then
  11578. $as_echo_n "(cached) " >&6
  11579. else
  11580. ac_func_search_save_LIBS=$LIBS
  11581. cat >conftest.$ac_ext <<_ACEOF
  11582. /* confdefs.h. */
  11583. _ACEOF
  11584. cat confdefs.h >>conftest.$ac_ext
  11585. cat >>conftest.$ac_ext <<_ACEOF
  11586. /* end confdefs.h. */
  11587. /* Override any GCC internal prototype to avoid an error.
  11588. Use char because int might match the return type of a GCC
  11589. builtin and then its argument prototype would still apply. */
  11590. #ifdef __cplusplus
  11591. extern "C"
  11592. #endif
  11593. char dlopen ();
  11594. int
  11595. main ()
  11596. {
  11597. return dlopen ();
  11598. ;
  11599. return 0;
  11600. }
  11601. _ACEOF
  11602. for ac_lib in '' dl; do
  11603. if test -z "$ac_lib"; then
  11604. ac_res="none required"
  11605. else
  11606. ac_res=-l$ac_lib
  11607. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11608. fi
  11609. rm -f conftest.$ac_objext conftest$ac_exeext
  11610. if { (ac_try="$ac_link"
  11611. case "(($ac_try" in
  11612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11613. *) ac_try_echo=$ac_try;;
  11614. esac
  11615. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11616. $as_echo "$ac_try_echo") >&5
  11617. (eval "$ac_link") 2>conftest.er1
  11618. ac_status=$?
  11619. grep -v '^ *+' conftest.er1 >conftest.err
  11620. rm -f conftest.er1
  11621. cat conftest.err >&5
  11622. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11623. (exit $ac_status); } && {
  11624. test -z "$ac_c_werror_flag" ||
  11625. test ! -s conftest.err
  11626. } && test -s conftest$ac_exeext && {
  11627. test "$cross_compiling" = yes ||
  11628. $as_test_x conftest$ac_exeext
  11629. }; then
  11630. ac_cv_search_dlopen=$ac_res
  11631. else
  11632. $as_echo "$as_me: failed program was:" >&5
  11633. sed 's/^/| /' conftest.$ac_ext >&5
  11634. fi
  11635. rm -rf conftest.dSYM
  11636. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11637. conftest$ac_exeext
  11638. if test "${ac_cv_search_dlopen+set}" = set; then
  11639. break
  11640. fi
  11641. done
  11642. if test "${ac_cv_search_dlopen+set}" = set; then
  11643. :
  11644. else
  11645. ac_cv_search_dlopen=no
  11646. fi
  11647. rm conftest.$ac_ext
  11648. LIBS=$ac_func_search_save_LIBS
  11649. fi
  11650. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
  11651. $as_echo "$ac_cv_search_dlopen" >&6; }
  11652. ac_res=$ac_cv_search_dlopen
  11653. if test "$ac_res" != no; then
  11654. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11655. fi
  11656. else
  11657. OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
  11658. fi
  11659. #########
  11660. # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
  11661. for option in $CFLAGS $CPPFLAGS
  11662. do
  11663. case $option in
  11664. -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
  11665. -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
  11666. esac
  11667. done
  11668. # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
  11669. ac_temp_CFLAGS=""
  11670. for option in $CFLAGS
  11671. do
  11672. case $option in
  11673. -DSQLITE_OMIT*) ;;
  11674. -DSQLITE_ENABLE*) ;;
  11675. *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
  11676. esac
  11677. done
  11678. CFLAGS=$ac_temp_CFLAGS
  11679. # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
  11680. ac_temp_CPPFLAGS=""
  11681. for option in $CPPFLAGS
  11682. do
  11683. case $option in
  11684. -DSQLITE_OMIT*) ;;
  11685. -DSQLITE_ENABLE*) ;;
  11686. *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
  11687. esac
  11688. done
  11689. CPPFLAGS=$ac_temp_CPPFLAGS
  11690. # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
  11691. ac_temp_BUILD_CFLAGS=""
  11692. for option in $BUILD_CFLAGS
  11693. do
  11694. case $option in
  11695. -DSQLITE_OMIT*) ;;
  11696. -DSQLITE_ENABLE*) ;;
  11697. *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
  11698. esac
  11699. done
  11700. BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
  11701. #########
  11702. # See whether we should use GCOV
  11703. # Check whether --enable-gcov was given.
  11704. if test "${enable_gcov+set}" = set; then
  11705. enableval=$enable_gcov; use_gcov=$enableval
  11706. else
  11707. use_gcov=no
  11708. fi
  11709. if test "${use_gcov}" = "yes" ; then
  11710. USE_GCOV=1
  11711. else
  11712. USE_GCOV=0
  11713. fi
  11714. #########
  11715. # Output the config header
  11716. ac_config_headers="$ac_config_headers config.h"
  11717. #########
  11718. # Generate the output files.
  11719. #
  11720. ac_config_files="$ac_config_files Makefile sqlite3.pc"
  11721. cat >confcache <<\_ACEOF
  11722. # This file is a shell script that caches the results of configure
  11723. # tests run on this system so they can be shared between configure
  11724. # scripts and configure runs, see configure's option --config-cache.
  11725. # It is not useful on other systems. If it contains results you don't
  11726. # want to keep, you may remove or edit it.
  11727. #
  11728. # config.status only pays attention to the cache file if you give it
  11729. # the --recheck option to rerun configure.
  11730. #
  11731. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11732. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11733. # following values.
  11734. _ACEOF
  11735. # The following way of writing the cache mishandles newlines in values,
  11736. # but we know of no workaround that is simple, portable, and efficient.
  11737. # So, we kill variables containing newlines.
  11738. # Ultrix sh set writes to stderr and can't be redirected directly,
  11739. # and sets the high bit in the cache file unless we assign to the vars.
  11740. (
  11741. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11742. eval ac_val=\$$ac_var
  11743. case $ac_val in #(
  11744. *${as_nl}*)
  11745. case $ac_var in #(
  11746. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11747. $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11748. esac
  11749. case $ac_var in #(
  11750. _ | IFS | as_nl) ;; #(
  11751. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11752. *) $as_unset $ac_var ;;
  11753. esac ;;
  11754. esac
  11755. done
  11756. (set) 2>&1 |
  11757. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11758. *${as_nl}ac_space=\ *)
  11759. # `set' does not quote correctly, so add quotes (double-quote
  11760. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11761. sed -n \
  11762. "s/'/'\\\\''/g;
  11763. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11764. ;; #(
  11765. *)
  11766. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11767. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11768. ;;
  11769. esac |
  11770. sort
  11771. ) |
  11772. sed '
  11773. /^ac_cv_env_/b end
  11774. t clear
  11775. :clear
  11776. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11777. t end
  11778. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11779. :end' >>confcache
  11780. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11781. if test -w "$cache_file"; then
  11782. test "x$cache_file" != "x/dev/null" &&
  11783. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11784. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11785. cat confcache >$cache_file
  11786. else
  11787. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11788. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11789. fi
  11790. fi
  11791. rm -f confcache
  11792. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11793. # Let make expand exec_prefix.
  11794. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11795. DEFS=-DHAVE_CONFIG_H
  11796. ac_libobjs=
  11797. ac_ltlibobjs=
  11798. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11799. # 1. Remove the extension, and $U if already installed.
  11800. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11801. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11802. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11803. # will be set to the directory where LIBOBJS objects are built.
  11804. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11805. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  11806. done
  11807. LIBOBJS=$ac_libobjs
  11808. LTLIBOBJS=$ac_ltlibobjs
  11809. : ${CONFIG_STATUS=./config.status}
  11810. ac_write_fail=0
  11811. ac_clean_files_save=$ac_clean_files
  11812. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11813. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11814. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11815. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11816. #! $SHELL
  11817. # Generated by $as_me.
  11818. # Run this file to recreate the current configuration.
  11819. # Compiler output produced by configure, useful for debugging
  11820. # configure, is in config.log if it exists.
  11821. debug=false
  11822. ac_cs_recheck=false
  11823. ac_cs_silent=false
  11824. SHELL=\${CONFIG_SHELL-$SHELL}
  11825. _ACEOF
  11826. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11827. ## --------------------- ##
  11828. ## M4sh Initialization. ##
  11829. ## --------------------- ##
  11830. # Be more Bourne compatible
  11831. DUALCASE=1; export DUALCASE # for MKS sh
  11832. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11833. emulate sh
  11834. NULLCMD=:
  11835. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11836. # is contrary to our usage. Disable this feature.
  11837. alias -g '${1+"$@"}'='"$@"'
  11838. setopt NO_GLOB_SUBST
  11839. else
  11840. case `(set -o) 2>/dev/null` in
  11841. *posix*) set -o posix ;;
  11842. esac
  11843. fi
  11844. # PATH needs CR
  11845. # Avoid depending upon Character Ranges.
  11846. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11847. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11848. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11849. as_cr_digits='0123456789'
  11850. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11851. as_nl='
  11852. '
  11853. export as_nl
  11854. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11855. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11856. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11857. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11858. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11859. as_echo='printf %s\n'
  11860. as_echo_n='printf %s'
  11861. else
  11862. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11863. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11864. as_echo_n='/usr/ucb/echo -n'
  11865. else
  11866. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11867. as_echo_n_body='eval
  11868. arg=$1;
  11869. case $arg in
  11870. *"$as_nl"*)
  11871. expr "X$arg" : "X\\(.*\\)$as_nl";
  11872. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11873. esac;
  11874. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11875. '
  11876. export as_echo_n_body
  11877. as_echo_n='sh -c $as_echo_n_body as_echo'
  11878. fi
  11879. export as_echo_body
  11880. as_echo='sh -c $as_echo_body as_echo'
  11881. fi
  11882. # The user is always right.
  11883. if test "${PATH_SEPARATOR+set}" != set; then
  11884. PATH_SEPARATOR=:
  11885. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11886. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11887. PATH_SEPARATOR=';'
  11888. }
  11889. fi
  11890. # Support unset when possible.
  11891. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11892. as_unset=unset
  11893. else
  11894. as_unset=false
  11895. fi
  11896. # IFS
  11897. # We need space, tab and new line, in precisely that order. Quoting is
  11898. # there to prevent editors from complaining about space-tab.
  11899. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11900. # splitting by setting IFS to empty value.)
  11901. IFS=" "" $as_nl"
  11902. # Find who we are. Look in the path if we contain no directory separator.
  11903. case $0 in
  11904. *[\\/]* ) as_myself=$0 ;;
  11905. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11906. for as_dir in $PATH
  11907. do
  11908. IFS=$as_save_IFS
  11909. test -z "$as_dir" && as_dir=.
  11910. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11911. done
  11912. IFS=$as_save_IFS
  11913. ;;
  11914. esac
  11915. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11916. # in which case we are not to be found in the path.
  11917. if test "x$as_myself" = x; then
  11918. as_myself=$0
  11919. fi
  11920. if test ! -f "$as_myself"; then
  11921. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11922. { (exit 1); exit 1; }
  11923. fi
  11924. # Work around bugs in pre-3.0 UWIN ksh.
  11925. for as_var in ENV MAIL MAILPATH
  11926. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11927. done
  11928. PS1='$ '
  11929. PS2='> '
  11930. PS4='+ '
  11931. # NLS nuisances.
  11932. LC_ALL=C
  11933. export LC_ALL
  11934. LANGUAGE=C
  11935. export LANGUAGE
  11936. # Required to use basename.
  11937. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11938. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11939. as_expr=expr
  11940. else
  11941. as_expr=false
  11942. fi
  11943. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11944. as_basename=basename
  11945. else
  11946. as_basename=false
  11947. fi
  11948. # Name of the executable.
  11949. as_me=`$as_basename -- "$0" ||
  11950. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11951. X"$0" : 'X\(//\)$' \| \
  11952. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11953. $as_echo X/"$0" |
  11954. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11955. s//\1/
  11956. q
  11957. }
  11958. /^X\/\(\/\/\)$/{
  11959. s//\1/
  11960. q
  11961. }
  11962. /^X\/\(\/\).*/{
  11963. s//\1/
  11964. q
  11965. }
  11966. s/.*/./; q'`
  11967. # CDPATH.
  11968. $as_unset CDPATH
  11969. as_lineno_1=$LINENO
  11970. as_lineno_2=$LINENO
  11971. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11972. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  11973. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11974. # uniformly replaced by the line number. The first 'sed' inserts a
  11975. # line-number line after each line using $LINENO; the second 'sed'
  11976. # does the real work. The second script uses 'N' to pair each
  11977. # line-number line with the line containing $LINENO, and appends
  11978. # trailing '-' during substitution so that $LINENO is not a special
  11979. # case at line end.
  11980. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11981. # scripts with optimization help from Paolo Bonzini. Blame Lee
  11982. # E. McMahon (1931-1989) for sed's syntax. :-)
  11983. sed -n '
  11984. p
  11985. /[$]LINENO/=
  11986. ' <$as_myself |
  11987. sed '
  11988. s/[$]LINENO.*/&-/
  11989. t lineno
  11990. b
  11991. :lineno
  11992. N
  11993. :loop
  11994. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  11995. t loop
  11996. s/-\n.*//
  11997. ' >$as_me.lineno &&
  11998. chmod +x "$as_me.lineno" ||
  11999. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12000. { (exit 1); exit 1; }; }
  12001. # Don't try to exec as it changes $[0], causing all sort of problems
  12002. # (the dirname of $[0] is not the place where we might find the
  12003. # original and so on. Autoconf is especially sensitive to this).
  12004. . "./$as_me.lineno"
  12005. # Exit status is that of the last command.
  12006. exit
  12007. }
  12008. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12009. as_dirname=dirname
  12010. else
  12011. as_dirname=false
  12012. fi
  12013. ECHO_C= ECHO_N= ECHO_T=
  12014. case `echo -n x` in
  12015. -n*)
  12016. case `echo 'x\c'` in
  12017. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12018. *) ECHO_C='\c';;
  12019. esac;;
  12020. *)
  12021. ECHO_N='-n';;
  12022. esac
  12023. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12024. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12025. as_expr=expr
  12026. else
  12027. as_expr=false
  12028. fi
  12029. rm -f conf$$ conf$$.exe conf$$.file
  12030. if test -d conf$$.dir; then
  12031. rm -f conf$$.dir/conf$$.file
  12032. else
  12033. rm -f conf$$.dir
  12034. mkdir conf$$.dir 2>/dev/null
  12035. fi
  12036. if (echo >conf$$.file) 2>/dev/null; then
  12037. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12038. as_ln_s='ln -s'
  12039. # ... but there are two gotchas:
  12040. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12041. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12042. # In both cases, we have to default to `cp -p'.
  12043. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12044. as_ln_s='cp -p'
  12045. elif ln conf$$.file conf$$ 2>/dev/null; then
  12046. as_ln_s=ln
  12047. else
  12048. as_ln_s='cp -p'
  12049. fi
  12050. else
  12051. as_ln_s='cp -p'
  12052. fi
  12053. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12054. rmdir conf$$.dir 2>/dev/null
  12055. if mkdir -p . 2>/dev/null; then
  12056. as_mkdir_p=:
  12057. else
  12058. test -d ./-p && rmdir ./-p
  12059. as_mkdir_p=false
  12060. fi
  12061. if test -x / >/dev/null 2>&1; then
  12062. as_test_x='test -x'
  12063. else
  12064. if ls -dL / >/dev/null 2>&1; then
  12065. as_ls_L_option=L
  12066. else
  12067. as_ls_L_option=
  12068. fi
  12069. as_test_x='
  12070. eval sh -c '\''
  12071. if test -d "$1"; then
  12072. test -d "$1/.";
  12073. else
  12074. case $1 in
  12075. -*)set "./$1";;
  12076. esac;
  12077. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12078. ???[sx]*):;;*)false;;esac;fi
  12079. '\'' sh
  12080. '
  12081. fi
  12082. as_executable_p=$as_test_x
  12083. # Sed expression to map a string onto a valid CPP name.
  12084. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12085. # Sed expression to map a string onto a valid variable name.
  12086. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12087. exec 6>&1
  12088. # Save the log message, to keep $[0] and so on meaningful, and to
  12089. # report actual input values of CONFIG_FILES etc. instead of their
  12090. # values after options handling.
  12091. ac_log="
  12092. This file was extended by sqlite $as_me 3.8.1, which was
  12093. generated by GNU Autoconf 2.62. Invocation command line was
  12094. CONFIG_FILES = $CONFIG_FILES
  12095. CONFIG_HEADERS = $CONFIG_HEADERS
  12096. CONFIG_LINKS = $CONFIG_LINKS
  12097. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12098. $ $0 $@
  12099. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12100. "
  12101. _ACEOF
  12102. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12103. # Files that config.status was made for.
  12104. config_files="$ac_config_files"
  12105. config_headers="$ac_config_headers"
  12106. config_commands="$ac_config_commands"
  12107. _ACEOF
  12108. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12109. ac_cs_usage="\
  12110. \`$as_me' instantiates files from templates according to the
  12111. current configuration.
  12112. Usage: $0 [OPTIONS] [FILE]...
  12113. -h, --help print this help, then exit
  12114. -V, --version print version number and configuration settings, then exit
  12115. -q, --quiet do not print progress messages
  12116. -d, --debug don't remove temporary files
  12117. --recheck update $as_me by reconfiguring in the same conditions
  12118. --file=FILE[:TEMPLATE]
  12119. instantiate the configuration file FILE
  12120. --header=FILE[:TEMPLATE]
  12121. instantiate the configuration header FILE
  12122. Configuration files:
  12123. $config_files
  12124. Configuration headers:
  12125. $config_headers
  12126. Configuration commands:
  12127. $config_commands
  12128. Report bugs to <bug-autoconf@gnu.org>."
  12129. _ACEOF
  12130. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12131. ac_cs_version="\\
  12132. sqlite config.status 3.8.1
  12133. configured by $0, generated by GNU Autoconf 2.62,
  12134. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12135. Copyright (C) 2008 Free Software Foundation, Inc.
  12136. This config.status script is free software; the Free Software Foundation
  12137. gives unlimited permission to copy, distribute and modify it."
  12138. ac_pwd='$ac_pwd'
  12139. srcdir='$srcdir'
  12140. INSTALL='$INSTALL'
  12141. AWK='$AWK'
  12142. test -n "\$AWK" || AWK=awk
  12143. _ACEOF
  12144. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12145. # The default lists apply if the user does not specify any file.
  12146. ac_need_defaults=:
  12147. while test $# != 0
  12148. do
  12149. case $1 in
  12150. --*=*)
  12151. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12152. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12153. ac_shift=:
  12154. ;;
  12155. *)
  12156. ac_option=$1
  12157. ac_optarg=$2
  12158. ac_shift=shift
  12159. ;;
  12160. esac
  12161. case $ac_option in
  12162. # Handling of the options.
  12163. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12164. ac_cs_recheck=: ;;
  12165. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12166. $as_echo "$ac_cs_version"; exit ;;
  12167. --debug | --debu | --deb | --de | --d | -d )
  12168. debug=: ;;
  12169. --file | --fil | --fi | --f )
  12170. $ac_shift
  12171. case $ac_optarg in
  12172. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12173. esac
  12174. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12175. ac_need_defaults=false;;
  12176. --header | --heade | --head | --hea )
  12177. $ac_shift
  12178. case $ac_optarg in
  12179. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12180. esac
  12181. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12182. ac_need_defaults=false;;
  12183. --he | --h)
  12184. # Conflict between --help and --header
  12185. { $as_echo "$as_me: error: ambiguous option: $1
  12186. Try \`$0 --help' for more information." >&2
  12187. { (exit 1); exit 1; }; };;
  12188. --help | --hel | -h )
  12189. $as_echo "$ac_cs_usage"; exit ;;
  12190. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12191. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12192. ac_cs_silent=: ;;
  12193. # This is an error.
  12194. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12195. Try \`$0 --help' for more information." >&2
  12196. { (exit 1); exit 1; }; } ;;
  12197. *) ac_config_targets="$ac_config_targets $1"
  12198. ac_need_defaults=false ;;
  12199. esac
  12200. shift
  12201. done
  12202. ac_configure_extra_args=
  12203. if $ac_cs_silent; then
  12204. exec 6>/dev/null
  12205. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12206. fi
  12207. _ACEOF
  12208. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12209. if \$ac_cs_recheck; then
  12210. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12211. shift
  12212. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12213. CONFIG_SHELL='$SHELL'
  12214. export CONFIG_SHELL
  12215. exec "\$@"
  12216. fi
  12217. _ACEOF
  12218. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12219. exec 5>>config.log
  12220. {
  12221. echo
  12222. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12223. ## Running $as_me. ##
  12224. _ASBOX
  12225. $as_echo "$ac_log"
  12226. } >&5
  12227. _ACEOF
  12228. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12229. #
  12230. # INIT-COMMANDS
  12231. #
  12232. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12233. # if CDPATH is set.
  12234. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12235. sed_quote_subst='$sed_quote_subst'
  12236. double_quote_subst='$double_quote_subst'
  12237. delay_variable_subst='$delay_variable_subst'
  12238. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  12239. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  12240. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  12241. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  12242. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  12243. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  12244. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12245. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  12246. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  12247. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12248. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  12249. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  12250. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  12251. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  12252. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  12253. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12254. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12255. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  12256. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  12257. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  12258. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  12259. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  12260. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  12261. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  12262. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  12263. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  12264. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12265. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12266. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  12267. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  12268. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  12269. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  12270. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12271. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  12272. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  12273. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12274. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12275. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12276. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  12277. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12278. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  12279. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  12280. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  12281. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  12282. 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"`'
  12283. 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"`'
  12284. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  12285. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  12286. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  12287. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  12288. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12289. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  12290. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  12291. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  12292. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  12293. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  12294. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  12295. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  12296. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  12297. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12298. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  12299. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  12300. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12301. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12302. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  12303. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  12304. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12305. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12306. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  12307. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12308. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12309. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12310. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12311. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12312. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12313. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12314. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12315. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12316. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12317. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12318. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  12319. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  12320. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  12321. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  12322. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12323. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  12324. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  12325. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  12326. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  12327. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  12328. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12329. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12330. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12331. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12332. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12333. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  12334. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12335. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  12336. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  12337. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12338. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12339. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  12340. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12341. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12342. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12343. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12344. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12345. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12346. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  12347. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  12348. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12349. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12350. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  12351. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  12352. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  12353. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  12354. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12355. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12356. LTCC='$LTCC'
  12357. LTCFLAGS='$LTCFLAGS'
  12358. compiler='$compiler_DEFAULT'
  12359. # Quote evaled strings.
  12360. for var in SED \
  12361. GREP \
  12362. EGREP \
  12363. FGREP \
  12364. LD \
  12365. NM \
  12366. LN_S \
  12367. lt_SP2NL \
  12368. lt_NL2SP \
  12369. reload_flag \
  12370. OBJDUMP \
  12371. deplibs_check_method \
  12372. file_magic_cmd \
  12373. AR \
  12374. AR_FLAGS \
  12375. STRIP \
  12376. RANLIB \
  12377. CC \
  12378. CFLAGS \
  12379. compiler \
  12380. lt_cv_sys_global_symbol_pipe \
  12381. lt_cv_sys_global_symbol_to_cdecl \
  12382. lt_cv_sys_global_symbol_to_c_name_address \
  12383. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12384. SHELL \
  12385. ECHO \
  12386. lt_prog_compiler_no_builtin_flag \
  12387. lt_prog_compiler_wl \
  12388. lt_prog_compiler_pic \
  12389. lt_prog_compiler_static \
  12390. lt_cv_prog_compiler_c_o \
  12391. need_locks \
  12392. DSYMUTIL \
  12393. NMEDIT \
  12394. LIPO \
  12395. OTOOL \
  12396. OTOOL64 \
  12397. shrext_cmds \
  12398. export_dynamic_flag_spec \
  12399. whole_archive_flag_spec \
  12400. compiler_needs_object \
  12401. with_gnu_ld \
  12402. allow_undefined_flag \
  12403. no_undefined_flag \
  12404. hardcode_libdir_flag_spec \
  12405. hardcode_libdir_flag_spec_ld \
  12406. hardcode_libdir_separator \
  12407. fix_srcfile_path \
  12408. exclude_expsyms \
  12409. include_expsyms \
  12410. file_list_spec \
  12411. variables_saved_for_relink \
  12412. libname_spec \
  12413. library_names_spec \
  12414. soname_spec \
  12415. finish_eval \
  12416. old_striplib \
  12417. striplib; do
  12418. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12419. *[\\\\\\\`\\"\\\$]*)
  12420. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12421. ;;
  12422. *)
  12423. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12424. ;;
  12425. esac
  12426. done
  12427. # Double-quote double-evaled strings.
  12428. for var in reload_cmds \
  12429. old_postinstall_cmds \
  12430. old_postuninstall_cmds \
  12431. old_archive_cmds \
  12432. extract_expsyms_cmds \
  12433. old_archive_from_new_cmds \
  12434. old_archive_from_expsyms_cmds \
  12435. archive_cmds \
  12436. archive_expsym_cmds \
  12437. module_cmds \
  12438. module_expsym_cmds \
  12439. export_symbols_cmds \
  12440. prelink_cmds \
  12441. postinstall_cmds \
  12442. postuninstall_cmds \
  12443. finish_cmds \
  12444. sys_lib_search_path_spec \
  12445. sys_lib_dlsearch_path_spec; do
  12446. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12447. *[\\\\\\\`\\"\\\$]*)
  12448. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12449. ;;
  12450. *)
  12451. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12452. ;;
  12453. esac
  12454. done
  12455. # Fix-up fallback echo if it was mangled by the above quoting rules.
  12456. case \$lt_ECHO in
  12457. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  12458. ;;
  12459. esac
  12460. ac_aux_dir='$ac_aux_dir'
  12461. xsi_shell='$xsi_shell'
  12462. lt_shell_append='$lt_shell_append'
  12463. # See if we are running on zsh, and set the options which allow our
  12464. # commands through without removal of \ escapes INIT.
  12465. if test -n "\${ZSH_VERSION+set}" ; then
  12466. setopt NO_GLOB_SUBST
  12467. fi
  12468. PACKAGE='$PACKAGE'
  12469. VERSION='$VERSION'
  12470. TIMESTAMP='$TIMESTAMP'
  12471. RM='$RM'
  12472. ofile='$ofile'
  12473. _ACEOF
  12474. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12475. # Handling of arguments.
  12476. for ac_config_target in $ac_config_targets
  12477. do
  12478. case $ac_config_target in
  12479. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12480. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12481. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12482. "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
  12483. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12484. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12485. { (exit 1); exit 1; }; };;
  12486. esac
  12487. done
  12488. # If the user did not use the arguments to specify the items to instantiate,
  12489. # then the envvar interface is used. Set only those that are not.
  12490. # We use the long form for the default assignment because of an extremely
  12491. # bizarre bug on SunOS 4.1.3.
  12492. if $ac_need_defaults; then
  12493. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12494. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12495. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12496. fi
  12497. # Have a temporary directory for convenience. Make it in the build tree
  12498. # simply because there is no reason against having it here, and in addition,
  12499. # creating and moving files from /tmp can sometimes cause problems.
  12500. # Hook for its removal unless debugging.
  12501. # Note that there is a small window in which the directory will not be cleaned:
  12502. # after its creation but before its name has been assigned to `$tmp'.
  12503. $debug ||
  12504. {
  12505. tmp=
  12506. trap 'exit_status=$?
  12507. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12508. ' 0
  12509. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12510. }
  12511. # Create a (secure) tmp directory for tmp files.
  12512. {
  12513. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12514. test -n "$tmp" && test -d "$tmp"
  12515. } ||
  12516. {
  12517. tmp=./conf$$-$RANDOM
  12518. (umask 077 && mkdir "$tmp")
  12519. } ||
  12520. {
  12521. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12522. { (exit 1); exit 1; }
  12523. }
  12524. # Set up the scripts for CONFIG_FILES section.
  12525. # No need to generate them if there are no CONFIG_FILES.
  12526. # This happens for instance with `./config.status config.h'.
  12527. if test -n "$CONFIG_FILES"; then
  12528. ac_cr=' '
  12529. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12530. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12531. ac_cs_awk_cr='\\r'
  12532. else
  12533. ac_cs_awk_cr=$ac_cr
  12534. fi
  12535. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12536. _ACEOF
  12537. {
  12538. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12539. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12540. echo "_ACEOF"
  12541. } >conf$$subs.sh ||
  12542. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12543. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12544. { (exit 1); exit 1; }; }
  12545. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12546. ac_delim='%!_!# '
  12547. for ac_last_try in false false false false false :; do
  12548. . ./conf$$subs.sh ||
  12549. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12550. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12551. { (exit 1); exit 1; }; }
  12552. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
  12553. break
  12554. elif $ac_last_try; then
  12555. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12556. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12557. { (exit 1); exit 1; }; }
  12558. else
  12559. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12560. fi
  12561. done
  12562. rm -f conf$$subs.sh
  12563. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12564. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12565. _ACEOF
  12566. sed -n '
  12567. h
  12568. s/^/S["/; s/!.*/"]=/
  12569. p
  12570. g
  12571. s/^[^!]*!//
  12572. :repl
  12573. t repl
  12574. s/'"$ac_delim"'$//
  12575. t delim
  12576. :nl
  12577. h
  12578. s/\(.\{148\}\).*/\1/
  12579. t more1
  12580. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12581. p
  12582. n
  12583. b repl
  12584. :more1
  12585. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12586. p
  12587. g
  12588. s/.\{148\}//
  12589. t nl
  12590. :delim
  12591. h
  12592. s/\(.\{148\}\).*/\1/
  12593. t more2
  12594. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12595. p
  12596. b
  12597. :more2
  12598. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12599. p
  12600. g
  12601. s/.\{148\}//
  12602. t delim
  12603. ' <conf$$subs.awk | sed '
  12604. /^[^""]/{
  12605. N
  12606. s/\n//
  12607. }
  12608. ' >>$CONFIG_STATUS || ac_write_fail=1
  12609. rm -f conf$$subs.awk
  12610. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12611. _ACAWK
  12612. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12613. for (key in S) S_is_set[key] = 1
  12614. FS = ""
  12615. }
  12616. {
  12617. line = $ 0
  12618. nfields = split(line, field, "@")
  12619. substed = 0
  12620. len = length(field[1])
  12621. for (i = 2; i < nfields; i++) {
  12622. key = field[i]
  12623. keylen = length(key)
  12624. if (S_is_set[key]) {
  12625. value = S[key]
  12626. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12627. len += length(value) + length(field[++i])
  12628. substed = 1
  12629. } else
  12630. len += 1 + keylen
  12631. }
  12632. print line
  12633. }
  12634. _ACAWK
  12635. _ACEOF
  12636. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12637. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12638. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12639. else
  12640. cat
  12641. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12642. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  12643. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  12644. { (exit 1); exit 1; }; }
  12645. _ACEOF
  12646. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12647. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12648. # trailing colons and then remove the whole line if VPATH becomes empty
  12649. # (actually we leave an empty line to preserve line numbers).
  12650. if test "x$srcdir" = x.; then
  12651. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12652. s/:*\$(srcdir):*/:/
  12653. s/:*\${srcdir}:*/:/
  12654. s/:*@srcdir@:*/:/
  12655. s/^\([^=]*=[ ]*\):*/\1/
  12656. s/:*$//
  12657. s/^[^=]*=[ ]*$//
  12658. }'
  12659. fi
  12660. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12661. fi # test -n "$CONFIG_FILES"
  12662. # Set up the scripts for CONFIG_HEADERS section.
  12663. # No need to generate them if there are no CONFIG_HEADERS.
  12664. # This happens for instance with `./config.status Makefile'.
  12665. if test -n "$CONFIG_HEADERS"; then
  12666. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12667. BEGIN {
  12668. _ACEOF
  12669. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12670. # here-document in config.status, that substitutes the proper values into
  12671. # config.h.in to produce config.h.
  12672. # Create a delimiter string that does not exist in confdefs.h, to ease
  12673. # handling of long lines.
  12674. ac_delim='%!_!# '
  12675. for ac_last_try in false false :; do
  12676. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12677. if test -z "$ac_t"; then
  12678. break
  12679. elif $ac_last_try; then
  12680. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  12681. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  12682. { (exit 1); exit 1; }; }
  12683. else
  12684. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12685. fi
  12686. done
  12687. # For the awk script, D is an array of macro values keyed by name,
  12688. # likewise P contains macro parameters if any. Preserve backslash
  12689. # newline sequences.
  12690. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12691. sed -n '
  12692. s/.\{148\}/&'"$ac_delim"'/g
  12693. t rset
  12694. :rset
  12695. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12696. t def
  12697. d
  12698. :def
  12699. s/\\$//
  12700. t bsnl
  12701. s/["\\]/\\&/g
  12702. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12703. D["\1"]=" \3"/p
  12704. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12705. d
  12706. :bsnl
  12707. s/["\\]/\\&/g
  12708. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12709. D["\1"]=" \3\\\\\\n"\\/p
  12710. t cont
  12711. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12712. t cont
  12713. d
  12714. :cont
  12715. n
  12716. s/.\{148\}/&'"$ac_delim"'/g
  12717. t clear
  12718. :clear
  12719. s/\\$//
  12720. t bsnlc
  12721. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12722. d
  12723. :bsnlc
  12724. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12725. b cont
  12726. ' <confdefs.h | sed '
  12727. s/'"$ac_delim"'/"\\\
  12728. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12729. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12730. for (key in D) D_is_set[key] = 1
  12731. FS = ""
  12732. }
  12733. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12734. line = \$ 0
  12735. split(line, arg, " ")
  12736. if (arg[1] == "#") {
  12737. defundef = arg[2]
  12738. mac1 = arg[3]
  12739. } else {
  12740. defundef = substr(arg[1], 2)
  12741. mac1 = arg[2]
  12742. }
  12743. split(mac1, mac2, "(") #)
  12744. macro = mac2[1]
  12745. if (D_is_set[macro]) {
  12746. # Preserve the white space surrounding the "#".
  12747. prefix = substr(line, 1, index(line, defundef) - 1)
  12748. print prefix "define", macro P[macro] D[macro]
  12749. next
  12750. } else {
  12751. # Replace #undef with comments. This is necessary, for example,
  12752. # in the case of _POSIX_SOURCE, which is predefined and required
  12753. # on some systems where configure will not decide to define it.
  12754. if (defundef == "undef") {
  12755. print "/*", line, "*/"
  12756. next
  12757. }
  12758. }
  12759. }
  12760. { print }
  12761. _ACAWK
  12762. _ACEOF
  12763. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12764. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  12765. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  12766. { (exit 1); exit 1; }; }
  12767. fi # test -n "$CONFIG_HEADERS"
  12768. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12769. shift
  12770. for ac_tag
  12771. do
  12772. case $ac_tag in
  12773. :[FHLC]) ac_mode=$ac_tag; continue;;
  12774. esac
  12775. case $ac_mode$ac_tag in
  12776. :[FHL]*:*);;
  12777. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12778. $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12779. { (exit 1); exit 1; }; };;
  12780. :[FH]-) ac_tag=-:-;;
  12781. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12782. esac
  12783. ac_save_IFS=$IFS
  12784. IFS=:
  12785. set x $ac_tag
  12786. IFS=$ac_save_IFS
  12787. shift
  12788. ac_file=$1
  12789. shift
  12790. case $ac_mode in
  12791. :L) ac_source=$1;;
  12792. :[FH])
  12793. ac_file_inputs=
  12794. for ac_f
  12795. do
  12796. case $ac_f in
  12797. -) ac_f="$tmp/stdin";;
  12798. *) # Look for the file first in the build tree, then in the source tree
  12799. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12800. # because $ac_f cannot contain `:'.
  12801. test -f "$ac_f" ||
  12802. case $ac_f in
  12803. [\\/$]*) false;;
  12804. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12805. esac ||
  12806. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12807. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12808. { (exit 1); exit 1; }; };;
  12809. esac
  12810. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12811. ac_file_inputs="$ac_file_inputs '$ac_f'"
  12812. done
  12813. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12814. # use $as_me), people would be surprised to read:
  12815. # /* config.h. Generated by config.status. */
  12816. configure_input='Generated from '`
  12817. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12818. `' by configure.'
  12819. if test x"$ac_file" != x-; then
  12820. configure_input="$ac_file. $configure_input"
  12821. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  12822. $as_echo "$as_me: creating $ac_file" >&6;}
  12823. fi
  12824. # Neutralize special characters interpreted by sed in replacement strings.
  12825. case $configure_input in #(
  12826. *\&* | *\|* | *\\* )
  12827. ac_sed_conf_input=`$as_echo "$configure_input" |
  12828. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12829. *) ac_sed_conf_input=$configure_input;;
  12830. esac
  12831. case $ac_tag in
  12832. *:-:* | *:-) cat >"$tmp/stdin" \
  12833. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12834. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12835. { (exit 1); exit 1; }; } ;;
  12836. esac
  12837. ;;
  12838. esac
  12839. ac_dir=`$as_dirname -- "$ac_file" ||
  12840. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12841. X"$ac_file" : 'X\(//\)[^/]' \| \
  12842. X"$ac_file" : 'X\(//\)$' \| \
  12843. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12844. $as_echo X"$ac_file" |
  12845. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12846. s//\1/
  12847. q
  12848. }
  12849. /^X\(\/\/\)[^/].*/{
  12850. s//\1/
  12851. q
  12852. }
  12853. /^X\(\/\/\)$/{
  12854. s//\1/
  12855. q
  12856. }
  12857. /^X\(\/\).*/{
  12858. s//\1/
  12859. q
  12860. }
  12861. s/.*/./; q'`
  12862. { as_dir="$ac_dir"
  12863. case $as_dir in #(
  12864. -*) as_dir=./$as_dir;;
  12865. esac
  12866. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12867. as_dirs=
  12868. while :; do
  12869. case $as_dir in #(
  12870. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12871. *) as_qdir=$as_dir;;
  12872. esac
  12873. as_dirs="'$as_qdir' $as_dirs"
  12874. as_dir=`$as_dirname -- "$as_dir" ||
  12875. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12876. X"$as_dir" : 'X\(//\)[^/]' \| \
  12877. X"$as_dir" : 'X\(//\)$' \| \
  12878. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12879. $as_echo X"$as_dir" |
  12880. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12881. s//\1/
  12882. q
  12883. }
  12884. /^X\(\/\/\)[^/].*/{
  12885. s//\1/
  12886. q
  12887. }
  12888. /^X\(\/\/\)$/{
  12889. s//\1/
  12890. q
  12891. }
  12892. /^X\(\/\).*/{
  12893. s//\1/
  12894. q
  12895. }
  12896. s/.*/./; q'`
  12897. test -d "$as_dir" && break
  12898. done
  12899. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12900. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12901. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12902. { (exit 1); exit 1; }; }; }
  12903. ac_builddir=.
  12904. case "$ac_dir" in
  12905. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12906. *)
  12907. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12908. # A ".." for each directory in $ac_dir_suffix.
  12909. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12910. case $ac_top_builddir_sub in
  12911. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12912. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12913. esac ;;
  12914. esac
  12915. ac_abs_top_builddir=$ac_pwd
  12916. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12917. # for backward compatibility:
  12918. ac_top_builddir=$ac_top_build_prefix
  12919. case $srcdir in
  12920. .) # We are building in place.
  12921. ac_srcdir=.
  12922. ac_top_srcdir=$ac_top_builddir_sub
  12923. ac_abs_top_srcdir=$ac_pwd ;;
  12924. [\\/]* | ?:[\\/]* ) # Absolute name.
  12925. ac_srcdir=$srcdir$ac_dir_suffix;
  12926. ac_top_srcdir=$srcdir
  12927. ac_abs_top_srcdir=$srcdir ;;
  12928. *) # Relative name.
  12929. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12930. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12931. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12932. esac
  12933. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12934. case $ac_mode in
  12935. :F)
  12936. #
  12937. # CONFIG_FILE
  12938. #
  12939. case $INSTALL in
  12940. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12941. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12942. esac
  12943. _ACEOF
  12944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12945. # If the template does not know about datarootdir, expand it.
  12946. # FIXME: This hack should be removed a few years after 2.60.
  12947. ac_datarootdir_hack=; ac_datarootdir_seen=
  12948. ac_sed_dataroot='
  12949. /datarootdir/ {
  12950. p
  12951. q
  12952. }
  12953. /@datadir@/p
  12954. /@docdir@/p
  12955. /@infodir@/p
  12956. /@localedir@/p
  12957. /@mandir@/p
  12958. '
  12959. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12960. *datarootdir*) ac_datarootdir_seen=yes;;
  12961. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12962. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12963. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12964. _ACEOF
  12965. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12966. ac_datarootdir_hack='
  12967. s&@datadir@&$datadir&g
  12968. s&@docdir@&$docdir&g
  12969. s&@infodir@&$infodir&g
  12970. s&@localedir@&$localedir&g
  12971. s&@mandir@&$mandir&g
  12972. s&\\\${datarootdir}&$datarootdir&g' ;;
  12973. esac
  12974. _ACEOF
  12975. # Neutralize VPATH when `$srcdir' = `.'.
  12976. # Shell code in configure.ac might set extrasub.
  12977. # FIXME: do we really want to maintain this feature?
  12978. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12979. ac_sed_extra="$ac_vpsub
  12980. $extrasub
  12981. _ACEOF
  12982. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12983. :t
  12984. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12985. s|@configure_input@|$ac_sed_conf_input|;t t
  12986. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12987. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12988. s&@srcdir@&$ac_srcdir&;t t
  12989. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12990. s&@top_srcdir@&$ac_top_srcdir&;t t
  12991. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12992. s&@builddir@&$ac_builddir&;t t
  12993. s&@abs_builddir@&$ac_abs_builddir&;t t
  12994. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12995. s&@INSTALL@&$ac_INSTALL&;t t
  12996. $ac_datarootdir_hack
  12997. "
  12998. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12999. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13000. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13001. { (exit 1); exit 1; }; }
  13002. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13003. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13004. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13005. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13006. which seems to be undefined. Please make sure it is defined." >&5
  13007. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13008. which seems to be undefined. Please make sure it is defined." >&2;}
  13009. rm -f "$tmp/stdin"
  13010. case $ac_file in
  13011. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13012. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13013. esac \
  13014. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13015. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13016. { (exit 1); exit 1; }; }
  13017. ;;
  13018. :H)
  13019. #
  13020. # CONFIG_HEADER
  13021. #
  13022. if test x"$ac_file" != x-; then
  13023. {
  13024. $as_echo "/* $configure_input */" \
  13025. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13026. } >"$tmp/config.h" \
  13027. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13028. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13029. { (exit 1); exit 1; }; }
  13030. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13031. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13032. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13033. else
  13034. rm -f "$ac_file"
  13035. mv "$tmp/config.h" "$ac_file" \
  13036. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13037. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13038. { (exit 1); exit 1; }; }
  13039. fi
  13040. else
  13041. $as_echo "/* $configure_input */" \
  13042. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13043. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13044. $as_echo "$as_me: error: could not create -" >&2;}
  13045. { (exit 1); exit 1; }; }
  13046. fi
  13047. ;;
  13048. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13049. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13050. ;;
  13051. esac
  13052. case $ac_file$ac_mode in
  13053. "libtool":C)
  13054. # See if we are running on zsh, and set the options which allow our
  13055. # commands through without removal of \ escapes.
  13056. if test -n "${ZSH_VERSION+set}" ; then
  13057. setopt NO_GLOB_SUBST
  13058. fi
  13059. cfgfile="${ofile}T"
  13060. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13061. $RM "$cfgfile"
  13062. cat <<_LT_EOF >> "$cfgfile"
  13063. #! $SHELL
  13064. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13065. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13066. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13067. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13068. #
  13069. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13070. # 2006, 2007, 2008 Free Software Foundation, Inc.
  13071. # Written by Gordon Matzigkeit, 1996
  13072. #
  13073. # This file is part of GNU Libtool.
  13074. #
  13075. # GNU Libtool is free software; you can redistribute it and/or
  13076. # modify it under the terms of the GNU General Public License as
  13077. # published by the Free Software Foundation; either version 2 of
  13078. # the License, or (at your option) any later version.
  13079. #
  13080. # As a special exception to the GNU General Public License,
  13081. # if you distribute this file as part of a program or library that
  13082. # is built using GNU Libtool, you may include this file under the
  13083. # same distribution terms that you use for the rest of that program.
  13084. #
  13085. # GNU Libtool is distributed in the hope that it will be useful,
  13086. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13087. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13088. # GNU General Public License for more details.
  13089. #
  13090. # You should have received a copy of the GNU General Public License
  13091. # along with GNU Libtool; see the file COPYING. If not, a copy
  13092. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13093. # obtained by writing to the Free Software Foundation, Inc.,
  13094. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13095. # The names of the tagged configurations supported by this script.
  13096. available_tags=""
  13097. # ### BEGIN LIBTOOL CONFIG
  13098. # Which release of libtool.m4 was used?
  13099. macro_version=$macro_version
  13100. macro_revision=$macro_revision
  13101. # Whether or not to build shared libraries.
  13102. build_libtool_libs=$enable_shared
  13103. # Whether or not to build static libraries.
  13104. build_old_libs=$enable_static
  13105. # What type of objects to build.
  13106. pic_mode=$pic_mode
  13107. # Whether or not to optimize for fast installation.
  13108. fast_install=$enable_fast_install
  13109. # The host system.
  13110. host_alias=$host_alias
  13111. host=$host
  13112. host_os=$host_os
  13113. # The build system.
  13114. build_alias=$build_alias
  13115. build=$build
  13116. build_os=$build_os
  13117. # A sed program that does not truncate output.
  13118. SED=$lt_SED
  13119. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13120. Xsed="\$SED -e 1s/^X//"
  13121. # A grep program that handles long lines.
  13122. GREP=$lt_GREP
  13123. # An ERE matcher.
  13124. EGREP=$lt_EGREP
  13125. # A literal string matcher.
  13126. FGREP=$lt_FGREP
  13127. # A BSD- or MS-compatible name lister.
  13128. NM=$lt_NM
  13129. # Whether we need soft or hard links.
  13130. LN_S=$lt_LN_S
  13131. # What is the maximum length of a command?
  13132. max_cmd_len=$max_cmd_len
  13133. # Object file suffix (normally "o").
  13134. objext=$ac_objext
  13135. # Executable file suffix (normally "").
  13136. exeext=$exeext
  13137. # whether the shell understands "unset".
  13138. lt_unset=$lt_unset
  13139. # turn spaces into newlines.
  13140. SP2NL=$lt_lt_SP2NL
  13141. # turn newlines into spaces.
  13142. NL2SP=$lt_lt_NL2SP
  13143. # How to create reloadable object files.
  13144. reload_flag=$lt_reload_flag
  13145. reload_cmds=$lt_reload_cmds
  13146. # An object symbol dumper.
  13147. OBJDUMP=$lt_OBJDUMP
  13148. # Method to check whether dependent libraries are shared objects.
  13149. deplibs_check_method=$lt_deplibs_check_method
  13150. # Command to use when deplibs_check_method == "file_magic".
  13151. file_magic_cmd=$lt_file_magic_cmd
  13152. # The archiver.
  13153. AR=$lt_AR
  13154. AR_FLAGS=$lt_AR_FLAGS
  13155. # A symbol stripping program.
  13156. STRIP=$lt_STRIP
  13157. # Commands used to install an old-style archive.
  13158. RANLIB=$lt_RANLIB
  13159. old_postinstall_cmds=$lt_old_postinstall_cmds
  13160. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13161. # A C compiler.
  13162. LTCC=$lt_CC
  13163. # LTCC compiler flags.
  13164. LTCFLAGS=$lt_CFLAGS
  13165. # Take the output of nm and produce a listing of raw symbols and C names.
  13166. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13167. # Transform the output of nm in a proper C declaration.
  13168. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13169. # Transform the output of nm in a C name address pair.
  13170. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13171. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13172. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13173. # The name of the directory that contains temporary libtool files.
  13174. objdir=$objdir
  13175. # Shell to use when invoking shell scripts.
  13176. SHELL=$lt_SHELL
  13177. # An echo program that does not interpret backslashes.
  13178. ECHO=$lt_ECHO
  13179. # Used to examine libraries when file_magic_cmd begins with "file".
  13180. MAGIC_CMD=$MAGIC_CMD
  13181. # Must we lock files when doing compilation?
  13182. need_locks=$lt_need_locks
  13183. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13184. DSYMUTIL=$lt_DSYMUTIL
  13185. # Tool to change global to local symbols on Mac OS X.
  13186. NMEDIT=$lt_NMEDIT
  13187. # Tool to manipulate fat objects and archives on Mac OS X.
  13188. LIPO=$lt_LIPO
  13189. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13190. OTOOL=$lt_OTOOL
  13191. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13192. OTOOL64=$lt_OTOOL64
  13193. # Old archive suffix (normally "a").
  13194. libext=$libext
  13195. # Shared library suffix (normally ".so").
  13196. shrext_cmds=$lt_shrext_cmds
  13197. # The commands to extract the exported symbol list from a shared archive.
  13198. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13199. # Variables whose values should be saved in libtool wrapper scripts and
  13200. # restored at link time.
  13201. variables_saved_for_relink=$lt_variables_saved_for_relink
  13202. # Do we need the "lib" prefix for modules?
  13203. need_lib_prefix=$need_lib_prefix
  13204. # Do we need a version for libraries?
  13205. need_version=$need_version
  13206. # Library versioning type.
  13207. version_type=$version_type
  13208. # Shared library runtime path variable.
  13209. runpath_var=$runpath_var
  13210. # Shared library path variable.
  13211. shlibpath_var=$shlibpath_var
  13212. # Is shlibpath searched before the hard-coded library search path?
  13213. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13214. # Format of library name prefix.
  13215. libname_spec=$lt_libname_spec
  13216. # List of archive names. First name is the real one, the rest are links.
  13217. # The last name is the one that the linker finds with -lNAME
  13218. library_names_spec=$lt_library_names_spec
  13219. # The coded name of the library, if different from the real name.
  13220. soname_spec=$lt_soname_spec
  13221. # Command to use after installation of a shared archive.
  13222. postinstall_cmds=$lt_postinstall_cmds
  13223. # Command to use after uninstallation of a shared archive.
  13224. postuninstall_cmds=$lt_postuninstall_cmds
  13225. # Commands used to finish a libtool library installation in a directory.
  13226. finish_cmds=$lt_finish_cmds
  13227. # As "finish_cmds", except a single script fragment to be evaled but
  13228. # not shown.
  13229. finish_eval=$lt_finish_eval
  13230. # Whether we should hardcode library paths into libraries.
  13231. hardcode_into_libs=$hardcode_into_libs
  13232. # Compile-time system search path for libraries.
  13233. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13234. # Run-time system search path for libraries.
  13235. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13236. # Whether dlopen is supported.
  13237. dlopen_support=$enable_dlopen
  13238. # Whether dlopen of programs is supported.
  13239. dlopen_self=$enable_dlopen_self
  13240. # Whether dlopen of statically linked programs is supported.
  13241. dlopen_self_static=$enable_dlopen_self_static
  13242. # Commands to strip libraries.
  13243. old_striplib=$lt_old_striplib
  13244. striplib=$lt_striplib
  13245. # The linker used to build libraries.
  13246. LD=$lt_LD
  13247. # Commands used to build an old-style archive.
  13248. old_archive_cmds=$lt_old_archive_cmds
  13249. # A language specific compiler.
  13250. CC=$lt_compiler
  13251. # Is the compiler the GNU compiler?
  13252. with_gcc=$GCC
  13253. # Compiler flag to turn off builtin functions.
  13254. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13255. # How to pass a linker flag through the compiler.
  13256. wl=$lt_lt_prog_compiler_wl
  13257. # Additional compiler flags for building library objects.
  13258. pic_flag=$lt_lt_prog_compiler_pic
  13259. # Compiler flag to prevent dynamic linking.
  13260. link_static_flag=$lt_lt_prog_compiler_static
  13261. # Does compiler simultaneously support -c and -o options?
  13262. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13263. # Whether or not to add -lc for building shared libraries.
  13264. build_libtool_need_lc=$archive_cmds_need_lc
  13265. # Whether or not to disallow shared libs when runtime libs are static.
  13266. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13267. # Compiler flag to allow reflexive dlopens.
  13268. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13269. # Compiler flag to generate shared objects directly from archives.
  13270. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13271. # Whether the compiler copes with passing no objects directly.
  13272. compiler_needs_object=$lt_compiler_needs_object
  13273. # Create an old-style archive from a shared archive.
  13274. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13275. # Create a temporary old-style archive to link instead of a shared archive.
  13276. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13277. # Commands used to build a shared archive.
  13278. archive_cmds=$lt_archive_cmds
  13279. archive_expsym_cmds=$lt_archive_expsym_cmds
  13280. # Commands used to build a loadable module if different from building
  13281. # a shared archive.
  13282. module_cmds=$lt_module_cmds
  13283. module_expsym_cmds=$lt_module_expsym_cmds
  13284. # Whether we are building with GNU ld or not.
  13285. with_gnu_ld=$lt_with_gnu_ld
  13286. # Flag that allows shared libraries with undefined symbols to be built.
  13287. allow_undefined_flag=$lt_allow_undefined_flag
  13288. # Flag that enforces no undefined symbols.
  13289. no_undefined_flag=$lt_no_undefined_flag
  13290. # Flag to hardcode \$libdir into a binary during linking.
  13291. # This must work even if \$libdir does not exist
  13292. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13293. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13294. # during linking. This must work even if \$libdir does not exist.
  13295. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13296. # Whether we need a single "-rpath" flag with a separated argument.
  13297. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13298. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13299. # DIR into the resulting binary.
  13300. hardcode_direct=$hardcode_direct
  13301. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13302. # DIR into the resulting binary and the resulting library dependency is
  13303. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13304. # library is relocated.
  13305. hardcode_direct_absolute=$hardcode_direct_absolute
  13306. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13307. # into the resulting binary.
  13308. hardcode_minus_L=$hardcode_minus_L
  13309. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13310. # into the resulting binary.
  13311. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13312. # Set to "yes" if building a shared library automatically hardcodes DIR
  13313. # into the library and all subsequent libraries and executables linked
  13314. # against it.
  13315. hardcode_automatic=$hardcode_automatic
  13316. # Set to yes if linker adds runtime paths of dependent libraries
  13317. # to runtime path list.
  13318. inherit_rpath=$inherit_rpath
  13319. # Whether libtool must link a program against all its dependency libraries.
  13320. link_all_deplibs=$link_all_deplibs
  13321. # Fix the shell variable \$srcfile for the compiler.
  13322. fix_srcfile_path=$lt_fix_srcfile_path
  13323. # Set to "yes" if exported symbols are required.
  13324. always_export_symbols=$always_export_symbols
  13325. # The commands to list exported symbols.
  13326. export_symbols_cmds=$lt_export_symbols_cmds
  13327. # Symbols that should not be listed in the preloaded symbols.
  13328. exclude_expsyms=$lt_exclude_expsyms
  13329. # Symbols that must always be exported.
  13330. include_expsyms=$lt_include_expsyms
  13331. # Commands necessary for linking programs (against libraries) with templates.
  13332. prelink_cmds=$lt_prelink_cmds
  13333. # Specify filename containing input files.
  13334. file_list_spec=$lt_file_list_spec
  13335. # How to hardcode a shared library path into an executable.
  13336. hardcode_action=$hardcode_action
  13337. # ### END LIBTOOL CONFIG
  13338. _LT_EOF
  13339. case $host_os in
  13340. aix3*)
  13341. cat <<\_LT_EOF >> "$cfgfile"
  13342. # AIX sometimes has problems with the GCC collect2 program. For some
  13343. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13344. # vanish in a puff of smoke.
  13345. if test "X${COLLECT_NAMES+set}" != Xset; then
  13346. COLLECT_NAMES=
  13347. export COLLECT_NAMES
  13348. fi
  13349. _LT_EOF
  13350. ;;
  13351. esac
  13352. ltmain="$ac_aux_dir/ltmain.sh"
  13353. # We use sed instead of cat because bash on DJGPP gets confused if
  13354. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13355. # text mode, it properly converts lines to CR/LF. This bash problem
  13356. # is reportedly fixed, but why not run on old versions too?
  13357. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13358. || (rm -f "$cfgfile"; exit 1)
  13359. case $xsi_shell in
  13360. yes)
  13361. cat << \_LT_EOF >> "$cfgfile"
  13362. # func_dirname file append nondir_replacement
  13363. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13364. # otherwise set result to NONDIR_REPLACEMENT.
  13365. func_dirname ()
  13366. {
  13367. case ${1} in
  13368. */*) func_dirname_result="${1%/*}${2}" ;;
  13369. * ) func_dirname_result="${3}" ;;
  13370. esac
  13371. }
  13372. # func_basename file
  13373. func_basename ()
  13374. {
  13375. func_basename_result="${1##*/}"
  13376. }
  13377. # func_dirname_and_basename file append nondir_replacement
  13378. # perform func_basename and func_dirname in a single function
  13379. # call:
  13380. # dirname: Compute the dirname of FILE. If nonempty,
  13381. # add APPEND to the result, otherwise set result
  13382. # to NONDIR_REPLACEMENT.
  13383. # value returned in "$func_dirname_result"
  13384. # basename: Compute filename of FILE.
  13385. # value retuned in "$func_basename_result"
  13386. # Implementation must be kept synchronized with func_dirname
  13387. # and func_basename. For efficiency, we do not delegate to
  13388. # those functions but instead duplicate the functionality here.
  13389. func_dirname_and_basename ()
  13390. {
  13391. case ${1} in
  13392. */*) func_dirname_result="${1%/*}${2}" ;;
  13393. * ) func_dirname_result="${3}" ;;
  13394. esac
  13395. func_basename_result="${1##*/}"
  13396. }
  13397. # func_stripname prefix suffix name
  13398. # strip PREFIX and SUFFIX off of NAME.
  13399. # PREFIX and SUFFIX must not contain globbing or regex special
  13400. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13401. # dot (in which case that matches only a dot).
  13402. func_stripname ()
  13403. {
  13404. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13405. # positional parameters, so assign one to ordinary parameter first.
  13406. func_stripname_result=${3}
  13407. func_stripname_result=${func_stripname_result#"${1}"}
  13408. func_stripname_result=${func_stripname_result%"${2}"}
  13409. }
  13410. # func_opt_split
  13411. func_opt_split ()
  13412. {
  13413. func_opt_split_opt=${1%%=*}
  13414. func_opt_split_arg=${1#*=}
  13415. }
  13416. # func_lo2o object
  13417. func_lo2o ()
  13418. {
  13419. case ${1} in
  13420. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13421. *) func_lo2o_result=${1} ;;
  13422. esac
  13423. }
  13424. # func_xform libobj-or-source
  13425. func_xform ()
  13426. {
  13427. func_xform_result=${1%.*}.lo
  13428. }
  13429. # func_arith arithmetic-term...
  13430. func_arith ()
  13431. {
  13432. func_arith_result=$(( $* ))
  13433. }
  13434. # func_len string
  13435. # STRING may not start with a hyphen.
  13436. func_len ()
  13437. {
  13438. func_len_result=${#1}
  13439. }
  13440. _LT_EOF
  13441. ;;
  13442. *) # Bourne compatible functions.
  13443. cat << \_LT_EOF >> "$cfgfile"
  13444. # func_dirname file append nondir_replacement
  13445. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13446. # otherwise set result to NONDIR_REPLACEMENT.
  13447. func_dirname ()
  13448. {
  13449. # Extract subdirectory from the argument.
  13450. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  13451. if test "X$func_dirname_result" = "X${1}"; then
  13452. func_dirname_result="${3}"
  13453. else
  13454. func_dirname_result="$func_dirname_result${2}"
  13455. fi
  13456. }
  13457. # func_basename file
  13458. func_basename ()
  13459. {
  13460. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  13461. }
  13462. # func_stripname prefix suffix name
  13463. # strip PREFIX and SUFFIX off of NAME.
  13464. # PREFIX and SUFFIX must not contain globbing or regex special
  13465. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13466. # dot (in which case that matches only a dot).
  13467. # func_strip_suffix prefix name
  13468. func_stripname ()
  13469. {
  13470. case ${2} in
  13471. .*) func_stripname_result=`$ECHO "X${3}" \
  13472. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  13473. *) func_stripname_result=`$ECHO "X${3}" \
  13474. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  13475. esac
  13476. }
  13477. # sed scripts:
  13478. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13479. my_sed_long_arg='1s/^-[^=]*=//'
  13480. # func_opt_split
  13481. func_opt_split ()
  13482. {
  13483. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  13484. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  13485. }
  13486. # func_lo2o object
  13487. func_lo2o ()
  13488. {
  13489. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  13490. }
  13491. # func_xform libobj-or-source
  13492. func_xform ()
  13493. {
  13494. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  13495. }
  13496. # func_arith arithmetic-term...
  13497. func_arith ()
  13498. {
  13499. func_arith_result=`expr "$@"`
  13500. }
  13501. # func_len string
  13502. # STRING may not start with a hyphen.
  13503. func_len ()
  13504. {
  13505. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13506. }
  13507. _LT_EOF
  13508. esac
  13509. case $lt_shell_append in
  13510. yes)
  13511. cat << \_LT_EOF >> "$cfgfile"
  13512. # func_append var value
  13513. # Append VALUE to the end of shell variable VAR.
  13514. func_append ()
  13515. {
  13516. eval "$1+=\$2"
  13517. }
  13518. _LT_EOF
  13519. ;;
  13520. *)
  13521. cat << \_LT_EOF >> "$cfgfile"
  13522. # func_append var value
  13523. # Append VALUE to the end of shell variable VAR.
  13524. func_append ()
  13525. {
  13526. eval "$1=\$$1\$2"
  13527. }
  13528. _LT_EOF
  13529. ;;
  13530. esac
  13531. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13532. || (rm -f "$cfgfile"; exit 1)
  13533. mv -f "$cfgfile" "$ofile" ||
  13534. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13535. chmod +x "$ofile"
  13536. ;;
  13537. esac
  13538. done # for ac_tag
  13539. { (exit 0); exit 0; }
  13540. _ACEOF
  13541. chmod +x $CONFIG_STATUS
  13542. ac_clean_files=$ac_clean_files_save
  13543. test $ac_write_fail = 0 ||
  13544. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13545. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13546. { (exit 1); exit 1; }; }
  13547. # configure is writing to config.log, and then calls config.status.
  13548. # config.status does its own redirection, appending to config.log.
  13549. # Unfortunately, on DOS this fails, as config.log is still kept open
  13550. # by configure, so config.status won't be able to write to it; its
  13551. # output is simply discarded. So we exec the FD to /dev/null,
  13552. # effectively closing config.log, so it can be properly (re)opened and
  13553. # appended to by config.status. When coming back to configure, we
  13554. # need to make the FD available again.
  13555. if test "$no_create" != yes; then
  13556. ac_cs_success=:
  13557. ac_config_status_args=
  13558. test "$silent" = yes &&
  13559. ac_config_status_args="$ac_config_status_args --quiet"
  13560. exec 5>/dev/null
  13561. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13562. exec 5>>config.log
  13563. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13564. # would make configure fail if this is the last instruction.
  13565. $ac_cs_success || { (exit 1); exit 1; }
  13566. fi
  13567. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13568. { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
  13569. $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
  13570. fi