configure 532 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for PCRE2 10.39.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell [email protected] about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME='PCRE2'
  562. PACKAGE_TARNAME='pcre2'
  563. PACKAGE_VERSION='10.39'
  564. PACKAGE_STRING='PCRE2 10.39'
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/pcre2.h.in"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='am__EXEEXT_FALSE
  600. am__EXEEXT_TRUE
  601. LTLIBOBJS
  602. LIBOBJS
  603. LIB_POSTFIX
  604. CET_CFLAGS
  605. WITH_GCOV_FALSE
  606. WITH_GCOV_TRUE
  607. GCOV_LIBS
  608. GCOV_CXXFLAGS
  609. GCOV_CFLAGS
  610. GENHTML
  611. LCOV
  612. SHTOOL
  613. VALGRIND_LIBS
  614. VALGRIND_CFLAGS
  615. PKG_CONFIG_LIBDIR
  616. PKG_CONFIG_PATH
  617. PKG_CONFIG
  618. LIBBZ2
  619. LIBZ
  620. DISTCHECK_CONFIGURE_FLAGS
  621. EXTRA_LIBPCRE2_POSIX_LDFLAGS
  622. EXTRA_LIBPCRE2_32_LDFLAGS
  623. EXTRA_LIBPCRE2_16_LDFLAGS
  624. EXTRA_LIBPCRE2_8_LDFLAGS
  625. PTHREAD_CFLAGS
  626. PTHREAD_LIBS
  627. PTHREAD_CC
  628. ax_pthread_config
  629. PCRE2_STATIC_CFLAG
  630. LIBREADLINE
  631. WITH_FUZZ_SUPPORT_FALSE
  632. WITH_FUZZ_SUPPORT_TRUE
  633. WITH_VALGRIND_FALSE
  634. WITH_VALGRIND_TRUE
  635. WITH_UNICODE_FALSE
  636. WITH_UNICODE_TRUE
  637. WITH_JIT_FALSE
  638. WITH_JIT_TRUE
  639. WITH_REBUILD_CHARTABLES_FALSE
  640. WITH_REBUILD_CHARTABLES_TRUE
  641. WITH_DEBUG_FALSE
  642. WITH_DEBUG_TRUE
  643. WITH_PCRE2_32_FALSE
  644. WITH_PCRE2_32_TRUE
  645. WITH_PCRE2_16_FALSE
  646. WITH_PCRE2_16_TRUE
  647. WITH_PCRE2_8_FALSE
  648. WITH_PCRE2_8_TRUE
  649. enable_pcre2_32
  650. enable_pcre2_16
  651. enable_pcre2_8
  652. PCRE2_DATE
  653. PCRE2_PRERELEASE
  654. PCRE2_MINOR
  655. PCRE2_MAJOR
  656. HAVE_VISIBILITY
  657. VISIBILITY_CXXFLAGS
  658. VISIBILITY_CFLAGS
  659. LT_SYS_LIBRARY_PATH
  660. OTOOL64
  661. OTOOL
  662. LIPO
  663. NMEDIT
  664. DSYMUTIL
  665. MANIFEST_TOOL
  666. RANLIB
  667. LN_S
  668. NM
  669. ac_ct_DUMPBIN
  670. DUMPBIN
  671. LD
  672. FGREP
  673. EGREP
  674. GREP
  675. SED
  676. host_os
  677. host_vendor
  678. host_cpu
  679. host
  680. build_os
  681. build_vendor
  682. build_cpu
  683. build
  684. LIBTOOL
  685. OBJDUMP
  686. DLLTOOL
  687. AS
  688. ac_ct_AR
  689. AR
  690. am__fastdepCC_FALSE
  691. am__fastdepCC_TRUE
  692. CCDEPMODE
  693. am__nodep
  694. AMDEPBACKSLASH
  695. AMDEP_FALSE
  696. AMDEP_TRUE
  697. am__include
  698. DEPDIR
  699. OBJEXT
  700. EXEEXT
  701. ac_ct_CC
  702. CPPFLAGS
  703. LDFLAGS
  704. CFLAGS
  705. CC
  706. AM_BACKSLASH
  707. AM_DEFAULT_VERBOSITY
  708. AM_DEFAULT_V
  709. AM_V
  710. CSCOPE
  711. ETAGS
  712. CTAGS
  713. am__untar
  714. am__tar
  715. AMTAR
  716. am__leading_dot
  717. SET_MAKE
  718. AWK
  719. mkdir_p
  720. MKDIR_P
  721. INSTALL_STRIP_PROGRAM
  722. STRIP
  723. install_sh
  724. MAKEINFO
  725. AUTOHEADER
  726. AUTOMAKE
  727. AUTOCONF
  728. ACLOCAL
  729. VERSION
  730. PACKAGE
  731. CYGPATH_W
  732. am__isrc
  733. INSTALL_DATA
  734. INSTALL_SCRIPT
  735. INSTALL_PROGRAM
  736. target_alias
  737. host_alias
  738. build_alias
  739. LIBS
  740. ECHO_T
  741. ECHO_N
  742. ECHO_C
  743. DEFS
  744. mandir
  745. localedir
  746. libdir
  747. psdir
  748. pdfdir
  749. dvidir
  750. htmldir
  751. infodir
  752. docdir
  753. oldincludedir
  754. includedir
  755. runstatedir
  756. localstatedir
  757. sharedstatedir
  758. sysconfdir
  759. datadir
  760. datarootdir
  761. libexecdir
  762. sbindir
  763. bindir
  764. program_transform_name
  765. prefix
  766. exec_prefix
  767. PACKAGE_URL
  768. PACKAGE_BUGREPORT
  769. PACKAGE_STRING
  770. PACKAGE_VERSION
  771. PACKAGE_TARNAME
  772. PACKAGE_NAME
  773. PATH_SEPARATOR
  774. SHELL
  775. am__quote'
  776. ac_subst_files=''
  777. ac_user_opts='
  778. enable_option_checking
  779. enable_silent_rules
  780. enable_dependency_tracking
  781. enable_shared
  782. enable_static
  783. with_pic
  784. enable_fast_install
  785. with_aix_soname
  786. with_gnu_ld
  787. with_sysroot
  788. enable_libtool_lock
  789. enable_pcre8
  790. enable_pcre16
  791. enable_pcre32
  792. enable_pcre2_8
  793. enable_pcre2_16
  794. enable_pcre2_32
  795. enable_debug
  796. enable_jit
  797. enable_jit_sealloc
  798. enable_pcre2grep_jit
  799. enable_pcre2grep_callout
  800. enable_pcre2grep_callout_fork
  801. enable_rebuild_chartables
  802. enable_unicode
  803. enable_newline_is_cr
  804. enable_newline_is_lf
  805. enable_newline_is_crlf
  806. enable_newline_is_anycrlf
  807. enable_newline_is_any
  808. enable_newline_is_nul
  809. enable_bsr_anycrlf
  810. enable_never_backslash_C
  811. enable_ebcdic
  812. enable_ebcdic_nl25
  813. enable_pcre2grep_libz
  814. enable_pcre2grep_libbz2
  815. with_pcre2grep_bufsize
  816. with_pcre2grep_max_bufsize
  817. enable_pcre2test_libedit
  818. enable_pcre2test_libreadline
  819. with_link_size
  820. with_parens_nest_limit
  821. with_heap_limit
  822. with_match_limit
  823. with_match_limit_depth
  824. with_match_limit_recursion
  825. enable_valgrind
  826. enable_coverage
  827. enable_fuzz_support
  828. enable_stack_for_recursion
  829. enable_percent_zt
  830. '
  831. ac_precious_vars='build_alias
  832. host_alias
  833. target_alias
  834. CC
  835. CFLAGS
  836. LDFLAGS
  837. LIBS
  838. CPPFLAGS
  839. LT_SYS_LIBRARY_PATH
  840. PKG_CONFIG
  841. PKG_CONFIG_PATH
  842. PKG_CONFIG_LIBDIR
  843. VALGRIND_CFLAGS
  844. VALGRIND_LIBS
  845. LCOV
  846. GENHTML'
  847. # Initialize some variables set by options.
  848. ac_init_help=
  849. ac_init_version=false
  850. ac_unrecognized_opts=
  851. ac_unrecognized_sep=
  852. # The variables have the same names as the options, with
  853. # dashes changed to underlines.
  854. cache_file=/dev/null
  855. exec_prefix=NONE
  856. no_create=
  857. no_recursion=
  858. prefix=NONE
  859. program_prefix=NONE
  860. program_suffix=NONE
  861. program_transform_name=s,x,x,
  862. silent=
  863. site=
  864. srcdir=
  865. verbose=
  866. x_includes=NONE
  867. x_libraries=NONE
  868. # Installation directory options.
  869. # These are left unexpanded so users can "make install exec_prefix=/foo"
  870. # and all the variables that are supposed to be based on exec_prefix
  871. # by default will actually change.
  872. # Use braces instead of parens because sh, perl, etc. also accept them.
  873. # (The list follows the same order as the GNU Coding Standards.)
  874. bindir='${exec_prefix}/bin'
  875. sbindir='${exec_prefix}/sbin'
  876. libexecdir='${exec_prefix}/libexec'
  877. datarootdir='${prefix}/share'
  878. datadir='${datarootdir}'
  879. sysconfdir='${prefix}/etc'
  880. sharedstatedir='${prefix}/com'
  881. localstatedir='${prefix}/var'
  882. runstatedir='${localstatedir}/run'
  883. includedir='${prefix}/include'
  884. oldincludedir='/usr/include'
  885. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  886. infodir='${datarootdir}/info'
  887. htmldir='${docdir}'
  888. dvidir='${docdir}'
  889. pdfdir='${docdir}'
  890. psdir='${docdir}'
  891. libdir='${exec_prefix}/lib'
  892. localedir='${datarootdir}/locale'
  893. mandir='${datarootdir}/man'
  894. ac_prev=
  895. ac_dashdash=
  896. for ac_option
  897. do
  898. # If the previous option needs an argument, assign it.
  899. if test -n "$ac_prev"; then
  900. eval $ac_prev=\$ac_option
  901. ac_prev=
  902. continue
  903. fi
  904. case $ac_option in
  905. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  906. *=) ac_optarg= ;;
  907. *) ac_optarg=yes ;;
  908. esac
  909. case $ac_dashdash$ac_option in
  910. --)
  911. ac_dashdash=yes ;;
  912. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  913. ac_prev=bindir ;;
  914. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  915. bindir=$ac_optarg ;;
  916. -build | --build | --buil | --bui | --bu)
  917. ac_prev=build_alias ;;
  918. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  919. build_alias=$ac_optarg ;;
  920. -cache-file | --cache-file | --cache-fil | --cache-fi \
  921. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  922. ac_prev=cache_file ;;
  923. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  924. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  925. cache_file=$ac_optarg ;;
  926. --config-cache | -C)
  927. cache_file=config.cache ;;
  928. -datadir | --datadir | --datadi | --datad)
  929. ac_prev=datadir ;;
  930. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  931. datadir=$ac_optarg ;;
  932. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  933. | --dataroo | --dataro | --datar)
  934. ac_prev=datarootdir ;;
  935. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  936. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  937. datarootdir=$ac_optarg ;;
  938. -disable-* | --disable-*)
  939. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  940. # Reject names that are not valid shell variable names.
  941. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  942. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  943. ac_useropt_orig=$ac_useropt
  944. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  945. case $ac_user_opts in
  946. *"
  947. "enable_$ac_useropt"
  948. "*) ;;
  949. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  950. ac_unrecognized_sep=', ';;
  951. esac
  952. eval enable_$ac_useropt=no ;;
  953. -docdir | --docdir | --docdi | --doc | --do)
  954. ac_prev=docdir ;;
  955. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  956. docdir=$ac_optarg ;;
  957. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  958. ac_prev=dvidir ;;
  959. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  960. dvidir=$ac_optarg ;;
  961. -enable-* | --enable-*)
  962. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  963. # Reject names that are not valid shell variable names.
  964. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  965. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  966. ac_useropt_orig=$ac_useropt
  967. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  968. case $ac_user_opts in
  969. *"
  970. "enable_$ac_useropt"
  971. "*) ;;
  972. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  973. ac_unrecognized_sep=', ';;
  974. esac
  975. eval enable_$ac_useropt=\$ac_optarg ;;
  976. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  977. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  978. | --exec | --exe | --ex)
  979. ac_prev=exec_prefix ;;
  980. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  981. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  982. | --exec=* | --exe=* | --ex=*)
  983. exec_prefix=$ac_optarg ;;
  984. -gas | --gas | --ga | --g)
  985. # Obsolete; use --with-gas.
  986. with_gas=yes ;;
  987. -help | --help | --hel | --he | -h)
  988. ac_init_help=long ;;
  989. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  990. ac_init_help=recursive ;;
  991. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  992. ac_init_help=short ;;
  993. -host | --host | --hos | --ho)
  994. ac_prev=host_alias ;;
  995. -host=* | --host=* | --hos=* | --ho=*)
  996. host_alias=$ac_optarg ;;
  997. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  998. ac_prev=htmldir ;;
  999. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1000. | --ht=*)
  1001. htmldir=$ac_optarg ;;
  1002. -includedir | --includedir | --includedi | --included | --include \
  1003. | --includ | --inclu | --incl | --inc)
  1004. ac_prev=includedir ;;
  1005. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1006. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1007. includedir=$ac_optarg ;;
  1008. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1009. ac_prev=infodir ;;
  1010. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1011. infodir=$ac_optarg ;;
  1012. -libdir | --libdir | --libdi | --libd)
  1013. ac_prev=libdir ;;
  1014. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1015. libdir=$ac_optarg ;;
  1016. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1017. | --libexe | --libex | --libe)
  1018. ac_prev=libexecdir ;;
  1019. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1020. | --libexe=* | --libex=* | --libe=*)
  1021. libexecdir=$ac_optarg ;;
  1022. -localedir | --localedir | --localedi | --localed | --locale)
  1023. ac_prev=localedir ;;
  1024. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1025. localedir=$ac_optarg ;;
  1026. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1027. | --localstate | --localstat | --localsta | --localst | --locals)
  1028. ac_prev=localstatedir ;;
  1029. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1030. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1031. localstatedir=$ac_optarg ;;
  1032. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1033. ac_prev=mandir ;;
  1034. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1035. mandir=$ac_optarg ;;
  1036. -nfp | --nfp | --nf)
  1037. # Obsolete; use --without-fp.
  1038. with_fp=no ;;
  1039. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1040. | --no-cr | --no-c | -n)
  1041. no_create=yes ;;
  1042. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1043. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1044. no_recursion=yes ;;
  1045. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1046. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1047. | --oldin | --oldi | --old | --ol | --o)
  1048. ac_prev=oldincludedir ;;
  1049. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1050. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1051. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1052. oldincludedir=$ac_optarg ;;
  1053. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1054. ac_prev=prefix ;;
  1055. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1056. prefix=$ac_optarg ;;
  1057. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1058. | --program-pre | --program-pr | --program-p)
  1059. ac_prev=program_prefix ;;
  1060. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1061. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1062. program_prefix=$ac_optarg ;;
  1063. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1064. | --program-suf | --program-su | --program-s)
  1065. ac_prev=program_suffix ;;
  1066. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1067. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1068. program_suffix=$ac_optarg ;;
  1069. -program-transform-name | --program-transform-name \
  1070. | --program-transform-nam | --program-transform-na \
  1071. | --program-transform-n | --program-transform- \
  1072. | --program-transform | --program-transfor \
  1073. | --program-transfo | --program-transf \
  1074. | --program-trans | --program-tran \
  1075. | --progr-tra | --program-tr | --program-t)
  1076. ac_prev=program_transform_name ;;
  1077. -program-transform-name=* | --program-transform-name=* \
  1078. | --program-transform-nam=* | --program-transform-na=* \
  1079. | --program-transform-n=* | --program-transform-=* \
  1080. | --program-transform=* | --program-transfor=* \
  1081. | --program-transfo=* | --program-transf=* \
  1082. | --program-trans=* | --program-tran=* \
  1083. | --progr-tra=* | --program-tr=* | --program-t=*)
  1084. program_transform_name=$ac_optarg ;;
  1085. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1086. ac_prev=pdfdir ;;
  1087. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1088. pdfdir=$ac_optarg ;;
  1089. -psdir | --psdir | --psdi | --psd | --ps)
  1090. ac_prev=psdir ;;
  1091. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1092. psdir=$ac_optarg ;;
  1093. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1094. | -silent | --silent | --silen | --sile | --sil)
  1095. silent=yes ;;
  1096. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1097. | --runstate | --runstat | --runsta | --runst | --runs \
  1098. | --run | --ru | --r)
  1099. ac_prev=runstatedir ;;
  1100. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1101. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1102. | --run=* | --ru=* | --r=*)
  1103. runstatedir=$ac_optarg ;;
  1104. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1105. ac_prev=sbindir ;;
  1106. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1107. | --sbi=* | --sb=*)
  1108. sbindir=$ac_optarg ;;
  1109. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1110. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1111. | --sharedst | --shareds | --shared | --share | --shar \
  1112. | --sha | --sh)
  1113. ac_prev=sharedstatedir ;;
  1114. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1115. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1116. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1117. | --sha=* | --sh=*)
  1118. sharedstatedir=$ac_optarg ;;
  1119. -site | --site | --sit)
  1120. ac_prev=site ;;
  1121. -site=* | --site=* | --sit=*)
  1122. site=$ac_optarg ;;
  1123. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1124. ac_prev=srcdir ;;
  1125. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1126. srcdir=$ac_optarg ;;
  1127. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1128. | --syscon | --sysco | --sysc | --sys | --sy)
  1129. ac_prev=sysconfdir ;;
  1130. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1131. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1132. sysconfdir=$ac_optarg ;;
  1133. -target | --target | --targe | --targ | --tar | --ta | --t)
  1134. ac_prev=target_alias ;;
  1135. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1136. target_alias=$ac_optarg ;;
  1137. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1138. verbose=yes ;;
  1139. -version | --version | --versio | --versi | --vers | -V)
  1140. ac_init_version=: ;;
  1141. -with-* | --with-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=\$ac_optarg ;;
  1156. -without-* | --without-*)
  1157. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1158. # Reject names that are not valid shell variable names.
  1159. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1160. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1161. ac_useropt_orig=$ac_useropt
  1162. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1163. case $ac_user_opts in
  1164. *"
  1165. "with_$ac_useropt"
  1166. "*) ;;
  1167. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1168. ac_unrecognized_sep=', ';;
  1169. esac
  1170. eval with_$ac_useropt=no ;;
  1171. --x)
  1172. # Obsolete; use --with-x.
  1173. with_x=yes ;;
  1174. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1175. | --x-incl | --x-inc | --x-in | --x-i)
  1176. ac_prev=x_includes ;;
  1177. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1178. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1179. x_includes=$ac_optarg ;;
  1180. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1181. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1182. ac_prev=x_libraries ;;
  1183. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1184. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1185. x_libraries=$ac_optarg ;;
  1186. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1187. Try \`$0 --help' for more information"
  1188. ;;
  1189. *=*)
  1190. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1191. # Reject names that are not valid shell variable names.
  1192. case $ac_envvar in #(
  1193. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1194. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1195. esac
  1196. eval $ac_envvar=\$ac_optarg
  1197. export $ac_envvar ;;
  1198. *)
  1199. # FIXME: should be removed in autoconf 3.0.
  1200. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1201. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1202. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1203. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1204. ;;
  1205. esac
  1206. done
  1207. if test -n "$ac_prev"; then
  1208. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1209. as_fn_error $? "missing argument to $ac_option"
  1210. fi
  1211. if test -n "$ac_unrecognized_opts"; then
  1212. case $enable_option_checking in
  1213. no) ;;
  1214. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1215. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1216. esac
  1217. fi
  1218. # Check all directory arguments for consistency.
  1219. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1220. datadir sysconfdir sharedstatedir localstatedir includedir \
  1221. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1222. libdir localedir mandir runstatedir
  1223. do
  1224. eval ac_val=\$$ac_var
  1225. # Remove trailing slashes.
  1226. case $ac_val in
  1227. */ )
  1228. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1229. eval $ac_var=\$ac_val;;
  1230. esac
  1231. # Be sure to have absolute directory names.
  1232. case $ac_val in
  1233. [\\/$]* | ?:[\\/]* ) continue;;
  1234. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1235. esac
  1236. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1237. done
  1238. # There might be people who depend on the old broken behavior: `$host'
  1239. # used to hold the argument of --host etc.
  1240. # FIXME: To remove some day.
  1241. build=$build_alias
  1242. host=$host_alias
  1243. target=$target_alias
  1244. # FIXME: To remove some day.
  1245. if test "x$host_alias" != x; then
  1246. if test "x$build_alias" = x; then
  1247. cross_compiling=maybe
  1248. elif test "x$build_alias" != "x$host_alias"; then
  1249. cross_compiling=yes
  1250. fi
  1251. fi
  1252. ac_tool_prefix=
  1253. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1254. test "$silent" = yes && exec 6>/dev/null
  1255. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1256. ac_ls_di=`ls -di .` &&
  1257. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1258. as_fn_error $? "working directory cannot be determined"
  1259. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1260. as_fn_error $? "pwd does not report name of working directory"
  1261. # Find the source files, if location was not specified.
  1262. if test -z "$srcdir"; then
  1263. ac_srcdir_defaulted=yes
  1264. # Try the directory containing this script, then the parent directory.
  1265. ac_confdir=`$as_dirname -- "$as_myself" ||
  1266. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1267. X"$as_myself" : 'X\(//\)[^/]' \| \
  1268. X"$as_myself" : 'X\(//\)$' \| \
  1269. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1270. printf "%s\n" X"$as_myself" |
  1271. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1272. s//\1/
  1273. q
  1274. }
  1275. /^X\(\/\/\)[^/].*/{
  1276. s//\1/
  1277. q
  1278. }
  1279. /^X\(\/\/\)$/{
  1280. s//\1/
  1281. q
  1282. }
  1283. /^X\(\/\).*/{
  1284. s//\1/
  1285. q
  1286. }
  1287. s/.*/./; q'`
  1288. srcdir=$ac_confdir
  1289. if test ! -r "$srcdir/$ac_unique_file"; then
  1290. srcdir=..
  1291. fi
  1292. else
  1293. ac_srcdir_defaulted=no
  1294. fi
  1295. if test ! -r "$srcdir/$ac_unique_file"; then
  1296. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1297. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1298. fi
  1299. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1300. ac_abs_confdir=`(
  1301. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1302. pwd)`
  1303. # When building in place, set srcdir=.
  1304. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1305. srcdir=.
  1306. fi
  1307. # Remove unnecessary trailing slashes from srcdir.
  1308. # Double slashes in file names in object file debugging info
  1309. # mess up M-x gdb in Emacs.
  1310. case $srcdir in
  1311. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1312. esac
  1313. for ac_var in $ac_precious_vars; do
  1314. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1315. eval ac_env_${ac_var}_value=\$${ac_var}
  1316. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1317. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1318. done
  1319. #
  1320. # Report the --help message.
  1321. #
  1322. if test "$ac_init_help" = "long"; then
  1323. # Omit some internal or obsolete options to make the list less imposing.
  1324. # This message is too long to be a string in the A/UX 3.1 sh.
  1325. cat <<_ACEOF
  1326. \`configure' configures PCRE2 10.39 to adapt to many kinds of systems.
  1327. Usage: $0 [OPTION]... [VAR=VALUE]...
  1328. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1329. VAR=VALUE. See below for descriptions of some of the useful variables.
  1330. Defaults for the options are specified in brackets.
  1331. Configuration:
  1332. -h, --help display this help and exit
  1333. --help=short display options specific to this package
  1334. --help=recursive display the short help of all the included packages
  1335. -V, --version display version information and exit
  1336. -q, --quiet, --silent do not print \`checking ...' messages
  1337. --cache-file=FILE cache test results in FILE [disabled]
  1338. -C, --config-cache alias for \`--cache-file=config.cache'
  1339. -n, --no-create do not create output files
  1340. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1341. Installation directories:
  1342. --prefix=PREFIX install architecture-independent files in PREFIX
  1343. [$ac_default_prefix]
  1344. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1345. [PREFIX]
  1346. By default, \`make install' will install all the files in
  1347. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1348. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1349. for instance \`--prefix=\$HOME'.
  1350. For better control, use the options below.
  1351. Fine tuning of the installation directories:
  1352. --bindir=DIR user executables [EPREFIX/bin]
  1353. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1354. --libexecdir=DIR program executables [EPREFIX/libexec]
  1355. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1356. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1357. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1358. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1359. --libdir=DIR object code libraries [EPREFIX/lib]
  1360. --includedir=DIR C header files [PREFIX/include]
  1361. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1362. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1363. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1364. --infodir=DIR info documentation [DATAROOTDIR/info]
  1365. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1366. --mandir=DIR man documentation [DATAROOTDIR/man]
  1367. --docdir=DIR documentation root [DATAROOTDIR/doc/pcre2]
  1368. --htmldir=DIR html documentation [DOCDIR]
  1369. --dvidir=DIR dvi documentation [DOCDIR]
  1370. --pdfdir=DIR pdf documentation [DOCDIR]
  1371. --psdir=DIR ps documentation [DOCDIR]
  1372. _ACEOF
  1373. cat <<\_ACEOF
  1374. Program names:
  1375. --program-prefix=PREFIX prepend PREFIX to installed program names
  1376. --program-suffix=SUFFIX append SUFFIX to installed program names
  1377. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1378. System types:
  1379. --build=BUILD configure for building on BUILD [guessed]
  1380. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1381. _ACEOF
  1382. fi
  1383. if test -n "$ac_init_help"; then
  1384. case $ac_init_help in
  1385. short | recursive ) echo "Configuration of PCRE2 10.39:";;
  1386. esac
  1387. cat <<\_ACEOF
  1388. Optional Features:
  1389. --disable-option-checking ignore unrecognized --enable/--with options
  1390. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1391. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1392. --enable-silent-rules less verbose build output (undo: "make V=1")
  1393. --disable-silent-rules verbose build output (undo: "make V=0")
  1394. --enable-dependency-tracking
  1395. do not reject slow dependency extractors
  1396. --disable-dependency-tracking
  1397. speeds up one-time build
  1398. --enable-shared[=PKGS] build shared libraries [default=yes]
  1399. --enable-static[=PKGS] build static libraries [default=yes]
  1400. --enable-fast-install[=PKGS]
  1401. optimize for fast installation [default=yes]
  1402. --disable-libtool-lock avoid locking (might break parallel builds)
  1403. --disable-pcre2-8 disable 8 bit character support
  1404. --enable-pcre2-16 enable 16 bit character support
  1405. --enable-pcre2-32 enable 32 bit character support
  1406. --enable-debug enable debugging code
  1407. --enable-jit enable Just-In-Time compiling support
  1408. --enable-jit-sealloc enable SELinux compatible execmem allocator in JIT
  1409. (experimental)
  1410. --disable-pcre2grep-jit disable JIT support in pcre2grep
  1411. --disable-pcre2grep-callout
  1412. disable callout script support in pcre2grep
  1413. --disable-pcre2grep-callout-fork
  1414. disable callout script fork support in pcre2grep
  1415. --enable-rebuild-chartables
  1416. rebuild character tables in current locale
  1417. --disable-unicode disable Unicode support
  1418. --enable-newline-is-cr use CR as newline character
  1419. --enable-newline-is-lf use LF as newline character (default)
  1420. --enable-newline-is-crlf
  1421. use CRLF as newline sequence
  1422. --enable-newline-is-anycrlf
  1423. use CR, LF, or CRLF as newline sequence
  1424. --enable-newline-is-any use any valid Unicode newline sequence
  1425. --enable-newline-is-nul use NUL (binary zero) as newline character
  1426. --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
  1427. --enable-never-backslash-C
  1428. use of \C causes an error
  1429. --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
  1430. with --enable-utf; use only in (uncommon) EBCDIC
  1431. environments; it implies --enable-rebuild-chartables
  1432. --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
  1433. implies --enable-ebcdic
  1434. --enable-pcre2grep-libz link pcre2grep with libz to handle .gz files
  1435. --enable-pcre2grep-libbz2
  1436. link pcre2grep with libbz2 to handle .bz2 files
  1437. --enable-pcre2test-libedit
  1438. link pcre2test with libedit
  1439. --enable-pcre2test-libreadline
  1440. link pcre2test with libreadline
  1441. --enable-valgrind enable valgrind support
  1442. --enable-coverage enable code coverage reports using gcov
  1443. --enable-fuzz-support enable fuzzer support
  1444. --disable-percent-zt disable the use of z and t formatting modifiers
  1445. Optional Packages:
  1446. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1447. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1448. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1449. both]
  1450. --with-aix-soname=aix|svr4|both
  1451. shared library versioning (aka "SONAME") variant to
  1452. provide on AIX, [default=aix].
  1453. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1454. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1455. compiler's sysroot if not specified).
  1456. --with-pcre2grep-bufsize=N
  1457. pcre2grep initial buffer size (default=20480,
  1458. minimum=8192)
  1459. --with-pcre2grep-max-bufsize=N
  1460. pcre2grep maximum buffer size (default=1048576,
  1461. minimum=8192)
  1462. --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
  1463. --with-parens-nest-limit=N
  1464. nested parentheses limit (default=250)
  1465. --with-heap-limit=N default limit on heap memory (kibibytes,
  1466. default=20000000)
  1467. --with-match-limit=N default limit on internal looping (default=10000000)
  1468. --with-match-limit-depth=N
  1469. default limit on match tree depth
  1470. (default=MATCH_LIMIT)
  1471. Some influential environment variables:
  1472. CC C compiler command
  1473. CFLAGS C compiler flags
  1474. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1475. nonstandard directory <lib dir>
  1476. LIBS libraries to pass to the linker, e.g. -l<library>
  1477. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1478. you have headers in a nonstandard directory <include dir>
  1479. LT_SYS_LIBRARY_PATH
  1480. User-defined run-time library search path.
  1481. PKG_CONFIG path to pkg-config utility
  1482. PKG_CONFIG_PATH
  1483. directories to add to pkg-config's search path
  1484. PKG_CONFIG_LIBDIR
  1485. path overriding pkg-config's built-in search path
  1486. VALGRIND_CFLAGS
  1487. C compiler flags for VALGRIND, overriding pkg-config
  1488. VALGRIND_LIBS
  1489. linker flags for VALGRIND, overriding pkg-config
  1490. LCOV the ltp lcov program
  1491. GENHTML the ltp genhtml program
  1492. Use these variables to override the choices made by `configure' or to help
  1493. it to find libraries and programs with nonstandard names/locations.
  1494. Report bugs to the package provider.
  1495. _ACEOF
  1496. ac_status=$?
  1497. fi
  1498. if test "$ac_init_help" = "recursive"; then
  1499. # If there are subdirs, report their specific --help.
  1500. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1501. test -d "$ac_dir" ||
  1502. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1503. continue
  1504. ac_builddir=.
  1505. case "$ac_dir" in
  1506. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1507. *)
  1508. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1509. # A ".." for each directory in $ac_dir_suffix.
  1510. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1511. case $ac_top_builddir_sub in
  1512. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1513. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1514. esac ;;
  1515. esac
  1516. ac_abs_top_builddir=$ac_pwd
  1517. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1518. # for backward compatibility:
  1519. ac_top_builddir=$ac_top_build_prefix
  1520. case $srcdir in
  1521. .) # We are building in place.
  1522. ac_srcdir=.
  1523. ac_top_srcdir=$ac_top_builddir_sub
  1524. ac_abs_top_srcdir=$ac_pwd ;;
  1525. [\\/]* | ?:[\\/]* ) # Absolute name.
  1526. ac_srcdir=$srcdir$ac_dir_suffix;
  1527. ac_top_srcdir=$srcdir
  1528. ac_abs_top_srcdir=$srcdir ;;
  1529. *) # Relative name.
  1530. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1531. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1532. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1533. esac
  1534. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1535. cd "$ac_dir" || { ac_status=$?; continue; }
  1536. # Check for configure.gnu first; this name is used for a wrapper for
  1537. # Metaconfig's "Configure" on case-insensitive file systems.
  1538. if test -f "$ac_srcdir/configure.gnu"; then
  1539. echo &&
  1540. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1541. elif test -f "$ac_srcdir/configure"; then
  1542. echo &&
  1543. $SHELL "$ac_srcdir/configure" --help=recursive
  1544. else
  1545. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1546. fi || ac_status=$?
  1547. cd "$ac_pwd" || { ac_status=$?; break; }
  1548. done
  1549. fi
  1550. test -n "$ac_init_help" && exit $ac_status
  1551. if $ac_init_version; then
  1552. cat <<\_ACEOF
  1553. PCRE2 configure 10.39
  1554. generated by GNU Autoconf 2.71
  1555. Copyright (C) 2021 Free Software Foundation, Inc.
  1556. This configure script is free software; the Free Software Foundation
  1557. gives unlimited permission to copy, distribute and modify it.
  1558. _ACEOF
  1559. exit
  1560. fi
  1561. ## ------------------------ ##
  1562. ## Autoconf initialization. ##
  1563. ## ------------------------ ##
  1564. # ac_fn_c_try_compile LINENO
  1565. # --------------------------
  1566. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1567. ac_fn_c_try_compile ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. rm -f conftest.$ac_objext conftest.beam
  1571. if { { ac_try="$ac_compile"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. printf "%s\n" "$ac_try_echo"; } >&5
  1578. (eval "$ac_compile") 2>conftest.err
  1579. ac_status=$?
  1580. if test -s conftest.err; then
  1581. grep -v '^ *+' conftest.err >conftest.er1
  1582. cat conftest.er1 >&5
  1583. mv -f conftest.er1 conftest.err
  1584. fi
  1585. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; } && {
  1587. test -z "$ac_c_werror_flag" ||
  1588. test ! -s conftest.err
  1589. } && test -s conftest.$ac_objext
  1590. then :
  1591. ac_retval=0
  1592. else $as_nop
  1593. printf "%s\n" "$as_me: failed program was:" >&5
  1594. sed 's/^/| /' conftest.$ac_ext >&5
  1595. ac_retval=1
  1596. fi
  1597. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1598. as_fn_set_status $ac_retval
  1599. } # ac_fn_c_try_compile
  1600. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1601. # -------------------------------------------------------
  1602. # Tests whether HEADER exists and can be compiled using the include files in
  1603. # INCLUDES, setting the cache variable VAR accordingly.
  1604. ac_fn_c_check_header_compile ()
  1605. {
  1606. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1608. printf %s "checking for $2... " >&6; }
  1609. if eval test \${$3+y}
  1610. then :
  1611. printf %s "(cached) " >&6
  1612. else $as_nop
  1613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1614. /* end confdefs.h. */
  1615. $4
  1616. #include <$2>
  1617. _ACEOF
  1618. if ac_fn_c_try_compile "$LINENO"
  1619. then :
  1620. eval "$3=yes"
  1621. else $as_nop
  1622. eval "$3=no"
  1623. fi
  1624. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1625. fi
  1626. eval ac_res=\$$3
  1627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1628. printf "%s\n" "$ac_res" >&6; }
  1629. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1630. } # ac_fn_c_check_header_compile
  1631. # ac_fn_c_find_intX_t LINENO BITS VAR
  1632. # -----------------------------------
  1633. # Finds a signed integer type with width BITS, setting cache variable VAR
  1634. # accordingly.
  1635. ac_fn_c_find_intX_t ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1639. printf %s "checking for int$2_t... " >&6; }
  1640. if eval test \${$3+y}
  1641. then :
  1642. printf %s "(cached) " >&6
  1643. else $as_nop
  1644. eval "$3=no"
  1645. # Order is important - never check a type that is potentially smaller
  1646. # than half of the expected target width.
  1647. for ac_type in int$2_t 'int' 'long int' \
  1648. 'long long int' 'short int' 'signed char'; do
  1649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1650. /* end confdefs.h. */
  1651. $ac_includes_default
  1652. enum { N = $2 / 2 - 1 };
  1653. int
  1654. main (void)
  1655. {
  1656. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1657. test_array [0] = 0;
  1658. return test_array [0];
  1659. ;
  1660. return 0;
  1661. }
  1662. _ACEOF
  1663. if ac_fn_c_try_compile "$LINENO"
  1664. then :
  1665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1666. /* end confdefs.h. */
  1667. $ac_includes_default
  1668. enum { N = $2 / 2 - 1 };
  1669. int
  1670. main (void)
  1671. {
  1672. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1673. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1674. test_array [0] = 0;
  1675. return test_array [0];
  1676. ;
  1677. return 0;
  1678. }
  1679. _ACEOF
  1680. if ac_fn_c_try_compile "$LINENO"
  1681. then :
  1682. else $as_nop
  1683. case $ac_type in #(
  1684. int$2_t) :
  1685. eval "$3=yes" ;; #(
  1686. *) :
  1687. eval "$3=\$ac_type" ;;
  1688. esac
  1689. fi
  1690. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1691. fi
  1692. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1693. if eval test \"x\$"$3"\" = x"no"
  1694. then :
  1695. else $as_nop
  1696. break
  1697. fi
  1698. done
  1699. fi
  1700. eval ac_res=\$$3
  1701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1702. printf "%s\n" "$ac_res" >&6; }
  1703. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1704. } # ac_fn_c_find_intX_t
  1705. # ac_fn_c_try_link LINENO
  1706. # -----------------------
  1707. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1708. ac_fn_c_try_link ()
  1709. {
  1710. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1711. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1712. if { { ac_try="$ac_link"
  1713. case "(($ac_try" in
  1714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1715. *) ac_try_echo=$ac_try;;
  1716. esac
  1717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1718. printf "%s\n" "$ac_try_echo"; } >&5
  1719. (eval "$ac_link") 2>conftest.err
  1720. ac_status=$?
  1721. if test -s conftest.err; then
  1722. grep -v '^ *+' conftest.err >conftest.er1
  1723. cat conftest.er1 >&5
  1724. mv -f conftest.er1 conftest.err
  1725. fi
  1726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1727. test $ac_status = 0; } && {
  1728. test -z "$ac_c_werror_flag" ||
  1729. test ! -s conftest.err
  1730. } && test -s conftest$ac_exeext && {
  1731. test "$cross_compiling" = yes ||
  1732. test -x conftest$ac_exeext
  1733. }
  1734. then :
  1735. ac_retval=0
  1736. else $as_nop
  1737. printf "%s\n" "$as_me: failed program was:" >&5
  1738. sed 's/^/| /' conftest.$ac_ext >&5
  1739. ac_retval=1
  1740. fi
  1741. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1742. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1743. # interfere with the next link command; also delete a directory that is
  1744. # left behind by Apple's compiler. We do this before executing the actions.
  1745. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1746. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1747. as_fn_set_status $ac_retval
  1748. } # ac_fn_c_try_link
  1749. # ac_fn_c_check_func LINENO FUNC VAR
  1750. # ----------------------------------
  1751. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1752. ac_fn_c_check_func ()
  1753. {
  1754. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1756. printf %s "checking for $2... " >&6; }
  1757. if eval test \${$3+y}
  1758. then :
  1759. printf %s "(cached) " >&6
  1760. else $as_nop
  1761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end confdefs.h. */
  1763. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1764. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1765. #define $2 innocuous_$2
  1766. /* System header to define __stub macros and hopefully few prototypes,
  1767. which can conflict with char $2 (); below. */
  1768. #include <limits.h>
  1769. #undef $2
  1770. /* Override any GCC internal prototype to avoid an error.
  1771. Use char because int might match the return type of a GCC
  1772. builtin and then its argument prototype would still apply. */
  1773. #ifdef __cplusplus
  1774. extern "C"
  1775. #endif
  1776. char $2 ();
  1777. /* The GNU C library defines this for functions which it implements
  1778. to always fail with ENOSYS. Some functions are actually named
  1779. something starting with __ and the normal name is an alias. */
  1780. #if defined __stub_$2 || defined __stub___$2
  1781. choke me
  1782. #endif
  1783. int
  1784. main (void)
  1785. {
  1786. return $2 ();
  1787. ;
  1788. return 0;
  1789. }
  1790. _ACEOF
  1791. if ac_fn_c_try_link "$LINENO"
  1792. then :
  1793. eval "$3=yes"
  1794. else $as_nop
  1795. eval "$3=no"
  1796. fi
  1797. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1798. conftest$ac_exeext conftest.$ac_ext
  1799. fi
  1800. eval ac_res=\$$3
  1801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1802. printf "%s\n" "$ac_res" >&6; }
  1803. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1804. } # ac_fn_c_check_func
  1805. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1806. # -------------------------------------------
  1807. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1808. # variable VAR accordingly.
  1809. ac_fn_c_check_type ()
  1810. {
  1811. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1813. printf %s "checking for $2... " >&6; }
  1814. if eval test \${$3+y}
  1815. then :
  1816. printf %s "(cached) " >&6
  1817. else $as_nop
  1818. eval "$3=no"
  1819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1820. /* end confdefs.h. */
  1821. $4
  1822. int
  1823. main (void)
  1824. {
  1825. if (sizeof ($2))
  1826. return 0;
  1827. ;
  1828. return 0;
  1829. }
  1830. _ACEOF
  1831. if ac_fn_c_try_compile "$LINENO"
  1832. then :
  1833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1834. /* end confdefs.h. */
  1835. $4
  1836. int
  1837. main (void)
  1838. {
  1839. if (sizeof (($2)))
  1840. return 0;
  1841. ;
  1842. return 0;
  1843. }
  1844. _ACEOF
  1845. if ac_fn_c_try_compile "$LINENO"
  1846. then :
  1847. else $as_nop
  1848. eval "$3=yes"
  1849. fi
  1850. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1851. fi
  1852. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1853. fi
  1854. eval ac_res=\$$3
  1855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1856. printf "%s\n" "$ac_res" >&6; }
  1857. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1858. } # ac_fn_c_check_type
  1859. ac_configure_args_raw=
  1860. for ac_arg
  1861. do
  1862. case $ac_arg in
  1863. *\'*)
  1864. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1865. esac
  1866. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1867. done
  1868. case $ac_configure_args_raw in
  1869. *$as_nl*)
  1870. ac_safe_unquote= ;;
  1871. *)
  1872. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1873. ac_unsafe_a="$ac_unsafe_z#~"
  1874. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1875. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1876. esac
  1877. cat >config.log <<_ACEOF
  1878. This file contains any messages produced by compilers while
  1879. running configure, to aid debugging if configure makes a mistake.
  1880. It was created by PCRE2 $as_me 10.39, which was
  1881. generated by GNU Autoconf 2.71. Invocation command line was
  1882. $ $0$ac_configure_args_raw
  1883. _ACEOF
  1884. exec 5>>config.log
  1885. {
  1886. cat <<_ASUNAME
  1887. ## --------- ##
  1888. ## Platform. ##
  1889. ## --------- ##
  1890. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1891. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1892. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1893. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1894. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1895. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1896. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1897. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1898. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1899. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1900. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1901. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1902. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1903. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1904. _ASUNAME
  1905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1906. for as_dir in $PATH
  1907. do
  1908. IFS=$as_save_IFS
  1909. case $as_dir in #(((
  1910. '') as_dir=./ ;;
  1911. */) ;;
  1912. *) as_dir=$as_dir/ ;;
  1913. esac
  1914. printf "%s\n" "PATH: $as_dir"
  1915. done
  1916. IFS=$as_save_IFS
  1917. } >&5
  1918. cat >&5 <<_ACEOF
  1919. ## ----------- ##
  1920. ## Core tests. ##
  1921. ## ----------- ##
  1922. _ACEOF
  1923. # Keep a trace of the command line.
  1924. # Strip out --no-create and --no-recursion so they do not pile up.
  1925. # Strip out --silent because we don't want to record it for future runs.
  1926. # Also quote any args containing shell meta-characters.
  1927. # Make two passes to allow for proper duplicate-argument suppression.
  1928. ac_configure_args=
  1929. ac_configure_args0=
  1930. ac_configure_args1=
  1931. ac_must_keep_next=false
  1932. for ac_pass in 1 2
  1933. do
  1934. for ac_arg
  1935. do
  1936. case $ac_arg in
  1937. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1938. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1939. | -silent | --silent | --silen | --sile | --sil)
  1940. continue ;;
  1941. *\'*)
  1942. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1943. esac
  1944. case $ac_pass in
  1945. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1946. 2)
  1947. as_fn_append ac_configure_args1 " '$ac_arg'"
  1948. if test $ac_must_keep_next = true; then
  1949. ac_must_keep_next=false # Got value, back to normal.
  1950. else
  1951. case $ac_arg in
  1952. *=* | --config-cache | -C | -disable-* | --disable-* \
  1953. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1954. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1955. | -with-* | --with-* | -without-* | --without-* | --x)
  1956. case "$ac_configure_args0 " in
  1957. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1958. esac
  1959. ;;
  1960. -* ) ac_must_keep_next=true ;;
  1961. esac
  1962. fi
  1963. as_fn_append ac_configure_args " '$ac_arg'"
  1964. ;;
  1965. esac
  1966. done
  1967. done
  1968. { ac_configure_args0=; unset ac_configure_args0;}
  1969. { ac_configure_args1=; unset ac_configure_args1;}
  1970. # When interrupted or exit'd, cleanup temporary files, and complete
  1971. # config.log. We remove comments because anyway the quotes in there
  1972. # would cause problems or look ugly.
  1973. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1974. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1975. trap 'exit_status=$?
  1976. # Sanitize IFS.
  1977. IFS=" "" $as_nl"
  1978. # Save into config.log some information that might help in debugging.
  1979. {
  1980. echo
  1981. printf "%s\n" "## ---------------- ##
  1982. ## Cache variables. ##
  1983. ## ---------------- ##"
  1984. echo
  1985. # The following way of writing the cache mishandles newlines in values,
  1986. (
  1987. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1988. eval ac_val=\$$ac_var
  1989. case $ac_val in #(
  1990. *${as_nl}*)
  1991. case $ac_var in #(
  1992. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1993. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1994. esac
  1995. case $ac_var in #(
  1996. _ | IFS | as_nl) ;; #(
  1997. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1998. *) { eval $ac_var=; unset $ac_var;} ;;
  1999. esac ;;
  2000. esac
  2001. done
  2002. (set) 2>&1 |
  2003. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2004. *${as_nl}ac_space=\ *)
  2005. sed -n \
  2006. "s/'\''/'\''\\\\'\'''\''/g;
  2007. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2008. ;; #(
  2009. *)
  2010. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2011. ;;
  2012. esac |
  2013. sort
  2014. )
  2015. echo
  2016. printf "%s\n" "## ----------------- ##
  2017. ## Output variables. ##
  2018. ## ----------------- ##"
  2019. echo
  2020. for ac_var in $ac_subst_vars
  2021. do
  2022. eval ac_val=\$$ac_var
  2023. case $ac_val in
  2024. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2025. esac
  2026. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2027. done | sort
  2028. echo
  2029. if test -n "$ac_subst_files"; then
  2030. printf "%s\n" "## ------------------- ##
  2031. ## File substitutions. ##
  2032. ## ------------------- ##"
  2033. echo
  2034. for ac_var in $ac_subst_files
  2035. do
  2036. eval ac_val=\$$ac_var
  2037. case $ac_val in
  2038. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2039. esac
  2040. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2041. done | sort
  2042. echo
  2043. fi
  2044. if test -s confdefs.h; then
  2045. printf "%s\n" "## ----------- ##
  2046. ## confdefs.h. ##
  2047. ## ----------- ##"
  2048. echo
  2049. cat confdefs.h
  2050. echo
  2051. fi
  2052. test "$ac_signal" != 0 &&
  2053. printf "%s\n" "$as_me: caught signal $ac_signal"
  2054. printf "%s\n" "$as_me: exit $exit_status"
  2055. } >&5
  2056. rm -f core *.core core.conftest.* &&
  2057. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2058. exit $exit_status
  2059. ' 0
  2060. for ac_signal in 1 2 13 15; do
  2061. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2062. done
  2063. ac_signal=0
  2064. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2065. rm -f -r conftest* confdefs.h
  2066. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2067. # Predefined preprocessor variables.
  2068. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2069. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2070. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2071. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2072. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2073. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2074. # Let the site file select an alternate cache file if it wants to.
  2075. # Prefer an explicitly selected file to automatically selected ones.
  2076. if test -n "$CONFIG_SITE"; then
  2077. ac_site_files="$CONFIG_SITE"
  2078. elif test "x$prefix" != xNONE; then
  2079. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2080. else
  2081. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2082. fi
  2083. for ac_site_file in $ac_site_files
  2084. do
  2085. case $ac_site_file in #(
  2086. */*) :
  2087. ;; #(
  2088. *) :
  2089. ac_site_file=./$ac_site_file ;;
  2090. esac
  2091. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2093. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2094. sed 's/^/| /' "$ac_site_file" >&5
  2095. . "$ac_site_file" \
  2096. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2097. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2098. as_fn_error $? "failed to load site script $ac_site_file
  2099. See \`config.log' for more details" "$LINENO" 5; }
  2100. fi
  2101. done
  2102. if test -r "$cache_file"; then
  2103. # Some versions of bash will fail to source /dev/null (special files
  2104. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2105. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2107. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2108. case $cache_file in
  2109. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2110. *) . "./$cache_file";;
  2111. esac
  2112. fi
  2113. else
  2114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2115. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2116. >$cache_file
  2117. fi
  2118. # Test code for whether the C compiler supports C89 (global declarations)
  2119. ac_c_conftest_c89_globals='
  2120. /* Does the compiler advertise C89 conformance?
  2121. Do not test the value of __STDC__, because some compilers set it to 0
  2122. while being otherwise adequately conformant. */
  2123. #if !defined __STDC__
  2124. # error "Compiler does not advertise C89 conformance"
  2125. #endif
  2126. #include <stddef.h>
  2127. #include <stdarg.h>
  2128. struct stat;
  2129. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2130. struct buf { int x; };
  2131. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2132. static char *e (p, i)
  2133. char **p;
  2134. int i;
  2135. {
  2136. return p[i];
  2137. }
  2138. static char *f (char * (*g) (char **, int), char **p, ...)
  2139. {
  2140. char *s;
  2141. va_list v;
  2142. va_start (v,p);
  2143. s = g (p, va_arg (v,int));
  2144. va_end (v);
  2145. return s;
  2146. }
  2147. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2148. function prototypes and stuff, but not \xHH hex character constants.
  2149. These do not provoke an error unfortunately, instead are silently treated
  2150. as an "x". The following induces an error, until -std is added to get
  2151. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2152. array size at least. It is necessary to write \x00 == 0 to get something
  2153. that is true only with -std. */
  2154. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2155. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2156. inside strings and character constants. */
  2157. #define FOO(x) '\''x'\''
  2158. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2159. int test (int i, double x);
  2160. struct s1 {int (*f) (int a);};
  2161. struct s2 {int (*f) (double a);};
  2162. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2163. int, int);'
  2164. # Test code for whether the C compiler supports C89 (body of main).
  2165. ac_c_conftest_c89_main='
  2166. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2167. '
  2168. # Test code for whether the C compiler supports C99 (global declarations)
  2169. ac_c_conftest_c99_globals='
  2170. // Does the compiler advertise C99 conformance?
  2171. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2172. # error "Compiler does not advertise C99 conformance"
  2173. #endif
  2174. #include <stdbool.h>
  2175. extern int puts (const char *);
  2176. extern int printf (const char *, ...);
  2177. extern int dprintf (int, const char *, ...);
  2178. extern void *malloc (size_t);
  2179. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2180. // dprintf is used instead of fprintf to avoid needing to declare
  2181. // FILE and stderr.
  2182. #define debug(...) dprintf (2, __VA_ARGS__)
  2183. #define showlist(...) puts (#__VA_ARGS__)
  2184. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2185. static void
  2186. test_varargs_macros (void)
  2187. {
  2188. int x = 1234;
  2189. int y = 5678;
  2190. debug ("Flag");
  2191. debug ("X = %d\n", x);
  2192. showlist (The first, second, and third items.);
  2193. report (x>y, "x is %d but y is %d", x, y);
  2194. }
  2195. // Check long long types.
  2196. #define BIG64 18446744073709551615ull
  2197. #define BIG32 4294967295ul
  2198. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2199. #if !BIG_OK
  2200. #error "your preprocessor is broken"
  2201. #endif
  2202. #if BIG_OK
  2203. #else
  2204. #error "your preprocessor is broken"
  2205. #endif
  2206. static long long int bignum = -9223372036854775807LL;
  2207. static unsigned long long int ubignum = BIG64;
  2208. struct incomplete_array
  2209. {
  2210. int datasize;
  2211. double data[];
  2212. };
  2213. struct named_init {
  2214. int number;
  2215. const wchar_t *name;
  2216. double average;
  2217. };
  2218. typedef const char *ccp;
  2219. static inline int
  2220. test_restrict (ccp restrict text)
  2221. {
  2222. // See if C++-style comments work.
  2223. // Iterate through items via the restricted pointer.
  2224. // Also check for declarations in for loops.
  2225. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2226. continue;
  2227. return 0;
  2228. }
  2229. // Check varargs and va_copy.
  2230. static bool
  2231. test_varargs (const char *format, ...)
  2232. {
  2233. va_list args;
  2234. va_start (args, format);
  2235. va_list args_copy;
  2236. va_copy (args_copy, args);
  2237. const char *str = "";
  2238. int number = 0;
  2239. float fnumber = 0;
  2240. while (*format)
  2241. {
  2242. switch (*format++)
  2243. {
  2244. case '\''s'\'': // string
  2245. str = va_arg (args_copy, const char *);
  2246. break;
  2247. case '\''d'\'': // int
  2248. number = va_arg (args_copy, int);
  2249. break;
  2250. case '\''f'\'': // float
  2251. fnumber = va_arg (args_copy, double);
  2252. break;
  2253. default:
  2254. break;
  2255. }
  2256. }
  2257. va_end (args_copy);
  2258. va_end (args);
  2259. return *str && number && fnumber;
  2260. }
  2261. '
  2262. # Test code for whether the C compiler supports C99 (body of main).
  2263. ac_c_conftest_c99_main='
  2264. // Check bool.
  2265. _Bool success = false;
  2266. success |= (argc != 0);
  2267. // Check restrict.
  2268. if (test_restrict ("String literal") == 0)
  2269. success = true;
  2270. char *restrict newvar = "Another string";
  2271. // Check varargs.
  2272. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2273. test_varargs_macros ();
  2274. // Check flexible array members.
  2275. struct incomplete_array *ia =
  2276. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2277. ia->datasize = 10;
  2278. for (int i = 0; i < ia->datasize; ++i)
  2279. ia->data[i] = i * 1.234;
  2280. // Check named initializers.
  2281. struct named_init ni = {
  2282. .number = 34,
  2283. .name = L"Test wide string",
  2284. .average = 543.34343,
  2285. };
  2286. ni.number = 58;
  2287. int dynamic_array[ni.number];
  2288. dynamic_array[0] = argv[0][0];
  2289. dynamic_array[ni.number - 1] = 543;
  2290. // work around unused variable warnings
  2291. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2292. || dynamic_array[ni.number - 1] != 543);
  2293. '
  2294. # Test code for whether the C compiler supports C11 (global declarations)
  2295. ac_c_conftest_c11_globals='
  2296. // Does the compiler advertise C11 conformance?
  2297. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2298. # error "Compiler does not advertise C11 conformance"
  2299. #endif
  2300. // Check _Alignas.
  2301. char _Alignas (double) aligned_as_double;
  2302. char _Alignas (0) no_special_alignment;
  2303. extern char aligned_as_int;
  2304. char _Alignas (0) _Alignas (int) aligned_as_int;
  2305. // Check _Alignof.
  2306. enum
  2307. {
  2308. int_alignment = _Alignof (int),
  2309. int_array_alignment = _Alignof (int[100]),
  2310. char_alignment = _Alignof (char)
  2311. };
  2312. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2313. // Check _Noreturn.
  2314. int _Noreturn does_not_return (void) { for (;;) continue; }
  2315. // Check _Static_assert.
  2316. struct test_static_assert
  2317. {
  2318. int x;
  2319. _Static_assert (sizeof (int) <= sizeof (long int),
  2320. "_Static_assert does not work in struct");
  2321. long int y;
  2322. };
  2323. // Check UTF-8 literals.
  2324. #define u8 syntax error!
  2325. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2326. // Check duplicate typedefs.
  2327. typedef long *long_ptr;
  2328. typedef long int *long_ptr;
  2329. typedef long_ptr long_ptr;
  2330. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2331. struct anonymous
  2332. {
  2333. union {
  2334. struct { int i; int j; };
  2335. struct { int k; long int l; } w;
  2336. };
  2337. int m;
  2338. } v1;
  2339. '
  2340. # Test code for whether the C compiler supports C11 (body of main).
  2341. ac_c_conftest_c11_main='
  2342. _Static_assert ((offsetof (struct anonymous, i)
  2343. == offsetof (struct anonymous, w.k)),
  2344. "Anonymous union alignment botch");
  2345. v1.i = 2;
  2346. v1.w.k = 5;
  2347. ok |= v1.i != 5;
  2348. '
  2349. # Test code for whether the C compiler supports C11 (complete).
  2350. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2351. ${ac_c_conftest_c99_globals}
  2352. ${ac_c_conftest_c11_globals}
  2353. int
  2354. main (int argc, char **argv)
  2355. {
  2356. int ok = 0;
  2357. ${ac_c_conftest_c89_main}
  2358. ${ac_c_conftest_c99_main}
  2359. ${ac_c_conftest_c11_main}
  2360. return ok;
  2361. }
  2362. "
  2363. # Test code for whether the C compiler supports C99 (complete).
  2364. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2365. ${ac_c_conftest_c99_globals}
  2366. int
  2367. main (int argc, char **argv)
  2368. {
  2369. int ok = 0;
  2370. ${ac_c_conftest_c89_main}
  2371. ${ac_c_conftest_c99_main}
  2372. return ok;
  2373. }
  2374. "
  2375. # Test code for whether the C compiler supports C89 (complete).
  2376. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2377. int
  2378. main (int argc, char **argv)
  2379. {
  2380. int ok = 0;
  2381. ${ac_c_conftest_c89_main}
  2382. return ok;
  2383. }
  2384. "
  2385. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2386. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2387. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2388. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2389. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2390. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2391. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2392. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2393. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2394. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  2395. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  2396. # Auxiliary files required by this configure script.
  2397. ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
  2398. # Locations in which to look for auxiliary files.
  2399. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2400. # Search for a directory containing all of the required auxiliary files,
  2401. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2402. # If we don't find one directory that contains all the files we need,
  2403. # we report the set of missing files from the *first* directory in
  2404. # $ac_aux_dir_candidates and give up.
  2405. ac_missing_aux_files=""
  2406. ac_first_candidate=:
  2407. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2409. as_found=false
  2410. for as_dir in $ac_aux_dir_candidates
  2411. do
  2412. IFS=$as_save_IFS
  2413. case $as_dir in #(((
  2414. '') as_dir=./ ;;
  2415. */) ;;
  2416. *) as_dir=$as_dir/ ;;
  2417. esac
  2418. as_found=:
  2419. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2420. ac_aux_dir_found=yes
  2421. ac_install_sh=
  2422. for ac_aux in $ac_aux_files
  2423. do
  2424. # As a special case, if "install-sh" is required, that requirement
  2425. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2426. # and $ac_install_sh is set appropriately for whichever one is found.
  2427. if test x"$ac_aux" = x"install-sh"
  2428. then
  2429. if test -f "${as_dir}install-sh"; then
  2430. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2431. ac_install_sh="${as_dir}install-sh -c"
  2432. elif test -f "${as_dir}install.sh"; then
  2433. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2434. ac_install_sh="${as_dir}install.sh -c"
  2435. elif test -f "${as_dir}shtool"; then
  2436. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2437. ac_install_sh="${as_dir}shtool install -c"
  2438. else
  2439. ac_aux_dir_found=no
  2440. if $ac_first_candidate; then
  2441. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2442. else
  2443. break
  2444. fi
  2445. fi
  2446. else
  2447. if test -f "${as_dir}${ac_aux}"; then
  2448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2449. else
  2450. ac_aux_dir_found=no
  2451. if $ac_first_candidate; then
  2452. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2453. else
  2454. break
  2455. fi
  2456. fi
  2457. fi
  2458. done
  2459. if test "$ac_aux_dir_found" = yes; then
  2460. ac_aux_dir="$as_dir"
  2461. break
  2462. fi
  2463. ac_first_candidate=false
  2464. as_found=false
  2465. done
  2466. IFS=$as_save_IFS
  2467. if $as_found
  2468. then :
  2469. else $as_nop
  2470. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2471. fi
  2472. # These three variables are undocumented and unsupported,
  2473. # and are intended to be withdrawn in a future Autoconf release.
  2474. # They can cause serious problems if a builder's source tree is in a directory
  2475. # whose full name contains unusual characters.
  2476. if test -f "${ac_aux_dir}config.guess"; then
  2477. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2478. fi
  2479. if test -f "${ac_aux_dir}config.sub"; then
  2480. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2481. fi
  2482. if test -f "$ac_aux_dir/configure"; then
  2483. ac_configure="$SHELL ${ac_aux_dir}configure"
  2484. fi
  2485. # Check that the precious variables saved in the cache have kept the same
  2486. # value.
  2487. ac_cache_corrupted=false
  2488. for ac_var in $ac_precious_vars; do
  2489. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2490. eval ac_new_set=\$ac_env_${ac_var}_set
  2491. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2492. eval ac_new_val=\$ac_env_${ac_var}_value
  2493. case $ac_old_set,$ac_new_set in
  2494. set,)
  2495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2496. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2497. ac_cache_corrupted=: ;;
  2498. ,set)
  2499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2500. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2501. ac_cache_corrupted=: ;;
  2502. ,);;
  2503. *)
  2504. if test "x$ac_old_val" != "x$ac_new_val"; then
  2505. # differences in whitespace do not lead to failure.
  2506. ac_old_val_w=`echo x $ac_old_val`
  2507. ac_new_val_w=`echo x $ac_new_val`
  2508. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2510. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2511. ac_cache_corrupted=:
  2512. else
  2513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2514. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2515. eval $ac_var=\$ac_old_val
  2516. fi
  2517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2518. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2520. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2521. fi;;
  2522. esac
  2523. # Pass precious variables to config.status.
  2524. if test "$ac_new_set" = set; then
  2525. case $ac_new_val in
  2526. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2527. *) ac_arg=$ac_var=$ac_new_val ;;
  2528. esac
  2529. case " $ac_configure_args " in
  2530. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2531. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2532. esac
  2533. fi
  2534. done
  2535. if $ac_cache_corrupted; then
  2536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2537. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2539. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2540. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2541. and start over" "$LINENO" 5
  2542. fi
  2543. ## -------------------- ##
  2544. ## Main body of script. ##
  2545. ## -------------------- ##
  2546. ac_ext=c
  2547. ac_cpp='$CPP $CPPFLAGS'
  2548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2551. am__api_version='1.16'
  2552. # Find a good install program. We prefer a C program (faster),
  2553. # so one script is as good as another. But avoid the broken or
  2554. # incompatible versions:
  2555. # SysV /etc/install, /usr/sbin/install
  2556. # SunOS /usr/etc/install
  2557. # IRIX /sbin/install
  2558. # AIX /bin/install
  2559. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2560. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2561. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2562. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2563. # OS/2's system install, which has a completely different semantic
  2564. # ./install, which can be erroneously created by make from ./install.sh.
  2565. # Reject install programs that cannot install multiple files.
  2566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2567. printf %s "checking for a BSD-compatible install... " >&6; }
  2568. if test -z "$INSTALL"; then
  2569. if test ${ac_cv_path_install+y}
  2570. then :
  2571. printf %s "(cached) " >&6
  2572. else $as_nop
  2573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2574. for as_dir in $PATH
  2575. do
  2576. IFS=$as_save_IFS
  2577. case $as_dir in #(((
  2578. '') as_dir=./ ;;
  2579. */) ;;
  2580. *) as_dir=$as_dir/ ;;
  2581. esac
  2582. # Account for fact that we put trailing slashes in our PATH walk.
  2583. case $as_dir in #((
  2584. ./ | /[cC]/* | \
  2585. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2586. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2587. /usr/ucb/* ) ;;
  2588. *)
  2589. # OSF1 and SCO ODT 3.0 have their own names for install.
  2590. # Don't use installbsd from OSF since it installs stuff as root
  2591. # by default.
  2592. for ac_prog in ginstall scoinst install; do
  2593. for ac_exec_ext in '' $ac_executable_extensions; do
  2594. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2595. if test $ac_prog = install &&
  2596. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2597. # AIX install. It has an incompatible calling convention.
  2598. :
  2599. elif test $ac_prog = install &&
  2600. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2601. # program-specific install script used by HP pwplus--don't use.
  2602. :
  2603. else
  2604. rm -rf conftest.one conftest.two conftest.dir
  2605. echo one > conftest.one
  2606. echo two > conftest.two
  2607. mkdir conftest.dir
  2608. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2609. test -s conftest.one && test -s conftest.two &&
  2610. test -s conftest.dir/conftest.one &&
  2611. test -s conftest.dir/conftest.two
  2612. then
  2613. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2614. break 3
  2615. fi
  2616. fi
  2617. fi
  2618. done
  2619. done
  2620. ;;
  2621. esac
  2622. done
  2623. IFS=$as_save_IFS
  2624. rm -rf conftest.one conftest.two conftest.dir
  2625. fi
  2626. if test ${ac_cv_path_install+y}; then
  2627. INSTALL=$ac_cv_path_install
  2628. else
  2629. # As a last resort, use the slow shell script. Don't cache a
  2630. # value for INSTALL within a source directory, because that will
  2631. # break other packages using the cache if that directory is
  2632. # removed, or if the value is a relative name.
  2633. INSTALL=$ac_install_sh
  2634. fi
  2635. fi
  2636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2637. printf "%s\n" "$INSTALL" >&6; }
  2638. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2639. # It thinks the first close brace ends the variable substitution.
  2640. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2641. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2642. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2644. printf %s "checking whether build environment is sane... " >&6; }
  2645. # Reject unsafe characters in $srcdir or the absolute working directory
  2646. # name. Accept space and tab only in the latter.
  2647. am_lf='
  2648. '
  2649. case `pwd` in
  2650. *[\\\"\#\$\&\'\`$am_lf]*)
  2651. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2652. esac
  2653. case $srcdir in
  2654. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2655. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2656. esac
  2657. # Do 'set' in a subshell so we don't clobber the current shell's
  2658. # arguments. Must try -L first in case configure is actually a
  2659. # symlink; some systems play weird games with the mod time of symlinks
  2660. # (eg FreeBSD returns the mod time of the symlink's containing
  2661. # directory).
  2662. if (
  2663. am_has_slept=no
  2664. for am_try in 1 2; do
  2665. echo "timestamp, slept: $am_has_slept" > conftest.file
  2666. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2667. if test "$*" = "X"; then
  2668. # -L didn't work.
  2669. set X `ls -t "$srcdir/configure" conftest.file`
  2670. fi
  2671. if test "$*" != "X $srcdir/configure conftest.file" \
  2672. && test "$*" != "X conftest.file $srcdir/configure"; then
  2673. # If neither matched, then we have a broken ls. This can happen
  2674. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2675. # broken ls alias from the environment. This has actually
  2676. # happened. Such a system could not be considered "sane".
  2677. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2678. alias in your environment" "$LINENO" 5
  2679. fi
  2680. if test "$2" = conftest.file || test $am_try -eq 2; then
  2681. break
  2682. fi
  2683. # Just in case.
  2684. sleep 1
  2685. am_has_slept=yes
  2686. done
  2687. test "$2" = conftest.file
  2688. )
  2689. then
  2690. # Ok.
  2691. :
  2692. else
  2693. as_fn_error $? "newly created file is older than distributed files!
  2694. Check your system clock" "$LINENO" 5
  2695. fi
  2696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2697. printf "%s\n" "yes" >&6; }
  2698. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2699. # generated files are strictly newer.
  2700. am_sleep_pid=
  2701. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2702. ( sleep 1 ) &
  2703. am_sleep_pid=$!
  2704. fi
  2705. rm -f conftest.file
  2706. test "$program_prefix" != NONE &&
  2707. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2708. # Use a double $ so make ignores it.
  2709. test "$program_suffix" != NONE &&
  2710. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2711. # Double any \ or $.
  2712. # By default was `s,x,x', remove it if useless.
  2713. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2714. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2715. # Expand $ac_aux_dir to an absolute path.
  2716. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2717. if test x"${MISSING+set}" != xset; then
  2718. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2719. fi
  2720. # Use eval to expand $SHELL
  2721. if eval "$MISSING --is-lightweight"; then
  2722. am_missing_run="$MISSING "
  2723. else
  2724. am_missing_run=
  2725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2726. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2727. fi
  2728. if test x"${install_sh+set}" != xset; then
  2729. case $am_aux_dir in
  2730. *\ * | *\ *)
  2731. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2732. *)
  2733. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2734. esac
  2735. fi
  2736. # Installed binaries are usually stripped using 'strip' when the user
  2737. # run "make install-strip". However 'strip' might not be the right
  2738. # tool to use in cross-compilation environments, therefore Automake
  2739. # will honor the 'STRIP' environment variable to overrule this program.
  2740. if test "$cross_compiling" != no; then
  2741. if test -n "$ac_tool_prefix"; then
  2742. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2743. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2745. printf %s "checking for $ac_word... " >&6; }
  2746. if test ${ac_cv_prog_STRIP+y}
  2747. then :
  2748. printf %s "(cached) " >&6
  2749. else $as_nop
  2750. if test -n "$STRIP"; then
  2751. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2752. else
  2753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2754. for as_dir in $PATH
  2755. do
  2756. IFS=$as_save_IFS
  2757. case $as_dir in #(((
  2758. '') as_dir=./ ;;
  2759. */) ;;
  2760. *) as_dir=$as_dir/ ;;
  2761. esac
  2762. for ac_exec_ext in '' $ac_executable_extensions; do
  2763. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2764. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2765. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2766. break 2
  2767. fi
  2768. done
  2769. done
  2770. IFS=$as_save_IFS
  2771. fi
  2772. fi
  2773. STRIP=$ac_cv_prog_STRIP
  2774. if test -n "$STRIP"; then
  2775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2776. printf "%s\n" "$STRIP" >&6; }
  2777. else
  2778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2779. printf "%s\n" "no" >&6; }
  2780. fi
  2781. fi
  2782. if test -z "$ac_cv_prog_STRIP"; then
  2783. ac_ct_STRIP=$STRIP
  2784. # Extract the first word of "strip", so it can be a program name with args.
  2785. set dummy strip; ac_word=$2
  2786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2787. printf %s "checking for $ac_word... " >&6; }
  2788. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2789. then :
  2790. printf %s "(cached) " >&6
  2791. else $as_nop
  2792. if test -n "$ac_ct_STRIP"; then
  2793. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2794. else
  2795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2796. for as_dir in $PATH
  2797. do
  2798. IFS=$as_save_IFS
  2799. case $as_dir in #(((
  2800. '') as_dir=./ ;;
  2801. */) ;;
  2802. *) as_dir=$as_dir/ ;;
  2803. esac
  2804. for ac_exec_ext in '' $ac_executable_extensions; do
  2805. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2806. ac_cv_prog_ac_ct_STRIP="strip"
  2807. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2808. break 2
  2809. fi
  2810. done
  2811. done
  2812. IFS=$as_save_IFS
  2813. fi
  2814. fi
  2815. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2816. if test -n "$ac_ct_STRIP"; then
  2817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2818. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2819. else
  2820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2821. printf "%s\n" "no" >&6; }
  2822. fi
  2823. if test "x$ac_ct_STRIP" = x; then
  2824. STRIP=":"
  2825. else
  2826. case $cross_compiling:$ac_tool_warned in
  2827. yes:)
  2828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2829. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2830. ac_tool_warned=yes ;;
  2831. esac
  2832. STRIP=$ac_ct_STRIP
  2833. fi
  2834. else
  2835. STRIP="$ac_cv_prog_STRIP"
  2836. fi
  2837. fi
  2838. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2840. printf %s "checking for a race-free mkdir -p... " >&6; }
  2841. if test -z "$MKDIR_P"; then
  2842. if test ${ac_cv_path_mkdir+y}
  2843. then :
  2844. printf %s "(cached) " >&6
  2845. else $as_nop
  2846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2847. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2848. do
  2849. IFS=$as_save_IFS
  2850. case $as_dir in #(((
  2851. '') as_dir=./ ;;
  2852. */) ;;
  2853. *) as_dir=$as_dir/ ;;
  2854. esac
  2855. for ac_prog in mkdir gmkdir; do
  2856. for ac_exec_ext in '' $ac_executable_extensions; do
  2857. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2858. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2859. 'mkdir ('*'coreutils) '* | \
  2860. 'BusyBox '* | \
  2861. 'mkdir (fileutils) '4.1*)
  2862. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2863. break 3;;
  2864. esac
  2865. done
  2866. done
  2867. done
  2868. IFS=$as_save_IFS
  2869. fi
  2870. test -d ./--version && rmdir ./--version
  2871. if test ${ac_cv_path_mkdir+y}; then
  2872. MKDIR_P="$ac_cv_path_mkdir -p"
  2873. else
  2874. # As a last resort, use the slow shell script. Don't cache a
  2875. # value for MKDIR_P within a source directory, because that will
  2876. # break other packages using the cache if that directory is
  2877. # removed, or if the value is a relative name.
  2878. MKDIR_P="$ac_install_sh -d"
  2879. fi
  2880. fi
  2881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2882. printf "%s\n" "$MKDIR_P" >&6; }
  2883. for ac_prog in gawk mawk nawk awk
  2884. do
  2885. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2886. set dummy $ac_prog; ac_word=$2
  2887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2888. printf %s "checking for $ac_word... " >&6; }
  2889. if test ${ac_cv_prog_AWK+y}
  2890. then :
  2891. printf %s "(cached) " >&6
  2892. else $as_nop
  2893. if test -n "$AWK"; then
  2894. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2895. else
  2896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2897. for as_dir in $PATH
  2898. do
  2899. IFS=$as_save_IFS
  2900. case $as_dir in #(((
  2901. '') as_dir=./ ;;
  2902. */) ;;
  2903. *) as_dir=$as_dir/ ;;
  2904. esac
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2907. ac_cv_prog_AWK="$ac_prog"
  2908. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. IFS=$as_save_IFS
  2914. fi
  2915. fi
  2916. AWK=$ac_cv_prog_AWK
  2917. if test -n "$AWK"; then
  2918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2919. printf "%s\n" "$AWK" >&6; }
  2920. else
  2921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2922. printf "%s\n" "no" >&6; }
  2923. fi
  2924. test -n "$AWK" && break
  2925. done
  2926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2927. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2928. set x ${MAKE-make}
  2929. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2930. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  2931. then :
  2932. printf %s "(cached) " >&6
  2933. else $as_nop
  2934. cat >conftest.make <<\_ACEOF
  2935. SHELL = /bin/sh
  2936. all:
  2937. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2938. _ACEOF
  2939. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2940. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2941. *@@@%%%=?*=@@@%%%*)
  2942. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2943. *)
  2944. eval ac_cv_prog_make_${ac_make}_set=no;;
  2945. esac
  2946. rm -f conftest.make
  2947. fi
  2948. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2950. printf "%s\n" "yes" >&6; }
  2951. SET_MAKE=
  2952. else
  2953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2954. printf "%s\n" "no" >&6; }
  2955. SET_MAKE="MAKE=${MAKE-make}"
  2956. fi
  2957. rm -rf .tst 2>/dev/null
  2958. mkdir .tst 2>/dev/null
  2959. if test -d .tst; then
  2960. am__leading_dot=.
  2961. else
  2962. am__leading_dot=_
  2963. fi
  2964. rmdir .tst 2>/dev/null
  2965. # Check whether --enable-silent-rules was given.
  2966. if test ${enable_silent_rules+y}
  2967. then :
  2968. enableval=$enable_silent_rules;
  2969. fi
  2970. case $enable_silent_rules in # (((
  2971. yes) AM_DEFAULT_VERBOSITY=0;;
  2972. no) AM_DEFAULT_VERBOSITY=1;;
  2973. *) AM_DEFAULT_VERBOSITY=1;;
  2974. esac
  2975. am_make=${MAKE-make}
  2976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2977. printf %s "checking whether $am_make supports nested variables... " >&6; }
  2978. if test ${am_cv_make_support_nested_variables+y}
  2979. then :
  2980. printf %s "(cached) " >&6
  2981. else $as_nop
  2982. if printf "%s\n" 'TRUE=$(BAR$(V))
  2983. BAR0=false
  2984. BAR1=true
  2985. V=1
  2986. am__doit:
  2987. @$(TRUE)
  2988. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2989. am_cv_make_support_nested_variables=yes
  2990. else
  2991. am_cv_make_support_nested_variables=no
  2992. fi
  2993. fi
  2994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2995. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  2996. if test $am_cv_make_support_nested_variables = yes; then
  2997. AM_V='$(V)'
  2998. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2999. else
  3000. AM_V=$AM_DEFAULT_VERBOSITY
  3001. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3002. fi
  3003. AM_BACKSLASH='\'
  3004. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3005. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3006. # is not polluted with repeated "-I."
  3007. am__isrc=' -I$(srcdir)'
  3008. # test to see if srcdir already configured
  3009. if test -f $srcdir/config.status; then
  3010. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3011. fi
  3012. fi
  3013. # test whether we have cygpath
  3014. if test -z "$CYGPATH_W"; then
  3015. if (cygpath --version) >/dev/null 2>/dev/null; then
  3016. CYGPATH_W='cygpath -w'
  3017. else
  3018. CYGPATH_W=echo
  3019. fi
  3020. fi
  3021. # Define the identity of the package.
  3022. PACKAGE='pcre2'
  3023. VERSION='10.39'
  3024. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3025. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3026. # Some tools Automake needs.
  3027. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3028. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3029. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3030. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3031. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3032. # For better backward compatibility. To be removed once Automake 1.9.x
  3033. # dies out for good. For more background, see:
  3034. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3035. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3036. mkdir_p='$(MKDIR_P)'
  3037. # We need awk for the "check" target (and possibly the TAP driver). The
  3038. # system "awk" is bad on some platforms.
  3039. # Always define AMTAR for backward compatibility. Yes, it's still used
  3040. # in the wild :-( We should find a proper way to deprecate it ...
  3041. AMTAR='$${TAR-tar}'
  3042. # We'll loop over all known methods to create a tar archive until one works.
  3043. _am_tools='gnutar pax cpio none'
  3044. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3045. # Variables for tags utilities; see am/tags.am
  3046. if test -z "$CTAGS"; then
  3047. CTAGS=ctags
  3048. fi
  3049. if test -z "$ETAGS"; then
  3050. ETAGS=etags
  3051. fi
  3052. if test -z "$CSCOPE"; then
  3053. CSCOPE=cscope
  3054. fi
  3055. # POSIX will say in a future version that running "rm -f" with no argument
  3056. # is OK; and we want to be able to make that assumption in our Makefile
  3057. # recipes. So use an aggressive probe to check that the usage we want is
  3058. # actually supported "in the wild" to an acceptable degree.
  3059. # See automake bug#10828.
  3060. # To make any issue more visible, cause the running configure to be aborted
  3061. # by default if the 'rm' program in use doesn't match our expectations; the
  3062. # user can still override this though.
  3063. if rm -f && rm -fr && rm -rf; then : OK; else
  3064. cat >&2 <<'END'
  3065. Oops!
  3066. Your 'rm' program seems unable to run without file operands specified
  3067. on the command line, even when the '-f' option is present. This is contrary
  3068. to the behaviour of most rm programs out there, and not conforming with
  3069. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3070. Please tell [email protected] about your system, including the value
  3071. of your $PATH and any error possibly output before this message. This
  3072. can help us improve future automake versions.
  3073. END
  3074. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3075. echo 'Configuration will proceed anyway, since you have set the' >&2
  3076. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3077. echo >&2
  3078. else
  3079. cat >&2 <<'END'
  3080. Aborting the configuration process, to ensure you take notice of the issue.
  3081. You can download and install GNU coreutils to get an 'rm' implementation
  3082. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3083. If you want to complete the configuration process using your problematic
  3084. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3085. to "yes", and re-run configure.
  3086. END
  3087. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3088. fi
  3089. fi
  3090. # Check whether --enable-silent-rules was given.
  3091. if test ${enable_silent_rules+y}
  3092. then :
  3093. enableval=$enable_silent_rules;
  3094. fi
  3095. case $enable_silent_rules in # (((
  3096. yes) AM_DEFAULT_VERBOSITY=0;;
  3097. no) AM_DEFAULT_VERBOSITY=1;;
  3098. *) AM_DEFAULT_VERBOSITY=0;;
  3099. esac
  3100. am_make=${MAKE-make}
  3101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3102. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3103. if test ${am_cv_make_support_nested_variables+y}
  3104. then :
  3105. printf %s "(cached) " >&6
  3106. else $as_nop
  3107. if printf "%s\n" 'TRUE=$(BAR$(V))
  3108. BAR0=false
  3109. BAR1=true
  3110. V=1
  3111. am__doit:
  3112. @$(TRUE)
  3113. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3114. am_cv_make_support_nested_variables=yes
  3115. else
  3116. am_cv_make_support_nested_variables=no
  3117. fi
  3118. fi
  3119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3120. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3121. if test $am_cv_make_support_nested_variables = yes; then
  3122. AM_V='$(V)'
  3123. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3124. else
  3125. AM_V=$AM_DEFAULT_VERBOSITY
  3126. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3127. fi
  3128. AM_BACKSLASH='\'
  3129. ac_config_headers="$ac_config_headers src/config.h"
  3130. # This was added at the suggestion of libtoolize (03-Jan-10)
  3131. # The default CFLAGS in Autoconf are "-g -O2" for gcc and just "-g" for any
  3132. # other compiler. There doesn't seem to be a standard way of getting rid of the
  3133. # -g (which I don't think is needed for a production library). This fudge seems
  3134. # to achieve the necessary. First, we remember the externally set values of
  3135. # CFLAGS. Then call the AC_PROG_CC macro to find the compiler - if CFLAGS is
  3136. # not set, it will be set to Autoconf's defaults. Afterwards, if the original
  3137. # values were not set, remove the -g from the Autoconf defaults.
  3138. remember_set_CFLAGS="$CFLAGS"
  3139. ac_ext=c
  3140. ac_cpp='$CPP $CPPFLAGS'
  3141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3144. if test -n "$ac_tool_prefix"; then
  3145. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3146. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3148. printf %s "checking for $ac_word... " >&6; }
  3149. if test ${ac_cv_prog_CC+y}
  3150. then :
  3151. printf %s "(cached) " >&6
  3152. else $as_nop
  3153. if test -n "$CC"; then
  3154. ac_cv_prog_CC="$CC" # Let the user override the test.
  3155. else
  3156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3157. for as_dir in $PATH
  3158. do
  3159. IFS=$as_save_IFS
  3160. case $as_dir in #(((
  3161. '') as_dir=./ ;;
  3162. */) ;;
  3163. *) as_dir=$as_dir/ ;;
  3164. esac
  3165. for ac_exec_ext in '' $ac_executable_extensions; do
  3166. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3167. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3168. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3169. break 2
  3170. fi
  3171. done
  3172. done
  3173. IFS=$as_save_IFS
  3174. fi
  3175. fi
  3176. CC=$ac_cv_prog_CC
  3177. if test -n "$CC"; then
  3178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3179. printf "%s\n" "$CC" >&6; }
  3180. else
  3181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3182. printf "%s\n" "no" >&6; }
  3183. fi
  3184. fi
  3185. if test -z "$ac_cv_prog_CC"; then
  3186. ac_ct_CC=$CC
  3187. # Extract the first word of "gcc", so it can be a program name with args.
  3188. set dummy gcc; ac_word=$2
  3189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3190. printf %s "checking for $ac_word... " >&6; }
  3191. if test ${ac_cv_prog_ac_ct_CC+y}
  3192. then :
  3193. printf %s "(cached) " >&6
  3194. else $as_nop
  3195. if test -n "$ac_ct_CC"; then
  3196. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3197. else
  3198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3199. for as_dir in $PATH
  3200. do
  3201. IFS=$as_save_IFS
  3202. case $as_dir in #(((
  3203. '') as_dir=./ ;;
  3204. */) ;;
  3205. *) as_dir=$as_dir/ ;;
  3206. esac
  3207. for ac_exec_ext in '' $ac_executable_extensions; do
  3208. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3209. ac_cv_prog_ac_ct_CC="gcc"
  3210. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3211. break 2
  3212. fi
  3213. done
  3214. done
  3215. IFS=$as_save_IFS
  3216. fi
  3217. fi
  3218. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3219. if test -n "$ac_ct_CC"; then
  3220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3221. printf "%s\n" "$ac_ct_CC" >&6; }
  3222. else
  3223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3224. printf "%s\n" "no" >&6; }
  3225. fi
  3226. if test "x$ac_ct_CC" = x; then
  3227. CC=""
  3228. else
  3229. case $cross_compiling:$ac_tool_warned in
  3230. yes:)
  3231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3232. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3233. ac_tool_warned=yes ;;
  3234. esac
  3235. CC=$ac_ct_CC
  3236. fi
  3237. else
  3238. CC="$ac_cv_prog_CC"
  3239. fi
  3240. if test -z "$CC"; then
  3241. if test -n "$ac_tool_prefix"; then
  3242. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3243. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3245. printf %s "checking for $ac_word... " >&6; }
  3246. if test ${ac_cv_prog_CC+y}
  3247. then :
  3248. printf %s "(cached) " >&6
  3249. else $as_nop
  3250. if test -n "$CC"; then
  3251. ac_cv_prog_CC="$CC" # Let the user override the test.
  3252. else
  3253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3254. for as_dir in $PATH
  3255. do
  3256. IFS=$as_save_IFS
  3257. case $as_dir in #(((
  3258. '') as_dir=./ ;;
  3259. */) ;;
  3260. *) as_dir=$as_dir/ ;;
  3261. esac
  3262. for ac_exec_ext in '' $ac_executable_extensions; do
  3263. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3264. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3265. printf "%s\n" "$as_me:${as_lineno-$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. CC=$ac_cv_prog_CC
  3274. if test -n "$CC"; then
  3275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3276. printf "%s\n" "$CC" >&6; }
  3277. else
  3278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3279. printf "%s\n" "no" >&6; }
  3280. fi
  3281. fi
  3282. fi
  3283. if test -z "$CC"; then
  3284. # Extract the first word of "cc", so it can be a program name with args.
  3285. set dummy cc; ac_word=$2
  3286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3287. printf %s "checking for $ac_word... " >&6; }
  3288. if test ${ac_cv_prog_CC+y}
  3289. then :
  3290. printf %s "(cached) " >&6
  3291. else $as_nop
  3292. if test -n "$CC"; then
  3293. ac_cv_prog_CC="$CC" # Let the user override the test.
  3294. else
  3295. ac_prog_rejected=no
  3296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3297. for as_dir in $PATH
  3298. do
  3299. IFS=$as_save_IFS
  3300. case $as_dir in #(((
  3301. '') as_dir=./ ;;
  3302. */) ;;
  3303. *) as_dir=$as_dir/ ;;
  3304. esac
  3305. for ac_exec_ext in '' $ac_executable_extensions; do
  3306. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3307. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3308. ac_prog_rejected=yes
  3309. continue
  3310. fi
  3311. ac_cv_prog_CC="cc"
  3312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3313. break 2
  3314. fi
  3315. done
  3316. done
  3317. IFS=$as_save_IFS
  3318. if test $ac_prog_rejected = yes; then
  3319. # We found a bogon in the path, so make sure we never use it.
  3320. set dummy $ac_cv_prog_CC
  3321. shift
  3322. if test $# != 0; then
  3323. # We chose a different compiler from the bogus one.
  3324. # However, it has the same basename, so the bogon will be chosen
  3325. # first if we set CC to just the basename; use the full file name.
  3326. shift
  3327. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3328. fi
  3329. fi
  3330. fi
  3331. fi
  3332. CC=$ac_cv_prog_CC
  3333. if test -n "$CC"; then
  3334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3335. printf "%s\n" "$CC" >&6; }
  3336. else
  3337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3338. printf "%s\n" "no" >&6; }
  3339. fi
  3340. fi
  3341. if test -z "$CC"; then
  3342. if test -n "$ac_tool_prefix"; then
  3343. for ac_prog in cl.exe
  3344. do
  3345. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3346. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3348. printf %s "checking for $ac_word... " >&6; }
  3349. if test ${ac_cv_prog_CC+y}
  3350. then :
  3351. printf %s "(cached) " >&6
  3352. else $as_nop
  3353. if test -n "$CC"; then
  3354. ac_cv_prog_CC="$CC" # Let the user override the test.
  3355. else
  3356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3357. for as_dir in $PATH
  3358. do
  3359. IFS=$as_save_IFS
  3360. case $as_dir in #(((
  3361. '') as_dir=./ ;;
  3362. */) ;;
  3363. *) as_dir=$as_dir/ ;;
  3364. esac
  3365. for ac_exec_ext in '' $ac_executable_extensions; do
  3366. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3367. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3368. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3369. break 2
  3370. fi
  3371. done
  3372. done
  3373. IFS=$as_save_IFS
  3374. fi
  3375. fi
  3376. CC=$ac_cv_prog_CC
  3377. if test -n "$CC"; then
  3378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3379. printf "%s\n" "$CC" >&6; }
  3380. else
  3381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3382. printf "%s\n" "no" >&6; }
  3383. fi
  3384. test -n "$CC" && break
  3385. done
  3386. fi
  3387. if test -z "$CC"; then
  3388. ac_ct_CC=$CC
  3389. for ac_prog in cl.exe
  3390. do
  3391. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3392. set dummy $ac_prog; ac_word=$2
  3393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3394. printf %s "checking for $ac_word... " >&6; }
  3395. if test ${ac_cv_prog_ac_ct_CC+y}
  3396. then :
  3397. printf %s "(cached) " >&6
  3398. else $as_nop
  3399. if test -n "$ac_ct_CC"; then
  3400. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3401. else
  3402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3403. for as_dir in $PATH
  3404. do
  3405. IFS=$as_save_IFS
  3406. case $as_dir in #(((
  3407. '') as_dir=./ ;;
  3408. */) ;;
  3409. *) as_dir=$as_dir/ ;;
  3410. esac
  3411. for ac_exec_ext in '' $ac_executable_extensions; do
  3412. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3413. ac_cv_prog_ac_ct_CC="$ac_prog"
  3414. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3415. break 2
  3416. fi
  3417. done
  3418. done
  3419. IFS=$as_save_IFS
  3420. fi
  3421. fi
  3422. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3423. if test -n "$ac_ct_CC"; then
  3424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3425. printf "%s\n" "$ac_ct_CC" >&6; }
  3426. else
  3427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3428. printf "%s\n" "no" >&6; }
  3429. fi
  3430. test -n "$ac_ct_CC" && break
  3431. done
  3432. if test "x$ac_ct_CC" = x; then
  3433. CC=""
  3434. else
  3435. case $cross_compiling:$ac_tool_warned in
  3436. yes:)
  3437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3438. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3439. ac_tool_warned=yes ;;
  3440. esac
  3441. CC=$ac_ct_CC
  3442. fi
  3443. fi
  3444. fi
  3445. if test -z "$CC"; then
  3446. if test -n "$ac_tool_prefix"; then
  3447. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3448. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3450. printf %s "checking for $ac_word... " >&6; }
  3451. if test ${ac_cv_prog_CC+y}
  3452. then :
  3453. printf %s "(cached) " >&6
  3454. else $as_nop
  3455. if test -n "$CC"; then
  3456. ac_cv_prog_CC="$CC" # Let the user override the test.
  3457. else
  3458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3459. for as_dir in $PATH
  3460. do
  3461. IFS=$as_save_IFS
  3462. case $as_dir in #(((
  3463. '') as_dir=./ ;;
  3464. */) ;;
  3465. *) as_dir=$as_dir/ ;;
  3466. esac
  3467. for ac_exec_ext in '' $ac_executable_extensions; do
  3468. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3469. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3471. break 2
  3472. fi
  3473. done
  3474. done
  3475. IFS=$as_save_IFS
  3476. fi
  3477. fi
  3478. CC=$ac_cv_prog_CC
  3479. if test -n "$CC"; then
  3480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3481. printf "%s\n" "$CC" >&6; }
  3482. else
  3483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3484. printf "%s\n" "no" >&6; }
  3485. fi
  3486. fi
  3487. if test -z "$ac_cv_prog_CC"; then
  3488. ac_ct_CC=$CC
  3489. # Extract the first word of "clang", so it can be a program name with args.
  3490. set dummy clang; ac_word=$2
  3491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3492. printf %s "checking for $ac_word... " >&6; }
  3493. if test ${ac_cv_prog_ac_ct_CC+y}
  3494. then :
  3495. printf %s "(cached) " >&6
  3496. else $as_nop
  3497. if test -n "$ac_ct_CC"; then
  3498. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. case $as_dir in #(((
  3505. '') as_dir=./ ;;
  3506. */) ;;
  3507. *) as_dir=$as_dir/ ;;
  3508. esac
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3511. ac_cv_prog_ac_ct_CC="clang"
  3512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3513. break 2
  3514. fi
  3515. done
  3516. done
  3517. IFS=$as_save_IFS
  3518. fi
  3519. fi
  3520. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3521. if test -n "$ac_ct_CC"; then
  3522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3523. printf "%s\n" "$ac_ct_CC" >&6; }
  3524. else
  3525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3526. printf "%s\n" "no" >&6; }
  3527. fi
  3528. if test "x$ac_ct_CC" = x; then
  3529. CC=""
  3530. else
  3531. case $cross_compiling:$ac_tool_warned in
  3532. yes:)
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3534. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3535. ac_tool_warned=yes ;;
  3536. esac
  3537. CC=$ac_ct_CC
  3538. fi
  3539. else
  3540. CC="$ac_cv_prog_CC"
  3541. fi
  3542. fi
  3543. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3544. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3545. as_fn_error $? "no acceptable C compiler found in \$PATH
  3546. See \`config.log' for more details" "$LINENO" 5; }
  3547. # Provide some information about the compiler.
  3548. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3549. set X $ac_compile
  3550. ac_compiler=$2
  3551. for ac_option in --version -v -V -qversion -version; do
  3552. { { ac_try="$ac_compiler $ac_option >&5"
  3553. case "(($ac_try" in
  3554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3555. *) ac_try_echo=$ac_try;;
  3556. esac
  3557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3558. printf "%s\n" "$ac_try_echo"; } >&5
  3559. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3560. ac_status=$?
  3561. if test -s conftest.err; then
  3562. sed '10a\
  3563. ... rest of stderr output deleted ...
  3564. 10q' conftest.err >conftest.er1
  3565. cat conftest.er1 >&5
  3566. fi
  3567. rm -f conftest.er1 conftest.err
  3568. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3569. test $ac_status = 0; }
  3570. done
  3571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3572. /* end confdefs.h. */
  3573. int
  3574. main (void)
  3575. {
  3576. ;
  3577. return 0;
  3578. }
  3579. _ACEOF
  3580. ac_clean_files_save=$ac_clean_files
  3581. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3582. # Try to create an executable without -o first, disregard a.out.
  3583. # It will help us diagnose broken compilers, and finding out an intuition
  3584. # of exeext.
  3585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3586. printf %s "checking whether the C compiler works... " >&6; }
  3587. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3588. # The possible output files:
  3589. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3590. ac_rmfiles=
  3591. for ac_file in $ac_files
  3592. do
  3593. case $ac_file in
  3594. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3595. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3596. esac
  3597. done
  3598. rm -f $ac_rmfiles
  3599. if { { ac_try="$ac_link_default"
  3600. case "(($ac_try" in
  3601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3602. *) ac_try_echo=$ac_try;;
  3603. esac
  3604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3605. printf "%s\n" "$ac_try_echo"; } >&5
  3606. (eval "$ac_link_default") 2>&5
  3607. ac_status=$?
  3608. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3609. test $ac_status = 0; }
  3610. then :
  3611. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3612. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3613. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3614. # so that the user can short-circuit this test for compilers unknown to
  3615. # Autoconf.
  3616. for ac_file in $ac_files ''
  3617. do
  3618. test -f "$ac_file" || continue
  3619. case $ac_file in
  3620. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3621. ;;
  3622. [ab].out )
  3623. # We found the default executable, but exeext='' is most
  3624. # certainly right.
  3625. break;;
  3626. *.* )
  3627. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3628. then :; else
  3629. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3630. fi
  3631. # We set ac_cv_exeext here because the later test for it is not
  3632. # safe: cross compilers may not add the suffix if given an `-o'
  3633. # argument, so we may need to know it at that point already.
  3634. # Even if this section looks crufty: it has the advantage of
  3635. # actually working.
  3636. break;;
  3637. * )
  3638. break;;
  3639. esac
  3640. done
  3641. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3642. else $as_nop
  3643. ac_file=''
  3644. fi
  3645. if test -z "$ac_file"
  3646. then :
  3647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3648. printf "%s\n" "no" >&6; }
  3649. printf "%s\n" "$as_me: failed program was:" >&5
  3650. sed 's/^/| /' conftest.$ac_ext >&5
  3651. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3652. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3653. as_fn_error 77 "C compiler cannot create executables
  3654. See \`config.log' for more details" "$LINENO" 5; }
  3655. else $as_nop
  3656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3657. printf "%s\n" "yes" >&6; }
  3658. fi
  3659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3660. printf %s "checking for C compiler default output file name... " >&6; }
  3661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3662. printf "%s\n" "$ac_file" >&6; }
  3663. ac_exeext=$ac_cv_exeext
  3664. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3665. ac_clean_files=$ac_clean_files_save
  3666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3667. printf %s "checking for suffix of executables... " >&6; }
  3668. if { { ac_try="$ac_link"
  3669. case "(($ac_try" in
  3670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3671. *) ac_try_echo=$ac_try;;
  3672. esac
  3673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3674. printf "%s\n" "$ac_try_echo"; } >&5
  3675. (eval "$ac_link") 2>&5
  3676. ac_status=$?
  3677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3678. test $ac_status = 0; }
  3679. then :
  3680. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3681. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3682. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3683. # `rm'.
  3684. for ac_file in conftest.exe conftest conftest.*; do
  3685. test -f "$ac_file" || continue
  3686. case $ac_file in
  3687. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3688. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3689. break;;
  3690. * ) break;;
  3691. esac
  3692. done
  3693. else $as_nop
  3694. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3695. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3696. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3697. See \`config.log' for more details" "$LINENO" 5; }
  3698. fi
  3699. rm -f conftest conftest$ac_cv_exeext
  3700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3701. printf "%s\n" "$ac_cv_exeext" >&6; }
  3702. rm -f conftest.$ac_ext
  3703. EXEEXT=$ac_cv_exeext
  3704. ac_exeext=$EXEEXT
  3705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3706. /* end confdefs.h. */
  3707. #include <stdio.h>
  3708. int
  3709. main (void)
  3710. {
  3711. FILE *f = fopen ("conftest.out", "w");
  3712. return ferror (f) || fclose (f) != 0;
  3713. ;
  3714. return 0;
  3715. }
  3716. _ACEOF
  3717. ac_clean_files="$ac_clean_files conftest.out"
  3718. # Check that the compiler produces executables we can run. If not, either
  3719. # the compiler is broken, or we cross compile.
  3720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3721. printf %s "checking whether we are cross compiling... " >&6; }
  3722. if test "$cross_compiling" != yes; then
  3723. { { ac_try="$ac_link"
  3724. case "(($ac_try" in
  3725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3726. *) ac_try_echo=$ac_try;;
  3727. esac
  3728. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3729. printf "%s\n" "$ac_try_echo"; } >&5
  3730. (eval "$ac_link") 2>&5
  3731. ac_status=$?
  3732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3733. test $ac_status = 0; }
  3734. if { ac_try='./conftest$ac_cv_exeext'
  3735. { { case "(($ac_try" in
  3736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3737. *) ac_try_echo=$ac_try;;
  3738. esac
  3739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3740. printf "%s\n" "$ac_try_echo"; } >&5
  3741. (eval "$ac_try") 2>&5
  3742. ac_status=$?
  3743. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3744. test $ac_status = 0; }; }; then
  3745. cross_compiling=no
  3746. else
  3747. if test "$cross_compiling" = maybe; then
  3748. cross_compiling=yes
  3749. else
  3750. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3751. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3752. as_fn_error 77 "cannot run C compiled programs.
  3753. If you meant to cross compile, use \`--host'.
  3754. See \`config.log' for more details" "$LINENO" 5; }
  3755. fi
  3756. fi
  3757. fi
  3758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3759. printf "%s\n" "$cross_compiling" >&6; }
  3760. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3761. ac_clean_files=$ac_clean_files_save
  3762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3763. printf %s "checking for suffix of object files... " >&6; }
  3764. if test ${ac_cv_objext+y}
  3765. then :
  3766. printf %s "(cached) " >&6
  3767. else $as_nop
  3768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3769. /* end confdefs.h. */
  3770. int
  3771. main (void)
  3772. {
  3773. ;
  3774. return 0;
  3775. }
  3776. _ACEOF
  3777. rm -f conftest.o conftest.obj
  3778. if { { ac_try="$ac_compile"
  3779. case "(($ac_try" in
  3780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3781. *) ac_try_echo=$ac_try;;
  3782. esac
  3783. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3784. printf "%s\n" "$ac_try_echo"; } >&5
  3785. (eval "$ac_compile") 2>&5
  3786. ac_status=$?
  3787. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3788. test $ac_status = 0; }
  3789. then :
  3790. for ac_file in conftest.o conftest.obj conftest.*; do
  3791. test -f "$ac_file" || continue;
  3792. case $ac_file in
  3793. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3794. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3795. break;;
  3796. esac
  3797. done
  3798. else $as_nop
  3799. printf "%s\n" "$as_me: failed program was:" >&5
  3800. sed 's/^/| /' conftest.$ac_ext >&5
  3801. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3802. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3803. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3804. See \`config.log' for more details" "$LINENO" 5; }
  3805. fi
  3806. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3807. fi
  3808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3809. printf "%s\n" "$ac_cv_objext" >&6; }
  3810. OBJEXT=$ac_cv_objext
  3811. ac_objext=$OBJEXT
  3812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3813. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3814. if test ${ac_cv_c_compiler_gnu+y}
  3815. then :
  3816. printf %s "(cached) " >&6
  3817. else $as_nop
  3818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3819. /* end confdefs.h. */
  3820. int
  3821. main (void)
  3822. {
  3823. #ifndef __GNUC__
  3824. choke me
  3825. #endif
  3826. ;
  3827. return 0;
  3828. }
  3829. _ACEOF
  3830. if ac_fn_c_try_compile "$LINENO"
  3831. then :
  3832. ac_compiler_gnu=yes
  3833. else $as_nop
  3834. ac_compiler_gnu=no
  3835. fi
  3836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3837. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3838. fi
  3839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3840. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3842. if test $ac_compiler_gnu = yes; then
  3843. GCC=yes
  3844. else
  3845. GCC=
  3846. fi
  3847. ac_test_CFLAGS=${CFLAGS+y}
  3848. ac_save_CFLAGS=$CFLAGS
  3849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3850. printf %s "checking whether $CC accepts -g... " >&6; }
  3851. if test ${ac_cv_prog_cc_g+y}
  3852. then :
  3853. printf %s "(cached) " >&6
  3854. else $as_nop
  3855. ac_save_c_werror_flag=$ac_c_werror_flag
  3856. ac_c_werror_flag=yes
  3857. ac_cv_prog_cc_g=no
  3858. CFLAGS="-g"
  3859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3860. /* end confdefs.h. */
  3861. int
  3862. main (void)
  3863. {
  3864. ;
  3865. return 0;
  3866. }
  3867. _ACEOF
  3868. if ac_fn_c_try_compile "$LINENO"
  3869. then :
  3870. ac_cv_prog_cc_g=yes
  3871. else $as_nop
  3872. CFLAGS=""
  3873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3874. /* end confdefs.h. */
  3875. int
  3876. main (void)
  3877. {
  3878. ;
  3879. return 0;
  3880. }
  3881. _ACEOF
  3882. if ac_fn_c_try_compile "$LINENO"
  3883. then :
  3884. else $as_nop
  3885. ac_c_werror_flag=$ac_save_c_werror_flag
  3886. CFLAGS="-g"
  3887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3888. /* end confdefs.h. */
  3889. int
  3890. main (void)
  3891. {
  3892. ;
  3893. return 0;
  3894. }
  3895. _ACEOF
  3896. if ac_fn_c_try_compile "$LINENO"
  3897. then :
  3898. ac_cv_prog_cc_g=yes
  3899. fi
  3900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3901. fi
  3902. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3903. fi
  3904. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3905. ac_c_werror_flag=$ac_save_c_werror_flag
  3906. fi
  3907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3908. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3909. if test $ac_test_CFLAGS; then
  3910. CFLAGS=$ac_save_CFLAGS
  3911. elif test $ac_cv_prog_cc_g = yes; then
  3912. if test "$GCC" = yes; then
  3913. CFLAGS="-g -O2"
  3914. else
  3915. CFLAGS="-g"
  3916. fi
  3917. else
  3918. if test "$GCC" = yes; then
  3919. CFLAGS="-O2"
  3920. else
  3921. CFLAGS=
  3922. fi
  3923. fi
  3924. ac_prog_cc_stdc=no
  3925. if test x$ac_prog_cc_stdc = xno
  3926. then :
  3927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3928. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3929. if test ${ac_cv_prog_cc_c11+y}
  3930. then :
  3931. printf %s "(cached) " >&6
  3932. else $as_nop
  3933. ac_cv_prog_cc_c11=no
  3934. ac_save_CC=$CC
  3935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3936. /* end confdefs.h. */
  3937. $ac_c_conftest_c11_program
  3938. _ACEOF
  3939. for ac_arg in '' -std=gnu11
  3940. do
  3941. CC="$ac_save_CC $ac_arg"
  3942. if ac_fn_c_try_compile "$LINENO"
  3943. then :
  3944. ac_cv_prog_cc_c11=$ac_arg
  3945. fi
  3946. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3947. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3948. done
  3949. rm -f conftest.$ac_ext
  3950. CC=$ac_save_CC
  3951. fi
  3952. if test "x$ac_cv_prog_cc_c11" = xno
  3953. then :
  3954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3955. printf "%s\n" "unsupported" >&6; }
  3956. else $as_nop
  3957. if test "x$ac_cv_prog_cc_c11" = x
  3958. then :
  3959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3960. printf "%s\n" "none needed" >&6; }
  3961. else $as_nop
  3962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3963. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3964. CC="$CC $ac_cv_prog_cc_c11"
  3965. fi
  3966. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3967. ac_prog_cc_stdc=c11
  3968. fi
  3969. fi
  3970. if test x$ac_prog_cc_stdc = xno
  3971. then :
  3972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3973. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3974. if test ${ac_cv_prog_cc_c99+y}
  3975. then :
  3976. printf %s "(cached) " >&6
  3977. else $as_nop
  3978. ac_cv_prog_cc_c99=no
  3979. ac_save_CC=$CC
  3980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3981. /* end confdefs.h. */
  3982. $ac_c_conftest_c99_program
  3983. _ACEOF
  3984. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3985. do
  3986. CC="$ac_save_CC $ac_arg"
  3987. if ac_fn_c_try_compile "$LINENO"
  3988. then :
  3989. ac_cv_prog_cc_c99=$ac_arg
  3990. fi
  3991. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3992. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3993. done
  3994. rm -f conftest.$ac_ext
  3995. CC=$ac_save_CC
  3996. fi
  3997. if test "x$ac_cv_prog_cc_c99" = xno
  3998. then :
  3999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4000. printf "%s\n" "unsupported" >&6; }
  4001. else $as_nop
  4002. if test "x$ac_cv_prog_cc_c99" = x
  4003. then :
  4004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4005. printf "%s\n" "none needed" >&6; }
  4006. else $as_nop
  4007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4008. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4009. CC="$CC $ac_cv_prog_cc_c99"
  4010. fi
  4011. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4012. ac_prog_cc_stdc=c99
  4013. fi
  4014. fi
  4015. if test x$ac_prog_cc_stdc = xno
  4016. then :
  4017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4018. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4019. if test ${ac_cv_prog_cc_c89+y}
  4020. then :
  4021. printf %s "(cached) " >&6
  4022. else $as_nop
  4023. ac_cv_prog_cc_c89=no
  4024. ac_save_CC=$CC
  4025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4026. /* end confdefs.h. */
  4027. $ac_c_conftest_c89_program
  4028. _ACEOF
  4029. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4030. do
  4031. CC="$ac_save_CC $ac_arg"
  4032. if ac_fn_c_try_compile "$LINENO"
  4033. then :
  4034. ac_cv_prog_cc_c89=$ac_arg
  4035. fi
  4036. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4037. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4038. done
  4039. rm -f conftest.$ac_ext
  4040. CC=$ac_save_CC
  4041. fi
  4042. if test "x$ac_cv_prog_cc_c89" = xno
  4043. then :
  4044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4045. printf "%s\n" "unsupported" >&6; }
  4046. else $as_nop
  4047. if test "x$ac_cv_prog_cc_c89" = x
  4048. then :
  4049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4050. printf "%s\n" "none needed" >&6; }
  4051. else $as_nop
  4052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4053. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4054. CC="$CC $ac_cv_prog_cc_c89"
  4055. fi
  4056. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4057. ac_prog_cc_stdc=c89
  4058. fi
  4059. fi
  4060. ac_ext=c
  4061. ac_cpp='$CPP $CPPFLAGS'
  4062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4065. ac_ext=c
  4066. ac_cpp='$CPP $CPPFLAGS'
  4067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4071. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4072. if test ${am_cv_prog_cc_c_o+y}
  4073. then :
  4074. printf %s "(cached) " >&6
  4075. else $as_nop
  4076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4077. /* end confdefs.h. */
  4078. int
  4079. main (void)
  4080. {
  4081. ;
  4082. return 0;
  4083. }
  4084. _ACEOF
  4085. # Make sure it works both with $CC and with simple cc.
  4086. # Following AC_PROG_CC_C_O, we do the test twice because some
  4087. # compilers refuse to overwrite an existing .o file with -o,
  4088. # though they will create one.
  4089. am_cv_prog_cc_c_o=yes
  4090. for am_i in 1 2; do
  4091. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4092. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4093. ac_status=$?
  4094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4095. (exit $ac_status); } \
  4096. && test -f conftest2.$ac_objext; then
  4097. : OK
  4098. else
  4099. am_cv_prog_cc_c_o=no
  4100. break
  4101. fi
  4102. done
  4103. rm -f core conftest*
  4104. unset am_i
  4105. fi
  4106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4107. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4108. if test "$am_cv_prog_cc_c_o" != yes; then
  4109. # Losing compiler, so override with the script.
  4110. # FIXME: It is wrong to rewrite CC.
  4111. # But if we don't then we get into trouble of one sort or another.
  4112. # A longer-term fix would be to have automake use am__CC in this case,
  4113. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4114. CC="$am_aux_dir/compile $CC"
  4115. fi
  4116. ac_ext=c
  4117. ac_cpp='$CPP $CPPFLAGS'
  4118. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4119. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4120. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4121. DEPDIR="${am__leading_dot}deps"
  4122. ac_config_commands="$ac_config_commands depfiles"
  4123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4124. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4125. cat > confinc.mk << 'END'
  4126. am__doit:
  4127. @echo this is the am__doit target >confinc.out
  4128. .PHONY: am__doit
  4129. END
  4130. am__include="#"
  4131. am__quote=
  4132. # BSD make does it like this.
  4133. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4134. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4135. echo 'include confinc.mk # ignored' > confmf.GNU
  4136. _am_result=no
  4137. for s in GNU BSD; do
  4138. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4139. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4140. ac_status=$?
  4141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4142. (exit $ac_status); }
  4143. case $?:`cat confinc.out 2>/dev/null` in #(
  4144. '0:this is the am__doit target') :
  4145. case $s in #(
  4146. BSD) :
  4147. am__include='.include' am__quote='"' ;; #(
  4148. *) :
  4149. am__include='include' am__quote='' ;;
  4150. esac ;; #(
  4151. *) :
  4152. ;;
  4153. esac
  4154. if test "$am__include" != "#"; then
  4155. _am_result="yes ($s style)"
  4156. break
  4157. fi
  4158. done
  4159. rm -f confinc.* confmf.*
  4160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4161. printf "%s\n" "${_am_result}" >&6; }
  4162. # Check whether --enable-dependency-tracking was given.
  4163. if test ${enable_dependency_tracking+y}
  4164. then :
  4165. enableval=$enable_dependency_tracking;
  4166. fi
  4167. if test "x$enable_dependency_tracking" != xno; then
  4168. am_depcomp="$ac_aux_dir/depcomp"
  4169. AMDEPBACKSLASH='\'
  4170. am__nodep='_no'
  4171. fi
  4172. if test "x$enable_dependency_tracking" != xno; then
  4173. AMDEP_TRUE=
  4174. AMDEP_FALSE='#'
  4175. else
  4176. AMDEP_TRUE='#'
  4177. AMDEP_FALSE=
  4178. fi
  4179. depcc="$CC" am_compiler_list=
  4180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4181. printf %s "checking dependency style of $depcc... " >&6; }
  4182. if test ${am_cv_CC_dependencies_compiler_type+y}
  4183. then :
  4184. printf %s "(cached) " >&6
  4185. else $as_nop
  4186. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4187. # We make a subdir and do the tests there. Otherwise we can end up
  4188. # making bogus files that we don't know about and never remove. For
  4189. # instance it was reported that on HP-UX the gcc test will end up
  4190. # making a dummy file named 'D' -- because '-MD' means "put the output
  4191. # in D".
  4192. rm -rf conftest.dir
  4193. mkdir conftest.dir
  4194. # Copy depcomp to subdir because otherwise we won't find it if we're
  4195. # using a relative directory.
  4196. cp "$am_depcomp" conftest.dir
  4197. cd conftest.dir
  4198. # We will build objects and dependencies in a subdirectory because
  4199. # it helps to detect inapplicable dependency modes. For instance
  4200. # both Tru64's cc and ICC support -MD to output dependencies as a
  4201. # side effect of compilation, but ICC will put the dependencies in
  4202. # the current directory while Tru64 will put them in the object
  4203. # directory.
  4204. mkdir sub
  4205. am_cv_CC_dependencies_compiler_type=none
  4206. if test "$am_compiler_list" = ""; then
  4207. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4208. fi
  4209. am__universal=false
  4210. case " $depcc " in #(
  4211. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4212. esac
  4213. for depmode in $am_compiler_list; do
  4214. # Setup a source with many dependencies, because some compilers
  4215. # like to wrap large dependency lists on column 80 (with \), and
  4216. # we should not choose a depcomp mode which is confused by this.
  4217. #
  4218. # We need to recreate these files for each test, as the compiler may
  4219. # overwrite some of them when testing with obscure command lines.
  4220. # This happens at least with the AIX C compiler.
  4221. : > sub/conftest.c
  4222. for i in 1 2 3 4 5 6; do
  4223. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4224. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4225. # Solaris 10 /bin/sh.
  4226. echo '/* dummy */' > sub/conftst$i.h
  4227. done
  4228. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4229. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4230. # mode. It turns out that the SunPro C++ compiler does not properly
  4231. # handle '-M -o', and we need to detect this. Also, some Intel
  4232. # versions had trouble with output in subdirs.
  4233. am__obj=sub/conftest.${OBJEXT-o}
  4234. am__minus_obj="-o $am__obj"
  4235. case $depmode in
  4236. gcc)
  4237. # This depmode causes a compiler race in universal mode.
  4238. test "$am__universal" = false || continue
  4239. ;;
  4240. nosideeffect)
  4241. # After this tag, mechanisms are not by side-effect, so they'll
  4242. # only be used when explicitly requested.
  4243. if test "x$enable_dependency_tracking" = xyes; then
  4244. continue
  4245. else
  4246. break
  4247. fi
  4248. ;;
  4249. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4250. # This compiler won't grok '-c -o', but also, the minuso test has
  4251. # not run yet. These depmodes are late enough in the game, and
  4252. # so weak that their functioning should not be impacted.
  4253. am__obj=conftest.${OBJEXT-o}
  4254. am__minus_obj=
  4255. ;;
  4256. none) break ;;
  4257. esac
  4258. if depmode=$depmode \
  4259. source=sub/conftest.c object=$am__obj \
  4260. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4261. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4262. >/dev/null 2>conftest.err &&
  4263. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4264. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4265. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4266. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4267. # icc doesn't choke on unknown options, it will just issue warnings
  4268. # or remarks (even with -Werror). So we grep stderr for any message
  4269. # that says an option was ignored or not supported.
  4270. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4271. # icc: Command line warning: ignoring option '-M'; no argument required
  4272. # The diagnosis changed in icc 8.0:
  4273. # icc: Command line remark: option '-MP' not supported
  4274. if (grep 'ignoring option' conftest.err ||
  4275. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4276. am_cv_CC_dependencies_compiler_type=$depmode
  4277. break
  4278. fi
  4279. fi
  4280. done
  4281. cd ..
  4282. rm -rf conftest.dir
  4283. else
  4284. am_cv_CC_dependencies_compiler_type=none
  4285. fi
  4286. fi
  4287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4288. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4289. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4290. if
  4291. test "x$enable_dependency_tracking" != xno \
  4292. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4293. am__fastdepCC_TRUE=
  4294. am__fastdepCC_FALSE='#'
  4295. else
  4296. am__fastdepCC_TRUE='#'
  4297. am__fastdepCC_FALSE=
  4298. fi
  4299. ac_header= ac_cache=
  4300. for ac_item in $ac_header_c_list
  4301. do
  4302. if test $ac_cache; then
  4303. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4304. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4305. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4306. fi
  4307. ac_header= ac_cache=
  4308. elif test $ac_header; then
  4309. ac_cache=$ac_item
  4310. else
  4311. ac_header=$ac_item
  4312. fi
  4313. done
  4314. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4315. then :
  4316. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4317. fi
  4318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4319. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4320. if test ${ac_cv_safe_to_define___extensions__+y}
  4321. then :
  4322. printf %s "(cached) " >&6
  4323. else $as_nop
  4324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4325. /* end confdefs.h. */
  4326. # define __EXTENSIONS__ 1
  4327. $ac_includes_default
  4328. int
  4329. main (void)
  4330. {
  4331. ;
  4332. return 0;
  4333. }
  4334. _ACEOF
  4335. if ac_fn_c_try_compile "$LINENO"
  4336. then :
  4337. ac_cv_safe_to_define___extensions__=yes
  4338. else $as_nop
  4339. ac_cv_safe_to_define___extensions__=no
  4340. fi
  4341. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4342. fi
  4343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4344. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  4345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  4346. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  4347. if test ${ac_cv_should_define__xopen_source+y}
  4348. then :
  4349. printf %s "(cached) " >&6
  4350. else $as_nop
  4351. ac_cv_should_define__xopen_source=no
  4352. if test $ac_cv_header_wchar_h = yes
  4353. then :
  4354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4355. /* end confdefs.h. */
  4356. #include <wchar.h>
  4357. mbstate_t x;
  4358. int
  4359. main (void)
  4360. {
  4361. ;
  4362. return 0;
  4363. }
  4364. _ACEOF
  4365. if ac_fn_c_try_compile "$LINENO"
  4366. then :
  4367. else $as_nop
  4368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4369. /* end confdefs.h. */
  4370. #define _XOPEN_SOURCE 500
  4371. #include <wchar.h>
  4372. mbstate_t x;
  4373. int
  4374. main (void)
  4375. {
  4376. ;
  4377. return 0;
  4378. }
  4379. _ACEOF
  4380. if ac_fn_c_try_compile "$LINENO"
  4381. then :
  4382. ac_cv_should_define__xopen_source=yes
  4383. fi
  4384. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4385. fi
  4386. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4387. fi
  4388. fi
  4389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  4390. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  4391. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  4392. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  4393. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  4394. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  4395. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  4396. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  4397. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4398. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  4399. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  4400. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  4401. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  4402. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  4403. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  4404. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  4405. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  4406. if test $ac_cv_header_minix_config_h = yes
  4407. then :
  4408. MINIX=yes
  4409. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  4410. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  4411. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4412. else $as_nop
  4413. MINIX=
  4414. fi
  4415. if test $ac_cv_safe_to_define___extensions__ = yes
  4416. then :
  4417. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  4418. fi
  4419. if test $ac_cv_should_define__xopen_source = yes
  4420. then :
  4421. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  4422. fi
  4423. if test "x$remember_set_CFLAGS" = "x"
  4424. then
  4425. if test "$CFLAGS" = "-g -O2"
  4426. then
  4427. CFLAGS="-O2"
  4428. elif test "$CFLAGS" = "-g"
  4429. then
  4430. CFLAGS=""
  4431. fi
  4432. fi
  4433. # This is a new thing required to stop a warning from automake 1.12
  4434. if test -n "$ac_tool_prefix"; then
  4435. for ac_prog in ar lib "link -lib"
  4436. do
  4437. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4438. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4440. printf %s "checking for $ac_word... " >&6; }
  4441. if test ${ac_cv_prog_AR+y}
  4442. then :
  4443. printf %s "(cached) " >&6
  4444. else $as_nop
  4445. if test -n "$AR"; then
  4446. ac_cv_prog_AR="$AR" # Let the user override the test.
  4447. else
  4448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4449. for as_dir in $PATH
  4450. do
  4451. IFS=$as_save_IFS
  4452. case $as_dir in #(((
  4453. '') as_dir=./ ;;
  4454. */) ;;
  4455. *) as_dir=$as_dir/ ;;
  4456. esac
  4457. for ac_exec_ext in '' $ac_executable_extensions; do
  4458. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4459. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4461. break 2
  4462. fi
  4463. done
  4464. done
  4465. IFS=$as_save_IFS
  4466. fi
  4467. fi
  4468. AR=$ac_cv_prog_AR
  4469. if test -n "$AR"; then
  4470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4471. printf "%s\n" "$AR" >&6; }
  4472. else
  4473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4474. printf "%s\n" "no" >&6; }
  4475. fi
  4476. test -n "$AR" && break
  4477. done
  4478. fi
  4479. if test -z "$AR"; then
  4480. ac_ct_AR=$AR
  4481. for ac_prog in ar lib "link -lib"
  4482. do
  4483. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4484. set dummy $ac_prog; ac_word=$2
  4485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4486. printf %s "checking for $ac_word... " >&6; }
  4487. if test ${ac_cv_prog_ac_ct_AR+y}
  4488. then :
  4489. printf %s "(cached) " >&6
  4490. else $as_nop
  4491. if test -n "$ac_ct_AR"; then
  4492. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4493. else
  4494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4495. for as_dir in $PATH
  4496. do
  4497. IFS=$as_save_IFS
  4498. case $as_dir in #(((
  4499. '') as_dir=./ ;;
  4500. */) ;;
  4501. *) as_dir=$as_dir/ ;;
  4502. esac
  4503. for ac_exec_ext in '' $ac_executable_extensions; do
  4504. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4505. ac_cv_prog_ac_ct_AR="$ac_prog"
  4506. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4507. break 2
  4508. fi
  4509. done
  4510. done
  4511. IFS=$as_save_IFS
  4512. fi
  4513. fi
  4514. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4515. if test -n "$ac_ct_AR"; then
  4516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4517. printf "%s\n" "$ac_ct_AR" >&6; }
  4518. else
  4519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4520. printf "%s\n" "no" >&6; }
  4521. fi
  4522. test -n "$ac_ct_AR" && break
  4523. done
  4524. if test "x$ac_ct_AR" = x; then
  4525. AR="false"
  4526. else
  4527. case $cross_compiling:$ac_tool_warned in
  4528. yes:)
  4529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4530. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4531. ac_tool_warned=yes ;;
  4532. esac
  4533. AR=$ac_ct_AR
  4534. fi
  4535. fi
  4536. : ${AR=ar}
  4537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4538. printf %s "checking the archiver ($AR) interface... " >&6; }
  4539. if test ${am_cv_ar_interface+y}
  4540. then :
  4541. printf %s "(cached) " >&6
  4542. else $as_nop
  4543. ac_ext=c
  4544. ac_cpp='$CPP $CPPFLAGS'
  4545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4548. am_cv_ar_interface=ar
  4549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4550. /* end confdefs.h. */
  4551. int some_variable = 0;
  4552. _ACEOF
  4553. if ac_fn_c_try_compile "$LINENO"
  4554. then :
  4555. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4556. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4557. (eval $am_ar_try) 2>&5
  4558. ac_status=$?
  4559. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4560. test $ac_status = 0; }
  4561. if test "$ac_status" -eq 0; then
  4562. am_cv_ar_interface=ar
  4563. else
  4564. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4565. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4566. (eval $am_ar_try) 2>&5
  4567. ac_status=$?
  4568. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4569. test $ac_status = 0; }
  4570. if test "$ac_status" -eq 0; then
  4571. am_cv_ar_interface=lib
  4572. else
  4573. am_cv_ar_interface=unknown
  4574. fi
  4575. fi
  4576. rm -f conftest.lib libconftest.a
  4577. fi
  4578. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4579. ac_ext=c
  4580. ac_cpp='$CPP $CPPFLAGS'
  4581. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4582. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4583. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4584. fi
  4585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4586. printf "%s\n" "$am_cv_ar_interface" >&6; }
  4587. case $am_cv_ar_interface in
  4588. ar)
  4589. ;;
  4590. lib)
  4591. # Microsoft lib, so override with the ar-lib wrapper script.
  4592. # FIXME: It is wrong to rewrite AR.
  4593. # But if we don't then we get into trouble of one sort or another.
  4594. # A longer-term fix would be to have automake use am__AR in this case,
  4595. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4596. # similar.
  4597. AR="$am_aux_dir/ar-lib $AR"
  4598. ;;
  4599. unknown)
  4600. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4601. ;;
  4602. esac
  4603. # Check for a 64-bit integer type
  4604. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  4605. case $ac_cv_c_int64_t in #(
  4606. no|yes) ;; #(
  4607. *)
  4608. printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
  4609. ;;
  4610. esac
  4611. case `pwd` in
  4612. *\ * | *\ *)
  4613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4614. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4615. esac
  4616. macro_version='2.4.6.42-b88ce-dirty'
  4617. macro_revision='2.4.6.42'
  4618. ltmain=$ac_aux_dir/ltmain.sh
  4619. # Make sure we can run config.sub.
  4620. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  4621. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  4622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4623. printf %s "checking build system type... " >&6; }
  4624. if test ${ac_cv_build+y}
  4625. then :
  4626. printf %s "(cached) " >&6
  4627. else $as_nop
  4628. ac_build_alias=$build_alias
  4629. test "x$ac_build_alias" = x &&
  4630. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  4631. test "x$ac_build_alias" = x &&
  4632. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4633. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  4634. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  4635. fi
  4636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4637. printf "%s\n" "$ac_cv_build" >&6; }
  4638. case $ac_cv_build in
  4639. *-*-*) ;;
  4640. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4641. esac
  4642. build=$ac_cv_build
  4643. ac_save_IFS=$IFS; IFS='-'
  4644. set x $ac_cv_build
  4645. shift
  4646. build_cpu=$1
  4647. build_vendor=$2
  4648. shift; shift
  4649. # Remember, the first character of IFS is used to create $*,
  4650. # except with old shells:
  4651. build_os=$*
  4652. IFS=$ac_save_IFS
  4653. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4655. printf %s "checking host system type... " >&6; }
  4656. if test ${ac_cv_host+y}
  4657. then :
  4658. printf %s "(cached) " >&6
  4659. else $as_nop
  4660. if test "x$host_alias" = x; then
  4661. ac_cv_host=$ac_cv_build
  4662. else
  4663. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  4664. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  4665. fi
  4666. fi
  4667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4668. printf "%s\n" "$ac_cv_host" >&6; }
  4669. case $ac_cv_host in
  4670. *-*-*) ;;
  4671. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4672. esac
  4673. host=$ac_cv_host
  4674. ac_save_IFS=$IFS; IFS='-'
  4675. set x $ac_cv_host
  4676. shift
  4677. host_cpu=$1
  4678. host_vendor=$2
  4679. shift; shift
  4680. # Remember, the first character of IFS is used to create $*,
  4681. # except with old shells:
  4682. host_os=$*
  4683. IFS=$ac_save_IFS
  4684. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4685. # Backslashify metacharacters that are still active within
  4686. # double-quoted strings.
  4687. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4688. # Same as above, but do not quote variable references.
  4689. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4690. # Sed substitution to delay expansion of an escaped shell variable in a
  4691. # double_quote_subst'ed string.
  4692. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4693. # Sed substitution to delay expansion of an escaped single quote.
  4694. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4695. # Sed substitution to avoid accidental globbing in evaled expressions
  4696. no_glob_subst='s/\*/\\\*/g'
  4697. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4698. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4699. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4701. printf %s "checking how to print strings... " >&6; }
  4702. # Test print first, because it will be a builtin if present.
  4703. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4704. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4705. ECHO='print -r --'
  4706. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4707. ECHO='printf %s\n'
  4708. else
  4709. # Use this function as a fallback that always works.
  4710. func_fallback_echo ()
  4711. {
  4712. eval 'cat <<_LTECHO_EOF
  4713. $1
  4714. _LTECHO_EOF'
  4715. }
  4716. ECHO='func_fallback_echo'
  4717. fi
  4718. # func_echo_all arg...
  4719. # Invoke $ECHO with all args, space-separated.
  4720. func_echo_all ()
  4721. {
  4722. $ECHO ""
  4723. }
  4724. case $ECHO in
  4725. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4726. printf "%s\n" "printf" >&6; } ;;
  4727. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4728. printf "%s\n" "print -r" >&6; } ;;
  4729. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4730. printf "%s\n" "cat" >&6; } ;;
  4731. esac
  4732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4733. printf %s "checking for a sed that does not truncate output... " >&6; }
  4734. if test ${ac_cv_path_SED+y}
  4735. then :
  4736. printf %s "(cached) " >&6
  4737. else $as_nop
  4738. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4739. for ac_i in 1 2 3 4 5 6 7; do
  4740. ac_script="$ac_script$as_nl$ac_script"
  4741. done
  4742. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4743. { ac_script=; unset ac_script;}
  4744. if test -z "$SED"; then
  4745. ac_path_SED_found=false
  4746. # Loop through the user's path and test for each of PROGNAME-LIST
  4747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4748. for as_dir in $PATH
  4749. do
  4750. IFS=$as_save_IFS
  4751. case $as_dir in #(((
  4752. '') as_dir=./ ;;
  4753. */) ;;
  4754. *) as_dir=$as_dir/ ;;
  4755. esac
  4756. for ac_prog in sed gsed
  4757. do
  4758. for ac_exec_ext in '' $ac_executable_extensions; do
  4759. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4760. as_fn_executable_p "$ac_path_SED" || continue
  4761. # Check for GNU ac_path_SED and select it if it is found.
  4762. # Check for GNU $ac_path_SED
  4763. case `"$ac_path_SED" --version 2>&1` in
  4764. *GNU*)
  4765. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4766. *)
  4767. ac_count=0
  4768. printf %s 0123456789 >"conftest.in"
  4769. while :
  4770. do
  4771. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4772. mv "conftest.tmp" "conftest.in"
  4773. cp "conftest.in" "conftest.nl"
  4774. printf "%s\n" '' >> "conftest.nl"
  4775. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4776. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4777. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4778. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4779. # Best one so far, save it but keep looking for a better one
  4780. ac_cv_path_SED="$ac_path_SED"
  4781. ac_path_SED_max=$ac_count
  4782. fi
  4783. # 10*(2^10) chars as input seems more than enough
  4784. test $ac_count -gt 10 && break
  4785. done
  4786. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4787. esac
  4788. $ac_path_SED_found && break 3
  4789. done
  4790. done
  4791. done
  4792. IFS=$as_save_IFS
  4793. if test -z "$ac_cv_path_SED"; then
  4794. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4795. fi
  4796. else
  4797. ac_cv_path_SED=$SED
  4798. fi
  4799. fi
  4800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4801. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4802. SED="$ac_cv_path_SED"
  4803. rm -f conftest.sed
  4804. test -z "$SED" && SED=sed
  4805. Xsed="$SED -e 1s/^X//"
  4806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4807. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4808. if test ${ac_cv_path_GREP+y}
  4809. then :
  4810. printf %s "(cached) " >&6
  4811. else $as_nop
  4812. if test -z "$GREP"; then
  4813. ac_path_GREP_found=false
  4814. # Loop through the user's path and test for each of PROGNAME-LIST
  4815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4816. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4817. do
  4818. IFS=$as_save_IFS
  4819. case $as_dir in #(((
  4820. '') as_dir=./ ;;
  4821. */) ;;
  4822. *) as_dir=$as_dir/ ;;
  4823. esac
  4824. for ac_prog in grep ggrep
  4825. do
  4826. for ac_exec_ext in '' $ac_executable_extensions; do
  4827. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4828. as_fn_executable_p "$ac_path_GREP" || continue
  4829. # Check for GNU ac_path_GREP and select it if it is found.
  4830. # Check for GNU $ac_path_GREP
  4831. case `"$ac_path_GREP" --version 2>&1` in
  4832. *GNU*)
  4833. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4834. *)
  4835. ac_count=0
  4836. printf %s 0123456789 >"conftest.in"
  4837. while :
  4838. do
  4839. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4840. mv "conftest.tmp" "conftest.in"
  4841. cp "conftest.in" "conftest.nl"
  4842. printf "%s\n" 'GREP' >> "conftest.nl"
  4843. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4844. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4845. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4846. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4847. # Best one so far, save it but keep looking for a better one
  4848. ac_cv_path_GREP="$ac_path_GREP"
  4849. ac_path_GREP_max=$ac_count
  4850. fi
  4851. # 10*(2^10) chars as input seems more than enough
  4852. test $ac_count -gt 10 && break
  4853. done
  4854. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4855. esac
  4856. $ac_path_GREP_found && break 3
  4857. done
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. if test -z "$ac_cv_path_GREP"; then
  4862. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4863. fi
  4864. else
  4865. ac_cv_path_GREP=$GREP
  4866. fi
  4867. fi
  4868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4869. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4870. GREP="$ac_cv_path_GREP"
  4871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4872. printf %s "checking for egrep... " >&6; }
  4873. if test ${ac_cv_path_EGREP+y}
  4874. then :
  4875. printf %s "(cached) " >&6
  4876. else $as_nop
  4877. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4878. then ac_cv_path_EGREP="$GREP -E"
  4879. else
  4880. if test -z "$EGREP"; then
  4881. ac_path_EGREP_found=false
  4882. # Loop through the user's path and test for each of PROGNAME-LIST
  4883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4884. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4885. do
  4886. IFS=$as_save_IFS
  4887. case $as_dir in #(((
  4888. '') as_dir=./ ;;
  4889. */) ;;
  4890. *) as_dir=$as_dir/ ;;
  4891. esac
  4892. for ac_prog in egrep
  4893. do
  4894. for ac_exec_ext in '' $ac_executable_extensions; do
  4895. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4896. as_fn_executable_p "$ac_path_EGREP" || continue
  4897. # Check for GNU ac_path_EGREP and select it if it is found.
  4898. # Check for GNU $ac_path_EGREP
  4899. case `"$ac_path_EGREP" --version 2>&1` in
  4900. *GNU*)
  4901. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4902. *)
  4903. ac_count=0
  4904. printf %s 0123456789 >"conftest.in"
  4905. while :
  4906. do
  4907. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4908. mv "conftest.tmp" "conftest.in"
  4909. cp "conftest.in" "conftest.nl"
  4910. printf "%s\n" 'EGREP' >> "conftest.nl"
  4911. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4912. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4913. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4914. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4915. # Best one so far, save it but keep looking for a better one
  4916. ac_cv_path_EGREP="$ac_path_EGREP"
  4917. ac_path_EGREP_max=$ac_count
  4918. fi
  4919. # 10*(2^10) chars as input seems more than enough
  4920. test $ac_count -gt 10 && break
  4921. done
  4922. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4923. esac
  4924. $ac_path_EGREP_found && break 3
  4925. done
  4926. done
  4927. done
  4928. IFS=$as_save_IFS
  4929. if test -z "$ac_cv_path_EGREP"; then
  4930. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4931. fi
  4932. else
  4933. ac_cv_path_EGREP=$EGREP
  4934. fi
  4935. fi
  4936. fi
  4937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4938. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4939. EGREP="$ac_cv_path_EGREP"
  4940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4941. printf %s "checking for fgrep... " >&6; }
  4942. if test ${ac_cv_path_FGREP+y}
  4943. then :
  4944. printf %s "(cached) " >&6
  4945. else $as_nop
  4946. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4947. then ac_cv_path_FGREP="$GREP -F"
  4948. else
  4949. if test -z "$FGREP"; then
  4950. ac_path_FGREP_found=false
  4951. # Loop through the user's path and test for each of PROGNAME-LIST
  4952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4953. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4954. do
  4955. IFS=$as_save_IFS
  4956. case $as_dir in #(((
  4957. '') as_dir=./ ;;
  4958. */) ;;
  4959. *) as_dir=$as_dir/ ;;
  4960. esac
  4961. for ac_prog in fgrep
  4962. do
  4963. for ac_exec_ext in '' $ac_executable_extensions; do
  4964. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4965. as_fn_executable_p "$ac_path_FGREP" || continue
  4966. # Check for GNU ac_path_FGREP and select it if it is found.
  4967. # Check for GNU $ac_path_FGREP
  4968. case `"$ac_path_FGREP" --version 2>&1` in
  4969. *GNU*)
  4970. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4971. *)
  4972. ac_count=0
  4973. printf %s 0123456789 >"conftest.in"
  4974. while :
  4975. do
  4976. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4977. mv "conftest.tmp" "conftest.in"
  4978. cp "conftest.in" "conftest.nl"
  4979. printf "%s\n" 'FGREP' >> "conftest.nl"
  4980. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4981. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4982. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4983. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4984. # Best one so far, save it but keep looking for a better one
  4985. ac_cv_path_FGREP="$ac_path_FGREP"
  4986. ac_path_FGREP_max=$ac_count
  4987. fi
  4988. # 10*(2^10) chars as input seems more than enough
  4989. test $ac_count -gt 10 && break
  4990. done
  4991. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4992. esac
  4993. $ac_path_FGREP_found && break 3
  4994. done
  4995. done
  4996. done
  4997. IFS=$as_save_IFS
  4998. if test -z "$ac_cv_path_FGREP"; then
  4999. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5000. fi
  5001. else
  5002. ac_cv_path_FGREP=$FGREP
  5003. fi
  5004. fi
  5005. fi
  5006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5007. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5008. FGREP="$ac_cv_path_FGREP"
  5009. test -z "$GREP" && GREP=grep
  5010. # Check whether --with-gnu-ld was given.
  5011. if test ${with_gnu_ld+y}
  5012. then :
  5013. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5014. else $as_nop
  5015. with_gnu_ld=no
  5016. fi
  5017. ac_prog=ld
  5018. if test yes = "$GCC"; then
  5019. # Check if gcc -print-prog-name=ld gives a path.
  5020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5021. printf %s "checking for ld used by $CC... " >&6; }
  5022. case $host in
  5023. *-*-mingw*)
  5024. # gcc leaves a trailing carriage return, which upsets mingw
  5025. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5026. *)
  5027. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5028. esac
  5029. case $ac_prog in
  5030. # Accept absolute paths.
  5031. [\\/]* | ?:[\\/]*)
  5032. re_direlt='/[^/][^/]*/\.\./'
  5033. # Canonicalize the pathname of ld
  5034. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5035. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5036. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5037. done
  5038. test -z "$LD" && LD=$ac_prog
  5039. ;;
  5040. "")
  5041. # If it fails, then pretend we aren't using GCC.
  5042. ac_prog=ld
  5043. ;;
  5044. *)
  5045. # If it is relative, then search for the first ld in PATH.
  5046. with_gnu_ld=unknown
  5047. ;;
  5048. esac
  5049. elif test yes = "$with_gnu_ld"; then
  5050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5051. printf %s "checking for GNU ld... " >&6; }
  5052. else
  5053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5054. printf %s "checking for non-GNU ld... " >&6; }
  5055. fi
  5056. if test ${lt_cv_path_LD+y}
  5057. then :
  5058. printf %s "(cached) " >&6
  5059. else $as_nop
  5060. if test -z "$LD"; then
  5061. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5062. for ac_dir in $PATH; do
  5063. IFS=$lt_save_ifs
  5064. test -z "$ac_dir" && ac_dir=.
  5065. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5066. lt_cv_path_LD=$ac_dir/$ac_prog
  5067. # Check to see if the program is GNU ld. I'd rather use --version,
  5068. # but apparently some variants of GNU ld only accept -v.
  5069. # Break only if it was the GNU/non-GNU ld that we prefer.
  5070. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5071. *GNU* | *'with BFD'*)
  5072. test no != "$with_gnu_ld" && break
  5073. ;;
  5074. *)
  5075. test yes != "$with_gnu_ld" && break
  5076. ;;
  5077. esac
  5078. fi
  5079. done
  5080. IFS=$lt_save_ifs
  5081. else
  5082. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5083. fi
  5084. fi
  5085. LD=$lt_cv_path_LD
  5086. if test -n "$LD"; then
  5087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5088. printf "%s\n" "$LD" >&6; }
  5089. else
  5090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5091. printf "%s\n" "no" >&6; }
  5092. fi
  5093. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5095. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5096. if test ${lt_cv_prog_gnu_ld+y}
  5097. then :
  5098. printf %s "(cached) " >&6
  5099. else $as_nop
  5100. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5101. case `$LD -v 2>&1 </dev/null` in
  5102. *GNU* | *'with BFD'*)
  5103. lt_cv_prog_gnu_ld=yes
  5104. ;;
  5105. *)
  5106. lt_cv_prog_gnu_ld=no
  5107. ;;
  5108. esac
  5109. fi
  5110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5111. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5112. with_gnu_ld=$lt_cv_prog_gnu_ld
  5113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5114. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5115. if test ${lt_cv_path_NM+y}
  5116. then :
  5117. printf %s "(cached) " >&6
  5118. else $as_nop
  5119. if test -n "$NM"; then
  5120. # Let the user override the test.
  5121. lt_cv_path_NM=$NM
  5122. else
  5123. lt_nm_to_check=${ac_tool_prefix}nm
  5124. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5125. lt_nm_to_check="$lt_nm_to_check nm"
  5126. fi
  5127. for lt_tmp_nm in $lt_nm_to_check; do
  5128. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5129. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5130. IFS=$lt_save_ifs
  5131. test -z "$ac_dir" && ac_dir=.
  5132. tmp_nm=$ac_dir/$lt_tmp_nm
  5133. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5134. # Check to see if the nm accepts a BSD-compat flag.
  5135. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5136. # nm: unknown option "B" ignored
  5137. # Tru64's nm complains that /dev/null is an invalid object file
  5138. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5139. case $build_os in
  5140. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5141. *) lt_bad_file=/dev/null ;;
  5142. esac
  5143. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5144. *$lt_bad_file* | *'Invalid file or object type'*)
  5145. lt_cv_path_NM="$tmp_nm -B"
  5146. break 2
  5147. ;;
  5148. *)
  5149. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5150. */dev/null*)
  5151. lt_cv_path_NM="$tmp_nm -p"
  5152. break 2
  5153. ;;
  5154. *)
  5155. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5156. continue # so that we can try to find one that supports BSD flags
  5157. ;;
  5158. esac
  5159. ;;
  5160. esac
  5161. fi
  5162. done
  5163. IFS=$lt_save_ifs
  5164. done
  5165. : ${lt_cv_path_NM=no}
  5166. fi
  5167. fi
  5168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5169. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5170. if test no != "$lt_cv_path_NM"; then
  5171. NM=$lt_cv_path_NM
  5172. else
  5173. # Didn't find any BSD compatible name lister, look for dumpbin.
  5174. if test -n "$DUMPBIN"; then :
  5175. # Let the user override the test.
  5176. else
  5177. if test -n "$ac_tool_prefix"; then
  5178. for ac_prog in dumpbin "link -dump"
  5179. do
  5180. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5181. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5183. printf %s "checking for $ac_word... " >&6; }
  5184. if test ${ac_cv_prog_DUMPBIN+y}
  5185. then :
  5186. printf %s "(cached) " >&6
  5187. else $as_nop
  5188. if test -n "$DUMPBIN"; then
  5189. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5190. else
  5191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5192. for as_dir in $PATH
  5193. do
  5194. IFS=$as_save_IFS
  5195. case $as_dir in #(((
  5196. '') as_dir=./ ;;
  5197. */) ;;
  5198. *) as_dir=$as_dir/ ;;
  5199. esac
  5200. for ac_exec_ext in '' $ac_executable_extensions; do
  5201. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5202. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5203. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5204. break 2
  5205. fi
  5206. done
  5207. done
  5208. IFS=$as_save_IFS
  5209. fi
  5210. fi
  5211. DUMPBIN=$ac_cv_prog_DUMPBIN
  5212. if test -n "$DUMPBIN"; then
  5213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5214. printf "%s\n" "$DUMPBIN" >&6; }
  5215. else
  5216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5217. printf "%s\n" "no" >&6; }
  5218. fi
  5219. test -n "$DUMPBIN" && break
  5220. done
  5221. fi
  5222. if test -z "$DUMPBIN"; then
  5223. ac_ct_DUMPBIN=$DUMPBIN
  5224. for ac_prog in dumpbin "link -dump"
  5225. do
  5226. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5227. set dummy $ac_prog; ac_word=$2
  5228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5229. printf %s "checking for $ac_word... " >&6; }
  5230. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5231. then :
  5232. printf %s "(cached) " >&6
  5233. else $as_nop
  5234. if test -n "$ac_ct_DUMPBIN"; then
  5235. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5236. else
  5237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5238. for as_dir in $PATH
  5239. do
  5240. IFS=$as_save_IFS
  5241. case $as_dir in #(((
  5242. '') as_dir=./ ;;
  5243. */) ;;
  5244. *) as_dir=$as_dir/ ;;
  5245. esac
  5246. for ac_exec_ext in '' $ac_executable_extensions; do
  5247. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5248. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5249. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5250. break 2
  5251. fi
  5252. done
  5253. done
  5254. IFS=$as_save_IFS
  5255. fi
  5256. fi
  5257. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5258. if test -n "$ac_ct_DUMPBIN"; then
  5259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5260. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5261. else
  5262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5263. printf "%s\n" "no" >&6; }
  5264. fi
  5265. test -n "$ac_ct_DUMPBIN" && break
  5266. done
  5267. if test "x$ac_ct_DUMPBIN" = x; then
  5268. DUMPBIN=":"
  5269. else
  5270. case $cross_compiling:$ac_tool_warned in
  5271. yes:)
  5272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5273. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5274. ac_tool_warned=yes ;;
  5275. esac
  5276. DUMPBIN=$ac_ct_DUMPBIN
  5277. fi
  5278. fi
  5279. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5280. *COFF*)
  5281. DUMPBIN="$DUMPBIN -symbols -headers"
  5282. ;;
  5283. *)
  5284. DUMPBIN=:
  5285. ;;
  5286. esac
  5287. fi
  5288. if test : != "$DUMPBIN"; then
  5289. NM=$DUMPBIN
  5290. fi
  5291. fi
  5292. test -z "$NM" && NM=nm
  5293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5294. printf %s "checking the name lister ($NM) interface... " >&6; }
  5295. if test ${lt_cv_nm_interface+y}
  5296. then :
  5297. printf %s "(cached) " >&6
  5298. else $as_nop
  5299. lt_cv_nm_interface="BSD nm"
  5300. echo "int some_variable = 0;" > conftest.$ac_ext
  5301. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5302. (eval "$ac_compile" 2>conftest.err)
  5303. cat conftest.err >&5
  5304. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5305. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5306. cat conftest.err >&5
  5307. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5308. cat conftest.out >&5
  5309. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5310. lt_cv_nm_interface="MS dumpbin"
  5311. fi
  5312. rm -f conftest*
  5313. fi
  5314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5315. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5317. printf %s "checking whether ln -s works... " >&6; }
  5318. LN_S=$as_ln_s
  5319. if test "$LN_S" = "ln -s"; then
  5320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5321. printf "%s\n" "yes" >&6; }
  5322. else
  5323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5324. printf "%s\n" "no, using $LN_S" >&6; }
  5325. fi
  5326. # find the maximum length of command line arguments
  5327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5328. printf %s "checking the maximum length of command line arguments... " >&6; }
  5329. if test ${lt_cv_sys_max_cmd_len+y}
  5330. then :
  5331. printf %s "(cached) " >&6
  5332. else $as_nop
  5333. i=0
  5334. teststring=ABCD
  5335. case $build_os in
  5336. msdosdjgpp*)
  5337. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5338. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5339. # during glob expansion). Even if it were fixed, the result of this
  5340. # check would be larger than it should be.
  5341. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5342. ;;
  5343. gnu*)
  5344. # Under GNU Hurd, this test is not required because there is
  5345. # no limit to the length of command line arguments.
  5346. # Libtool will interpret -1 as no limit whatsoever
  5347. lt_cv_sys_max_cmd_len=-1;
  5348. ;;
  5349. cygwin* | mingw* | cegcc*)
  5350. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5351. # about 5 minutes as the teststring grows exponentially.
  5352. # Worse, since 9x/ME are not pre-emptively multitasking,
  5353. # you end up with a "frozen" computer, even though with patience
  5354. # the test eventually succeeds (with a max line length of 256k).
  5355. # Instead, let's just punt: use the minimum linelength reported by
  5356. # all of the supported platforms: 8192 (on NT/2K/XP).
  5357. lt_cv_sys_max_cmd_len=8192;
  5358. ;;
  5359. mint*)
  5360. # On MiNT this can take a long time and run out of memory.
  5361. lt_cv_sys_max_cmd_len=8192;
  5362. ;;
  5363. amigaos*)
  5364. # On AmigaOS with pdksh, this test takes hours, literally.
  5365. # So we just punt and use a minimum line length of 8192.
  5366. lt_cv_sys_max_cmd_len=8192;
  5367. ;;
  5368. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5369. # This has been around since 386BSD, at least. Likely further.
  5370. if test -x /sbin/sysctl; then
  5371. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5372. elif test -x /usr/sbin/sysctl; then
  5373. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5374. else
  5375. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5376. fi
  5377. # And add a safety zone
  5378. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5379. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5380. ;;
  5381. interix*)
  5382. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5383. lt_cv_sys_max_cmd_len=196608
  5384. ;;
  5385. os2*)
  5386. # The test takes a long time on OS/2.
  5387. lt_cv_sys_max_cmd_len=8192
  5388. ;;
  5389. osf*)
  5390. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5391. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5392. # nice to cause kernel panics so lets avoid the loop below.
  5393. # First set a reasonable default.
  5394. lt_cv_sys_max_cmd_len=16384
  5395. #
  5396. if test -x /sbin/sysconfig; then
  5397. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5398. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5399. esac
  5400. fi
  5401. ;;
  5402. sco3.2v5*)
  5403. lt_cv_sys_max_cmd_len=102400
  5404. ;;
  5405. sysv5* | sco5v6* | sysv4.2uw2*)
  5406. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5407. if test -n "$kargmax"; then
  5408. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5409. else
  5410. lt_cv_sys_max_cmd_len=32768
  5411. fi
  5412. ;;
  5413. *)
  5414. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5415. if test -n "$lt_cv_sys_max_cmd_len" && \
  5416. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5417. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5418. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5419. else
  5420. # Make teststring a little bigger before we do anything with it.
  5421. # a 1K string should be a reasonable start.
  5422. for i in 1 2 3 4 5 6 7 8; do
  5423. teststring=$teststring$teststring
  5424. done
  5425. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5426. # If test is not a shell built-in, we'll probably end up computing a
  5427. # maximum length that is only half of the actual maximum length, but
  5428. # we can't tell.
  5429. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5430. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5431. test 17 != "$i" # 1/2 MB should be enough
  5432. do
  5433. i=`expr $i + 1`
  5434. teststring=$teststring$teststring
  5435. done
  5436. # Only check the string length outside the loop.
  5437. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5438. teststring=
  5439. # Add a significant safety factor because C++ compilers can tack on
  5440. # massive amounts of additional arguments before passing them to the
  5441. # linker. It appears as though 1/2 is a usable value.
  5442. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5443. fi
  5444. ;;
  5445. esac
  5446. fi
  5447. if test -n "$lt_cv_sys_max_cmd_len"; then
  5448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5449. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5450. else
  5451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5452. printf "%s\n" "none" >&6; }
  5453. fi
  5454. max_cmd_len=$lt_cv_sys_max_cmd_len
  5455. : ${CP="cp -f"}
  5456. : ${MV="mv -f"}
  5457. : ${RM="rm -f"}
  5458. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5459. lt_unset=unset
  5460. else
  5461. lt_unset=false
  5462. fi
  5463. # test EBCDIC or ASCII
  5464. case `echo X|tr X '\101'` in
  5465. A) # ASCII based system
  5466. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5467. lt_SP2NL='tr \040 \012'
  5468. lt_NL2SP='tr \015\012 \040\040'
  5469. ;;
  5470. *) # EBCDIC based system
  5471. lt_SP2NL='tr \100 \n'
  5472. lt_NL2SP='tr \r\n \100\100'
  5473. ;;
  5474. esac
  5475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5476. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5477. if test ${lt_cv_to_host_file_cmd+y}
  5478. then :
  5479. printf %s "(cached) " >&6
  5480. else $as_nop
  5481. case $host in
  5482. *-*-mingw* )
  5483. case $build in
  5484. *-*-mingw* ) # actually msys
  5485. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5486. ;;
  5487. *-*-cygwin* )
  5488. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5489. ;;
  5490. * ) # otherwise, assume *nix
  5491. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5492. ;;
  5493. esac
  5494. ;;
  5495. *-*-cygwin* )
  5496. case $build in
  5497. *-*-mingw* ) # actually msys
  5498. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5499. ;;
  5500. *-*-cygwin* )
  5501. lt_cv_to_host_file_cmd=func_convert_file_noop
  5502. ;;
  5503. * ) # otherwise, assume *nix
  5504. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5505. ;;
  5506. esac
  5507. ;;
  5508. * ) # unhandled hosts (and "normal" native builds)
  5509. lt_cv_to_host_file_cmd=func_convert_file_noop
  5510. ;;
  5511. esac
  5512. fi
  5513. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5515. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5517. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5518. if test ${lt_cv_to_tool_file_cmd+y}
  5519. then :
  5520. printf %s "(cached) " >&6
  5521. else $as_nop
  5522. #assume ordinary cross tools, or native build.
  5523. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5524. case $host in
  5525. *-*-mingw* )
  5526. case $build in
  5527. *-*-mingw* ) # actually msys
  5528. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5529. ;;
  5530. esac
  5531. ;;
  5532. esac
  5533. fi
  5534. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5536. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5538. printf %s "checking for $LD option to reload object files... " >&6; }
  5539. if test ${lt_cv_ld_reload_flag+y}
  5540. then :
  5541. printf %s "(cached) " >&6
  5542. else $as_nop
  5543. lt_cv_ld_reload_flag='-r'
  5544. fi
  5545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5546. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5547. reload_flag=$lt_cv_ld_reload_flag
  5548. case $reload_flag in
  5549. "" | " "*) ;;
  5550. *) reload_flag=" $reload_flag" ;;
  5551. esac
  5552. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5553. case $host_os in
  5554. cygwin* | mingw* | pw32* | cegcc*)
  5555. if test yes != "$GCC"; then
  5556. reload_cmds=false
  5557. fi
  5558. ;;
  5559. darwin*)
  5560. if test yes = "$GCC"; then
  5561. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5562. else
  5563. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5564. fi
  5565. ;;
  5566. esac
  5567. if test -n "$ac_tool_prefix"; then
  5568. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5569. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5571. printf %s "checking for $ac_word... " >&6; }
  5572. if test ${ac_cv_prog_OBJDUMP+y}
  5573. then :
  5574. printf %s "(cached) " >&6
  5575. else $as_nop
  5576. if test -n "$OBJDUMP"; then
  5577. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. case $as_dir in #(((
  5584. '') as_dir=./ ;;
  5585. */) ;;
  5586. *) as_dir=$as_dir/ ;;
  5587. esac
  5588. for ac_exec_ext in '' $ac_executable_extensions; do
  5589. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5590. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5591. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5592. break 2
  5593. fi
  5594. done
  5595. done
  5596. IFS=$as_save_IFS
  5597. fi
  5598. fi
  5599. OBJDUMP=$ac_cv_prog_OBJDUMP
  5600. if test -n "$OBJDUMP"; then
  5601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5602. printf "%s\n" "$OBJDUMP" >&6; }
  5603. else
  5604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5605. printf "%s\n" "no" >&6; }
  5606. fi
  5607. fi
  5608. if test -z "$ac_cv_prog_OBJDUMP"; then
  5609. ac_ct_OBJDUMP=$OBJDUMP
  5610. # Extract the first word of "objdump", so it can be a program name with args.
  5611. set dummy objdump; ac_word=$2
  5612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5613. printf %s "checking for $ac_word... " >&6; }
  5614. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5615. then :
  5616. printf %s "(cached) " >&6
  5617. else $as_nop
  5618. if test -n "$ac_ct_OBJDUMP"; then
  5619. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5620. else
  5621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5622. for as_dir in $PATH
  5623. do
  5624. IFS=$as_save_IFS
  5625. case $as_dir in #(((
  5626. '') as_dir=./ ;;
  5627. */) ;;
  5628. *) as_dir=$as_dir/ ;;
  5629. esac
  5630. for ac_exec_ext in '' $ac_executable_extensions; do
  5631. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5632. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5634. break 2
  5635. fi
  5636. done
  5637. done
  5638. IFS=$as_save_IFS
  5639. fi
  5640. fi
  5641. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5642. if test -n "$ac_ct_OBJDUMP"; then
  5643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5644. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5645. else
  5646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5647. printf "%s\n" "no" >&6; }
  5648. fi
  5649. if test "x$ac_ct_OBJDUMP" = x; then
  5650. OBJDUMP="false"
  5651. else
  5652. case $cross_compiling:$ac_tool_warned in
  5653. yes:)
  5654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5655. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5656. ac_tool_warned=yes ;;
  5657. esac
  5658. OBJDUMP=$ac_ct_OBJDUMP
  5659. fi
  5660. else
  5661. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5662. fi
  5663. test -z "$OBJDUMP" && OBJDUMP=objdump
  5664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5665. printf %s "checking how to recognize dependent libraries... " >&6; }
  5666. if test ${lt_cv_deplibs_check_method+y}
  5667. then :
  5668. printf %s "(cached) " >&6
  5669. else $as_nop
  5670. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5671. lt_cv_file_magic_test_file=
  5672. lt_cv_deplibs_check_method='unknown'
  5673. # Need to set the preceding variable on all platforms that support
  5674. # interlibrary dependencies.
  5675. # 'none' -- dependencies not supported.
  5676. # 'unknown' -- same as none, but documents that we really don't know.
  5677. # 'pass_all' -- all dependencies passed with no checks.
  5678. # 'test_compile' -- check by making test program.
  5679. # 'file_magic [[regex]]' -- check by looking for files in library path
  5680. # that responds to the $file_magic_cmd with a given extended regex.
  5681. # If you have 'file' or equivalent on your system and you're not sure
  5682. # whether 'pass_all' will *always* work, you probably want this one.
  5683. case $host_os in
  5684. aix[4-9]*)
  5685. lt_cv_deplibs_check_method=pass_all
  5686. ;;
  5687. beos*)
  5688. lt_cv_deplibs_check_method=pass_all
  5689. ;;
  5690. bsdi[45]*)
  5691. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5692. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5693. lt_cv_file_magic_test_file=/shlib/libc.so
  5694. ;;
  5695. cygwin*)
  5696. # func_win32_libid is a shell function defined in ltmain.sh
  5697. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5698. lt_cv_file_magic_cmd='func_win32_libid'
  5699. ;;
  5700. mingw* | pw32*)
  5701. # Base MSYS/MinGW do not provide the 'file' command needed by
  5702. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5703. # unless we find 'file', for example because we are cross-compiling.
  5704. if ( file / ) >/dev/null 2>&1; then
  5705. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5706. lt_cv_file_magic_cmd='func_win32_libid'
  5707. else
  5708. # Keep this pattern in sync with the one in func_win32_libid.
  5709. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5710. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5711. fi
  5712. ;;
  5713. cegcc*)
  5714. # use the weaker test based on 'objdump'. See mingw*.
  5715. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5716. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5717. ;;
  5718. darwin* | rhapsody*)
  5719. lt_cv_deplibs_check_method=pass_all
  5720. ;;
  5721. freebsd* | dragonfly*)
  5722. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5723. case $host_cpu in
  5724. i*86 )
  5725. # Not sure whether the presence of OpenBSD here was a mistake.
  5726. # Let's accept both of them until this is cleared up.
  5727. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5728. lt_cv_file_magic_cmd=/usr/bin/file
  5729. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5730. ;;
  5731. esac
  5732. else
  5733. lt_cv_deplibs_check_method=pass_all
  5734. fi
  5735. ;;
  5736. haiku*)
  5737. lt_cv_deplibs_check_method=pass_all
  5738. ;;
  5739. hpux10.20* | hpux11*)
  5740. lt_cv_file_magic_cmd=/usr/bin/file
  5741. case $host_cpu in
  5742. ia64*)
  5743. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5744. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5745. ;;
  5746. hppa*64*)
  5747. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5748. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5749. ;;
  5750. *)
  5751. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5752. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5753. ;;
  5754. esac
  5755. ;;
  5756. interix[3-9]*)
  5757. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5758. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5759. ;;
  5760. irix5* | irix6* | nonstopux*)
  5761. case $LD in
  5762. *-32|*"-32 ") libmagic=32-bit;;
  5763. *-n32|*"-n32 ") libmagic=N32;;
  5764. *-64|*"-64 ") libmagic=64-bit;;
  5765. *) libmagic=never-match;;
  5766. esac
  5767. lt_cv_deplibs_check_method=pass_all
  5768. ;;
  5769. # This must be glibc/ELF.
  5770. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5771. lt_cv_deplibs_check_method=pass_all
  5772. ;;
  5773. netbsd*)
  5774. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5775. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5776. else
  5777. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5778. fi
  5779. ;;
  5780. newos6*)
  5781. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5782. lt_cv_file_magic_cmd=/usr/bin/file
  5783. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5784. ;;
  5785. *nto* | *qnx*)
  5786. lt_cv_deplibs_check_method=pass_all
  5787. ;;
  5788. openbsd* | bitrig*)
  5789. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5790. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5791. else
  5792. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5793. fi
  5794. ;;
  5795. osf3* | osf4* | osf5*)
  5796. lt_cv_deplibs_check_method=pass_all
  5797. ;;
  5798. rdos*)
  5799. lt_cv_deplibs_check_method=pass_all
  5800. ;;
  5801. solaris*)
  5802. lt_cv_deplibs_check_method=pass_all
  5803. ;;
  5804. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5805. lt_cv_deplibs_check_method=pass_all
  5806. ;;
  5807. sysv4 | sysv4.3*)
  5808. case $host_vendor in
  5809. motorola)
  5810. 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]'
  5811. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5812. ;;
  5813. ncr)
  5814. lt_cv_deplibs_check_method=pass_all
  5815. ;;
  5816. sequent)
  5817. lt_cv_file_magic_cmd='/bin/file'
  5818. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5819. ;;
  5820. sni)
  5821. lt_cv_file_magic_cmd='/bin/file'
  5822. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5823. lt_cv_file_magic_test_file=/lib/libc.so
  5824. ;;
  5825. siemens)
  5826. lt_cv_deplibs_check_method=pass_all
  5827. ;;
  5828. pc)
  5829. lt_cv_deplibs_check_method=pass_all
  5830. ;;
  5831. esac
  5832. ;;
  5833. tpf*)
  5834. lt_cv_deplibs_check_method=pass_all
  5835. ;;
  5836. os2*)
  5837. lt_cv_deplibs_check_method=pass_all
  5838. ;;
  5839. esac
  5840. fi
  5841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5842. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5843. file_magic_glob=
  5844. want_nocaseglob=no
  5845. if test "$build" = "$host"; then
  5846. case $host_os in
  5847. mingw* | pw32*)
  5848. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5849. want_nocaseglob=yes
  5850. else
  5851. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5852. fi
  5853. ;;
  5854. esac
  5855. fi
  5856. file_magic_cmd=$lt_cv_file_magic_cmd
  5857. deplibs_check_method=$lt_cv_deplibs_check_method
  5858. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5859. if test -n "$ac_tool_prefix"; then
  5860. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5861. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5863. printf %s "checking for $ac_word... " >&6; }
  5864. if test ${ac_cv_prog_DLLTOOL+y}
  5865. then :
  5866. printf %s "(cached) " >&6
  5867. else $as_nop
  5868. if test -n "$DLLTOOL"; then
  5869. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5870. else
  5871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5872. for as_dir in $PATH
  5873. do
  5874. IFS=$as_save_IFS
  5875. case $as_dir in #(((
  5876. '') as_dir=./ ;;
  5877. */) ;;
  5878. *) as_dir=$as_dir/ ;;
  5879. esac
  5880. for ac_exec_ext in '' $ac_executable_extensions; do
  5881. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5882. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5883. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5884. break 2
  5885. fi
  5886. done
  5887. done
  5888. IFS=$as_save_IFS
  5889. fi
  5890. fi
  5891. DLLTOOL=$ac_cv_prog_DLLTOOL
  5892. if test -n "$DLLTOOL"; then
  5893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5894. printf "%s\n" "$DLLTOOL" >&6; }
  5895. else
  5896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5897. printf "%s\n" "no" >&6; }
  5898. fi
  5899. fi
  5900. if test -z "$ac_cv_prog_DLLTOOL"; then
  5901. ac_ct_DLLTOOL=$DLLTOOL
  5902. # Extract the first word of "dlltool", so it can be a program name with args.
  5903. set dummy dlltool; ac_word=$2
  5904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5905. printf %s "checking for $ac_word... " >&6; }
  5906. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5907. then :
  5908. printf %s "(cached) " >&6
  5909. else $as_nop
  5910. if test -n "$ac_ct_DLLTOOL"; then
  5911. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5912. else
  5913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5914. for as_dir in $PATH
  5915. do
  5916. IFS=$as_save_IFS
  5917. case $as_dir in #(((
  5918. '') as_dir=./ ;;
  5919. */) ;;
  5920. *) as_dir=$as_dir/ ;;
  5921. esac
  5922. for ac_exec_ext in '' $ac_executable_extensions; do
  5923. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5924. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5926. break 2
  5927. fi
  5928. done
  5929. done
  5930. IFS=$as_save_IFS
  5931. fi
  5932. fi
  5933. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5934. if test -n "$ac_ct_DLLTOOL"; then
  5935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5936. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5937. else
  5938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5939. printf "%s\n" "no" >&6; }
  5940. fi
  5941. if test "x$ac_ct_DLLTOOL" = x; then
  5942. DLLTOOL="false"
  5943. else
  5944. case $cross_compiling:$ac_tool_warned in
  5945. yes:)
  5946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5947. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5948. ac_tool_warned=yes ;;
  5949. esac
  5950. DLLTOOL=$ac_ct_DLLTOOL
  5951. fi
  5952. else
  5953. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5954. fi
  5955. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5957. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5958. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5959. then :
  5960. printf %s "(cached) " >&6
  5961. else $as_nop
  5962. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5963. case $host_os in
  5964. cygwin* | mingw* | pw32* | cegcc*)
  5965. # two different shell functions defined in ltmain.sh;
  5966. # decide which one to use based on capabilities of $DLLTOOL
  5967. case `$DLLTOOL --help 2>&1` in
  5968. *--identify-strict*)
  5969. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5970. ;;
  5971. *)
  5972. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5973. ;;
  5974. esac
  5975. ;;
  5976. *)
  5977. # fallback: assume linklib IS sharedlib
  5978. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5979. ;;
  5980. esac
  5981. fi
  5982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5983. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5984. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5985. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5986. if test -n "$ac_tool_prefix"; then
  5987. for ac_prog in ar
  5988. do
  5989. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5990. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. printf %s "checking for $ac_word... " >&6; }
  5993. if test ${ac_cv_prog_AR+y}
  5994. then :
  5995. printf %s "(cached) " >&6
  5996. else $as_nop
  5997. if test -n "$AR"; then
  5998. ac_cv_prog_AR="$AR" # Let the user override the test.
  5999. else
  6000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6001. for as_dir in $PATH
  6002. do
  6003. IFS=$as_save_IFS
  6004. case $as_dir in #(((
  6005. '') as_dir=./ ;;
  6006. */) ;;
  6007. *) as_dir=$as_dir/ ;;
  6008. esac
  6009. for ac_exec_ext in '' $ac_executable_extensions; do
  6010. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6011. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6013. break 2
  6014. fi
  6015. done
  6016. done
  6017. IFS=$as_save_IFS
  6018. fi
  6019. fi
  6020. AR=$ac_cv_prog_AR
  6021. if test -n "$AR"; then
  6022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6023. printf "%s\n" "$AR" >&6; }
  6024. else
  6025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6026. printf "%s\n" "no" >&6; }
  6027. fi
  6028. test -n "$AR" && break
  6029. done
  6030. fi
  6031. if test -z "$AR"; then
  6032. ac_ct_AR=$AR
  6033. for ac_prog in ar
  6034. do
  6035. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6036. set dummy $ac_prog; ac_word=$2
  6037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6038. printf %s "checking for $ac_word... " >&6; }
  6039. if test ${ac_cv_prog_ac_ct_AR+y}
  6040. then :
  6041. printf %s "(cached) " >&6
  6042. else $as_nop
  6043. if test -n "$ac_ct_AR"; then
  6044. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. case $as_dir in #(((
  6051. '') as_dir=./ ;;
  6052. */) ;;
  6053. *) as_dir=$as_dir/ ;;
  6054. esac
  6055. for ac_exec_ext in '' $ac_executable_extensions; do
  6056. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6057. ac_cv_prog_ac_ct_AR="$ac_prog"
  6058. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6059. break 2
  6060. fi
  6061. done
  6062. done
  6063. IFS=$as_save_IFS
  6064. fi
  6065. fi
  6066. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6067. if test -n "$ac_ct_AR"; then
  6068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6069. printf "%s\n" "$ac_ct_AR" >&6; }
  6070. else
  6071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6072. printf "%s\n" "no" >&6; }
  6073. fi
  6074. test -n "$ac_ct_AR" && break
  6075. done
  6076. if test "x$ac_ct_AR" = x; then
  6077. AR="false"
  6078. else
  6079. case $cross_compiling:$ac_tool_warned in
  6080. yes:)
  6081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6082. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6083. ac_tool_warned=yes ;;
  6084. esac
  6085. AR=$ac_ct_AR
  6086. fi
  6087. fi
  6088. : ${AR=ar}
  6089. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6090. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6091. # higher priority because thats what people were doing historically (setting
  6092. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6093. # variable obsoleted/removed.
  6094. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6095. lt_ar_flags=$AR_FLAGS
  6096. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6097. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6099. printf %s "checking for archiver @FILE support... " >&6; }
  6100. if test ${lt_cv_ar_at_file+y}
  6101. then :
  6102. printf %s "(cached) " >&6
  6103. else $as_nop
  6104. lt_cv_ar_at_file=no
  6105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6106. /* end confdefs.h. */
  6107. int
  6108. main (void)
  6109. {
  6110. ;
  6111. return 0;
  6112. }
  6113. _ACEOF
  6114. if ac_fn_c_try_compile "$LINENO"
  6115. then :
  6116. echo conftest.$ac_objext > conftest.lst
  6117. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6118. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6119. (eval $lt_ar_try) 2>&5
  6120. ac_status=$?
  6121. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6122. test $ac_status = 0; }
  6123. if test 0 -eq "$ac_status"; then
  6124. # Ensure the archiver fails upon bogus file names.
  6125. rm -f conftest.$ac_objext libconftest.a
  6126. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6127. (eval $lt_ar_try) 2>&5
  6128. ac_status=$?
  6129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6130. test $ac_status = 0; }
  6131. if test 0 -ne "$ac_status"; then
  6132. lt_cv_ar_at_file=@
  6133. fi
  6134. fi
  6135. rm -f conftest.* libconftest.a
  6136. fi
  6137. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6138. fi
  6139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6140. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6141. if test no = "$lt_cv_ar_at_file"; then
  6142. archiver_list_spec=
  6143. else
  6144. archiver_list_spec=$lt_cv_ar_at_file
  6145. fi
  6146. if test -n "$ac_tool_prefix"; then
  6147. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6148. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6150. printf %s "checking for $ac_word... " >&6; }
  6151. if test ${ac_cv_prog_STRIP+y}
  6152. then :
  6153. printf %s "(cached) " >&6
  6154. else $as_nop
  6155. if test -n "$STRIP"; then
  6156. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6157. else
  6158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6159. for as_dir in $PATH
  6160. do
  6161. IFS=$as_save_IFS
  6162. case $as_dir in #(((
  6163. '') as_dir=./ ;;
  6164. */) ;;
  6165. *) as_dir=$as_dir/ ;;
  6166. esac
  6167. for ac_exec_ext in '' $ac_executable_extensions; do
  6168. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6169. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6170. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6171. break 2
  6172. fi
  6173. done
  6174. done
  6175. IFS=$as_save_IFS
  6176. fi
  6177. fi
  6178. STRIP=$ac_cv_prog_STRIP
  6179. if test -n "$STRIP"; then
  6180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6181. printf "%s\n" "$STRIP" >&6; }
  6182. else
  6183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6184. printf "%s\n" "no" >&6; }
  6185. fi
  6186. fi
  6187. if test -z "$ac_cv_prog_STRIP"; then
  6188. ac_ct_STRIP=$STRIP
  6189. # Extract the first word of "strip", so it can be a program name with args.
  6190. set dummy strip; ac_word=$2
  6191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6192. printf %s "checking for $ac_word... " >&6; }
  6193. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6194. then :
  6195. printf %s "(cached) " >&6
  6196. else $as_nop
  6197. if test -n "$ac_ct_STRIP"; then
  6198. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6199. else
  6200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6201. for as_dir in $PATH
  6202. do
  6203. IFS=$as_save_IFS
  6204. case $as_dir in #(((
  6205. '') as_dir=./ ;;
  6206. */) ;;
  6207. *) as_dir=$as_dir/ ;;
  6208. esac
  6209. for ac_exec_ext in '' $ac_executable_extensions; do
  6210. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6211. ac_cv_prog_ac_ct_STRIP="strip"
  6212. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6213. break 2
  6214. fi
  6215. done
  6216. done
  6217. IFS=$as_save_IFS
  6218. fi
  6219. fi
  6220. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6221. if test -n "$ac_ct_STRIP"; then
  6222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6223. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6224. else
  6225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6226. printf "%s\n" "no" >&6; }
  6227. fi
  6228. if test "x$ac_ct_STRIP" = x; then
  6229. STRIP=":"
  6230. else
  6231. case $cross_compiling:$ac_tool_warned in
  6232. yes:)
  6233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6234. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6235. ac_tool_warned=yes ;;
  6236. esac
  6237. STRIP=$ac_ct_STRIP
  6238. fi
  6239. else
  6240. STRIP="$ac_cv_prog_STRIP"
  6241. fi
  6242. test -z "$STRIP" && STRIP=:
  6243. if test -n "$ac_tool_prefix"; then
  6244. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6245. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6247. printf %s "checking for $ac_word... " >&6; }
  6248. if test ${ac_cv_prog_RANLIB+y}
  6249. then :
  6250. printf %s "(cached) " >&6
  6251. else $as_nop
  6252. if test -n "$RANLIB"; then
  6253. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. case $as_dir in #(((
  6260. '') as_dir=./ ;;
  6261. */) ;;
  6262. *) as_dir=$as_dir/ ;;
  6263. esac
  6264. for ac_exec_ext in '' $ac_executable_extensions; do
  6265. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6266. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6267. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6268. break 2
  6269. fi
  6270. done
  6271. done
  6272. IFS=$as_save_IFS
  6273. fi
  6274. fi
  6275. RANLIB=$ac_cv_prog_RANLIB
  6276. if test -n "$RANLIB"; then
  6277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6278. printf "%s\n" "$RANLIB" >&6; }
  6279. else
  6280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6281. printf "%s\n" "no" >&6; }
  6282. fi
  6283. fi
  6284. if test -z "$ac_cv_prog_RANLIB"; then
  6285. ac_ct_RANLIB=$RANLIB
  6286. # Extract the first word of "ranlib", so it can be a program name with args.
  6287. set dummy ranlib; ac_word=$2
  6288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6289. printf %s "checking for $ac_word... " >&6; }
  6290. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6291. then :
  6292. printf %s "(cached) " >&6
  6293. else $as_nop
  6294. if test -n "$ac_ct_RANLIB"; then
  6295. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6296. else
  6297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6298. for as_dir in $PATH
  6299. do
  6300. IFS=$as_save_IFS
  6301. case $as_dir in #(((
  6302. '') as_dir=./ ;;
  6303. */) ;;
  6304. *) as_dir=$as_dir/ ;;
  6305. esac
  6306. for ac_exec_ext in '' $ac_executable_extensions; do
  6307. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6308. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6309. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6310. break 2
  6311. fi
  6312. done
  6313. done
  6314. IFS=$as_save_IFS
  6315. fi
  6316. fi
  6317. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6318. if test -n "$ac_ct_RANLIB"; then
  6319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6320. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6321. else
  6322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6323. printf "%s\n" "no" >&6; }
  6324. fi
  6325. if test "x$ac_ct_RANLIB" = x; then
  6326. RANLIB=":"
  6327. else
  6328. case $cross_compiling:$ac_tool_warned in
  6329. yes:)
  6330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6331. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6332. ac_tool_warned=yes ;;
  6333. esac
  6334. RANLIB=$ac_ct_RANLIB
  6335. fi
  6336. else
  6337. RANLIB="$ac_cv_prog_RANLIB"
  6338. fi
  6339. test -z "$RANLIB" && RANLIB=:
  6340. # Determine commands to create old-style static archives.
  6341. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6342. old_postinstall_cmds='chmod 644 $oldlib'
  6343. old_postuninstall_cmds=
  6344. if test -n "$RANLIB"; then
  6345. case $host_os in
  6346. bitrig* | openbsd*)
  6347. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6348. ;;
  6349. *)
  6350. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6351. ;;
  6352. esac
  6353. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6354. fi
  6355. case $host_os in
  6356. darwin*)
  6357. lock_old_archive_extraction=yes ;;
  6358. *)
  6359. lock_old_archive_extraction=no ;;
  6360. esac
  6361. # If no C compiler was specified, use CC.
  6362. LTCC=${LTCC-"$CC"}
  6363. # If no C compiler flags were specified, use CFLAGS.
  6364. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6365. # Allow CC to be a program name with arguments.
  6366. compiler=$CC
  6367. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6369. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6370. if test ${lt_cv_sys_global_symbol_pipe+y}
  6371. then :
  6372. printf %s "(cached) " >&6
  6373. else $as_nop
  6374. # These are sane defaults that work on at least a few old systems.
  6375. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6376. # Character class describing NM global symbol codes.
  6377. symcode='[BCDEGRST]'
  6378. # Regexp to match symbols that can be accessed directly from C.
  6379. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6380. # Define system-specific variables.
  6381. case $host_os in
  6382. aix*)
  6383. symcode='[BCDT]'
  6384. ;;
  6385. cygwin* | mingw* | pw32* | cegcc*)
  6386. symcode='[ABCDGISTW]'
  6387. ;;
  6388. hpux*)
  6389. if test ia64 = "$host_cpu"; then
  6390. symcode='[ABCDEGRST]'
  6391. fi
  6392. ;;
  6393. irix* | nonstopux*)
  6394. symcode='[BCDEGRST]'
  6395. ;;
  6396. osf*)
  6397. symcode='[BCDEGQRST]'
  6398. ;;
  6399. solaris*)
  6400. symcode='[BDRT]'
  6401. ;;
  6402. sco3.2v5*)
  6403. symcode='[DT]'
  6404. ;;
  6405. sysv4.2uw2*)
  6406. symcode='[DT]'
  6407. ;;
  6408. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6409. symcode='[ABDT]'
  6410. ;;
  6411. sysv4)
  6412. symcode='[DFNSTU]'
  6413. ;;
  6414. esac
  6415. # If we're using GNU nm, then use its standard symbol codes.
  6416. case `$NM -V 2>&1` in
  6417. *GNU* | *'with BFD'*)
  6418. symcode='[ABCDGIRSTW]' ;;
  6419. esac
  6420. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6421. # Gets list of data symbols to import.
  6422. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6423. # Adjust the below global symbol transforms to fixup imported variables.
  6424. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6425. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6426. lt_c_name_lib_hook="\
  6427. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6428. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6429. else
  6430. # Disable hooks by default.
  6431. lt_cv_sys_global_symbol_to_import=
  6432. lt_cdecl_hook=
  6433. lt_c_name_hook=
  6434. lt_c_name_lib_hook=
  6435. fi
  6436. # Transform an extracted symbol line into a proper C declaration.
  6437. # Some systems (esp. on ia64) link data and code symbols differently,
  6438. # so use this general approach.
  6439. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6440. $lt_cdecl_hook\
  6441. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6442. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6443. # Transform an extracted symbol line into symbol name and symbol address
  6444. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6445. $lt_c_name_hook\
  6446. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6447. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6448. # Transform an extracted symbol line into symbol name with lib prefix and
  6449. # symbol address.
  6450. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6451. $lt_c_name_lib_hook\
  6452. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6453. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6454. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6455. # Handle CRLF in mingw tool chain
  6456. opt_cr=
  6457. case $build_os in
  6458. mingw*)
  6459. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6460. ;;
  6461. esac
  6462. # Try without a prefix underscore, then with it.
  6463. for ac_symprfx in "" "_"; do
  6464. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6465. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6466. # Write the raw and C identifiers.
  6467. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6468. # Fake it for dumpbin and say T for any non-static function,
  6469. # D for any global variable and I for any imported variable.
  6470. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6471. # which start with @ or ?.
  6472. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6473. " {last_section=section; section=\$ 3};"\
  6474. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6475. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6476. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6477. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6478. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6479. " \$ 0!~/External *\|/{next};"\
  6480. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6481. " {if(hide[section]) next};"\
  6482. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6483. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6484. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6485. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6486. " ' prfx=^$ac_symprfx"
  6487. else
  6488. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6489. fi
  6490. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6491. # Check to see that the pipe works correctly.
  6492. pipe_works=no
  6493. rm -f conftest*
  6494. cat > conftest.$ac_ext <<_LT_EOF
  6495. #ifdef __cplusplus
  6496. extern "C" {
  6497. #endif
  6498. char nm_test_var;
  6499. void nm_test_func(void);
  6500. void nm_test_func(void){}
  6501. #ifdef __cplusplus
  6502. }
  6503. #endif
  6504. int main(){nm_test_var='a';nm_test_func();return(0);}
  6505. _LT_EOF
  6506. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6507. (eval $ac_compile) 2>&5
  6508. ac_status=$?
  6509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6510. test $ac_status = 0; }; then
  6511. # Now try to grab the symbols.
  6512. nlist=conftest.nm
  6513. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6514. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6515. ac_status=$?
  6516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6517. test $ac_status = 0; } && test -s "$nlist"; then
  6518. # Try sorting and uniquifying the output.
  6519. if sort "$nlist" | uniq > "$nlist"T; then
  6520. mv -f "$nlist"T "$nlist"
  6521. else
  6522. rm -f "$nlist"T
  6523. fi
  6524. # Make sure that we snagged all the symbols we need.
  6525. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6526. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6527. cat <<_LT_EOF > conftest.$ac_ext
  6528. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6529. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6530. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6531. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6532. # define LT_DLSYM_CONST
  6533. #elif defined __osf__
  6534. /* This system does not cope well with relocations in const data. */
  6535. # define LT_DLSYM_CONST
  6536. #else
  6537. # define LT_DLSYM_CONST const
  6538. #endif
  6539. #ifdef __cplusplus
  6540. extern "C" {
  6541. #endif
  6542. _LT_EOF
  6543. # Now generate the symbol file.
  6544. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6545. cat <<_LT_EOF >> conftest.$ac_ext
  6546. /* The mapping between symbol names and symbols. */
  6547. LT_DLSYM_CONST struct {
  6548. const char *name;
  6549. void *address;
  6550. }
  6551. lt__PROGRAM__LTX_preloaded_symbols[] =
  6552. {
  6553. { "@PROGRAM@", (void *) 0 },
  6554. _LT_EOF
  6555. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6556. cat <<\_LT_EOF >> conftest.$ac_ext
  6557. {0, (void *) 0}
  6558. };
  6559. /* This works around a problem in FreeBSD linker */
  6560. #ifdef FREEBSD_WORKAROUND
  6561. static const void *lt_preloaded_setup() {
  6562. return lt__PROGRAM__LTX_preloaded_symbols;
  6563. }
  6564. #endif
  6565. #ifdef __cplusplus
  6566. }
  6567. #endif
  6568. _LT_EOF
  6569. # Now try linking the two files.
  6570. mv conftest.$ac_objext conftstm.$ac_objext
  6571. lt_globsym_save_LIBS=$LIBS
  6572. lt_globsym_save_CFLAGS=$CFLAGS
  6573. LIBS=conftstm.$ac_objext
  6574. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6575. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6576. (eval $ac_link) 2>&5
  6577. ac_status=$?
  6578. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6579. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6580. pipe_works=yes
  6581. fi
  6582. LIBS=$lt_globsym_save_LIBS
  6583. CFLAGS=$lt_globsym_save_CFLAGS
  6584. else
  6585. echo "cannot find nm_test_func in $nlist" >&5
  6586. fi
  6587. else
  6588. echo "cannot find nm_test_var in $nlist" >&5
  6589. fi
  6590. else
  6591. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6592. fi
  6593. else
  6594. echo "$progname: failed program was:" >&5
  6595. cat conftest.$ac_ext >&5
  6596. fi
  6597. rm -rf conftest* conftst*
  6598. # Do not use the global_symbol_pipe unless it works.
  6599. if test yes = "$pipe_works"; then
  6600. break
  6601. else
  6602. lt_cv_sys_global_symbol_pipe=
  6603. fi
  6604. done
  6605. fi
  6606. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6607. lt_cv_sys_global_symbol_to_cdecl=
  6608. fi
  6609. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6611. printf "%s\n" "failed" >&6; }
  6612. else
  6613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6614. printf "%s\n" "ok" >&6; }
  6615. fi
  6616. # Response file support.
  6617. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6618. nm_file_list_spec='@'
  6619. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6620. nm_file_list_spec='@'
  6621. fi
  6622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6623. printf %s "checking for sysroot... " >&6; }
  6624. # Check whether --with-sysroot was given.
  6625. if test ${with_sysroot+y}
  6626. then :
  6627. withval=$with_sysroot;
  6628. else $as_nop
  6629. with_sysroot=no
  6630. fi
  6631. lt_sysroot=
  6632. case $with_sysroot in #(
  6633. yes)
  6634. if test yes = "$GCC"; then
  6635. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6636. fi
  6637. ;; #(
  6638. /*)
  6639. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6640. ;; #(
  6641. no|'')
  6642. ;; #(
  6643. *)
  6644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6645. printf "%s\n" "$with_sysroot" >&6; }
  6646. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6647. ;;
  6648. esac
  6649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6650. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6652. printf %s "checking for a working dd... " >&6; }
  6653. if test ${ac_cv_path_lt_DD+y}
  6654. then :
  6655. printf %s "(cached) " >&6
  6656. else $as_nop
  6657. printf 0123456789abcdef0123456789abcdef >conftest.i
  6658. cat conftest.i conftest.i >conftest2.i
  6659. : ${lt_DD:=$DD}
  6660. if test -z "$lt_DD"; then
  6661. ac_path_lt_DD_found=false
  6662. # Loop through the user's path and test for each of PROGNAME-LIST
  6663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6664. for as_dir in $PATH
  6665. do
  6666. IFS=$as_save_IFS
  6667. case $as_dir in #(((
  6668. '') as_dir=./ ;;
  6669. */) ;;
  6670. *) as_dir=$as_dir/ ;;
  6671. esac
  6672. for ac_prog in dd
  6673. do
  6674. for ac_exec_ext in '' $ac_executable_extensions; do
  6675. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6676. as_fn_executable_p "$ac_path_lt_DD" || continue
  6677. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6678. cmp -s conftest.i conftest.out \
  6679. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6680. fi
  6681. $ac_path_lt_DD_found && break 3
  6682. done
  6683. done
  6684. done
  6685. IFS=$as_save_IFS
  6686. if test -z "$ac_cv_path_lt_DD"; then
  6687. :
  6688. fi
  6689. else
  6690. ac_cv_path_lt_DD=$lt_DD
  6691. fi
  6692. rm -f conftest.i conftest2.i conftest.out
  6693. fi
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6695. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6697. printf %s "checking how to truncate binary pipes... " >&6; }
  6698. if test ${lt_cv_truncate_bin+y}
  6699. then :
  6700. printf %s "(cached) " >&6
  6701. else $as_nop
  6702. printf 0123456789abcdef0123456789abcdef >conftest.i
  6703. cat conftest.i conftest.i >conftest2.i
  6704. lt_cv_truncate_bin=
  6705. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6706. cmp -s conftest.i conftest.out \
  6707. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6708. fi
  6709. rm -f conftest.i conftest2.i conftest.out
  6710. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6711. fi
  6712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6713. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6714. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6715. func_cc_basename ()
  6716. {
  6717. for cc_temp in $*""; do
  6718. case $cc_temp in
  6719. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6720. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6721. \-*) ;;
  6722. *) break;;
  6723. esac
  6724. done
  6725. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6726. }
  6727. # Check whether --enable-libtool-lock was given.
  6728. if test ${enable_libtool_lock+y}
  6729. then :
  6730. enableval=$enable_libtool_lock;
  6731. fi
  6732. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6733. # Some flags need to be propagated to the compiler or linker for good
  6734. # libtool support.
  6735. case $host in
  6736. ia64-*-hpux*)
  6737. # Find out what ABI is being produced by ac_compile, and set mode
  6738. # options accordingly.
  6739. echo 'int i;' > conftest.$ac_ext
  6740. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6741. (eval $ac_compile) 2>&5
  6742. ac_status=$?
  6743. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6744. test $ac_status = 0; }; then
  6745. case `/usr/bin/file conftest.$ac_objext` in
  6746. *ELF-32*)
  6747. HPUX_IA64_MODE=32
  6748. ;;
  6749. *ELF-64*)
  6750. HPUX_IA64_MODE=64
  6751. ;;
  6752. esac
  6753. fi
  6754. rm -rf conftest*
  6755. ;;
  6756. *-*-irix6*)
  6757. # Find out what ABI is being produced by ac_compile, and set linker
  6758. # options accordingly.
  6759. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6760. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6761. (eval $ac_compile) 2>&5
  6762. ac_status=$?
  6763. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6764. test $ac_status = 0; }; then
  6765. if test yes = "$lt_cv_prog_gnu_ld"; then
  6766. case `/usr/bin/file conftest.$ac_objext` in
  6767. *32-bit*)
  6768. LD="${LD-ld} -melf32bsmip"
  6769. ;;
  6770. *N32*)
  6771. LD="${LD-ld} -melf32bmipn32"
  6772. ;;
  6773. *64-bit*)
  6774. LD="${LD-ld} -melf64bmip"
  6775. ;;
  6776. esac
  6777. else
  6778. case `/usr/bin/file conftest.$ac_objext` in
  6779. *32-bit*)
  6780. LD="${LD-ld} -32"
  6781. ;;
  6782. *N32*)
  6783. LD="${LD-ld} -n32"
  6784. ;;
  6785. *64-bit*)
  6786. LD="${LD-ld} -64"
  6787. ;;
  6788. esac
  6789. fi
  6790. fi
  6791. rm -rf conftest*
  6792. ;;
  6793. mips64*-*linux*)
  6794. # Find out what ABI is being produced by ac_compile, and set linker
  6795. # options accordingly.
  6796. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6797. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6798. (eval $ac_compile) 2>&5
  6799. ac_status=$?
  6800. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6801. test $ac_status = 0; }; then
  6802. emul=elf
  6803. case `/usr/bin/file conftest.$ac_objext` in
  6804. *32-bit*)
  6805. emul="${emul}32"
  6806. ;;
  6807. *64-bit*)
  6808. emul="${emul}64"
  6809. ;;
  6810. esac
  6811. case `/usr/bin/file conftest.$ac_objext` in
  6812. *MSB*)
  6813. emul="${emul}btsmip"
  6814. ;;
  6815. *LSB*)
  6816. emul="${emul}ltsmip"
  6817. ;;
  6818. esac
  6819. case `/usr/bin/file conftest.$ac_objext` in
  6820. *N32*)
  6821. emul="${emul}n32"
  6822. ;;
  6823. esac
  6824. LD="${LD-ld} -m $emul"
  6825. fi
  6826. rm -rf conftest*
  6827. ;;
  6828. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6829. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6830. # Find out what ABI is being produced by ac_compile, and set linker
  6831. # options accordingly. Note that the listed cases only cover the
  6832. # situations where additional linker options are needed (such as when
  6833. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6834. # vice versa); the common cases where no linker options are needed do
  6835. # not appear in the list.
  6836. echo 'int i;' > conftest.$ac_ext
  6837. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6838. (eval $ac_compile) 2>&5
  6839. ac_status=$?
  6840. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6841. test $ac_status = 0; }; then
  6842. case `/usr/bin/file conftest.o` in
  6843. *32-bit*)
  6844. case $host in
  6845. x86_64-*kfreebsd*-gnu)
  6846. LD="${LD-ld} -m elf_i386_fbsd"
  6847. ;;
  6848. x86_64-*linux*)
  6849. case `/usr/bin/file conftest.o` in
  6850. *x86-64*)
  6851. LD="${LD-ld} -m elf32_x86_64"
  6852. ;;
  6853. *)
  6854. LD="${LD-ld} -m elf_i386"
  6855. ;;
  6856. esac
  6857. ;;
  6858. powerpc64le-*linux*)
  6859. LD="${LD-ld} -m elf32lppclinux"
  6860. ;;
  6861. powerpc64-*linux*)
  6862. LD="${LD-ld} -m elf32ppclinux"
  6863. ;;
  6864. s390x-*linux*)
  6865. LD="${LD-ld} -m elf_s390"
  6866. ;;
  6867. sparc64-*linux*)
  6868. LD="${LD-ld} -m elf32_sparc"
  6869. ;;
  6870. esac
  6871. ;;
  6872. *64-bit*)
  6873. case $host in
  6874. x86_64-*kfreebsd*-gnu)
  6875. LD="${LD-ld} -m elf_x86_64_fbsd"
  6876. ;;
  6877. x86_64-*linux*)
  6878. LD="${LD-ld} -m elf_x86_64"
  6879. ;;
  6880. powerpcle-*linux*)
  6881. LD="${LD-ld} -m elf64lppc"
  6882. ;;
  6883. powerpc-*linux*)
  6884. LD="${LD-ld} -m elf64ppc"
  6885. ;;
  6886. s390*-*linux*|s390*-*tpf*)
  6887. LD="${LD-ld} -m elf64_s390"
  6888. ;;
  6889. sparc*-*linux*)
  6890. LD="${LD-ld} -m elf64_sparc"
  6891. ;;
  6892. esac
  6893. ;;
  6894. esac
  6895. fi
  6896. rm -rf conftest*
  6897. ;;
  6898. *-*-sco3.2v5*)
  6899. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6900. SAVE_CFLAGS=$CFLAGS
  6901. CFLAGS="$CFLAGS -belf"
  6902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6903. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6904. if test ${lt_cv_cc_needs_belf+y}
  6905. then :
  6906. printf %s "(cached) " >&6
  6907. else $as_nop
  6908. ac_ext=c
  6909. ac_cpp='$CPP $CPPFLAGS'
  6910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6914. /* end confdefs.h. */
  6915. int
  6916. main (void)
  6917. {
  6918. ;
  6919. return 0;
  6920. }
  6921. _ACEOF
  6922. if ac_fn_c_try_link "$LINENO"
  6923. then :
  6924. lt_cv_cc_needs_belf=yes
  6925. else $as_nop
  6926. lt_cv_cc_needs_belf=no
  6927. fi
  6928. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6929. conftest$ac_exeext conftest.$ac_ext
  6930. ac_ext=c
  6931. ac_cpp='$CPP $CPPFLAGS'
  6932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6935. fi
  6936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6937. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6938. if test yes != "$lt_cv_cc_needs_belf"; then
  6939. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6940. CFLAGS=$SAVE_CFLAGS
  6941. fi
  6942. ;;
  6943. *-*solaris*)
  6944. # Find out what ABI is being produced by ac_compile, and set linker
  6945. # options accordingly.
  6946. echo 'int i;' > conftest.$ac_ext
  6947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6948. (eval $ac_compile) 2>&5
  6949. ac_status=$?
  6950. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6951. test $ac_status = 0; }; then
  6952. case `/usr/bin/file conftest.o` in
  6953. *64-bit*)
  6954. case $lt_cv_prog_gnu_ld in
  6955. yes*)
  6956. case $host in
  6957. i?86-*-solaris*|x86_64-*-solaris*)
  6958. LD="${LD-ld} -m elf_x86_64"
  6959. ;;
  6960. sparc*-*-solaris*)
  6961. LD="${LD-ld} -m elf64_sparc"
  6962. ;;
  6963. esac
  6964. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6965. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6966. LD=${LD-ld}_sol2
  6967. fi
  6968. ;;
  6969. *)
  6970. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6971. LD="${LD-ld} -64"
  6972. fi
  6973. ;;
  6974. esac
  6975. ;;
  6976. esac
  6977. fi
  6978. rm -rf conftest*
  6979. ;;
  6980. esac
  6981. need_locks=$enable_libtool_lock
  6982. if test -n "$ac_tool_prefix"; then
  6983. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6984. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6986. printf %s "checking for $ac_word... " >&6; }
  6987. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6988. then :
  6989. printf %s "(cached) " >&6
  6990. else $as_nop
  6991. if test -n "$MANIFEST_TOOL"; then
  6992. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6993. else
  6994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6995. for as_dir in $PATH
  6996. do
  6997. IFS=$as_save_IFS
  6998. case $as_dir in #(((
  6999. '') as_dir=./ ;;
  7000. */) ;;
  7001. *) as_dir=$as_dir/ ;;
  7002. esac
  7003. for ac_exec_ext in '' $ac_executable_extensions; do
  7004. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7005. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7006. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7007. break 2
  7008. fi
  7009. done
  7010. done
  7011. IFS=$as_save_IFS
  7012. fi
  7013. fi
  7014. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7015. if test -n "$MANIFEST_TOOL"; then
  7016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7017. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7018. else
  7019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7020. printf "%s\n" "no" >&6; }
  7021. fi
  7022. fi
  7023. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7024. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7025. # Extract the first word of "mt", so it can be a program name with args.
  7026. set dummy mt; ac_word=$2
  7027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7028. printf %s "checking for $ac_word... " >&6; }
  7029. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7030. then :
  7031. printf %s "(cached) " >&6
  7032. else $as_nop
  7033. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7034. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7035. else
  7036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7037. for as_dir in $PATH
  7038. do
  7039. IFS=$as_save_IFS
  7040. case $as_dir in #(((
  7041. '') as_dir=./ ;;
  7042. */) ;;
  7043. *) as_dir=$as_dir/ ;;
  7044. esac
  7045. for ac_exec_ext in '' $ac_executable_extensions; do
  7046. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7047. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7048. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7049. break 2
  7050. fi
  7051. done
  7052. done
  7053. IFS=$as_save_IFS
  7054. fi
  7055. fi
  7056. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7057. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7059. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7060. else
  7061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7062. printf "%s\n" "no" >&6; }
  7063. fi
  7064. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7065. MANIFEST_TOOL=":"
  7066. else
  7067. case $cross_compiling:$ac_tool_warned in
  7068. yes:)
  7069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7070. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7071. ac_tool_warned=yes ;;
  7072. esac
  7073. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7074. fi
  7075. else
  7076. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7077. fi
  7078. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7080. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7081. if test ${lt_cv_path_mainfest_tool+y}
  7082. then :
  7083. printf %s "(cached) " >&6
  7084. else $as_nop
  7085. lt_cv_path_mainfest_tool=no
  7086. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7087. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7088. cat conftest.err >&5
  7089. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7090. lt_cv_path_mainfest_tool=yes
  7091. fi
  7092. rm -f conftest*
  7093. fi
  7094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7095. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7096. if test yes != "$lt_cv_path_mainfest_tool"; then
  7097. MANIFEST_TOOL=:
  7098. fi
  7099. case $host_os in
  7100. rhapsody* | darwin*)
  7101. if test -n "$ac_tool_prefix"; then
  7102. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7103. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7105. printf %s "checking for $ac_word... " >&6; }
  7106. if test ${ac_cv_prog_DSYMUTIL+y}
  7107. then :
  7108. printf %s "(cached) " >&6
  7109. else $as_nop
  7110. if test -n "$DSYMUTIL"; then
  7111. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7112. else
  7113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7114. for as_dir in $PATH
  7115. do
  7116. IFS=$as_save_IFS
  7117. case $as_dir in #(((
  7118. '') as_dir=./ ;;
  7119. */) ;;
  7120. *) as_dir=$as_dir/ ;;
  7121. esac
  7122. for ac_exec_ext in '' $ac_executable_extensions; do
  7123. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7124. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7125. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7126. break 2
  7127. fi
  7128. done
  7129. done
  7130. IFS=$as_save_IFS
  7131. fi
  7132. fi
  7133. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7134. if test -n "$DSYMUTIL"; then
  7135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7136. printf "%s\n" "$DSYMUTIL" >&6; }
  7137. else
  7138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7139. printf "%s\n" "no" >&6; }
  7140. fi
  7141. fi
  7142. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7143. ac_ct_DSYMUTIL=$DSYMUTIL
  7144. # Extract the first word of "dsymutil", so it can be a program name with args.
  7145. set dummy dsymutil; ac_word=$2
  7146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7147. printf %s "checking for $ac_word... " >&6; }
  7148. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7149. then :
  7150. printf %s "(cached) " >&6
  7151. else $as_nop
  7152. if test -n "$ac_ct_DSYMUTIL"; then
  7153. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7154. else
  7155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7156. for as_dir in $PATH
  7157. do
  7158. IFS=$as_save_IFS
  7159. case $as_dir in #(((
  7160. '') as_dir=./ ;;
  7161. */) ;;
  7162. *) as_dir=$as_dir/ ;;
  7163. esac
  7164. for ac_exec_ext in '' $ac_executable_extensions; do
  7165. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7166. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7167. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7168. break 2
  7169. fi
  7170. done
  7171. done
  7172. IFS=$as_save_IFS
  7173. fi
  7174. fi
  7175. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7176. if test -n "$ac_ct_DSYMUTIL"; then
  7177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7178. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7179. else
  7180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7181. printf "%s\n" "no" >&6; }
  7182. fi
  7183. if test "x$ac_ct_DSYMUTIL" = x; then
  7184. DSYMUTIL=":"
  7185. else
  7186. case $cross_compiling:$ac_tool_warned in
  7187. yes:)
  7188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7189. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7190. ac_tool_warned=yes ;;
  7191. esac
  7192. DSYMUTIL=$ac_ct_DSYMUTIL
  7193. fi
  7194. else
  7195. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7196. fi
  7197. if test -n "$ac_tool_prefix"; then
  7198. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7199. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7201. printf %s "checking for $ac_word... " >&6; }
  7202. if test ${ac_cv_prog_NMEDIT+y}
  7203. then :
  7204. printf %s "(cached) " >&6
  7205. else $as_nop
  7206. if test -n "$NMEDIT"; then
  7207. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7208. else
  7209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7210. for as_dir in $PATH
  7211. do
  7212. IFS=$as_save_IFS
  7213. case $as_dir in #(((
  7214. '') as_dir=./ ;;
  7215. */) ;;
  7216. *) as_dir=$as_dir/ ;;
  7217. esac
  7218. for ac_exec_ext in '' $ac_executable_extensions; do
  7219. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7220. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7221. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7222. break 2
  7223. fi
  7224. done
  7225. done
  7226. IFS=$as_save_IFS
  7227. fi
  7228. fi
  7229. NMEDIT=$ac_cv_prog_NMEDIT
  7230. if test -n "$NMEDIT"; then
  7231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7232. printf "%s\n" "$NMEDIT" >&6; }
  7233. else
  7234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7235. printf "%s\n" "no" >&6; }
  7236. fi
  7237. fi
  7238. if test -z "$ac_cv_prog_NMEDIT"; then
  7239. ac_ct_NMEDIT=$NMEDIT
  7240. # Extract the first word of "nmedit", so it can be a program name with args.
  7241. set dummy nmedit; ac_word=$2
  7242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7243. printf %s "checking for $ac_word... " >&6; }
  7244. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7245. then :
  7246. printf %s "(cached) " >&6
  7247. else $as_nop
  7248. if test -n "$ac_ct_NMEDIT"; then
  7249. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7250. else
  7251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7252. for as_dir in $PATH
  7253. do
  7254. IFS=$as_save_IFS
  7255. case $as_dir in #(((
  7256. '') as_dir=./ ;;
  7257. */) ;;
  7258. *) as_dir=$as_dir/ ;;
  7259. esac
  7260. for ac_exec_ext in '' $ac_executable_extensions; do
  7261. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7262. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7263. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7264. break 2
  7265. fi
  7266. done
  7267. done
  7268. IFS=$as_save_IFS
  7269. fi
  7270. fi
  7271. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7272. if test -n "$ac_ct_NMEDIT"; then
  7273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7274. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7275. else
  7276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7277. printf "%s\n" "no" >&6; }
  7278. fi
  7279. if test "x$ac_ct_NMEDIT" = x; then
  7280. NMEDIT=":"
  7281. else
  7282. case $cross_compiling:$ac_tool_warned in
  7283. yes:)
  7284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7285. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7286. ac_tool_warned=yes ;;
  7287. esac
  7288. NMEDIT=$ac_ct_NMEDIT
  7289. fi
  7290. else
  7291. NMEDIT="$ac_cv_prog_NMEDIT"
  7292. fi
  7293. if test -n "$ac_tool_prefix"; then
  7294. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7295. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7297. printf %s "checking for $ac_word... " >&6; }
  7298. if test ${ac_cv_prog_LIPO+y}
  7299. then :
  7300. printf %s "(cached) " >&6
  7301. else $as_nop
  7302. if test -n "$LIPO"; then
  7303. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7304. else
  7305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7306. for as_dir in $PATH
  7307. do
  7308. IFS=$as_save_IFS
  7309. case $as_dir in #(((
  7310. '') as_dir=./ ;;
  7311. */) ;;
  7312. *) as_dir=$as_dir/ ;;
  7313. esac
  7314. for ac_exec_ext in '' $ac_executable_extensions; do
  7315. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7316. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7317. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7318. break 2
  7319. fi
  7320. done
  7321. done
  7322. IFS=$as_save_IFS
  7323. fi
  7324. fi
  7325. LIPO=$ac_cv_prog_LIPO
  7326. if test -n "$LIPO"; then
  7327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7328. printf "%s\n" "$LIPO" >&6; }
  7329. else
  7330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7331. printf "%s\n" "no" >&6; }
  7332. fi
  7333. fi
  7334. if test -z "$ac_cv_prog_LIPO"; then
  7335. ac_ct_LIPO=$LIPO
  7336. # Extract the first word of "lipo", so it can be a program name with args.
  7337. set dummy lipo; ac_word=$2
  7338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7339. printf %s "checking for $ac_word... " >&6; }
  7340. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7341. then :
  7342. printf %s "(cached) " >&6
  7343. else $as_nop
  7344. if test -n "$ac_ct_LIPO"; then
  7345. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7346. else
  7347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7348. for as_dir in $PATH
  7349. do
  7350. IFS=$as_save_IFS
  7351. case $as_dir in #(((
  7352. '') as_dir=./ ;;
  7353. */) ;;
  7354. *) as_dir=$as_dir/ ;;
  7355. esac
  7356. for ac_exec_ext in '' $ac_executable_extensions; do
  7357. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7358. ac_cv_prog_ac_ct_LIPO="lipo"
  7359. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7360. break 2
  7361. fi
  7362. done
  7363. done
  7364. IFS=$as_save_IFS
  7365. fi
  7366. fi
  7367. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7368. if test -n "$ac_ct_LIPO"; then
  7369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7370. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7371. else
  7372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7373. printf "%s\n" "no" >&6; }
  7374. fi
  7375. if test "x$ac_ct_LIPO" = x; then
  7376. LIPO=":"
  7377. else
  7378. case $cross_compiling:$ac_tool_warned in
  7379. yes:)
  7380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7381. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7382. ac_tool_warned=yes ;;
  7383. esac
  7384. LIPO=$ac_ct_LIPO
  7385. fi
  7386. else
  7387. LIPO="$ac_cv_prog_LIPO"
  7388. fi
  7389. if test -n "$ac_tool_prefix"; then
  7390. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7391. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7393. printf %s "checking for $ac_word... " >&6; }
  7394. if test ${ac_cv_prog_OTOOL+y}
  7395. then :
  7396. printf %s "(cached) " >&6
  7397. else $as_nop
  7398. if test -n "$OTOOL"; then
  7399. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7400. else
  7401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7402. for as_dir in $PATH
  7403. do
  7404. IFS=$as_save_IFS
  7405. case $as_dir in #(((
  7406. '') as_dir=./ ;;
  7407. */) ;;
  7408. *) as_dir=$as_dir/ ;;
  7409. esac
  7410. for ac_exec_ext in '' $ac_executable_extensions; do
  7411. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7412. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7413. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7414. break 2
  7415. fi
  7416. done
  7417. done
  7418. IFS=$as_save_IFS
  7419. fi
  7420. fi
  7421. OTOOL=$ac_cv_prog_OTOOL
  7422. if test -n "$OTOOL"; then
  7423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7424. printf "%s\n" "$OTOOL" >&6; }
  7425. else
  7426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7427. printf "%s\n" "no" >&6; }
  7428. fi
  7429. fi
  7430. if test -z "$ac_cv_prog_OTOOL"; then
  7431. ac_ct_OTOOL=$OTOOL
  7432. # Extract the first word of "otool", so it can be a program name with args.
  7433. set dummy otool; ac_word=$2
  7434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7435. printf %s "checking for $ac_word... " >&6; }
  7436. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7437. then :
  7438. printf %s "(cached) " >&6
  7439. else $as_nop
  7440. if test -n "$ac_ct_OTOOL"; then
  7441. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7442. else
  7443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7444. for as_dir in $PATH
  7445. do
  7446. IFS=$as_save_IFS
  7447. case $as_dir in #(((
  7448. '') as_dir=./ ;;
  7449. */) ;;
  7450. *) as_dir=$as_dir/ ;;
  7451. esac
  7452. for ac_exec_ext in '' $ac_executable_extensions; do
  7453. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7454. ac_cv_prog_ac_ct_OTOOL="otool"
  7455. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7456. break 2
  7457. fi
  7458. done
  7459. done
  7460. IFS=$as_save_IFS
  7461. fi
  7462. fi
  7463. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7464. if test -n "$ac_ct_OTOOL"; then
  7465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7466. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7467. else
  7468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7469. printf "%s\n" "no" >&6; }
  7470. fi
  7471. if test "x$ac_ct_OTOOL" = x; then
  7472. OTOOL=":"
  7473. else
  7474. case $cross_compiling:$ac_tool_warned in
  7475. yes:)
  7476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7477. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7478. ac_tool_warned=yes ;;
  7479. esac
  7480. OTOOL=$ac_ct_OTOOL
  7481. fi
  7482. else
  7483. OTOOL="$ac_cv_prog_OTOOL"
  7484. fi
  7485. if test -n "$ac_tool_prefix"; then
  7486. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7487. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7489. printf %s "checking for $ac_word... " >&6; }
  7490. if test ${ac_cv_prog_OTOOL64+y}
  7491. then :
  7492. printf %s "(cached) " >&6
  7493. else $as_nop
  7494. if test -n "$OTOOL64"; then
  7495. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7496. else
  7497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7498. for as_dir in $PATH
  7499. do
  7500. IFS=$as_save_IFS
  7501. case $as_dir in #(((
  7502. '') as_dir=./ ;;
  7503. */) ;;
  7504. *) as_dir=$as_dir/ ;;
  7505. esac
  7506. for ac_exec_ext in '' $ac_executable_extensions; do
  7507. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7508. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7510. break 2
  7511. fi
  7512. done
  7513. done
  7514. IFS=$as_save_IFS
  7515. fi
  7516. fi
  7517. OTOOL64=$ac_cv_prog_OTOOL64
  7518. if test -n "$OTOOL64"; then
  7519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7520. printf "%s\n" "$OTOOL64" >&6; }
  7521. else
  7522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7523. printf "%s\n" "no" >&6; }
  7524. fi
  7525. fi
  7526. if test -z "$ac_cv_prog_OTOOL64"; then
  7527. ac_ct_OTOOL64=$OTOOL64
  7528. # Extract the first word of "otool64", so it can be a program name with args.
  7529. set dummy otool64; ac_word=$2
  7530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7531. printf %s "checking for $ac_word... " >&6; }
  7532. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7533. then :
  7534. printf %s "(cached) " >&6
  7535. else $as_nop
  7536. if test -n "$ac_ct_OTOOL64"; then
  7537. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7538. else
  7539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7540. for as_dir in $PATH
  7541. do
  7542. IFS=$as_save_IFS
  7543. case $as_dir in #(((
  7544. '') as_dir=./ ;;
  7545. */) ;;
  7546. *) as_dir=$as_dir/ ;;
  7547. esac
  7548. for ac_exec_ext in '' $ac_executable_extensions; do
  7549. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7550. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7551. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7552. break 2
  7553. fi
  7554. done
  7555. done
  7556. IFS=$as_save_IFS
  7557. fi
  7558. fi
  7559. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7560. if test -n "$ac_ct_OTOOL64"; then
  7561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7562. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7563. else
  7564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7565. printf "%s\n" "no" >&6; }
  7566. fi
  7567. if test "x$ac_ct_OTOOL64" = x; then
  7568. OTOOL64=":"
  7569. else
  7570. case $cross_compiling:$ac_tool_warned in
  7571. yes:)
  7572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7573. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7574. ac_tool_warned=yes ;;
  7575. esac
  7576. OTOOL64=$ac_ct_OTOOL64
  7577. fi
  7578. else
  7579. OTOOL64="$ac_cv_prog_OTOOL64"
  7580. fi
  7581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7582. printf %s "checking for -single_module linker flag... " >&6; }
  7583. if test ${lt_cv_apple_cc_single_mod+y}
  7584. then :
  7585. printf %s "(cached) " >&6
  7586. else $as_nop
  7587. lt_cv_apple_cc_single_mod=no
  7588. if test -z "$LT_MULTI_MODULE"; then
  7589. # By default we will add the -single_module flag. You can override
  7590. # by either setting the environment variable LT_MULTI_MODULE
  7591. # non-empty at configure time, or by adding -multi_module to the
  7592. # link flags.
  7593. rm -rf libconftest.dylib*
  7594. echo "int foo(void){return 1;}" > conftest.c
  7595. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7596. -dynamiclib -Wl,-single_module conftest.c" >&5
  7597. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7598. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7599. _lt_result=$?
  7600. # If there is a non-empty error log, and "single_module"
  7601. # appears in it, assume the flag caused a linker warning
  7602. if test -s conftest.err && $GREP single_module conftest.err; then
  7603. cat conftest.err >&5
  7604. # Otherwise, if the output was created with a 0 exit code from
  7605. # the compiler, it worked.
  7606. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7607. lt_cv_apple_cc_single_mod=yes
  7608. else
  7609. cat conftest.err >&5
  7610. fi
  7611. rm -rf libconftest.dylib*
  7612. rm -f conftest.*
  7613. fi
  7614. fi
  7615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7616. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7618. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7619. if test ${lt_cv_ld_exported_symbols_list+y}
  7620. then :
  7621. printf %s "(cached) " >&6
  7622. else $as_nop
  7623. lt_cv_ld_exported_symbols_list=no
  7624. save_LDFLAGS=$LDFLAGS
  7625. echo "_main" > conftest.sym
  7626. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7628. /* end confdefs.h. */
  7629. int
  7630. main (void)
  7631. {
  7632. ;
  7633. return 0;
  7634. }
  7635. _ACEOF
  7636. if ac_fn_c_try_link "$LINENO"
  7637. then :
  7638. lt_cv_ld_exported_symbols_list=yes
  7639. else $as_nop
  7640. lt_cv_ld_exported_symbols_list=no
  7641. fi
  7642. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7643. conftest$ac_exeext conftest.$ac_ext
  7644. LDFLAGS=$save_LDFLAGS
  7645. fi
  7646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7647. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7649. printf %s "checking for -force_load linker flag... " >&6; }
  7650. if test ${lt_cv_ld_force_load+y}
  7651. then :
  7652. printf %s "(cached) " >&6
  7653. else $as_nop
  7654. lt_cv_ld_force_load=no
  7655. cat > conftest.c << _LT_EOF
  7656. int forced_loaded() { return 2;}
  7657. _LT_EOF
  7658. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7659. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7660. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  7661. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  7662. echo "$RANLIB libconftest.a" >&5
  7663. $RANLIB libconftest.a 2>&5
  7664. cat > conftest.c << _LT_EOF
  7665. int main() { return 0;}
  7666. _LT_EOF
  7667. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7668. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7669. _lt_result=$?
  7670. if test -s conftest.err && $GREP force_load conftest.err; then
  7671. cat conftest.err >&5
  7672. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7673. lt_cv_ld_force_load=yes
  7674. else
  7675. cat conftest.err >&5
  7676. fi
  7677. rm -f conftest.err libconftest.a conftest conftest.c
  7678. rm -rf conftest.dSYM
  7679. fi
  7680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7681. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7682. case $host_os in
  7683. rhapsody* | darwin1.[012])
  7684. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7685. darwin1.*)
  7686. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7687. darwin*) # darwin 5.x on
  7688. # if running on 10.5 or later, the deployment target defaults
  7689. # to the OS version, if on x86, and 10.4, the deployment
  7690. # target defaults to 10.4. Don't you love it?
  7691. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7692. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7693. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7694. 10.[012][,.]*)
  7695. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7696. 10.*)
  7697. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7698. esac
  7699. ;;
  7700. esac
  7701. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7702. _lt_dar_single_mod='$single_module'
  7703. fi
  7704. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7705. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7706. else
  7707. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7708. fi
  7709. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7710. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7711. else
  7712. _lt_dsymutil=
  7713. fi
  7714. ;;
  7715. esac
  7716. # func_munge_path_list VARIABLE PATH
  7717. # -----------------------------------
  7718. # VARIABLE is name of variable containing _space_ separated list of
  7719. # directories to be munged by the contents of PATH, which is string
  7720. # having a format:
  7721. # "DIR[:DIR]:"
  7722. # string "DIR[ DIR]" will be prepended to VARIABLE
  7723. # ":DIR[:DIR]"
  7724. # string "DIR[ DIR]" will be appended to VARIABLE
  7725. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7726. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7727. # "DIRA[ DIRA]" will be appended to VARIABLE
  7728. # "DIR[:DIR]"
  7729. # VARIABLE will be replaced by "DIR[ DIR]"
  7730. func_munge_path_list ()
  7731. {
  7732. case x$2 in
  7733. x)
  7734. ;;
  7735. *:)
  7736. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7737. ;;
  7738. x:*)
  7739. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7740. ;;
  7741. *::*)
  7742. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7743. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7744. ;;
  7745. *)
  7746. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7747. ;;
  7748. esac
  7749. }
  7750. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7751. "
  7752. if test "x$ac_cv_header_dlfcn_h" = xyes
  7753. then :
  7754. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7755. fi
  7756. # Set options
  7757. enable_win32_dll=yes
  7758. case $host in
  7759. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7760. if test -n "$ac_tool_prefix"; then
  7761. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7762. set dummy ${ac_tool_prefix}as; ac_word=$2
  7763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7764. printf %s "checking for $ac_word... " >&6; }
  7765. if test ${ac_cv_prog_AS+y}
  7766. then :
  7767. printf %s "(cached) " >&6
  7768. else $as_nop
  7769. if test -n "$AS"; then
  7770. ac_cv_prog_AS="$AS" # Let the user override the test.
  7771. else
  7772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7773. for as_dir in $PATH
  7774. do
  7775. IFS=$as_save_IFS
  7776. case $as_dir in #(((
  7777. '') as_dir=./ ;;
  7778. */) ;;
  7779. *) as_dir=$as_dir/ ;;
  7780. esac
  7781. for ac_exec_ext in '' $ac_executable_extensions; do
  7782. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7783. ac_cv_prog_AS="${ac_tool_prefix}as"
  7784. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7785. break 2
  7786. fi
  7787. done
  7788. done
  7789. IFS=$as_save_IFS
  7790. fi
  7791. fi
  7792. AS=$ac_cv_prog_AS
  7793. if test -n "$AS"; then
  7794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7795. printf "%s\n" "$AS" >&6; }
  7796. else
  7797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7798. printf "%s\n" "no" >&6; }
  7799. fi
  7800. fi
  7801. if test -z "$ac_cv_prog_AS"; then
  7802. ac_ct_AS=$AS
  7803. # Extract the first word of "as", so it can be a program name with args.
  7804. set dummy as; ac_word=$2
  7805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7806. printf %s "checking for $ac_word... " >&6; }
  7807. if test ${ac_cv_prog_ac_ct_AS+y}
  7808. then :
  7809. printf %s "(cached) " >&6
  7810. else $as_nop
  7811. if test -n "$ac_ct_AS"; then
  7812. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7813. else
  7814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7815. for as_dir in $PATH
  7816. do
  7817. IFS=$as_save_IFS
  7818. case $as_dir in #(((
  7819. '') as_dir=./ ;;
  7820. */) ;;
  7821. *) as_dir=$as_dir/ ;;
  7822. esac
  7823. for ac_exec_ext in '' $ac_executable_extensions; do
  7824. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7825. ac_cv_prog_ac_ct_AS="as"
  7826. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7827. break 2
  7828. fi
  7829. done
  7830. done
  7831. IFS=$as_save_IFS
  7832. fi
  7833. fi
  7834. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7835. if test -n "$ac_ct_AS"; then
  7836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7837. printf "%s\n" "$ac_ct_AS" >&6; }
  7838. else
  7839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7840. printf "%s\n" "no" >&6; }
  7841. fi
  7842. if test "x$ac_ct_AS" = x; then
  7843. AS="false"
  7844. else
  7845. case $cross_compiling:$ac_tool_warned in
  7846. yes:)
  7847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7848. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7849. ac_tool_warned=yes ;;
  7850. esac
  7851. AS=$ac_ct_AS
  7852. fi
  7853. else
  7854. AS="$ac_cv_prog_AS"
  7855. fi
  7856. if test -n "$ac_tool_prefix"; then
  7857. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7858. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7860. printf %s "checking for $ac_word... " >&6; }
  7861. if test ${ac_cv_prog_DLLTOOL+y}
  7862. then :
  7863. printf %s "(cached) " >&6
  7864. else $as_nop
  7865. if test -n "$DLLTOOL"; then
  7866. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7867. else
  7868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7869. for as_dir in $PATH
  7870. do
  7871. IFS=$as_save_IFS
  7872. case $as_dir in #(((
  7873. '') as_dir=./ ;;
  7874. */) ;;
  7875. *) as_dir=$as_dir/ ;;
  7876. esac
  7877. for ac_exec_ext in '' $ac_executable_extensions; do
  7878. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7879. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7880. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7881. break 2
  7882. fi
  7883. done
  7884. done
  7885. IFS=$as_save_IFS
  7886. fi
  7887. fi
  7888. DLLTOOL=$ac_cv_prog_DLLTOOL
  7889. if test -n "$DLLTOOL"; then
  7890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7891. printf "%s\n" "$DLLTOOL" >&6; }
  7892. else
  7893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7894. printf "%s\n" "no" >&6; }
  7895. fi
  7896. fi
  7897. if test -z "$ac_cv_prog_DLLTOOL"; then
  7898. ac_ct_DLLTOOL=$DLLTOOL
  7899. # Extract the first word of "dlltool", so it can be a program name with args.
  7900. set dummy dlltool; ac_word=$2
  7901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7902. printf %s "checking for $ac_word... " >&6; }
  7903. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7904. then :
  7905. printf %s "(cached) " >&6
  7906. else $as_nop
  7907. if test -n "$ac_ct_DLLTOOL"; then
  7908. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7909. else
  7910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7911. for as_dir in $PATH
  7912. do
  7913. IFS=$as_save_IFS
  7914. case $as_dir in #(((
  7915. '') as_dir=./ ;;
  7916. */) ;;
  7917. *) as_dir=$as_dir/ ;;
  7918. esac
  7919. for ac_exec_ext in '' $ac_executable_extensions; do
  7920. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7921. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7922. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7923. break 2
  7924. fi
  7925. done
  7926. done
  7927. IFS=$as_save_IFS
  7928. fi
  7929. fi
  7930. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7931. if test -n "$ac_ct_DLLTOOL"; then
  7932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7933. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7934. else
  7935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7936. printf "%s\n" "no" >&6; }
  7937. fi
  7938. if test "x$ac_ct_DLLTOOL" = x; then
  7939. DLLTOOL="false"
  7940. else
  7941. case $cross_compiling:$ac_tool_warned in
  7942. yes:)
  7943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7944. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7945. ac_tool_warned=yes ;;
  7946. esac
  7947. DLLTOOL=$ac_ct_DLLTOOL
  7948. fi
  7949. else
  7950. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7951. fi
  7952. if test -n "$ac_tool_prefix"; then
  7953. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7954. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7956. printf %s "checking for $ac_word... " >&6; }
  7957. if test ${ac_cv_prog_OBJDUMP+y}
  7958. then :
  7959. printf %s "(cached) " >&6
  7960. else $as_nop
  7961. if test -n "$OBJDUMP"; then
  7962. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7963. else
  7964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7965. for as_dir in $PATH
  7966. do
  7967. IFS=$as_save_IFS
  7968. case $as_dir in #(((
  7969. '') as_dir=./ ;;
  7970. */) ;;
  7971. *) as_dir=$as_dir/ ;;
  7972. esac
  7973. for ac_exec_ext in '' $ac_executable_extensions; do
  7974. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7975. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7977. break 2
  7978. fi
  7979. done
  7980. done
  7981. IFS=$as_save_IFS
  7982. fi
  7983. fi
  7984. OBJDUMP=$ac_cv_prog_OBJDUMP
  7985. if test -n "$OBJDUMP"; then
  7986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7987. printf "%s\n" "$OBJDUMP" >&6; }
  7988. else
  7989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7990. printf "%s\n" "no" >&6; }
  7991. fi
  7992. fi
  7993. if test -z "$ac_cv_prog_OBJDUMP"; then
  7994. ac_ct_OBJDUMP=$OBJDUMP
  7995. # Extract the first word of "objdump", so it can be a program name with args.
  7996. set dummy objdump; ac_word=$2
  7997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7998. printf %s "checking for $ac_word... " >&6; }
  7999. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8000. then :
  8001. printf %s "(cached) " >&6
  8002. else $as_nop
  8003. if test -n "$ac_ct_OBJDUMP"; then
  8004. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8005. else
  8006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8007. for as_dir in $PATH
  8008. do
  8009. IFS=$as_save_IFS
  8010. case $as_dir in #(((
  8011. '') as_dir=./ ;;
  8012. */) ;;
  8013. *) as_dir=$as_dir/ ;;
  8014. esac
  8015. for ac_exec_ext in '' $ac_executable_extensions; do
  8016. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8017. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8018. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8019. break 2
  8020. fi
  8021. done
  8022. done
  8023. IFS=$as_save_IFS
  8024. fi
  8025. fi
  8026. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8027. if test -n "$ac_ct_OBJDUMP"; then
  8028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8029. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8030. else
  8031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8032. printf "%s\n" "no" >&6; }
  8033. fi
  8034. if test "x$ac_ct_OBJDUMP" = x; then
  8035. OBJDUMP="false"
  8036. else
  8037. case $cross_compiling:$ac_tool_warned in
  8038. yes:)
  8039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8040. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8041. ac_tool_warned=yes ;;
  8042. esac
  8043. OBJDUMP=$ac_ct_OBJDUMP
  8044. fi
  8045. else
  8046. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8047. fi
  8048. ;;
  8049. esac
  8050. test -z "$AS" && AS=as
  8051. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8052. test -z "$OBJDUMP" && OBJDUMP=objdump
  8053. enable_dlopen=no
  8054. # Check whether --enable-shared was given.
  8055. if test ${enable_shared+y}
  8056. then :
  8057. enableval=$enable_shared; p=${PACKAGE-default}
  8058. case $enableval in
  8059. yes) enable_shared=yes ;;
  8060. no) enable_shared=no ;;
  8061. *)
  8062. enable_shared=no
  8063. # Look at the argument we got. We use all the common list separators.
  8064. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8065. for pkg in $enableval; do
  8066. IFS=$lt_save_ifs
  8067. if test "X$pkg" = "X$p"; then
  8068. enable_shared=yes
  8069. fi
  8070. done
  8071. IFS=$lt_save_ifs
  8072. ;;
  8073. esac
  8074. else $as_nop
  8075. enable_shared=yes
  8076. fi
  8077. # Check whether --enable-static was given.
  8078. if test ${enable_static+y}
  8079. then :
  8080. enableval=$enable_static; p=${PACKAGE-default}
  8081. case $enableval in
  8082. yes) enable_static=yes ;;
  8083. no) enable_static=no ;;
  8084. *)
  8085. enable_static=no
  8086. # Look at the argument we got. We use all the common list separators.
  8087. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8088. for pkg in $enableval; do
  8089. IFS=$lt_save_ifs
  8090. if test "X$pkg" = "X$p"; then
  8091. enable_static=yes
  8092. fi
  8093. done
  8094. IFS=$lt_save_ifs
  8095. ;;
  8096. esac
  8097. else $as_nop
  8098. enable_static=yes
  8099. fi
  8100. # Check whether --with-pic was given.
  8101. if test ${with_pic+y}
  8102. then :
  8103. withval=$with_pic; lt_p=${PACKAGE-default}
  8104. case $withval in
  8105. yes|no) pic_mode=$withval ;;
  8106. *)
  8107. pic_mode=default
  8108. # Look at the argument we got. We use all the common list separators.
  8109. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8110. for lt_pkg in $withval; do
  8111. IFS=$lt_save_ifs
  8112. if test "X$lt_pkg" = "X$lt_p"; then
  8113. pic_mode=yes
  8114. fi
  8115. done
  8116. IFS=$lt_save_ifs
  8117. ;;
  8118. esac
  8119. else $as_nop
  8120. pic_mode=default
  8121. fi
  8122. # Check whether --enable-fast-install was given.
  8123. if test ${enable_fast_install+y}
  8124. then :
  8125. enableval=$enable_fast_install; p=${PACKAGE-default}
  8126. case $enableval in
  8127. yes) enable_fast_install=yes ;;
  8128. no) enable_fast_install=no ;;
  8129. *)
  8130. enable_fast_install=no
  8131. # Look at the argument we got. We use all the common list separators.
  8132. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8133. for pkg in $enableval; do
  8134. IFS=$lt_save_ifs
  8135. if test "X$pkg" = "X$p"; then
  8136. enable_fast_install=yes
  8137. fi
  8138. done
  8139. IFS=$lt_save_ifs
  8140. ;;
  8141. esac
  8142. else $as_nop
  8143. enable_fast_install=yes
  8144. fi
  8145. shared_archive_member_spec=
  8146. case $host,$enable_shared in
  8147. power*-*-aix[5-9]*,yes)
  8148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8149. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8150. # Check whether --with-aix-soname was given.
  8151. if test ${with_aix_soname+y}
  8152. then :
  8153. withval=$with_aix_soname; case $withval in
  8154. aix|svr4|both)
  8155. ;;
  8156. *)
  8157. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8158. ;;
  8159. esac
  8160. lt_cv_with_aix_soname=$with_aix_soname
  8161. else $as_nop
  8162. if test ${lt_cv_with_aix_soname+y}
  8163. then :
  8164. printf %s "(cached) " >&6
  8165. else $as_nop
  8166. lt_cv_with_aix_soname=aix
  8167. fi
  8168. with_aix_soname=$lt_cv_with_aix_soname
  8169. fi
  8170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8171. printf "%s\n" "$with_aix_soname" >&6; }
  8172. if test aix != "$with_aix_soname"; then
  8173. # For the AIX way of multilib, we name the shared archive member
  8174. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8175. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8176. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8177. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8178. if test 64 = "${OBJECT_MODE-32}"; then
  8179. shared_archive_member_spec=shr_64
  8180. else
  8181. shared_archive_member_spec=shr
  8182. fi
  8183. fi
  8184. ;;
  8185. *)
  8186. with_aix_soname=aix
  8187. ;;
  8188. esac
  8189. # This can be used to rebuild libtool when needed
  8190. LIBTOOL_DEPS=$ltmain
  8191. # Always use our own libtool.
  8192. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8193. test -z "$LN_S" && LN_S="ln -s"
  8194. if test -n "${ZSH_VERSION+set}"; then
  8195. setopt NO_GLOB_SUBST
  8196. fi
  8197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8198. printf %s "checking for objdir... " >&6; }
  8199. if test ${lt_cv_objdir+y}
  8200. then :
  8201. printf %s "(cached) " >&6
  8202. else $as_nop
  8203. rm -f .libs 2>/dev/null
  8204. mkdir .libs 2>/dev/null
  8205. if test -d .libs; then
  8206. lt_cv_objdir=.libs
  8207. else
  8208. # MS-DOS does not allow filenames that begin with a dot.
  8209. lt_cv_objdir=_libs
  8210. fi
  8211. rmdir .libs 2>/dev/null
  8212. fi
  8213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8214. printf "%s\n" "$lt_cv_objdir" >&6; }
  8215. objdir=$lt_cv_objdir
  8216. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8217. case $host_os in
  8218. aix3*)
  8219. # AIX sometimes has problems with the GCC collect2 program. For some
  8220. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8221. # vanish in a puff of smoke.
  8222. if test set != "${COLLECT_NAMES+set}"; then
  8223. COLLECT_NAMES=
  8224. export COLLECT_NAMES
  8225. fi
  8226. ;;
  8227. esac
  8228. # Global variables:
  8229. ofile=libtool
  8230. can_build_shared=yes
  8231. # All known linkers require a '.a' archive for static linking (except MSVC and
  8232. # ICC, which need '.lib').
  8233. libext=a
  8234. with_gnu_ld=$lt_cv_prog_gnu_ld
  8235. old_CC=$CC
  8236. old_CFLAGS=$CFLAGS
  8237. # Set sane defaults for various variables
  8238. test -z "$CC" && CC=cc
  8239. test -z "$LTCC" && LTCC=$CC
  8240. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8241. test -z "$LD" && LD=ld
  8242. test -z "$ac_objext" && ac_objext=o
  8243. func_cc_basename $compiler
  8244. cc_basename=$func_cc_basename_result
  8245. # Only perform the check for file, if the check method requires it
  8246. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8247. case $deplibs_check_method in
  8248. file_magic*)
  8249. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8251. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8252. if test ${lt_cv_path_MAGIC_CMD+y}
  8253. then :
  8254. printf %s "(cached) " >&6
  8255. else $as_nop
  8256. case $MAGIC_CMD in
  8257. [\\/*] | ?:[\\/]*)
  8258. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8259. ;;
  8260. *)
  8261. lt_save_MAGIC_CMD=$MAGIC_CMD
  8262. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8263. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8264. for ac_dir in $ac_dummy; do
  8265. IFS=$lt_save_ifs
  8266. test -z "$ac_dir" && ac_dir=.
  8267. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8268. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8269. if test -n "$file_magic_test_file"; then
  8270. case $deplibs_check_method in
  8271. "file_magic "*)
  8272. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8273. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8274. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8275. $EGREP "$file_magic_regex" > /dev/null; then
  8276. :
  8277. else
  8278. cat <<_LT_EOF 1>&2
  8279. *** Warning: the command libtool uses to detect shared libraries,
  8280. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8281. *** The result is that libtool may fail to recognize shared libraries
  8282. *** as such. This will affect the creation of libtool libraries that
  8283. *** depend on shared libraries, but programs linked with such libtool
  8284. *** libraries will work regardless of this problem. Nevertheless, you
  8285. *** may want to report the problem to your system manager and/or to
  8286. *** [email protected]
  8287. _LT_EOF
  8288. fi ;;
  8289. esac
  8290. fi
  8291. break
  8292. fi
  8293. done
  8294. IFS=$lt_save_ifs
  8295. MAGIC_CMD=$lt_save_MAGIC_CMD
  8296. ;;
  8297. esac
  8298. fi
  8299. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8300. if test -n "$MAGIC_CMD"; then
  8301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8302. printf "%s\n" "$MAGIC_CMD" >&6; }
  8303. else
  8304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8305. printf "%s\n" "no" >&6; }
  8306. fi
  8307. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8308. if test -n "$ac_tool_prefix"; then
  8309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8310. printf %s "checking for file... " >&6; }
  8311. if test ${lt_cv_path_MAGIC_CMD+y}
  8312. then :
  8313. printf %s "(cached) " >&6
  8314. else $as_nop
  8315. case $MAGIC_CMD in
  8316. [\\/*] | ?:[\\/]*)
  8317. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8318. ;;
  8319. *)
  8320. lt_save_MAGIC_CMD=$MAGIC_CMD
  8321. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8322. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8323. for ac_dir in $ac_dummy; do
  8324. IFS=$lt_save_ifs
  8325. test -z "$ac_dir" && ac_dir=.
  8326. if test -f "$ac_dir/file"; then
  8327. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8328. if test -n "$file_magic_test_file"; then
  8329. case $deplibs_check_method in
  8330. "file_magic "*)
  8331. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8332. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8333. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8334. $EGREP "$file_magic_regex" > /dev/null; then
  8335. :
  8336. else
  8337. cat <<_LT_EOF 1>&2
  8338. *** Warning: the command libtool uses to detect shared libraries,
  8339. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8340. *** The result is that libtool may fail to recognize shared libraries
  8341. *** as such. This will affect the creation of libtool libraries that
  8342. *** depend on shared libraries, but programs linked with such libtool
  8343. *** libraries will work regardless of this problem. Nevertheless, you
  8344. *** may want to report the problem to your system manager and/or to
  8345. *** [email protected]
  8346. _LT_EOF
  8347. fi ;;
  8348. esac
  8349. fi
  8350. break
  8351. fi
  8352. done
  8353. IFS=$lt_save_ifs
  8354. MAGIC_CMD=$lt_save_MAGIC_CMD
  8355. ;;
  8356. esac
  8357. fi
  8358. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8359. if test -n "$MAGIC_CMD"; then
  8360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8361. printf "%s\n" "$MAGIC_CMD" >&6; }
  8362. else
  8363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8364. printf "%s\n" "no" >&6; }
  8365. fi
  8366. else
  8367. MAGIC_CMD=:
  8368. fi
  8369. fi
  8370. fi
  8371. ;;
  8372. esac
  8373. # Use C for the default configuration in the libtool script
  8374. lt_save_CC=$CC
  8375. ac_ext=c
  8376. ac_cpp='$CPP $CPPFLAGS'
  8377. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8378. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8379. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8380. # Source file extension for C test sources.
  8381. ac_ext=c
  8382. # Object file extension for compiled C test sources.
  8383. objext=o
  8384. objext=$objext
  8385. # Code to be used in simple compile tests
  8386. lt_simple_compile_test_code="int some_variable = 0;"
  8387. # Code to be used in simple link tests
  8388. lt_simple_link_test_code='int main(){return(0);}'
  8389. # If no C compiler was specified, use CC.
  8390. LTCC=${LTCC-"$CC"}
  8391. # If no C compiler flags were specified, use CFLAGS.
  8392. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8393. # Allow CC to be a program name with arguments.
  8394. compiler=$CC
  8395. # Save the default compiler, since it gets overwritten when the other
  8396. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8397. compiler_DEFAULT=$CC
  8398. # save warnings/boilerplate of simple test code
  8399. ac_outfile=conftest.$ac_objext
  8400. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8401. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8402. _lt_compiler_boilerplate=`cat conftest.err`
  8403. $RM conftest*
  8404. ac_outfile=conftest.$ac_objext
  8405. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8406. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8407. _lt_linker_boilerplate=`cat conftest.err`
  8408. $RM -r conftest*
  8409. ## CAVEAT EMPTOR:
  8410. ## There is no encapsulation within the following macros, do not change
  8411. ## the running order or otherwise move them around unless you know exactly
  8412. ## what you are doing...
  8413. if test -n "$compiler"; then
  8414. lt_prog_compiler_no_builtin_flag=
  8415. if test yes = "$GCC"; then
  8416. case $cc_basename in
  8417. nvcc*)
  8418. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8419. *)
  8420. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8421. esac
  8422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8423. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8424. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8425. then :
  8426. printf %s "(cached) " >&6
  8427. else $as_nop
  8428. lt_cv_prog_compiler_rtti_exceptions=no
  8429. ac_outfile=conftest.$ac_objext
  8430. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8431. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8432. # Insert the option either (1) after the last *FLAGS variable, or
  8433. # (2) before a word containing "conftest.", or (3) at the end.
  8434. # Note that $ac_compile itself does not contain backslashes and begins
  8435. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8436. # The option is referenced via a variable to avoid confusing sed.
  8437. lt_compile=`echo "$ac_compile" | $SED \
  8438. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8439. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8440. -e 's:$: $lt_compiler_flag:'`
  8441. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8442. (eval "$lt_compile" 2>conftest.err)
  8443. ac_status=$?
  8444. cat conftest.err >&5
  8445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8446. if (exit $ac_status) && test -s "$ac_outfile"; then
  8447. # The compiler can only warn and ignore the option if not recognized
  8448. # So say no if there are warnings other than the usual output.
  8449. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8450. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8451. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8452. lt_cv_prog_compiler_rtti_exceptions=yes
  8453. fi
  8454. fi
  8455. $RM conftest*
  8456. fi
  8457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8458. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8459. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8460. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8461. else
  8462. :
  8463. fi
  8464. fi
  8465. lt_prog_compiler_wl=
  8466. lt_prog_compiler_pic=
  8467. lt_prog_compiler_static=
  8468. if test yes = "$GCC"; then
  8469. lt_prog_compiler_wl='-Wl,'
  8470. lt_prog_compiler_static='-static'
  8471. case $host_os in
  8472. aix*)
  8473. # All AIX code is PIC.
  8474. if test ia64 = "$host_cpu"; then
  8475. # AIX 5 now supports IA64 processor
  8476. lt_prog_compiler_static='-Bstatic'
  8477. fi
  8478. lt_prog_compiler_pic='-fPIC'
  8479. ;;
  8480. amigaos*)
  8481. case $host_cpu in
  8482. powerpc)
  8483. # see comment about AmigaOS4 .so support
  8484. lt_prog_compiler_pic='-fPIC'
  8485. ;;
  8486. m68k)
  8487. # FIXME: we need at least 68020 code to build shared libraries, but
  8488. # adding the '-m68020' flag to GCC prevents building anything better,
  8489. # like '-m68040'.
  8490. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8491. ;;
  8492. esac
  8493. ;;
  8494. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8495. # PIC is the default for these OSes.
  8496. ;;
  8497. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8498. # This hack is so that the source file can tell whether it is being
  8499. # built for inclusion in a dll (and should export symbols for example).
  8500. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8501. # (--disable-auto-import) libraries
  8502. lt_prog_compiler_pic='-DDLL_EXPORT'
  8503. case $host_os in
  8504. os2*)
  8505. lt_prog_compiler_static='$wl-static'
  8506. ;;
  8507. esac
  8508. ;;
  8509. darwin* | rhapsody*)
  8510. # PIC is the default on this platform
  8511. # Common symbols not allowed in MH_DYLIB files
  8512. lt_prog_compiler_pic='-fno-common'
  8513. ;;
  8514. haiku*)
  8515. # PIC is the default for Haiku.
  8516. # The "-static" flag exists, but is broken.
  8517. lt_prog_compiler_static=
  8518. ;;
  8519. hpux*)
  8520. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8521. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8522. # sets the default TLS model and affects inlining.
  8523. case $host_cpu in
  8524. hppa*64*)
  8525. # +Z the default
  8526. ;;
  8527. *)
  8528. lt_prog_compiler_pic='-fPIC'
  8529. ;;
  8530. esac
  8531. ;;
  8532. interix[3-9]*)
  8533. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8534. # Instead, we relocate shared libraries at runtime.
  8535. ;;
  8536. msdosdjgpp*)
  8537. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8538. # on systems that don't support them.
  8539. lt_prog_compiler_can_build_shared=no
  8540. enable_shared=no
  8541. ;;
  8542. *nto* | *qnx*)
  8543. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8544. # it will coredump.
  8545. lt_prog_compiler_pic='-fPIC -shared'
  8546. ;;
  8547. sysv4*MP*)
  8548. if test -d /usr/nec; then
  8549. lt_prog_compiler_pic=-Kconform_pic
  8550. fi
  8551. ;;
  8552. *)
  8553. lt_prog_compiler_pic='-fPIC'
  8554. ;;
  8555. esac
  8556. case $cc_basename in
  8557. nvcc*) # Cuda Compiler Driver 2.2
  8558. lt_prog_compiler_wl='-Xlinker '
  8559. if test -n "$lt_prog_compiler_pic"; then
  8560. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8561. fi
  8562. ;;
  8563. esac
  8564. else
  8565. # PORTME Check for flag to pass linker flags through the system compiler.
  8566. case $host_os in
  8567. aix*)
  8568. lt_prog_compiler_wl='-Wl,'
  8569. if test ia64 = "$host_cpu"; then
  8570. # AIX 5 now supports IA64 processor
  8571. lt_prog_compiler_static='-Bstatic'
  8572. else
  8573. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8574. fi
  8575. ;;
  8576. darwin* | rhapsody*)
  8577. # PIC is the default on this platform
  8578. # Common symbols not allowed in MH_DYLIB files
  8579. lt_prog_compiler_pic='-fno-common'
  8580. case $cc_basename in
  8581. nagfor*)
  8582. # NAG Fortran compiler
  8583. lt_prog_compiler_wl='-Wl,-Wl,,'
  8584. lt_prog_compiler_pic='-PIC'
  8585. lt_prog_compiler_static='-Bstatic'
  8586. ;;
  8587. esac
  8588. ;;
  8589. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8590. # This hack is so that the source file can tell whether it is being
  8591. # built for inclusion in a dll (and should export symbols for example).
  8592. lt_prog_compiler_pic='-DDLL_EXPORT'
  8593. case $host_os in
  8594. os2*)
  8595. lt_prog_compiler_static='$wl-static'
  8596. ;;
  8597. esac
  8598. ;;
  8599. hpux9* | hpux10* | hpux11*)
  8600. lt_prog_compiler_wl='-Wl,'
  8601. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8602. # not for PA HP-UX.
  8603. case $host_cpu in
  8604. hppa*64*|ia64*)
  8605. # +Z the default
  8606. ;;
  8607. *)
  8608. lt_prog_compiler_pic='+Z'
  8609. ;;
  8610. esac
  8611. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8612. lt_prog_compiler_static='$wl-a ${wl}archive'
  8613. ;;
  8614. irix5* | irix6* | nonstopux*)
  8615. lt_prog_compiler_wl='-Wl,'
  8616. # PIC (with -KPIC) is the default.
  8617. lt_prog_compiler_static='-non_shared'
  8618. ;;
  8619. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8620. case $cc_basename in
  8621. # old Intel for x86_64, which still supported -KPIC.
  8622. ecc*)
  8623. lt_prog_compiler_wl='-Wl,'
  8624. lt_prog_compiler_pic='-KPIC'
  8625. lt_prog_compiler_static='-static'
  8626. ;;
  8627. # icc used to be incompatible with GCC.
  8628. # ICC 10 doesn't accept -KPIC any more.
  8629. icc* | ifort*)
  8630. lt_prog_compiler_wl='-Wl,'
  8631. lt_prog_compiler_pic='-fPIC'
  8632. lt_prog_compiler_static='-static'
  8633. ;;
  8634. # Lahey Fortran 8.1.
  8635. lf95*)
  8636. lt_prog_compiler_wl='-Wl,'
  8637. lt_prog_compiler_pic='--shared'
  8638. lt_prog_compiler_static='--static'
  8639. ;;
  8640. nagfor*)
  8641. # NAG Fortran compiler
  8642. lt_prog_compiler_wl='-Wl,-Wl,,'
  8643. lt_prog_compiler_pic='-PIC'
  8644. lt_prog_compiler_static='-Bstatic'
  8645. ;;
  8646. tcc*)
  8647. # Fabrice Bellard et al's Tiny C Compiler
  8648. lt_prog_compiler_wl='-Wl,'
  8649. lt_prog_compiler_pic='-fPIC'
  8650. lt_prog_compiler_static='-static'
  8651. ;;
  8652. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8653. # Portland Group compilers (*not* the Pentium gcc compiler,
  8654. # which looks to be a dead project)
  8655. lt_prog_compiler_wl='-Wl,'
  8656. lt_prog_compiler_pic='-fpic'
  8657. lt_prog_compiler_static='-Bstatic'
  8658. ;;
  8659. ccc*)
  8660. lt_prog_compiler_wl='-Wl,'
  8661. # All Alpha code is PIC.
  8662. lt_prog_compiler_static='-non_shared'
  8663. ;;
  8664. xl* | bgxl* | bgf* | mpixl*)
  8665. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8666. lt_prog_compiler_wl='-Wl,'
  8667. lt_prog_compiler_pic='-qpic'
  8668. lt_prog_compiler_static='-qstaticlink'
  8669. ;;
  8670. *)
  8671. case `$CC -V 2>&1 | sed 5q` in
  8672. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8673. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8674. lt_prog_compiler_pic='-KPIC'
  8675. lt_prog_compiler_static='-Bstatic'
  8676. lt_prog_compiler_wl=''
  8677. ;;
  8678. *Sun\ F* | *Sun*Fortran*)
  8679. lt_prog_compiler_pic='-KPIC'
  8680. lt_prog_compiler_static='-Bstatic'
  8681. lt_prog_compiler_wl='-Qoption ld '
  8682. ;;
  8683. *Sun\ C*)
  8684. # Sun C 5.9
  8685. lt_prog_compiler_pic='-KPIC'
  8686. lt_prog_compiler_static='-Bstatic'
  8687. lt_prog_compiler_wl='-Wl,'
  8688. ;;
  8689. *Intel*\ [CF]*Compiler*)
  8690. lt_prog_compiler_wl='-Wl,'
  8691. lt_prog_compiler_pic='-fPIC'
  8692. lt_prog_compiler_static='-static'
  8693. ;;
  8694. *Portland\ Group*)
  8695. lt_prog_compiler_wl='-Wl,'
  8696. lt_prog_compiler_pic='-fpic'
  8697. lt_prog_compiler_static='-Bstatic'
  8698. ;;
  8699. esac
  8700. ;;
  8701. esac
  8702. ;;
  8703. newsos6)
  8704. lt_prog_compiler_pic='-KPIC'
  8705. lt_prog_compiler_static='-Bstatic'
  8706. ;;
  8707. *nto* | *qnx*)
  8708. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8709. # it will coredump.
  8710. lt_prog_compiler_pic='-fPIC -shared'
  8711. ;;
  8712. osf3* | osf4* | osf5*)
  8713. lt_prog_compiler_wl='-Wl,'
  8714. # All OSF/1 code is PIC.
  8715. lt_prog_compiler_static='-non_shared'
  8716. ;;
  8717. rdos*)
  8718. lt_prog_compiler_static='-non_shared'
  8719. ;;
  8720. solaris*)
  8721. lt_prog_compiler_pic='-KPIC'
  8722. lt_prog_compiler_static='-Bstatic'
  8723. case $cc_basename in
  8724. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8725. lt_prog_compiler_wl='-Qoption ld ';;
  8726. *)
  8727. lt_prog_compiler_wl='-Wl,';;
  8728. esac
  8729. ;;
  8730. sunos4*)
  8731. lt_prog_compiler_wl='-Qoption ld '
  8732. lt_prog_compiler_pic='-PIC'
  8733. lt_prog_compiler_static='-Bstatic'
  8734. ;;
  8735. sysv4 | sysv4.2uw2* | sysv4.3*)
  8736. lt_prog_compiler_wl='-Wl,'
  8737. lt_prog_compiler_pic='-KPIC'
  8738. lt_prog_compiler_static='-Bstatic'
  8739. ;;
  8740. sysv4*MP*)
  8741. if test -d /usr/nec; then
  8742. lt_prog_compiler_pic='-Kconform_pic'
  8743. lt_prog_compiler_static='-Bstatic'
  8744. fi
  8745. ;;
  8746. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8747. lt_prog_compiler_wl='-Wl,'
  8748. lt_prog_compiler_pic='-KPIC'
  8749. lt_prog_compiler_static='-Bstatic'
  8750. ;;
  8751. unicos*)
  8752. lt_prog_compiler_wl='-Wl,'
  8753. lt_prog_compiler_can_build_shared=no
  8754. ;;
  8755. uts4*)
  8756. lt_prog_compiler_pic='-pic'
  8757. lt_prog_compiler_static='-Bstatic'
  8758. ;;
  8759. *)
  8760. lt_prog_compiler_can_build_shared=no
  8761. ;;
  8762. esac
  8763. fi
  8764. case $host_os in
  8765. # For platforms that do not support PIC, -DPIC is meaningless:
  8766. *djgpp*)
  8767. lt_prog_compiler_pic=
  8768. ;;
  8769. *)
  8770. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8771. ;;
  8772. esac
  8773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8774. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8775. if test ${lt_cv_prog_compiler_pic+y}
  8776. then :
  8777. printf %s "(cached) " >&6
  8778. else $as_nop
  8779. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8780. fi
  8781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8782. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8783. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8784. #
  8785. # Check to make sure the PIC flag actually works.
  8786. #
  8787. if test -n "$lt_prog_compiler_pic"; then
  8788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8789. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8790. if test ${lt_cv_prog_compiler_pic_works+y}
  8791. then :
  8792. printf %s "(cached) " >&6
  8793. else $as_nop
  8794. lt_cv_prog_compiler_pic_works=no
  8795. ac_outfile=conftest.$ac_objext
  8796. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8797. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8798. # Insert the option either (1) after the last *FLAGS variable, or
  8799. # (2) before a word containing "conftest.", or (3) at the end.
  8800. # Note that $ac_compile itself does not contain backslashes and begins
  8801. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8802. # The option is referenced via a variable to avoid confusing sed.
  8803. lt_compile=`echo "$ac_compile" | $SED \
  8804. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8805. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8806. -e 's:$: $lt_compiler_flag:'`
  8807. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8808. (eval "$lt_compile" 2>conftest.err)
  8809. ac_status=$?
  8810. cat conftest.err >&5
  8811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8812. if (exit $ac_status) && test -s "$ac_outfile"; then
  8813. # The compiler can only warn and ignore the option if not recognized
  8814. # So say no if there are warnings other than the usual output.
  8815. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8816. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8817. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8818. lt_cv_prog_compiler_pic_works=yes
  8819. fi
  8820. fi
  8821. $RM conftest*
  8822. fi
  8823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8824. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8825. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8826. case $lt_prog_compiler_pic in
  8827. "" | " "*) ;;
  8828. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8829. esac
  8830. else
  8831. lt_prog_compiler_pic=
  8832. lt_prog_compiler_can_build_shared=no
  8833. fi
  8834. fi
  8835. #
  8836. # Check to make sure the static flag actually works.
  8837. #
  8838. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8840. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8841. if test ${lt_cv_prog_compiler_static_works+y}
  8842. then :
  8843. printf %s "(cached) " >&6
  8844. else $as_nop
  8845. lt_cv_prog_compiler_static_works=no
  8846. save_LDFLAGS=$LDFLAGS
  8847. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8848. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8849. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8850. # The linker can only warn and ignore the option if not recognized
  8851. # So say no if there are warnings
  8852. if test -s conftest.err; then
  8853. # Append any errors to the config.log.
  8854. cat conftest.err 1>&5
  8855. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8856. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8857. if diff conftest.exp conftest.er2 >/dev/null; then
  8858. lt_cv_prog_compiler_static_works=yes
  8859. fi
  8860. else
  8861. lt_cv_prog_compiler_static_works=yes
  8862. fi
  8863. fi
  8864. $RM -r conftest*
  8865. LDFLAGS=$save_LDFLAGS
  8866. fi
  8867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8868. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8869. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8870. :
  8871. else
  8872. lt_prog_compiler_static=
  8873. fi
  8874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8875. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8876. if test ${lt_cv_prog_compiler_c_o+y}
  8877. then :
  8878. printf %s "(cached) " >&6
  8879. else $as_nop
  8880. lt_cv_prog_compiler_c_o=no
  8881. $RM -r conftest 2>/dev/null
  8882. mkdir conftest
  8883. cd conftest
  8884. mkdir out
  8885. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8886. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8887. # Insert the option either (1) after the last *FLAGS variable, or
  8888. # (2) before a word containing "conftest.", or (3) at the end.
  8889. # Note that $ac_compile itself does not contain backslashes and begins
  8890. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8891. lt_compile=`echo "$ac_compile" | $SED \
  8892. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8893. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8894. -e 's:$: $lt_compiler_flag:'`
  8895. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8896. (eval "$lt_compile" 2>out/conftest.err)
  8897. ac_status=$?
  8898. cat out/conftest.err >&5
  8899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8900. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8901. then
  8902. # The compiler can only warn and ignore the option if not recognized
  8903. # So say no if there are warnings
  8904. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8905. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8906. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8907. lt_cv_prog_compiler_c_o=yes
  8908. fi
  8909. fi
  8910. chmod u+w . 2>&5
  8911. $RM conftest*
  8912. # SGI C++ compiler will create directory out/ii_files/ for
  8913. # template instantiation
  8914. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8915. $RM out/* && rmdir out
  8916. cd ..
  8917. $RM -r conftest
  8918. $RM conftest*
  8919. fi
  8920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8921. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8923. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8924. if test ${lt_cv_prog_compiler_c_o+y}
  8925. then :
  8926. printf %s "(cached) " >&6
  8927. else $as_nop
  8928. lt_cv_prog_compiler_c_o=no
  8929. $RM -r conftest 2>/dev/null
  8930. mkdir conftest
  8931. cd conftest
  8932. mkdir out
  8933. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8934. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8935. # Insert the option either (1) after the last *FLAGS variable, or
  8936. # (2) before a word containing "conftest.", or (3) at the end.
  8937. # Note that $ac_compile itself does not contain backslashes and begins
  8938. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8939. lt_compile=`echo "$ac_compile" | $SED \
  8940. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8941. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8942. -e 's:$: $lt_compiler_flag:'`
  8943. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8944. (eval "$lt_compile" 2>out/conftest.err)
  8945. ac_status=$?
  8946. cat out/conftest.err >&5
  8947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8949. then
  8950. # The compiler can only warn and ignore the option if not recognized
  8951. # So say no if there are warnings
  8952. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8953. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8954. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8955. lt_cv_prog_compiler_c_o=yes
  8956. fi
  8957. fi
  8958. chmod u+w . 2>&5
  8959. $RM conftest*
  8960. # SGI C++ compiler will create directory out/ii_files/ for
  8961. # template instantiation
  8962. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8963. $RM out/* && rmdir out
  8964. cd ..
  8965. $RM -r conftest
  8966. $RM conftest*
  8967. fi
  8968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8969. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8970. hard_links=nottested
  8971. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8972. # do not overwrite the value of need_locks provided by the user
  8973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8974. printf %s "checking if we can lock with hard links... " >&6; }
  8975. hard_links=yes
  8976. $RM conftest*
  8977. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8978. touch conftest.a
  8979. ln conftest.a conftest.b 2>&5 || hard_links=no
  8980. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8982. printf "%s\n" "$hard_links" >&6; }
  8983. if test no = "$hard_links"; then
  8984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8985. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8986. need_locks=warn
  8987. fi
  8988. else
  8989. need_locks=no
  8990. fi
  8991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8992. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8993. runpath_var=
  8994. allow_undefined_flag=
  8995. always_export_symbols=no
  8996. archive_cmds=
  8997. archive_expsym_cmds=
  8998. compiler_needs_object=no
  8999. enable_shared_with_static_runtimes=no
  9000. export_dynamic_flag_spec=
  9001. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9002. hardcode_automatic=no
  9003. hardcode_direct=no
  9004. hardcode_direct_absolute=no
  9005. hardcode_libdir_flag_spec=
  9006. hardcode_libdir_separator=
  9007. hardcode_minus_L=no
  9008. hardcode_shlibpath_var=unsupported
  9009. inherit_rpath=no
  9010. link_all_deplibs=unknown
  9011. module_cmds=
  9012. module_expsym_cmds=
  9013. old_archive_from_new_cmds=
  9014. old_archive_from_expsyms_cmds=
  9015. thread_safe_flag_spec=
  9016. whole_archive_flag_spec=
  9017. # include_expsyms should be a list of space-separated symbols to be *always*
  9018. # included in the symbol list
  9019. include_expsyms=
  9020. # exclude_expsyms can be an extended regexp of symbols to exclude
  9021. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9022. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9023. # as well as any symbol that contains 'd'.
  9024. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9025. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9026. # platforms (ab)use it in PIC code, but their linkers get confused if
  9027. # the symbol is explicitly referenced. Since portable code cannot
  9028. # rely on this symbol name, it's probably fine to never include it in
  9029. # preloaded symbol tables.
  9030. # Exclude shared library initialization/finalization symbols.
  9031. extract_expsyms_cmds=
  9032. case $host_os in
  9033. cygwin* | mingw* | pw32* | cegcc*)
  9034. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9035. # When not using gcc, we currently assume that we are using
  9036. # Microsoft Visual C++ or Intel C++ Compiler.
  9037. if test yes != "$GCC"; then
  9038. with_gnu_ld=no
  9039. fi
  9040. ;;
  9041. interix*)
  9042. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9043. with_gnu_ld=yes
  9044. ;;
  9045. openbsd* | bitrig*)
  9046. with_gnu_ld=no
  9047. ;;
  9048. esac
  9049. ld_shlibs=yes
  9050. # On some targets, GNU ld is compatible enough with the native linker
  9051. # that we're better off using the native interface for both.
  9052. lt_use_gnu_ld_interface=no
  9053. if test yes = "$with_gnu_ld"; then
  9054. case $host_os in
  9055. aix*)
  9056. # The AIX port of GNU ld has always aspired to compatibility
  9057. # with the native linker. However, as the warning in the GNU ld
  9058. # block says, versions before 2.19.5* couldn't really create working
  9059. # shared libraries, regardless of the interface used.
  9060. case `$LD -v 2>&1` in
  9061. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9062. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9063. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9064. *)
  9065. lt_use_gnu_ld_interface=yes
  9066. ;;
  9067. esac
  9068. ;;
  9069. *)
  9070. lt_use_gnu_ld_interface=yes
  9071. ;;
  9072. esac
  9073. fi
  9074. if test yes = "$lt_use_gnu_ld_interface"; then
  9075. # If archive_cmds runs LD, not CC, wlarc should be empty
  9076. wlarc='$wl'
  9077. # Set some defaults for GNU ld with shared library support. These
  9078. # are reset later if shared libraries are not supported. Putting them
  9079. # here allows them to be overridden if necessary.
  9080. runpath_var=LD_RUN_PATH
  9081. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9082. export_dynamic_flag_spec='$wl--export-dynamic'
  9083. # ancient GNU ld didn't support --whole-archive et. al.
  9084. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9085. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9086. else
  9087. whole_archive_flag_spec=
  9088. fi
  9089. supports_anon_versioning=no
  9090. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9091. *GNU\ gold*) supports_anon_versioning=yes ;;
  9092. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9093. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9094. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9095. *\ 2.11.*) ;; # other 2.11 versions
  9096. *) supports_anon_versioning=yes ;;
  9097. esac
  9098. # See if GNU ld supports shared libraries.
  9099. case $host_os in
  9100. aix[3-9]*)
  9101. # On AIX/PPC, the GNU linker is very broken
  9102. if test ia64 != "$host_cpu"; then
  9103. ld_shlibs=no
  9104. cat <<_LT_EOF 1>&2
  9105. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9106. *** to be unable to reliably create shared libraries on AIX.
  9107. *** Therefore, libtool is disabling shared libraries support. If you
  9108. *** really care for shared libraries, you may want to install binutils
  9109. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9110. *** You will then need to restart the configuration process.
  9111. _LT_EOF
  9112. fi
  9113. ;;
  9114. amigaos*)
  9115. case $host_cpu in
  9116. powerpc)
  9117. # see comment about AmigaOS4 .so support
  9118. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9119. archive_expsym_cmds=''
  9120. ;;
  9121. m68k)
  9122. 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)'
  9123. hardcode_libdir_flag_spec='-L$libdir'
  9124. hardcode_minus_L=yes
  9125. ;;
  9126. esac
  9127. ;;
  9128. beos*)
  9129. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9130. allow_undefined_flag=unsupported
  9131. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9132. # support --undefined. This deserves some investigation. FIXME
  9133. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9134. else
  9135. ld_shlibs=no
  9136. fi
  9137. ;;
  9138. cygwin* | mingw* | pw32* | cegcc*)
  9139. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9140. # as there is no search path for DLLs.
  9141. hardcode_libdir_flag_spec='-L$libdir'
  9142. export_dynamic_flag_spec='$wl--export-all-symbols'
  9143. allow_undefined_flag=unsupported
  9144. always_export_symbols=no
  9145. enable_shared_with_static_runtimes=yes
  9146. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  9147. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9148. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9149. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9150. # If the export-symbols file already is a .def file, use it as
  9151. # is; otherwise, prepend EXPORTS...
  9152. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9153. cp $export_symbols $output_objdir/$soname.def;
  9154. else
  9155. echo EXPORTS > $output_objdir/$soname.def;
  9156. cat $export_symbols >> $output_objdir/$soname.def;
  9157. fi~
  9158. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9159. else
  9160. ld_shlibs=no
  9161. fi
  9162. ;;
  9163. haiku*)
  9164. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9165. link_all_deplibs=yes
  9166. ;;
  9167. os2*)
  9168. hardcode_libdir_flag_spec='-L$libdir'
  9169. hardcode_minus_L=yes
  9170. allow_undefined_flag=unsupported
  9171. shrext_cmds=.dll
  9172. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9173. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9174. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9175. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9176. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9177. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9178. emximp -o $lib $output_objdir/$libname.def'
  9179. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9180. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9181. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9182. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9183. prefix_cmds="$SED"~
  9184. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9185. prefix_cmds="$prefix_cmds -e 1d";
  9186. fi~
  9187. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9188. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9189. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9190. emximp -o $lib $output_objdir/$libname.def'
  9191. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9192. enable_shared_with_static_runtimes=yes
  9193. file_list_spec='@'
  9194. ;;
  9195. interix[3-9]*)
  9196. hardcode_direct=no
  9197. hardcode_shlibpath_var=no
  9198. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9199. export_dynamic_flag_spec='$wl-E'
  9200. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9201. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9202. # default) and relocated if they conflict, which is a slow very memory
  9203. # consuming and fragmenting process. To avoid this, we pick a random,
  9204. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9205. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9206. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9207. 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'
  9208. ;;
  9209. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9210. tmp_diet=no
  9211. if test linux-dietlibc = "$host_os"; then
  9212. case $cc_basename in
  9213. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9214. esac
  9215. fi
  9216. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9217. && test no = "$tmp_diet"
  9218. then
  9219. tmp_addflag=' $pic_flag'
  9220. tmp_sharedflag='-shared'
  9221. case $cc_basename,$host_cpu in
  9222. pgcc*) # Portland Group C compiler
  9223. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9224. tmp_addflag=' $pic_flag'
  9225. ;;
  9226. pgf77* | pgf90* | pgf95* | pgfortran*)
  9227. # Portland Group f77 and f90 compilers
  9228. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9229. tmp_addflag=' $pic_flag -Mnomain' ;;
  9230. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9231. tmp_addflag=' -i_dynamic' ;;
  9232. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9233. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9234. ifc* | ifort*) # Intel Fortran compiler
  9235. tmp_addflag=' -nofor_main' ;;
  9236. lf95*) # Lahey Fortran 8.1
  9237. whole_archive_flag_spec=
  9238. tmp_sharedflag='--shared' ;;
  9239. nagfor*) # NAGFOR 5.3
  9240. tmp_sharedflag='-Wl,-shared' ;;
  9241. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9242. tmp_sharedflag='-qmkshrobj'
  9243. tmp_addflag= ;;
  9244. nvcc*) # Cuda Compiler Driver 2.2
  9245. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9246. compiler_needs_object=yes
  9247. ;;
  9248. esac
  9249. case `$CC -V 2>&1 | sed 5q` in
  9250. *Sun\ C*) # Sun C 5.9
  9251. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9252. compiler_needs_object=yes
  9253. tmp_sharedflag='-G' ;;
  9254. *Sun\ F*) # Sun Fortran 8.3
  9255. tmp_sharedflag='-G' ;;
  9256. esac
  9257. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9258. if test yes = "$supports_anon_versioning"; then
  9259. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9260. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9261. echo "local: *; };" >> $output_objdir/$libname.ver~
  9262. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9263. fi
  9264. case $cc_basename in
  9265. tcc*)
  9266. export_dynamic_flag_spec='-rdynamic'
  9267. ;;
  9268. xlf* | bgf* | bgxlf* | mpixlf*)
  9269. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9270. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9271. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9272. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9273. if test yes = "$supports_anon_versioning"; then
  9274. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9275. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9276. echo "local: *; };" >> $output_objdir/$libname.ver~
  9277. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9278. fi
  9279. ;;
  9280. esac
  9281. else
  9282. ld_shlibs=no
  9283. fi
  9284. ;;
  9285. netbsd*)
  9286. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9287. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9288. wlarc=
  9289. else
  9290. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9291. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9292. fi
  9293. ;;
  9294. solaris*)
  9295. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9296. ld_shlibs=no
  9297. cat <<_LT_EOF 1>&2
  9298. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9299. *** create shared libraries on Solaris systems. Therefore, libtool
  9300. *** is disabling shared libraries support. We urge you to upgrade GNU
  9301. *** binutils to release 2.9.1 or newer. Another option is to modify
  9302. *** your PATH or compiler configuration so that the native linker is
  9303. *** used, and then restart.
  9304. _LT_EOF
  9305. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9306. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9307. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9308. else
  9309. ld_shlibs=no
  9310. fi
  9311. ;;
  9312. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9313. case `$LD -v 2>&1` in
  9314. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9315. ld_shlibs=no
  9316. cat <<_LT_EOF 1>&2
  9317. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9318. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9319. *** is disabling shared libraries support. We urge you to upgrade GNU
  9320. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9321. *** your PATH or compiler configuration so that the native linker is
  9322. *** used, and then restart.
  9323. _LT_EOF
  9324. ;;
  9325. *)
  9326. # For security reasons, it is highly recommended that you always
  9327. # use absolute paths for naming shared libraries, and exclude the
  9328. # DT_RUNPATH tag from executables and libraries. But doing so
  9329. # requires that you compile everything twice, which is a pain.
  9330. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9331. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9332. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9333. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9334. else
  9335. ld_shlibs=no
  9336. fi
  9337. ;;
  9338. esac
  9339. ;;
  9340. sunos4*)
  9341. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9342. wlarc=
  9343. hardcode_direct=yes
  9344. hardcode_shlibpath_var=no
  9345. ;;
  9346. *)
  9347. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9348. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9349. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9350. else
  9351. ld_shlibs=no
  9352. fi
  9353. ;;
  9354. esac
  9355. if test no = "$ld_shlibs"; then
  9356. runpath_var=
  9357. hardcode_libdir_flag_spec=
  9358. export_dynamic_flag_spec=
  9359. whole_archive_flag_spec=
  9360. fi
  9361. else
  9362. # PORTME fill in a description of your system's linker (not GNU ld)
  9363. case $host_os in
  9364. aix3*)
  9365. allow_undefined_flag=unsupported
  9366. always_export_symbols=yes
  9367. 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'
  9368. # Note: this linker hardcodes the directories in LIBPATH if there
  9369. # are no directories specified by -L.
  9370. hardcode_minus_L=yes
  9371. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9372. # Neither direct hardcoding nor static linking is supported with a
  9373. # broken collect2.
  9374. hardcode_direct=unsupported
  9375. fi
  9376. ;;
  9377. aix[4-9]*)
  9378. if test ia64 = "$host_cpu"; then
  9379. # On IA64, the linker does run time linking by default, so we don't
  9380. # have to do anything special.
  9381. aix_use_runtimelinking=no
  9382. exp_sym_flag='-Bexport'
  9383. no_entry_flag=
  9384. else
  9385. # If we're using GNU nm, then we don't want the "-C" option.
  9386. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9387. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9388. # weak defined symbols like other global defined symbols, whereas
  9389. # GNU nm marks them as "W".
  9390. # While the 'weak' keyword is ignored in the Export File, we need
  9391. # it in the Import File for the 'aix-soname' feature, so we have
  9392. # to replace the "-B" option with "-P" for AIX nm.
  9393. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9394. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9395. else
  9396. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9397. fi
  9398. aix_use_runtimelinking=no
  9399. # Test if we are trying to use run time linking or normal
  9400. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9401. # have runtime linking enabled, and use it for executables.
  9402. # For shared libraries, we enable/disable runtime linking
  9403. # depending on the kind of the shared library created -
  9404. # when "with_aix_soname,aix_use_runtimelinking" is:
  9405. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9406. # "aix,yes" lib.so shared, rtl:yes, for executables
  9407. # lib.a static archive
  9408. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9409. # lib.a(lib.so.V) shared, rtl:no, for executables
  9410. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9411. # lib.a(lib.so.V) shared, rtl:no
  9412. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9413. # lib.a static archive
  9414. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9415. for ld_flag in $LDFLAGS; do
  9416. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9417. aix_use_runtimelinking=yes
  9418. break
  9419. fi
  9420. done
  9421. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9422. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9423. # so we don't have lib.a shared libs to link our executables.
  9424. # We have to force runtime linking in this case.
  9425. aix_use_runtimelinking=yes
  9426. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9427. fi
  9428. ;;
  9429. esac
  9430. exp_sym_flag='-bexport'
  9431. no_entry_flag='-bnoentry'
  9432. fi
  9433. # When large executables or shared objects are built, AIX ld can
  9434. # have problems creating the table of contents. If linking a library
  9435. # or program results in "error TOC overflow" add -mminimal-toc to
  9436. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9437. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9438. archive_cmds=''
  9439. hardcode_direct=yes
  9440. hardcode_direct_absolute=yes
  9441. hardcode_libdir_separator=':'
  9442. link_all_deplibs=yes
  9443. file_list_spec='$wl-f,'
  9444. case $with_aix_soname,$aix_use_runtimelinking in
  9445. aix,*) ;; # traditional, no import file
  9446. svr4,* | *,yes) # use import file
  9447. # The Import File defines what to hardcode.
  9448. hardcode_direct=no
  9449. hardcode_direct_absolute=no
  9450. ;;
  9451. esac
  9452. if test yes = "$GCC"; then
  9453. case $host_os in aix4.[012]|aix4.[012].*)
  9454. # We only want to do this on AIX 4.2 and lower, the check
  9455. # below for broken collect2 doesn't work under 4.3+
  9456. collect2name=`$CC -print-prog-name=collect2`
  9457. if test -f "$collect2name" &&
  9458. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9459. then
  9460. # We have reworked collect2
  9461. :
  9462. else
  9463. # We have old collect2
  9464. hardcode_direct=unsupported
  9465. # It fails to find uninstalled libraries when the uninstalled
  9466. # path is not listed in the libpath. Setting hardcode_minus_L
  9467. # to unsupported forces relinking
  9468. hardcode_minus_L=yes
  9469. hardcode_libdir_flag_spec='-L$libdir'
  9470. hardcode_libdir_separator=
  9471. fi
  9472. ;;
  9473. esac
  9474. shared_flag='-shared'
  9475. if test yes = "$aix_use_runtimelinking"; then
  9476. shared_flag="$shared_flag "'$wl-G'
  9477. fi
  9478. # Need to ensure runtime linking is disabled for the traditional
  9479. # shared library, or the linker may eventually find shared libraries
  9480. # /with/ Import File - we do not want to mix them.
  9481. shared_flag_aix='-shared'
  9482. shared_flag_svr4='-shared $wl-G'
  9483. else
  9484. # not using gcc
  9485. if test ia64 = "$host_cpu"; then
  9486. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9487. # chokes on -Wl,-G. The following line is correct:
  9488. shared_flag='-G'
  9489. else
  9490. if test yes = "$aix_use_runtimelinking"; then
  9491. shared_flag='$wl-G'
  9492. else
  9493. shared_flag='$wl-bM:SRE'
  9494. fi
  9495. shared_flag_aix='$wl-bM:SRE'
  9496. shared_flag_svr4='$wl-G'
  9497. fi
  9498. fi
  9499. export_dynamic_flag_spec='$wl-bexpall'
  9500. # It seems that -bexpall does not export symbols beginning with
  9501. # underscore (_), so it is better to generate a list of symbols to export.
  9502. always_export_symbols=yes
  9503. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9504. # Warning - without using the other runtime loading flags (-brtl),
  9505. # -berok will link without error, but may produce a broken library.
  9506. allow_undefined_flag='-berok'
  9507. # Determine the default libpath from the value encoded in an
  9508. # empty executable.
  9509. if test set = "${lt_cv_aix_libpath+set}"; then
  9510. aix_libpath=$lt_cv_aix_libpath
  9511. else
  9512. if test ${lt_cv_aix_libpath_+y}
  9513. then :
  9514. printf %s "(cached) " >&6
  9515. else $as_nop
  9516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9517. /* end confdefs.h. */
  9518. int
  9519. main (void)
  9520. {
  9521. ;
  9522. return 0;
  9523. }
  9524. _ACEOF
  9525. if ac_fn_c_try_link "$LINENO"
  9526. then :
  9527. lt_aix_libpath_sed='
  9528. /Import File Strings/,/^$/ {
  9529. /^0/ {
  9530. s/^0 *\([^ ]*\) *$/\1/
  9531. p
  9532. }
  9533. }'
  9534. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9535. # Check for a 64-bit object if we didn't find anything.
  9536. if test -z "$lt_cv_aix_libpath_"; then
  9537. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9538. fi
  9539. fi
  9540. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9541. conftest$ac_exeext conftest.$ac_ext
  9542. if test -z "$lt_cv_aix_libpath_"; then
  9543. lt_cv_aix_libpath_=/usr/lib:/lib
  9544. fi
  9545. fi
  9546. aix_libpath=$lt_cv_aix_libpath_
  9547. fi
  9548. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9549. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9550. else
  9551. if test ia64 = "$host_cpu"; then
  9552. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9553. allow_undefined_flag="-z nodefs"
  9554. 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"
  9555. else
  9556. # Determine the default libpath from the value encoded in an
  9557. # empty executable.
  9558. if test set = "${lt_cv_aix_libpath+set}"; then
  9559. aix_libpath=$lt_cv_aix_libpath
  9560. else
  9561. if test ${lt_cv_aix_libpath_+y}
  9562. then :
  9563. printf %s "(cached) " >&6
  9564. else $as_nop
  9565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9566. /* end confdefs.h. */
  9567. int
  9568. main (void)
  9569. {
  9570. ;
  9571. return 0;
  9572. }
  9573. _ACEOF
  9574. if ac_fn_c_try_link "$LINENO"
  9575. then :
  9576. lt_aix_libpath_sed='
  9577. /Import File Strings/,/^$/ {
  9578. /^0/ {
  9579. s/^0 *\([^ ]*\) *$/\1/
  9580. p
  9581. }
  9582. }'
  9583. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9584. # Check for a 64-bit object if we didn't find anything.
  9585. if test -z "$lt_cv_aix_libpath_"; then
  9586. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9587. fi
  9588. fi
  9589. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9590. conftest$ac_exeext conftest.$ac_ext
  9591. if test -z "$lt_cv_aix_libpath_"; then
  9592. lt_cv_aix_libpath_=/usr/lib:/lib
  9593. fi
  9594. fi
  9595. aix_libpath=$lt_cv_aix_libpath_
  9596. fi
  9597. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9598. # Warning - without using the other run time loading flags,
  9599. # -berok will link without error, but may produce a broken library.
  9600. no_undefined_flag=' $wl-bernotok'
  9601. allow_undefined_flag=' $wl-berok'
  9602. if test yes = "$with_gnu_ld"; then
  9603. # We only use this code for GNU lds that support --whole-archive.
  9604. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9605. else
  9606. # Exported symbols can be pulled into shared objects from archives
  9607. whole_archive_flag_spec='$convenience'
  9608. fi
  9609. archive_cmds_need_lc=yes
  9610. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9611. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9612. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9613. if test svr4 != "$with_aix_soname"; then
  9614. # This is similar to how AIX traditionally builds its shared libraries.
  9615. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9616. fi
  9617. if test aix != "$with_aix_soname"; then
  9618. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9619. else
  9620. # used by -dlpreopen to get the symbols
  9621. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9622. fi
  9623. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9624. fi
  9625. fi
  9626. ;;
  9627. amigaos*)
  9628. case $host_cpu in
  9629. powerpc)
  9630. # see comment about AmigaOS4 .so support
  9631. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9632. archive_expsym_cmds=''
  9633. ;;
  9634. m68k)
  9635. 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)'
  9636. hardcode_libdir_flag_spec='-L$libdir'
  9637. hardcode_minus_L=yes
  9638. ;;
  9639. esac
  9640. ;;
  9641. bsdi[45]*)
  9642. export_dynamic_flag_spec=-rdynamic
  9643. ;;
  9644. cygwin* | mingw* | pw32* | cegcc*)
  9645. # When not using gcc, we currently assume that we are using
  9646. # Microsoft Visual C++ or Intel C++ Compiler.
  9647. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9648. # no search path for DLLs.
  9649. case $cc_basename in
  9650. cl* | icl*)
  9651. # Native MSVC or ICC
  9652. hardcode_libdir_flag_spec=' '
  9653. allow_undefined_flag=unsupported
  9654. always_export_symbols=yes
  9655. file_list_spec='@'
  9656. # Tell ltmain to make .lib files, not .a files.
  9657. libext=lib
  9658. # Tell ltmain to make .dll files, not .so files.
  9659. shrext_cmds=.dll
  9660. # FIXME: Setting linknames here is a bad hack.
  9661. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9662. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9663. cp "$export_symbols" "$output_objdir/$soname.def";
  9664. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9665. else
  9666. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9667. fi~
  9668. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9669. linknames='
  9670. # The linker will not automatically build a static lib if we build a DLL.
  9671. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9672. enable_shared_with_static_runtimes=yes
  9673. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9674. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9675. # Don't use ranlib
  9676. old_postinstall_cmds='chmod 644 $oldlib'
  9677. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9678. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9679. case $lt_outputfile in
  9680. *.exe|*.EXE) ;;
  9681. *)
  9682. lt_outputfile=$lt_outputfile.exe
  9683. lt_tool_outputfile=$lt_tool_outputfile.exe
  9684. ;;
  9685. esac~
  9686. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9687. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9688. $RM "$lt_outputfile.manifest";
  9689. fi'
  9690. ;;
  9691. *)
  9692. # Assume MSVC and ICC wrapper
  9693. hardcode_libdir_flag_spec=' '
  9694. allow_undefined_flag=unsupported
  9695. # Tell ltmain to make .lib files, not .a files.
  9696. libext=lib
  9697. # Tell ltmain to make .dll files, not .so files.
  9698. shrext_cmds=.dll
  9699. # FIXME: Setting linknames here is a bad hack.
  9700. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9701. # The linker will automatically build a .lib file if we build a DLL.
  9702. old_archive_from_new_cmds='true'
  9703. # FIXME: Should let the user specify the lib program.
  9704. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9705. enable_shared_with_static_runtimes=yes
  9706. ;;
  9707. esac
  9708. ;;
  9709. darwin* | rhapsody*)
  9710. archive_cmds_need_lc=no
  9711. hardcode_direct=no
  9712. hardcode_automatic=yes
  9713. hardcode_shlibpath_var=unsupported
  9714. if test yes = "$lt_cv_ld_force_load"; then
  9715. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9716. else
  9717. whole_archive_flag_spec=''
  9718. fi
  9719. link_all_deplibs=yes
  9720. allow_undefined_flag=$_lt_dar_allow_undefined
  9721. case $cc_basename in
  9722. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9723. *) _lt_dar_can_shared=$GCC ;;
  9724. esac
  9725. if test yes = "$_lt_dar_can_shared"; then
  9726. output_verbose_link_cmd=func_echo_all
  9727. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9728. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9729. 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"
  9730. 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"
  9731. else
  9732. ld_shlibs=no
  9733. fi
  9734. ;;
  9735. dgux*)
  9736. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9737. hardcode_libdir_flag_spec='-L$libdir'
  9738. hardcode_shlibpath_var=no
  9739. ;;
  9740. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9741. # support. Future versions do this automatically, but an explicit c++rt0.o
  9742. # does not break anything, and helps significantly (at the cost of a little
  9743. # extra space).
  9744. freebsd2.2*)
  9745. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9746. hardcode_libdir_flag_spec='-R$libdir'
  9747. hardcode_direct=yes
  9748. hardcode_shlibpath_var=no
  9749. ;;
  9750. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9751. freebsd2.*)
  9752. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9753. hardcode_direct=yes
  9754. hardcode_minus_L=yes
  9755. hardcode_shlibpath_var=no
  9756. ;;
  9757. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9758. freebsd* | dragonfly*)
  9759. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9760. hardcode_libdir_flag_spec='-R$libdir'
  9761. hardcode_direct=yes
  9762. hardcode_shlibpath_var=no
  9763. ;;
  9764. hpux9*)
  9765. if test yes = "$GCC"; then
  9766. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9767. else
  9768. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9769. fi
  9770. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9771. hardcode_libdir_separator=:
  9772. hardcode_direct=yes
  9773. # hardcode_minus_L: Not really in the search PATH,
  9774. # but as the default location of the library.
  9775. hardcode_minus_L=yes
  9776. export_dynamic_flag_spec='$wl-E'
  9777. ;;
  9778. hpux10*)
  9779. if test yes,no = "$GCC,$with_gnu_ld"; then
  9780. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9781. else
  9782. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9783. fi
  9784. if test no = "$with_gnu_ld"; then
  9785. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9786. hardcode_libdir_separator=:
  9787. hardcode_direct=yes
  9788. hardcode_direct_absolute=yes
  9789. export_dynamic_flag_spec='$wl-E'
  9790. # hardcode_minus_L: Not really in the search PATH,
  9791. # but as the default location of the library.
  9792. hardcode_minus_L=yes
  9793. fi
  9794. ;;
  9795. hpux11*)
  9796. if test yes,no = "$GCC,$with_gnu_ld"; then
  9797. case $host_cpu in
  9798. hppa*64*)
  9799. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9800. ;;
  9801. ia64*)
  9802. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9803. ;;
  9804. *)
  9805. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9806. ;;
  9807. esac
  9808. else
  9809. case $host_cpu in
  9810. hppa*64*)
  9811. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9812. ;;
  9813. ia64*)
  9814. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9815. ;;
  9816. *)
  9817. # Older versions of the 11.00 compiler do not understand -b yet
  9818. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9820. printf %s "checking if $CC understands -b... " >&6; }
  9821. if test ${lt_cv_prog_compiler__b+y}
  9822. then :
  9823. printf %s "(cached) " >&6
  9824. else $as_nop
  9825. lt_cv_prog_compiler__b=no
  9826. save_LDFLAGS=$LDFLAGS
  9827. LDFLAGS="$LDFLAGS -b"
  9828. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9829. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9830. # The linker can only warn and ignore the option if not recognized
  9831. # So say no if there are warnings
  9832. if test -s conftest.err; then
  9833. # Append any errors to the config.log.
  9834. cat conftest.err 1>&5
  9835. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9836. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9837. if diff conftest.exp conftest.er2 >/dev/null; then
  9838. lt_cv_prog_compiler__b=yes
  9839. fi
  9840. else
  9841. lt_cv_prog_compiler__b=yes
  9842. fi
  9843. fi
  9844. $RM -r conftest*
  9845. LDFLAGS=$save_LDFLAGS
  9846. fi
  9847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9848. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9849. if test yes = "$lt_cv_prog_compiler__b"; then
  9850. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9851. else
  9852. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9853. fi
  9854. ;;
  9855. esac
  9856. fi
  9857. if test no = "$with_gnu_ld"; then
  9858. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9859. hardcode_libdir_separator=:
  9860. case $host_cpu in
  9861. hppa*64*|ia64*)
  9862. hardcode_direct=no
  9863. hardcode_shlibpath_var=no
  9864. ;;
  9865. *)
  9866. hardcode_direct=yes
  9867. hardcode_direct_absolute=yes
  9868. export_dynamic_flag_spec='$wl-E'
  9869. # hardcode_minus_L: Not really in the search PATH,
  9870. # but as the default location of the library.
  9871. hardcode_minus_L=yes
  9872. ;;
  9873. esac
  9874. fi
  9875. ;;
  9876. irix5* | irix6* | nonstopux*)
  9877. if test yes = "$GCC"; then
  9878. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9879. # Try to use the -exported_symbol ld option, if it does not
  9880. # work, assume that -exports_file does not work either and
  9881. # implicitly export all symbols.
  9882. # This should be the same for all languages, so no per-tag cache variable.
  9883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9884. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9885. if test ${lt_cv_irix_exported_symbol+y}
  9886. then :
  9887. printf %s "(cached) " >&6
  9888. else $as_nop
  9889. save_LDFLAGS=$LDFLAGS
  9890. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9892. /* end confdefs.h. */
  9893. int foo (void) { return 0; }
  9894. _ACEOF
  9895. if ac_fn_c_try_link "$LINENO"
  9896. then :
  9897. lt_cv_irix_exported_symbol=yes
  9898. else $as_nop
  9899. lt_cv_irix_exported_symbol=no
  9900. fi
  9901. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9902. conftest$ac_exeext conftest.$ac_ext
  9903. LDFLAGS=$save_LDFLAGS
  9904. fi
  9905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9906. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9907. if test yes = "$lt_cv_irix_exported_symbol"; then
  9908. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9909. fi
  9910. else
  9911. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9912. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9913. fi
  9914. archive_cmds_need_lc='no'
  9915. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9916. hardcode_libdir_separator=:
  9917. inherit_rpath=yes
  9918. link_all_deplibs=yes
  9919. ;;
  9920. linux*)
  9921. case $cc_basename in
  9922. tcc*)
  9923. # Fabrice Bellard et al's Tiny C Compiler
  9924. ld_shlibs=yes
  9925. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9926. ;;
  9927. esac
  9928. ;;
  9929. netbsd*)
  9930. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9931. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9932. else
  9933. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9934. fi
  9935. hardcode_libdir_flag_spec='-R$libdir'
  9936. hardcode_direct=yes
  9937. hardcode_shlibpath_var=no
  9938. ;;
  9939. newsos6)
  9940. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9941. hardcode_direct=yes
  9942. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9943. hardcode_libdir_separator=:
  9944. hardcode_shlibpath_var=no
  9945. ;;
  9946. *nto* | *qnx*)
  9947. ;;
  9948. openbsd* | bitrig*)
  9949. if test -f /usr/libexec/ld.so; then
  9950. hardcode_direct=yes
  9951. hardcode_shlibpath_var=no
  9952. hardcode_direct_absolute=yes
  9953. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9954. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9955. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9956. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9957. export_dynamic_flag_spec='$wl-E'
  9958. else
  9959. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9960. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9961. fi
  9962. else
  9963. ld_shlibs=no
  9964. fi
  9965. ;;
  9966. os2*)
  9967. hardcode_libdir_flag_spec='-L$libdir'
  9968. hardcode_minus_L=yes
  9969. allow_undefined_flag=unsupported
  9970. shrext_cmds=.dll
  9971. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9972. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9973. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9974. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9975. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9976. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9977. emximp -o $lib $output_objdir/$libname.def'
  9978. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9979. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9980. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9981. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9982. prefix_cmds="$SED"~
  9983. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9984. prefix_cmds="$prefix_cmds -e 1d";
  9985. fi~
  9986. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9987. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9988. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9989. emximp -o $lib $output_objdir/$libname.def'
  9990. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9991. enable_shared_with_static_runtimes=yes
  9992. file_list_spec='@'
  9993. ;;
  9994. osf3*)
  9995. if test yes = "$GCC"; then
  9996. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9997. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9998. else
  9999. allow_undefined_flag=' -expect_unresolved \*'
  10000. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  10001. fi
  10002. archive_cmds_need_lc='no'
  10003. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10004. hardcode_libdir_separator=:
  10005. ;;
  10006. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10007. if test yes = "$GCC"; then
  10008. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10009. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  10010. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10011. else
  10012. allow_undefined_flag=' -expect_unresolved \*'
  10013. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  10014. 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~
  10015. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  10016. # Both c and cxx compiler support -rpath directly
  10017. hardcode_libdir_flag_spec='-rpath $libdir'
  10018. fi
  10019. archive_cmds_need_lc='no'
  10020. hardcode_libdir_separator=:
  10021. ;;
  10022. solaris*)
  10023. no_undefined_flag=' -z defs'
  10024. if test yes = "$GCC"; then
  10025. wlarc='$wl'
  10026. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10027. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10028. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10029. else
  10030. case `$CC -V 2>&1` in
  10031. *"Compilers 5.0"*)
  10032. wlarc=''
  10033. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10034. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10035. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10036. ;;
  10037. *)
  10038. wlarc='$wl'
  10039. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10040. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10041. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10042. ;;
  10043. esac
  10044. fi
  10045. hardcode_libdir_flag_spec='-R$libdir'
  10046. hardcode_shlibpath_var=no
  10047. case $host_os in
  10048. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10049. *)
  10050. # The compiler driver will combine and reorder linker options,
  10051. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10052. # but is careful enough not to reorder.
  10053. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10054. if test yes = "$GCC"; then
  10055. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10056. else
  10057. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10058. fi
  10059. ;;
  10060. esac
  10061. link_all_deplibs=yes
  10062. ;;
  10063. sunos4*)
  10064. if test sequent = "$host_vendor"; then
  10065. # Use $CC to link under sequent, because it throws in some extra .o
  10066. # files that make .init and .fini sections work.
  10067. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10068. else
  10069. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10070. fi
  10071. hardcode_libdir_flag_spec='-L$libdir'
  10072. hardcode_direct=yes
  10073. hardcode_minus_L=yes
  10074. hardcode_shlibpath_var=no
  10075. ;;
  10076. sysv4)
  10077. case $host_vendor in
  10078. sni)
  10079. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10080. hardcode_direct=yes # is this really true???
  10081. ;;
  10082. siemens)
  10083. ## LD is ld it makes a PLAMLIB
  10084. ## CC just makes a GrossModule.
  10085. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10086. reload_cmds='$CC -r -o $output$reload_objs'
  10087. hardcode_direct=no
  10088. ;;
  10089. motorola)
  10090. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10091. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10092. ;;
  10093. esac
  10094. runpath_var='LD_RUN_PATH'
  10095. hardcode_shlibpath_var=no
  10096. ;;
  10097. sysv4.3*)
  10098. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10099. hardcode_shlibpath_var=no
  10100. export_dynamic_flag_spec='-Bexport'
  10101. ;;
  10102. sysv4*MP*)
  10103. if test -d /usr/nec; then
  10104. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10105. hardcode_shlibpath_var=no
  10106. runpath_var=LD_RUN_PATH
  10107. hardcode_runpath_var=yes
  10108. ld_shlibs=yes
  10109. fi
  10110. ;;
  10111. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10112. no_undefined_flag='$wl-z,text'
  10113. archive_cmds_need_lc=no
  10114. hardcode_shlibpath_var=no
  10115. runpath_var='LD_RUN_PATH'
  10116. if test yes = "$GCC"; then
  10117. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10118. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10119. else
  10120. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10121. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10122. fi
  10123. ;;
  10124. sysv5* | sco3.2v5* | sco5v6*)
  10125. # Note: We CANNOT use -z defs as we might desire, because we do not
  10126. # link with -lc, and that would cause any symbols used from libc to
  10127. # always be unresolved, which means just about no library would
  10128. # ever link correctly. If we're not using GNU ld we use -z text
  10129. # though, which does catch some bad symbols but isn't as heavy-handed
  10130. # as -z defs.
  10131. no_undefined_flag='$wl-z,text'
  10132. allow_undefined_flag='$wl-z,nodefs'
  10133. archive_cmds_need_lc=no
  10134. hardcode_shlibpath_var=no
  10135. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10136. hardcode_libdir_separator=':'
  10137. link_all_deplibs=yes
  10138. export_dynamic_flag_spec='$wl-Bexport'
  10139. runpath_var='LD_RUN_PATH'
  10140. if test yes = "$GCC"; then
  10141. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10142. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10143. else
  10144. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10145. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10146. fi
  10147. ;;
  10148. uts4*)
  10149. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10150. hardcode_libdir_flag_spec='-L$libdir'
  10151. hardcode_shlibpath_var=no
  10152. ;;
  10153. *)
  10154. ld_shlibs=no
  10155. ;;
  10156. esac
  10157. if test sni = "$host_vendor"; then
  10158. case $host in
  10159. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10160. export_dynamic_flag_spec='$wl-Blargedynsym'
  10161. ;;
  10162. esac
  10163. fi
  10164. fi
  10165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10166. printf "%s\n" "$ld_shlibs" >&6; }
  10167. test no = "$ld_shlibs" && can_build_shared=no
  10168. with_gnu_ld=$with_gnu_ld
  10169. #
  10170. # Do we need to explicitly link libc?
  10171. #
  10172. case "x$archive_cmds_need_lc" in
  10173. x|xyes)
  10174. # Assume -lc should be added
  10175. archive_cmds_need_lc=yes
  10176. if test yes,yes = "$GCC,$enable_shared"; then
  10177. case $archive_cmds in
  10178. *'~'*)
  10179. # FIXME: we may have to deal with multi-command sequences.
  10180. ;;
  10181. '$CC '*)
  10182. # Test whether the compiler implicitly links with -lc since on some
  10183. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10184. # to ld, don't add -lc before -lgcc.
  10185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10186. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10187. if test ${lt_cv_archive_cmds_need_lc+y}
  10188. then :
  10189. printf %s "(cached) " >&6
  10190. else $as_nop
  10191. $RM conftest*
  10192. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10193. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10194. (eval $ac_compile) 2>&5
  10195. ac_status=$?
  10196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10197. test $ac_status = 0; } 2>conftest.err; then
  10198. soname=conftest
  10199. lib=conftest
  10200. libobjs=conftest.$ac_objext
  10201. deplibs=
  10202. wl=$lt_prog_compiler_wl
  10203. pic_flag=$lt_prog_compiler_pic
  10204. compiler_flags=-v
  10205. linker_flags=-v
  10206. verstring=
  10207. output_objdir=.
  10208. libname=conftest
  10209. lt_save_allow_undefined_flag=$allow_undefined_flag
  10210. allow_undefined_flag=
  10211. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10212. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10213. ac_status=$?
  10214. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10215. test $ac_status = 0; }
  10216. then
  10217. lt_cv_archive_cmds_need_lc=no
  10218. else
  10219. lt_cv_archive_cmds_need_lc=yes
  10220. fi
  10221. allow_undefined_flag=$lt_save_allow_undefined_flag
  10222. else
  10223. cat conftest.err 1>&5
  10224. fi
  10225. $RM conftest*
  10226. fi
  10227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10228. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10229. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10230. ;;
  10231. esac
  10232. fi
  10233. ;;
  10234. esac
  10235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10236. printf %s "checking dynamic linker characteristics... " >&6; }
  10237. if test yes = "$GCC"; then
  10238. case $host_os in
  10239. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10240. *) lt_awk_arg='/^libraries:/' ;;
  10241. esac
  10242. case $host_os in
  10243. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10244. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10245. esac
  10246. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10247. case $lt_search_path_spec in
  10248. *\;*)
  10249. # if the path contains ";" then we assume it to be the separator
  10250. # otherwise default to the standard path separator (i.e. ":") - it is
  10251. # assumed that no part of a normal pathname contains ";" but that should
  10252. # okay in the real world where ";" in dirpaths is itself problematic.
  10253. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10254. ;;
  10255. *)
  10256. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10257. ;;
  10258. esac
  10259. # Ok, now we have the path, separated by spaces, we can step through it
  10260. # and add multilib dir if necessary...
  10261. lt_tmp_lt_search_path_spec=
  10262. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10263. # ...but if some path component already ends with the multilib dir we assume
  10264. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10265. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10266. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10267. lt_multi_os_dir=
  10268. ;;
  10269. esac
  10270. for lt_sys_path in $lt_search_path_spec; do
  10271. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10272. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10273. elif test -n "$lt_multi_os_dir"; then
  10274. test -d "$lt_sys_path" && \
  10275. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10276. fi
  10277. done
  10278. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10279. BEGIN {RS = " "; FS = "/|\n";} {
  10280. lt_foo = "";
  10281. lt_count = 0;
  10282. for (lt_i = NF; lt_i > 0; lt_i--) {
  10283. if ($lt_i != "" && $lt_i != ".") {
  10284. if ($lt_i == "..") {
  10285. lt_count++;
  10286. } else {
  10287. if (lt_count == 0) {
  10288. lt_foo = "/" $lt_i lt_foo;
  10289. } else {
  10290. lt_count--;
  10291. }
  10292. }
  10293. }
  10294. }
  10295. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10296. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10297. }'`
  10298. # AWK program above erroneously prepends '/' to C:/dos/paths
  10299. # for these hosts.
  10300. case $host_os in
  10301. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10302. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10303. esac
  10304. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10305. else
  10306. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10307. fi
  10308. library_names_spec=
  10309. libname_spec='lib$name'
  10310. soname_spec=
  10311. shrext_cmds=.so
  10312. postinstall_cmds=
  10313. postuninstall_cmds=
  10314. finish_cmds=
  10315. finish_eval=
  10316. shlibpath_var=
  10317. shlibpath_overrides_runpath=unknown
  10318. version_type=none
  10319. dynamic_linker="$host_os ld.so"
  10320. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10321. need_lib_prefix=unknown
  10322. hardcode_into_libs=no
  10323. # when you set need_version to no, make sure it does not cause -set_version
  10324. # flags to be left without arguments
  10325. need_version=unknown
  10326. case $host_os in
  10327. aix3*)
  10328. version_type=linux # correct to gnu/linux during the next big refactor
  10329. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10330. shlibpath_var=LIBPATH
  10331. # AIX 3 has no versioning support, so we append a major version to the name.
  10332. soname_spec='$libname$release$shared_ext$major'
  10333. ;;
  10334. aix[4-9]*)
  10335. version_type=linux # correct to gnu/linux during the next big refactor
  10336. need_lib_prefix=no
  10337. need_version=no
  10338. hardcode_into_libs=yes
  10339. if test ia64 = "$host_cpu"; then
  10340. # AIX 5 supports IA64
  10341. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10342. shlibpath_var=LD_LIBRARY_PATH
  10343. else
  10344. # With GCC up to 2.95.x, collect2 would create an import file
  10345. # for dependence libraries. The import file would start with
  10346. # the line '#! .'. This would cause the generated library to
  10347. # depend on '.', always an invalid library. This was fixed in
  10348. # development snapshots of GCC prior to 3.0.
  10349. case $host_os in
  10350. aix4 | aix4.[01] | aix4.[01].*)
  10351. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10352. echo ' yes '
  10353. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10354. :
  10355. else
  10356. can_build_shared=no
  10357. fi
  10358. ;;
  10359. esac
  10360. # Using Import Files as archive members, it is possible to support
  10361. # filename-based versioning of shared library archives on AIX. While
  10362. # this would work for both with and without runtime linking, it will
  10363. # prevent static linking of such archives. So we do filename-based
  10364. # shared library versioning with .so extension only, which is used
  10365. # when both runtime linking and shared linking is enabled.
  10366. # Unfortunately, runtime linking may impact performance, so we do
  10367. # not want this to be the default eventually. Also, we use the
  10368. # versioned .so libs for executables only if there is the -brtl
  10369. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10370. # To allow for filename-based versioning support, we need to create
  10371. # libNAME.so.V as an archive file, containing:
  10372. # *) an Import File, referring to the versioned filename of the
  10373. # archive as well as the shared archive member, telling the
  10374. # bitwidth (32 or 64) of that shared object, and providing the
  10375. # list of exported symbols of that shared object, eventually
  10376. # decorated with the 'weak' keyword
  10377. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10378. # it being seen by the linker.
  10379. # At run time we better use the real file rather than another symlink,
  10380. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10381. case $with_aix_soname,$aix_use_runtimelinking in
  10382. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10383. # soname into executable. Probably we can add versioning support to
  10384. # collect2, so additional links can be useful in future.
  10385. aix,yes) # traditional libtool
  10386. dynamic_linker='AIX unversionable lib.so'
  10387. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10388. # instead of lib<name>.a to let people know that these are not
  10389. # typical AIX shared libraries.
  10390. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10391. ;;
  10392. aix,no) # traditional AIX only
  10393. dynamic_linker='AIX lib.a(lib.so.V)'
  10394. # We preserve .a as extension for shared libraries through AIX4.2
  10395. # and later when we are not doing run time linking.
  10396. library_names_spec='$libname$release.a $libname.a'
  10397. soname_spec='$libname$release$shared_ext$major'
  10398. ;;
  10399. svr4,*) # full svr4 only
  10400. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10401. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10402. # We do not specify a path in Import Files, so LIBPATH fires.
  10403. shlibpath_overrides_runpath=yes
  10404. ;;
  10405. *,yes) # both, prefer svr4
  10406. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10407. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10408. # unpreferred sharedlib libNAME.a needs extra handling
  10409. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10410. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10411. # We do not specify a path in Import Files, so LIBPATH fires.
  10412. shlibpath_overrides_runpath=yes
  10413. ;;
  10414. *,no) # both, prefer aix
  10415. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10416. library_names_spec='$libname$release.a $libname.a'
  10417. soname_spec='$libname$release$shared_ext$major'
  10418. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10419. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10420. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10421. ;;
  10422. esac
  10423. shlibpath_var=LIBPATH
  10424. fi
  10425. ;;
  10426. amigaos*)
  10427. case $host_cpu in
  10428. powerpc)
  10429. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10430. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10432. ;;
  10433. m68k)
  10434. library_names_spec='$libname.ixlibrary $libname.a'
  10435. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10436. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10437. ;;
  10438. esac
  10439. ;;
  10440. beos*)
  10441. library_names_spec='$libname$shared_ext'
  10442. dynamic_linker="$host_os ld.so"
  10443. shlibpath_var=LIBRARY_PATH
  10444. ;;
  10445. bsdi[45]*)
  10446. version_type=linux # correct to gnu/linux during the next big refactor
  10447. need_version=no
  10448. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10449. soname_spec='$libname$release$shared_ext$major'
  10450. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10451. shlibpath_var=LD_LIBRARY_PATH
  10452. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10453. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10454. # the default ld.so.conf also contains /usr/contrib/lib and
  10455. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10456. # libtool to hard-code these into programs
  10457. ;;
  10458. cygwin* | mingw* | pw32* | cegcc*)
  10459. version_type=windows
  10460. shrext_cmds=.dll
  10461. need_version=no
  10462. need_lib_prefix=no
  10463. case $GCC,$cc_basename in
  10464. yes,*)
  10465. # gcc
  10466. library_names_spec='$libname.dll.a'
  10467. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10468. postinstall_cmds='base_file=`basename \$file`~
  10469. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10470. dldir=$destdir/`dirname \$dlpath`~
  10471. test -d \$dldir || mkdir -p \$dldir~
  10472. $install_prog $dir/$dlname \$dldir/$dlname~
  10473. chmod a+x \$dldir/$dlname~
  10474. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10475. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10476. fi'
  10477. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10478. dlpath=$dir/\$dldll~
  10479. $RM \$dlpath'
  10480. shlibpath_overrides_runpath=yes
  10481. case $host_os in
  10482. cygwin*)
  10483. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10484. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10485. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10486. ;;
  10487. mingw* | cegcc*)
  10488. # MinGW DLLs use traditional 'lib' prefix
  10489. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10490. ;;
  10491. pw32*)
  10492. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10493. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10494. ;;
  10495. esac
  10496. dynamic_linker='Win32 ld.exe'
  10497. ;;
  10498. *,cl* | *,icl*)
  10499. # Native MSVC or ICC
  10500. libname_spec='$name'
  10501. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10502. library_names_spec='$libname.dll.lib'
  10503. case $build_os in
  10504. mingw*)
  10505. sys_lib_search_path_spec=
  10506. lt_save_ifs=$IFS
  10507. IFS=';'
  10508. for lt_path in $LIB
  10509. do
  10510. IFS=$lt_save_ifs
  10511. # Let DOS variable expansion print the short 8.3 style file name.
  10512. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10513. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10514. done
  10515. IFS=$lt_save_ifs
  10516. # Convert to MSYS style.
  10517. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10518. ;;
  10519. cygwin*)
  10520. # Convert to unix form, then to dos form, then back to unix form
  10521. # but this time dos style (no spaces!) so that the unix form looks
  10522. # like /cygdrive/c/PROGRA~1:/cygdr...
  10523. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10524. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10525. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10526. ;;
  10527. *)
  10528. sys_lib_search_path_spec=$LIB
  10529. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10530. # It is most probably a Windows format PATH.
  10531. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10532. else
  10533. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10534. fi
  10535. # FIXME: find the short name or the path components, as spaces are
  10536. # common. (e.g. "Program Files" -> "PROGRA~1")
  10537. ;;
  10538. esac
  10539. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10540. postinstall_cmds='base_file=`basename \$file`~
  10541. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10542. dldir=$destdir/`dirname \$dlpath`~
  10543. test -d \$dldir || mkdir -p \$dldir~
  10544. $install_prog $dir/$dlname \$dldir/$dlname'
  10545. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10546. dlpath=$dir/\$dldll~
  10547. $RM \$dlpath'
  10548. shlibpath_overrides_runpath=yes
  10549. dynamic_linker='Win32 link.exe'
  10550. ;;
  10551. *)
  10552. # Assume MSVC and ICC wrapper
  10553. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10554. dynamic_linker='Win32 ld.exe'
  10555. ;;
  10556. esac
  10557. # FIXME: first we should search . and the directory the executable is in
  10558. shlibpath_var=PATH
  10559. ;;
  10560. darwin* | rhapsody*)
  10561. dynamic_linker="$host_os dyld"
  10562. version_type=darwin
  10563. need_lib_prefix=no
  10564. need_version=no
  10565. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10566. soname_spec='$libname$release$major$shared_ext'
  10567. shlibpath_overrides_runpath=yes
  10568. shlibpath_var=DYLD_LIBRARY_PATH
  10569. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10570. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10571. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10572. ;;
  10573. dgux*)
  10574. version_type=linux # correct to gnu/linux during the next big refactor
  10575. need_lib_prefix=no
  10576. need_version=no
  10577. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10578. soname_spec='$libname$release$shared_ext$major'
  10579. shlibpath_var=LD_LIBRARY_PATH
  10580. ;;
  10581. freebsd* | dragonfly*)
  10582. # DragonFly does not have aout. When/if they implement a new
  10583. # versioning mechanism, adjust this.
  10584. if test -x /usr/bin/objformat; then
  10585. objformat=`/usr/bin/objformat`
  10586. else
  10587. case $host_os in
  10588. freebsd[23].*) objformat=aout ;;
  10589. *) objformat=elf ;;
  10590. esac
  10591. fi
  10592. version_type=freebsd-$objformat
  10593. case $version_type in
  10594. freebsd-elf*)
  10595. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10596. soname_spec='$libname$release$shared_ext$major'
  10597. need_version=no
  10598. need_lib_prefix=no
  10599. ;;
  10600. freebsd-*)
  10601. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10602. need_version=yes
  10603. ;;
  10604. esac
  10605. shlibpath_var=LD_LIBRARY_PATH
  10606. case $host_os in
  10607. freebsd2.*)
  10608. shlibpath_overrides_runpath=yes
  10609. ;;
  10610. freebsd3.[01]* | freebsdelf3.[01]*)
  10611. shlibpath_overrides_runpath=yes
  10612. hardcode_into_libs=yes
  10613. ;;
  10614. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10615. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10616. shlibpath_overrides_runpath=no
  10617. hardcode_into_libs=yes
  10618. ;;
  10619. *) # from 4.6 on, and DragonFly
  10620. shlibpath_overrides_runpath=yes
  10621. hardcode_into_libs=yes
  10622. ;;
  10623. esac
  10624. ;;
  10625. haiku*)
  10626. version_type=linux # correct to gnu/linux during the next big refactor
  10627. need_lib_prefix=no
  10628. need_version=no
  10629. dynamic_linker="$host_os runtime_loader"
  10630. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10631. soname_spec='$libname$release$shared_ext$major'
  10632. shlibpath_var=LIBRARY_PATH
  10633. shlibpath_overrides_runpath=no
  10634. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10635. hardcode_into_libs=yes
  10636. ;;
  10637. hpux9* | hpux10* | hpux11*)
  10638. # Give a soname corresponding to the major version so that dld.sl refuses to
  10639. # link against other versions.
  10640. version_type=sunos
  10641. need_lib_prefix=no
  10642. need_version=no
  10643. case $host_cpu in
  10644. ia64*)
  10645. shrext_cmds='.so'
  10646. hardcode_into_libs=yes
  10647. dynamic_linker="$host_os dld.so"
  10648. shlibpath_var=LD_LIBRARY_PATH
  10649. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10650. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10651. soname_spec='$libname$release$shared_ext$major'
  10652. if test 32 = "$HPUX_IA64_MODE"; then
  10653. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10654. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10655. else
  10656. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10657. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10658. fi
  10659. ;;
  10660. hppa*64*)
  10661. shrext_cmds='.sl'
  10662. hardcode_into_libs=yes
  10663. dynamic_linker="$host_os dld.sl"
  10664. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10665. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10666. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10667. soname_spec='$libname$release$shared_ext$major'
  10668. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10669. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10670. ;;
  10671. *)
  10672. shrext_cmds='.sl'
  10673. dynamic_linker="$host_os dld.sl"
  10674. shlibpath_var=SHLIB_PATH
  10675. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10676. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10677. soname_spec='$libname$release$shared_ext$major'
  10678. ;;
  10679. esac
  10680. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10681. postinstall_cmds='chmod 555 $lib'
  10682. # or fails outright, so override atomically:
  10683. install_override_mode=555
  10684. ;;
  10685. interix[3-9]*)
  10686. version_type=linux # correct to gnu/linux during the next big refactor
  10687. need_lib_prefix=no
  10688. need_version=no
  10689. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10690. soname_spec='$libname$release$shared_ext$major'
  10691. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10692. shlibpath_var=LD_LIBRARY_PATH
  10693. shlibpath_overrides_runpath=no
  10694. hardcode_into_libs=yes
  10695. ;;
  10696. irix5* | irix6* | nonstopux*)
  10697. case $host_os in
  10698. nonstopux*) version_type=nonstopux ;;
  10699. *)
  10700. if test yes = "$lt_cv_prog_gnu_ld"; then
  10701. version_type=linux # correct to gnu/linux during the next big refactor
  10702. else
  10703. version_type=irix
  10704. fi ;;
  10705. esac
  10706. need_lib_prefix=no
  10707. need_version=no
  10708. soname_spec='$libname$release$shared_ext$major'
  10709. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10710. case $host_os in
  10711. irix5* | nonstopux*)
  10712. libsuff= shlibsuff=
  10713. ;;
  10714. *)
  10715. case $LD in # libtool.m4 will add one of these switches to LD
  10716. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10717. libsuff= shlibsuff= libmagic=32-bit;;
  10718. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10719. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10720. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10721. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10722. *) libsuff= shlibsuff= libmagic=never-match;;
  10723. esac
  10724. ;;
  10725. esac
  10726. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10727. shlibpath_overrides_runpath=no
  10728. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10729. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10730. hardcode_into_libs=yes
  10731. ;;
  10732. # No shared lib support for Linux oldld, aout, or coff.
  10733. linux*oldld* | linux*aout* | linux*coff*)
  10734. dynamic_linker=no
  10735. ;;
  10736. linux*android*)
  10737. version_type=none # Android doesn't support versioned libraries.
  10738. need_lib_prefix=no
  10739. need_version=no
  10740. library_names_spec='$libname$release$shared_ext'
  10741. soname_spec='$libname$release$shared_ext'
  10742. finish_cmds=
  10743. shlibpath_var=LD_LIBRARY_PATH
  10744. shlibpath_overrides_runpath=yes
  10745. # This implies no fast_install, which is unacceptable.
  10746. # Some rework will be needed to allow for fast_install
  10747. # before this can be enabled.
  10748. hardcode_into_libs=yes
  10749. dynamic_linker='Android linker'
  10750. # Don't embed -rpath directories since the linker doesn't support them.
  10751. hardcode_libdir_flag_spec='-L$libdir'
  10752. ;;
  10753. # This must be glibc/ELF.
  10754. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10755. version_type=linux # correct to gnu/linux during the next big refactor
  10756. need_lib_prefix=no
  10757. need_version=no
  10758. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10759. soname_spec='$libname$release$shared_ext$major'
  10760. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10761. shlibpath_var=LD_LIBRARY_PATH
  10762. shlibpath_overrides_runpath=no
  10763. # Some binutils ld are patched to set DT_RUNPATH
  10764. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10765. then :
  10766. printf %s "(cached) " >&6
  10767. else $as_nop
  10768. lt_cv_shlibpath_overrides_runpath=no
  10769. save_LDFLAGS=$LDFLAGS
  10770. save_libdir=$libdir
  10771. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10772. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10774. /* end confdefs.h. */
  10775. int
  10776. main (void)
  10777. {
  10778. ;
  10779. return 0;
  10780. }
  10781. _ACEOF
  10782. if ac_fn_c_try_link "$LINENO"
  10783. then :
  10784. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10785. then :
  10786. lt_cv_shlibpath_overrides_runpath=yes
  10787. fi
  10788. fi
  10789. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10790. conftest$ac_exeext conftest.$ac_ext
  10791. LDFLAGS=$save_LDFLAGS
  10792. libdir=$save_libdir
  10793. fi
  10794. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10795. # This implies no fast_install, which is unacceptable.
  10796. # Some rework will be needed to allow for fast_install
  10797. # before this can be enabled.
  10798. hardcode_into_libs=yes
  10799. # Ideally, we could use ldconfig to report *all* directores which are
  10800. # searched for libraries, however this is still not possible. Aside from not
  10801. # being certain /sbin/ldconfig is available, command
  10802. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10803. # even though it is searched at run-time. Try to do the best guess by
  10804. # appending ld.so.conf contents (and includes) to the search path.
  10805. if test -f /etc/ld.so.conf; then
  10806. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10807. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10808. fi
  10809. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10810. # powerpc, because MkLinux only supported shared libraries with the
  10811. # GNU dynamic linker. Since this was broken with cross compilers,
  10812. # most powerpc-linux boxes support dynamic linking these days and
  10813. # people can always --disable-shared, the test was removed, and we
  10814. # assume the GNU/Linux dynamic linker is in use.
  10815. dynamic_linker='GNU/Linux ld.so'
  10816. ;;
  10817. netbsd*)
  10818. version_type=sunos
  10819. need_lib_prefix=no
  10820. need_version=no
  10821. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10822. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10823. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10824. dynamic_linker='NetBSD (a.out) ld.so'
  10825. else
  10826. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10827. soname_spec='$libname$release$shared_ext$major'
  10828. dynamic_linker='NetBSD ld.elf_so'
  10829. fi
  10830. shlibpath_var=LD_LIBRARY_PATH
  10831. shlibpath_overrides_runpath=yes
  10832. hardcode_into_libs=yes
  10833. ;;
  10834. newsos6)
  10835. version_type=linux # correct to gnu/linux during the next big refactor
  10836. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10837. shlibpath_var=LD_LIBRARY_PATH
  10838. shlibpath_overrides_runpath=yes
  10839. ;;
  10840. *nto* | *qnx*)
  10841. version_type=qnx
  10842. need_lib_prefix=no
  10843. need_version=no
  10844. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10845. soname_spec='$libname$release$shared_ext$major'
  10846. shlibpath_var=LD_LIBRARY_PATH
  10847. shlibpath_overrides_runpath=no
  10848. hardcode_into_libs=yes
  10849. dynamic_linker='ldqnx.so'
  10850. ;;
  10851. openbsd* | bitrig*)
  10852. version_type=sunos
  10853. sys_lib_dlsearch_path_spec=/usr/lib
  10854. need_lib_prefix=no
  10855. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10856. need_version=no
  10857. else
  10858. need_version=yes
  10859. fi
  10860. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10861. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10862. shlibpath_var=LD_LIBRARY_PATH
  10863. shlibpath_overrides_runpath=yes
  10864. ;;
  10865. os2*)
  10866. libname_spec='$name'
  10867. version_type=windows
  10868. shrext_cmds=.dll
  10869. need_version=no
  10870. need_lib_prefix=no
  10871. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10872. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10873. v=$($ECHO $release$versuffix | tr -d .-);
  10874. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10875. $ECHO $n$v`$shared_ext'
  10876. library_names_spec='${libname}_dll.$libext'
  10877. dynamic_linker='OS/2 ld.exe'
  10878. shlibpath_var=BEGINLIBPATH
  10879. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10880. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10881. postinstall_cmds='base_file=`basename \$file`~
  10882. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10883. dldir=$destdir/`dirname \$dlpath`~
  10884. test -d \$dldir || mkdir -p \$dldir~
  10885. $install_prog $dir/$dlname \$dldir/$dlname~
  10886. chmod a+x \$dldir/$dlname~
  10887. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10888. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10889. fi'
  10890. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10891. dlpath=$dir/\$dldll~
  10892. $RM \$dlpath'
  10893. ;;
  10894. osf3* | osf4* | osf5*)
  10895. version_type=osf
  10896. need_lib_prefix=no
  10897. need_version=no
  10898. soname_spec='$libname$release$shared_ext$major'
  10899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10900. shlibpath_var=LD_LIBRARY_PATH
  10901. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10902. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10903. ;;
  10904. rdos*)
  10905. dynamic_linker=no
  10906. ;;
  10907. solaris*)
  10908. version_type=linux # correct to gnu/linux during the next big refactor
  10909. need_lib_prefix=no
  10910. need_version=no
  10911. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10912. soname_spec='$libname$release$shared_ext$major'
  10913. shlibpath_var=LD_LIBRARY_PATH
  10914. shlibpath_overrides_runpath=yes
  10915. hardcode_into_libs=yes
  10916. # ldd complains unless libraries are executable
  10917. postinstall_cmds='chmod +x $lib'
  10918. ;;
  10919. sunos4*)
  10920. version_type=sunos
  10921. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10922. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10923. shlibpath_var=LD_LIBRARY_PATH
  10924. shlibpath_overrides_runpath=yes
  10925. if test yes = "$with_gnu_ld"; then
  10926. need_lib_prefix=no
  10927. fi
  10928. need_version=yes
  10929. ;;
  10930. sysv4 | sysv4.3*)
  10931. version_type=linux # correct to gnu/linux during the next big refactor
  10932. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10933. soname_spec='$libname$release$shared_ext$major'
  10934. shlibpath_var=LD_LIBRARY_PATH
  10935. case $host_vendor in
  10936. sni)
  10937. shlibpath_overrides_runpath=no
  10938. need_lib_prefix=no
  10939. runpath_var=LD_RUN_PATH
  10940. ;;
  10941. siemens)
  10942. need_lib_prefix=no
  10943. ;;
  10944. motorola)
  10945. need_lib_prefix=no
  10946. need_version=no
  10947. shlibpath_overrides_runpath=no
  10948. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10949. ;;
  10950. esac
  10951. ;;
  10952. sysv4*MP*)
  10953. if test -d /usr/nec; then
  10954. version_type=linux # correct to gnu/linux during the next big refactor
  10955. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10956. soname_spec='$libname$shared_ext.$major'
  10957. shlibpath_var=LD_LIBRARY_PATH
  10958. fi
  10959. ;;
  10960. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10961. version_type=sco
  10962. need_lib_prefix=no
  10963. need_version=no
  10964. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10965. soname_spec='$libname$release$shared_ext$major'
  10966. shlibpath_var=LD_LIBRARY_PATH
  10967. shlibpath_overrides_runpath=yes
  10968. hardcode_into_libs=yes
  10969. if test yes = "$with_gnu_ld"; then
  10970. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10971. else
  10972. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10973. case $host_os in
  10974. sco3.2v5*)
  10975. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10976. ;;
  10977. esac
  10978. fi
  10979. sys_lib_dlsearch_path_spec='/usr/lib'
  10980. ;;
  10981. tpf*)
  10982. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10983. version_type=linux # correct to gnu/linux during the next big refactor
  10984. need_lib_prefix=no
  10985. need_version=no
  10986. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10987. shlibpath_var=LD_LIBRARY_PATH
  10988. shlibpath_overrides_runpath=no
  10989. hardcode_into_libs=yes
  10990. ;;
  10991. uts4*)
  10992. version_type=linux # correct to gnu/linux during the next big refactor
  10993. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10994. soname_spec='$libname$release$shared_ext$major'
  10995. shlibpath_var=LD_LIBRARY_PATH
  10996. ;;
  10997. *)
  10998. dynamic_linker=no
  10999. ;;
  11000. esac
  11001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11002. printf "%s\n" "$dynamic_linker" >&6; }
  11003. test no = "$dynamic_linker" && can_build_shared=no
  11004. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11005. if test yes = "$GCC"; then
  11006. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11007. fi
  11008. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11009. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11010. fi
  11011. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11012. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11013. fi
  11014. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11015. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11016. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11017. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11018. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11019. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11021. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11022. hardcode_action=
  11023. if test -n "$hardcode_libdir_flag_spec" ||
  11024. test -n "$runpath_var" ||
  11025. test yes = "$hardcode_automatic"; then
  11026. # We can hardcode non-existent directories.
  11027. if test no != "$hardcode_direct" &&
  11028. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11029. # have to relink, otherwise we might link with an installed library
  11030. # when we should be linking with a yet-to-be-installed one
  11031. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11032. test no != "$hardcode_minus_L"; then
  11033. # Linking always hardcodes the temporary library directory.
  11034. hardcode_action=relink
  11035. else
  11036. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11037. hardcode_action=immediate
  11038. fi
  11039. else
  11040. # We cannot hardcode anything, or else we can only hardcode existing
  11041. # directories.
  11042. hardcode_action=unsupported
  11043. fi
  11044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11045. printf "%s\n" "$hardcode_action" >&6; }
  11046. if test relink = "$hardcode_action" ||
  11047. test yes = "$inherit_rpath"; then
  11048. # Fast installation is not supported
  11049. enable_fast_install=no
  11050. elif test yes = "$shlibpath_overrides_runpath" ||
  11051. test no = "$enable_shared"; then
  11052. # Fast installation is not necessary
  11053. enable_fast_install=needless
  11054. fi
  11055. if test yes != "$enable_dlopen"; then
  11056. enable_dlopen=unknown
  11057. enable_dlopen_self=unknown
  11058. enable_dlopen_self_static=unknown
  11059. else
  11060. lt_cv_dlopen=no
  11061. lt_cv_dlopen_libs=
  11062. case $host_os in
  11063. beos*)
  11064. lt_cv_dlopen=load_add_on
  11065. lt_cv_dlopen_libs=
  11066. lt_cv_dlopen_self=yes
  11067. ;;
  11068. mingw* | pw32* | cegcc*)
  11069. lt_cv_dlopen=LoadLibrary
  11070. lt_cv_dlopen_libs=
  11071. ;;
  11072. cygwin*)
  11073. lt_cv_dlopen=dlopen
  11074. lt_cv_dlopen_libs=
  11075. ;;
  11076. darwin*)
  11077. # if libdl is installed we need to link against it
  11078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11079. printf %s "checking for dlopen in -ldl... " >&6; }
  11080. if test ${ac_cv_lib_dl_dlopen+y}
  11081. then :
  11082. printf %s "(cached) " >&6
  11083. else $as_nop
  11084. ac_check_lib_save_LIBS=$LIBS
  11085. LIBS="-ldl $LIBS"
  11086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11087. /* end confdefs.h. */
  11088. /* Override any GCC internal prototype to avoid an error.
  11089. Use char because int might match the return type of a GCC
  11090. builtin and then its argument prototype would still apply. */
  11091. char dlopen ();
  11092. int
  11093. main (void)
  11094. {
  11095. return dlopen ();
  11096. ;
  11097. return 0;
  11098. }
  11099. _ACEOF
  11100. if ac_fn_c_try_link "$LINENO"
  11101. then :
  11102. ac_cv_lib_dl_dlopen=yes
  11103. else $as_nop
  11104. ac_cv_lib_dl_dlopen=no
  11105. fi
  11106. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11107. conftest$ac_exeext conftest.$ac_ext
  11108. LIBS=$ac_check_lib_save_LIBS
  11109. fi
  11110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11111. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11112. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11113. then :
  11114. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11115. else $as_nop
  11116. lt_cv_dlopen=dyld
  11117. lt_cv_dlopen_libs=
  11118. lt_cv_dlopen_self=yes
  11119. fi
  11120. ;;
  11121. tpf*)
  11122. # Don't try to run any link tests for TPF. We know it's impossible
  11123. # because TPF is a cross-compiler, and we know how we open DSOs.
  11124. lt_cv_dlopen=dlopen
  11125. lt_cv_dlopen_libs=
  11126. lt_cv_dlopen_self=no
  11127. ;;
  11128. *)
  11129. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11130. if test "x$ac_cv_func_shl_load" = xyes
  11131. then :
  11132. lt_cv_dlopen=shl_load
  11133. else $as_nop
  11134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11135. printf %s "checking for shl_load in -ldld... " >&6; }
  11136. if test ${ac_cv_lib_dld_shl_load+y}
  11137. then :
  11138. printf %s "(cached) " >&6
  11139. else $as_nop
  11140. ac_check_lib_save_LIBS=$LIBS
  11141. LIBS="-ldld $LIBS"
  11142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11143. /* end confdefs.h. */
  11144. /* Override any GCC internal prototype to avoid an error.
  11145. Use char because int might match the return type of a GCC
  11146. builtin and then its argument prototype would still apply. */
  11147. char shl_load ();
  11148. int
  11149. main (void)
  11150. {
  11151. return shl_load ();
  11152. ;
  11153. return 0;
  11154. }
  11155. _ACEOF
  11156. if ac_fn_c_try_link "$LINENO"
  11157. then :
  11158. ac_cv_lib_dld_shl_load=yes
  11159. else $as_nop
  11160. ac_cv_lib_dld_shl_load=no
  11161. fi
  11162. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11163. conftest$ac_exeext conftest.$ac_ext
  11164. LIBS=$ac_check_lib_save_LIBS
  11165. fi
  11166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11167. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11168. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11169. then :
  11170. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11171. else $as_nop
  11172. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11173. if test "x$ac_cv_func_dlopen" = xyes
  11174. then :
  11175. lt_cv_dlopen=dlopen
  11176. else $as_nop
  11177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11178. printf %s "checking for dlopen in -ldl... " >&6; }
  11179. if test ${ac_cv_lib_dl_dlopen+y}
  11180. then :
  11181. printf %s "(cached) " >&6
  11182. else $as_nop
  11183. ac_check_lib_save_LIBS=$LIBS
  11184. LIBS="-ldl $LIBS"
  11185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11186. /* end confdefs.h. */
  11187. /* Override any GCC internal prototype to avoid an error.
  11188. Use char because int might match the return type of a GCC
  11189. builtin and then its argument prototype would still apply. */
  11190. char dlopen ();
  11191. int
  11192. main (void)
  11193. {
  11194. return dlopen ();
  11195. ;
  11196. return 0;
  11197. }
  11198. _ACEOF
  11199. if ac_fn_c_try_link "$LINENO"
  11200. then :
  11201. ac_cv_lib_dl_dlopen=yes
  11202. else $as_nop
  11203. ac_cv_lib_dl_dlopen=no
  11204. fi
  11205. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11206. conftest$ac_exeext conftest.$ac_ext
  11207. LIBS=$ac_check_lib_save_LIBS
  11208. fi
  11209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11210. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11211. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11212. then :
  11213. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11214. else $as_nop
  11215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11216. printf %s "checking for dlopen in -lsvld... " >&6; }
  11217. if test ${ac_cv_lib_svld_dlopen+y}
  11218. then :
  11219. printf %s "(cached) " >&6
  11220. else $as_nop
  11221. ac_check_lib_save_LIBS=$LIBS
  11222. LIBS="-lsvld $LIBS"
  11223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11224. /* end confdefs.h. */
  11225. /* Override any GCC internal prototype to avoid an error.
  11226. Use char because int might match the return type of a GCC
  11227. builtin and then its argument prototype would still apply. */
  11228. char dlopen ();
  11229. int
  11230. main (void)
  11231. {
  11232. return dlopen ();
  11233. ;
  11234. return 0;
  11235. }
  11236. _ACEOF
  11237. if ac_fn_c_try_link "$LINENO"
  11238. then :
  11239. ac_cv_lib_svld_dlopen=yes
  11240. else $as_nop
  11241. ac_cv_lib_svld_dlopen=no
  11242. fi
  11243. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11244. conftest$ac_exeext conftest.$ac_ext
  11245. LIBS=$ac_check_lib_save_LIBS
  11246. fi
  11247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11248. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11249. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11250. then :
  11251. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11252. else $as_nop
  11253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11254. printf %s "checking for dld_link in -ldld... " >&6; }
  11255. if test ${ac_cv_lib_dld_dld_link+y}
  11256. then :
  11257. printf %s "(cached) " >&6
  11258. else $as_nop
  11259. ac_check_lib_save_LIBS=$LIBS
  11260. LIBS="-ldld $LIBS"
  11261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11262. /* end confdefs.h. */
  11263. /* Override any GCC internal prototype to avoid an error.
  11264. Use char because int might match the return type of a GCC
  11265. builtin and then its argument prototype would still apply. */
  11266. char dld_link ();
  11267. int
  11268. main (void)
  11269. {
  11270. return dld_link ();
  11271. ;
  11272. return 0;
  11273. }
  11274. _ACEOF
  11275. if ac_fn_c_try_link "$LINENO"
  11276. then :
  11277. ac_cv_lib_dld_dld_link=yes
  11278. else $as_nop
  11279. ac_cv_lib_dld_dld_link=no
  11280. fi
  11281. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11282. conftest$ac_exeext conftest.$ac_ext
  11283. LIBS=$ac_check_lib_save_LIBS
  11284. fi
  11285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11286. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11287. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11288. then :
  11289. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11290. fi
  11291. fi
  11292. fi
  11293. fi
  11294. fi
  11295. fi
  11296. ;;
  11297. esac
  11298. if test no = "$lt_cv_dlopen"; then
  11299. enable_dlopen=no
  11300. else
  11301. enable_dlopen=yes
  11302. fi
  11303. case $lt_cv_dlopen in
  11304. dlopen)
  11305. save_CPPFLAGS=$CPPFLAGS
  11306. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11307. save_LDFLAGS=$LDFLAGS
  11308. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11309. save_LIBS=$LIBS
  11310. LIBS="$lt_cv_dlopen_libs $LIBS"
  11311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11312. printf %s "checking whether a program can dlopen itself... " >&6; }
  11313. if test ${lt_cv_dlopen_self+y}
  11314. then :
  11315. printf %s "(cached) " >&6
  11316. else $as_nop
  11317. if test yes = "$cross_compiling"; then :
  11318. lt_cv_dlopen_self=cross
  11319. else
  11320. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11321. lt_status=$lt_dlunknown
  11322. cat > conftest.$ac_ext <<_LT_EOF
  11323. #line $LINENO "configure"
  11324. #include "confdefs.h"
  11325. #if HAVE_DLFCN_H
  11326. #include <dlfcn.h>
  11327. #endif
  11328. #include <stdio.h>
  11329. #ifdef RTLD_GLOBAL
  11330. # define LT_DLGLOBAL RTLD_GLOBAL
  11331. #else
  11332. # ifdef DL_GLOBAL
  11333. # define LT_DLGLOBAL DL_GLOBAL
  11334. # else
  11335. # define LT_DLGLOBAL 0
  11336. # endif
  11337. #endif
  11338. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11339. find out it does not work in some platform. */
  11340. #ifndef LT_DLLAZY_OR_NOW
  11341. # ifdef RTLD_LAZY
  11342. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11343. # else
  11344. # ifdef DL_LAZY
  11345. # define LT_DLLAZY_OR_NOW DL_LAZY
  11346. # else
  11347. # ifdef RTLD_NOW
  11348. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11349. # else
  11350. # ifdef DL_NOW
  11351. # define LT_DLLAZY_OR_NOW DL_NOW
  11352. # else
  11353. # define LT_DLLAZY_OR_NOW 0
  11354. # endif
  11355. # endif
  11356. # endif
  11357. # endif
  11358. #endif
  11359. /* When -fvisibility=hidden is used, assume the code has been annotated
  11360. correspondingly for the symbols needed. */
  11361. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11362. int fnord () __attribute__((visibility("default")));
  11363. #endif
  11364. int fnord () { return 42; }
  11365. int main ()
  11366. {
  11367. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11368. int status = $lt_dlunknown;
  11369. if (self)
  11370. {
  11371. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11372. else
  11373. {
  11374. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11375. else puts (dlerror ());
  11376. }
  11377. /* dlclose (self); */
  11378. }
  11379. else
  11380. puts (dlerror ());
  11381. return status;
  11382. }
  11383. _LT_EOF
  11384. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11385. (eval $ac_link) 2>&5
  11386. ac_status=$?
  11387. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11388. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11389. (./conftest; exit; ) >&5 2>/dev/null
  11390. lt_status=$?
  11391. case x$lt_status in
  11392. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11393. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11394. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11395. esac
  11396. else :
  11397. # compilation failed
  11398. lt_cv_dlopen_self=no
  11399. fi
  11400. fi
  11401. rm -fr conftest*
  11402. fi
  11403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11404. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11405. if test yes = "$lt_cv_dlopen_self"; then
  11406. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11408. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11409. if test ${lt_cv_dlopen_self_static+y}
  11410. then :
  11411. printf %s "(cached) " >&6
  11412. else $as_nop
  11413. if test yes = "$cross_compiling"; then :
  11414. lt_cv_dlopen_self_static=cross
  11415. else
  11416. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11417. lt_status=$lt_dlunknown
  11418. cat > conftest.$ac_ext <<_LT_EOF
  11419. #line $LINENO "configure"
  11420. #include "confdefs.h"
  11421. #if HAVE_DLFCN_H
  11422. #include <dlfcn.h>
  11423. #endif
  11424. #include <stdio.h>
  11425. #ifdef RTLD_GLOBAL
  11426. # define LT_DLGLOBAL RTLD_GLOBAL
  11427. #else
  11428. # ifdef DL_GLOBAL
  11429. # define LT_DLGLOBAL DL_GLOBAL
  11430. # else
  11431. # define LT_DLGLOBAL 0
  11432. # endif
  11433. #endif
  11434. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11435. find out it does not work in some platform. */
  11436. #ifndef LT_DLLAZY_OR_NOW
  11437. # ifdef RTLD_LAZY
  11438. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11439. # else
  11440. # ifdef DL_LAZY
  11441. # define LT_DLLAZY_OR_NOW DL_LAZY
  11442. # else
  11443. # ifdef RTLD_NOW
  11444. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11445. # else
  11446. # ifdef DL_NOW
  11447. # define LT_DLLAZY_OR_NOW DL_NOW
  11448. # else
  11449. # define LT_DLLAZY_OR_NOW 0
  11450. # endif
  11451. # endif
  11452. # endif
  11453. # endif
  11454. #endif
  11455. /* When -fvisibility=hidden is used, assume the code has been annotated
  11456. correspondingly for the symbols needed. */
  11457. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11458. int fnord () __attribute__((visibility("default")));
  11459. #endif
  11460. int fnord () { return 42; }
  11461. int main ()
  11462. {
  11463. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11464. int status = $lt_dlunknown;
  11465. if (self)
  11466. {
  11467. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11468. else
  11469. {
  11470. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11471. else puts (dlerror ());
  11472. }
  11473. /* dlclose (self); */
  11474. }
  11475. else
  11476. puts (dlerror ());
  11477. return status;
  11478. }
  11479. _LT_EOF
  11480. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11481. (eval $ac_link) 2>&5
  11482. ac_status=$?
  11483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11484. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11485. (./conftest; exit; ) >&5 2>/dev/null
  11486. lt_status=$?
  11487. case x$lt_status in
  11488. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11489. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11490. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11491. esac
  11492. else :
  11493. # compilation failed
  11494. lt_cv_dlopen_self_static=no
  11495. fi
  11496. fi
  11497. rm -fr conftest*
  11498. fi
  11499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11500. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11501. fi
  11502. CPPFLAGS=$save_CPPFLAGS
  11503. LDFLAGS=$save_LDFLAGS
  11504. LIBS=$save_LIBS
  11505. ;;
  11506. esac
  11507. case $lt_cv_dlopen_self in
  11508. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11509. *) enable_dlopen_self=unknown ;;
  11510. esac
  11511. case $lt_cv_dlopen_self_static in
  11512. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11513. *) enable_dlopen_self_static=unknown ;;
  11514. esac
  11515. fi
  11516. striplib=
  11517. old_striplib=
  11518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11519. printf %s "checking whether stripping libraries is possible... " >&6; }
  11520. if test -z "$STRIP"; then
  11521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11522. printf "%s\n" "no" >&6; }
  11523. else
  11524. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11525. old_striplib="$STRIP --strip-debug"
  11526. striplib="$STRIP --strip-unneeded"
  11527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11528. printf "%s\n" "yes" >&6; }
  11529. else
  11530. case $host_os in
  11531. darwin*)
  11532. # FIXME - insert some real tests, host_os isn't really good enough
  11533. striplib="$STRIP -x"
  11534. old_striplib="$STRIP -S"
  11535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11536. printf "%s\n" "yes" >&6; }
  11537. ;;
  11538. freebsd*)
  11539. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11540. old_striplib="$STRIP --strip-debug"
  11541. striplib="$STRIP --strip-unneeded"
  11542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11543. printf "%s\n" "yes" >&6; }
  11544. else
  11545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11546. printf "%s\n" "no" >&6; }
  11547. fi
  11548. ;;
  11549. *)
  11550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11551. printf "%s\n" "no" >&6; }
  11552. ;;
  11553. esac
  11554. fi
  11555. fi
  11556. # Report what library types will actually be built
  11557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11558. printf %s "checking if libtool supports shared libraries... " >&6; }
  11559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11560. printf "%s\n" "$can_build_shared" >&6; }
  11561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11562. printf %s "checking whether to build shared libraries... " >&6; }
  11563. test no = "$can_build_shared" && enable_shared=no
  11564. # On AIX, shared libraries and static libraries use the same namespace, and
  11565. # are all built from PIC.
  11566. case $host_os in
  11567. aix3*)
  11568. test yes = "$enable_shared" && enable_static=no
  11569. if test -n "$RANLIB"; then
  11570. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11571. postinstall_cmds='$RANLIB $lib'
  11572. fi
  11573. ;;
  11574. aix[4-9]*)
  11575. if test ia64 != "$host_cpu"; then
  11576. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11577. yes,aix,yes) ;; # shared object as lib.so file only
  11578. yes,svr4,*) ;; # shared object as lib.so archive member only
  11579. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11580. esac
  11581. fi
  11582. ;;
  11583. esac
  11584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11585. printf "%s\n" "$enable_shared" >&6; }
  11586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11587. printf %s "checking whether to build static libraries... " >&6; }
  11588. # Make sure either enable_shared or enable_static is yes.
  11589. test yes = "$enable_shared" || enable_static=yes
  11590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11591. printf "%s\n" "$enable_static" >&6; }
  11592. fi
  11593. ac_ext=c
  11594. ac_cpp='$CPP $CPPFLAGS'
  11595. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11596. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11597. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11598. CC=$lt_save_CC
  11599. ac_config_commands="$ac_config_commands libtool"
  11600. # Only expand once:
  11601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  11602. printf %s "checking whether ln -s works... " >&6; }
  11603. LN_S=$as_ln_s
  11604. if test "$LN_S" = "ln -s"; then
  11605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11606. printf "%s\n" "yes" >&6; }
  11607. else
  11608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  11609. printf "%s\n" "no, using $LN_S" >&6; }
  11610. fi
  11611. # Check for GCC visibility feature
  11612. VISIBILITY_CFLAGS=
  11613. VISIBILITY_CXXFLAGS=
  11614. HAVE_VISIBILITY=0
  11615. if test -n "$GCC"; then
  11616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  11617. printf %s "checking whether the -Werror option is usable... " >&6; }
  11618. if test ${pcre2_cv_cc_vis_werror+y}
  11619. then :
  11620. printf %s "(cached) " >&6
  11621. else $as_nop
  11622. pcre2_save_CFLAGS="$CFLAGS"
  11623. CFLAGS="$CFLAGS -Werror"
  11624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11625. /* end confdefs.h. */
  11626. int
  11627. main (void)
  11628. {
  11629. ;
  11630. return 0;
  11631. }
  11632. _ACEOF
  11633. if ac_fn_c_try_compile "$LINENO"
  11634. then :
  11635. pcre2_cv_cc_vis_werror=yes
  11636. else $as_nop
  11637. pcre2_cv_cc_vis_werror=no
  11638. fi
  11639. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11640. CFLAGS="$pcre2_save_CFLAGS"
  11641. fi
  11642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_vis_werror" >&5
  11643. printf "%s\n" "$pcre2_cv_cc_vis_werror" >&6; }
  11644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  11645. printf %s "checking for simple visibility declarations... " >&6; }
  11646. if test ${pcre2_cv_cc_visibility+y}
  11647. then :
  11648. printf %s "(cached) " >&6
  11649. else $as_nop
  11650. pcre2_save_CFLAGS="$CFLAGS"
  11651. CFLAGS="$CFLAGS -fvisibility=hidden"
  11652. if test $pcre2_cv_cc_vis_werror = yes; then
  11653. CFLAGS="$CFLAGS -Werror"
  11654. fi
  11655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11656. /* end confdefs.h. */
  11657. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  11658. extern __attribute__((__visibility__("default"))) int exportedvar;
  11659. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  11660. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  11661. void dummyfunc (void) {}
  11662. int
  11663. main (void)
  11664. {
  11665. ;
  11666. return 0;
  11667. }
  11668. _ACEOF
  11669. if ac_fn_c_try_compile "$LINENO"
  11670. then :
  11671. pcre2_cv_cc_visibility=yes
  11672. else $as_nop
  11673. pcre2_cv_cc_visibility=no
  11674. fi
  11675. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11676. CFLAGS="$pcre2_save_CFLAGS"
  11677. fi
  11678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_visibility" >&5
  11679. printf "%s\n" "$pcre2_cv_cc_visibility" >&6; }
  11680. if test $pcre2_cv_cc_visibility = yes; then
  11681. VISIBILITY_CFLAGS="-fvisibility=hidden"
  11682. VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
  11683. HAVE_VISIBILITY=1
  11684. printf "%s\n" "#define PCRE2_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
  11685. printf "%s\n" "#define PCRE2_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
  11686. printf "%s\n" "#define PCRE2POSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
  11687. printf "%s\n" "#define PCRE2POSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
  11688. fi
  11689. fi
  11690. printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
  11691. # Check for Clang __attribute__((uninitialized)) feature
  11692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((uninitialized))" >&5
  11693. printf %s "checking for __attribute__((uninitialized))... " >&6; }
  11694. ac_ext=c
  11695. ac_cpp='$CPP $CPPFLAGS'
  11696. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11697. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11698. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11699. tmp_CFLAGS=$CFLAGS
  11700. CFLAGS="$CFLAGS -Werror"
  11701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11702. /* end confdefs.h. */
  11703. int
  11704. main (void)
  11705. {
  11706. char buf[128] __attribute__((uninitialized));(void)buf
  11707. ;
  11708. return 0;
  11709. }
  11710. _ACEOF
  11711. if ac_fn_c_try_compile "$LINENO"
  11712. then :
  11713. pcre2_cc_cv_attribute_uninitialized=yes
  11714. else $as_nop
  11715. pcre2_cc_cv_attribute_uninitialized=no
  11716. fi
  11717. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_attribute_uninitialized" >&5
  11719. printf "%s\n" "$pcre2_cc_cv_attribute_uninitialized" >&6; }
  11720. if test "$pcre2_cc_cv_attribute_uninitialized" = yes; then
  11721. printf "%s\n" "#define HAVE_ATTRIBUTE_UNINITIALIZED 1" >>confdefs.h
  11722. fi
  11723. CFLAGS=$tmp_CFLAGS
  11724. ac_ext=c
  11725. ac_cpp='$CPP $CPPFLAGS'
  11726. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11727. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11728. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11729. # Versioning
  11730. PCRE2_MAJOR="10"
  11731. PCRE2_MINOR="39"
  11732. PCRE2_PRERELEASE=""
  11733. PCRE2_DATE="2021-10-29"
  11734. if test "$PCRE2_MINOR" = "08" -o "$PCRE2_MINOR" = "09"
  11735. then
  11736. echo "***"
  11737. echo "*** Minor version number $PCRE2_MINOR must not be used. ***"
  11738. echo "*** Use only 00 to 07 or 10 onwards, to avoid octal issues. ***"
  11739. echo "***"
  11740. exit 1
  11741. fi
  11742. # Set a more sensible default value for $(htmldir).
  11743. if test "x$htmldir" = 'x${docdir}'
  11744. then
  11745. htmldir='${docdir}/html'
  11746. fi
  11747. # Force an error for PCRE1 size options
  11748. # Check whether --enable-pcre8 was given.
  11749. if test ${enable_pcre8+y}
  11750. then :
  11751. enableval=$enable_pcre8;
  11752. else $as_nop
  11753. enable_pcre8=no
  11754. fi
  11755. # Check whether --enable-pcre16 was given.
  11756. if test ${enable_pcre16+y}
  11757. then :
  11758. enableval=$enable_pcre16;
  11759. else $as_nop
  11760. enable_pcre16=no
  11761. fi
  11762. # Check whether --enable-pcre32 was given.
  11763. if test ${enable_pcre32+y}
  11764. then :
  11765. enableval=$enable_pcre32;
  11766. else $as_nop
  11767. enable_pcre32=no
  11768. fi
  11769. if test "$enable_pcre8$enable_pcre16$enable_pcre32" != "nonono"
  11770. then
  11771. echo "** ERROR: Use --[en|dis]able-pcre2-[8|16|32], not --[en|dis]able-pcre[8|16|32]"
  11772. exit 1
  11773. fi
  11774. # Handle --disable-pcre2-8 (enabled by default)
  11775. # Check whether --enable-pcre2-8 was given.
  11776. if test ${enable_pcre2_8+y}
  11777. then :
  11778. enableval=$enable_pcre2_8;
  11779. else $as_nop
  11780. enable_pcre2_8=unset
  11781. fi
  11782. # Handle --enable-pcre2-16 (disabled by default)
  11783. # Check whether --enable-pcre2-16 was given.
  11784. if test ${enable_pcre2_16+y}
  11785. then :
  11786. enableval=$enable_pcre2_16;
  11787. else $as_nop
  11788. enable_pcre2_16=unset
  11789. fi
  11790. # Handle --enable-pcre2-32 (disabled by default)
  11791. # Check whether --enable-pcre2-32 was given.
  11792. if test ${enable_pcre2_32+y}
  11793. then :
  11794. enableval=$enable_pcre2_32;
  11795. else $as_nop
  11796. enable_pcre2_32=unset
  11797. fi
  11798. # Handle --enable-debug (disabled by default)
  11799. # Check whether --enable-debug was given.
  11800. if test ${enable_debug+y}
  11801. then :
  11802. enableval=$enable_debug;
  11803. else $as_nop
  11804. enable_debug=no
  11805. fi
  11806. # Handle --enable-jit (disabled by default)
  11807. # Check whether --enable-jit was given.
  11808. if test ${enable_jit+y}
  11809. then :
  11810. enableval=$enable_jit;
  11811. else $as_nop
  11812. enable_jit=no
  11813. fi
  11814. # This code enables JIT if the hardware supports it.
  11815. if test "$enable_jit" = "auto"; then
  11816. ac_ext=c
  11817. ac_cpp='$CPP $CPPFLAGS'
  11818. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11819. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11820. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11821. SAVE_CPPFLAGS=$CPPFLAGS
  11822. CPPFLAGS=-I$srcdir
  11823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h. */
  11825. #define SLJIT_CONFIG_AUTO 1
  11826. #include "src/sljit/sljitConfigInternal.h"
  11827. #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
  11828. #error unsupported
  11829. #endif
  11830. _ACEOF
  11831. if ac_fn_c_try_compile "$LINENO"
  11832. then :
  11833. enable_jit=yes
  11834. else $as_nop
  11835. enable_jit=no
  11836. fi
  11837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11838. CPPFLAGS=$SAVE_CPPFLAGS
  11839. echo checking for JIT support on this hardware... $enable_jit
  11840. fi
  11841. # Handle --enable-jit-sealloc (disabled by default and only experimental)
  11842. case $host_os in
  11843. linux* | netbsd*)
  11844. # Check whether --enable-jit-sealloc was given.
  11845. if test ${enable_jit_sealloc+y}
  11846. then :
  11847. enableval=$enable_jit_sealloc;
  11848. else $as_nop
  11849. enable_jit_sealloc=no
  11850. fi
  11851. ;;
  11852. *)
  11853. enable_jit_sealloc=unsupported
  11854. ;;
  11855. esac
  11856. # Handle --disable-pcre2grep-jit (enabled by default)
  11857. # Check whether --enable-pcre2grep-jit was given.
  11858. if test ${enable_pcre2grep_jit+y}
  11859. then :
  11860. enableval=$enable_pcre2grep_jit;
  11861. else $as_nop
  11862. enable_pcre2grep_jit=yes
  11863. fi
  11864. # Handle --disable-pcre2grep-callout (enabled by default)
  11865. # Check whether --enable-pcre2grep-callout was given.
  11866. if test ${enable_pcre2grep_callout+y}
  11867. then :
  11868. enableval=$enable_pcre2grep_callout;
  11869. else $as_nop
  11870. enable_pcre2grep_callout=yes
  11871. fi
  11872. # Handle --disable-pcre2grep-callout-fork (enabled by default)
  11873. # Check whether --enable-pcre2grep-callout-fork was given.
  11874. if test ${enable_pcre2grep_callout_fork+y}
  11875. then :
  11876. enableval=$enable_pcre2grep_callout_fork;
  11877. else $as_nop
  11878. enable_pcre2grep_callout_fork=yes
  11879. fi
  11880. # Handle --enable-rebuild-chartables
  11881. # Check whether --enable-rebuild-chartables was given.
  11882. if test ${enable_rebuild_chartables+y}
  11883. then :
  11884. enableval=$enable_rebuild_chartables;
  11885. else $as_nop
  11886. enable_rebuild_chartables=no
  11887. fi
  11888. # Handle --disable-unicode (enabled by default)
  11889. # Check whether --enable-unicode was given.
  11890. if test ${enable_unicode+y}
  11891. then :
  11892. enableval=$enable_unicode;
  11893. else $as_nop
  11894. enable_unicode=unset
  11895. fi
  11896. # Handle newline options
  11897. ac_pcre2_newline=lf
  11898. # Check whether --enable-newline-is-cr was given.
  11899. if test ${enable_newline_is_cr+y}
  11900. then :
  11901. enableval=$enable_newline_is_cr; ac_pcre2_newline=cr
  11902. fi
  11903. # Check whether --enable-newline-is-lf was given.
  11904. if test ${enable_newline_is_lf+y}
  11905. then :
  11906. enableval=$enable_newline_is_lf; ac_pcre2_newline=lf
  11907. fi
  11908. # Check whether --enable-newline-is-crlf was given.
  11909. if test ${enable_newline_is_crlf+y}
  11910. then :
  11911. enableval=$enable_newline_is_crlf; ac_pcre2_newline=crlf
  11912. fi
  11913. # Check whether --enable-newline-is-anycrlf was given.
  11914. if test ${enable_newline_is_anycrlf+y}
  11915. then :
  11916. enableval=$enable_newline_is_anycrlf; ac_pcre2_newline=anycrlf
  11917. fi
  11918. # Check whether --enable-newline-is-any was given.
  11919. if test ${enable_newline_is_any+y}
  11920. then :
  11921. enableval=$enable_newline_is_any; ac_pcre2_newline=any
  11922. fi
  11923. # Check whether --enable-newline-is-nul was given.
  11924. if test ${enable_newline_is_nul+y}
  11925. then :
  11926. enableval=$enable_newline_is_nul; ac_pcre2_newline=nul
  11927. fi
  11928. enable_newline="$ac_pcre2_newline"
  11929. # Handle --enable-bsr-anycrlf
  11930. # Check whether --enable-bsr-anycrlf was given.
  11931. if test ${enable_bsr_anycrlf+y}
  11932. then :
  11933. enableval=$enable_bsr_anycrlf;
  11934. else $as_nop
  11935. enable_bsr_anycrlf=no
  11936. fi
  11937. # Handle --enable-never-backslash-C
  11938. # Check whether --enable-never-backslash-C was given.
  11939. if test ${enable_never_backslash_C+y}
  11940. then :
  11941. enableval=$enable_never_backslash_C;
  11942. else $as_nop
  11943. enable_never_backslash_C=no
  11944. fi
  11945. # Handle --enable-ebcdic
  11946. # Check whether --enable-ebcdic was given.
  11947. if test ${enable_ebcdic+y}
  11948. then :
  11949. enableval=$enable_ebcdic;
  11950. else $as_nop
  11951. enable_ebcdic=no
  11952. fi
  11953. # Handle --enable-ebcdic-nl25
  11954. # Check whether --enable-ebcdic-nl25 was given.
  11955. if test ${enable_ebcdic_nl25+y}
  11956. then :
  11957. enableval=$enable_ebcdic_nl25;
  11958. else $as_nop
  11959. enable_ebcdic_nl25=no
  11960. fi
  11961. # Handle --enable-pcre2grep-libz
  11962. # Check whether --enable-pcre2grep-libz was given.
  11963. if test ${enable_pcre2grep_libz+y}
  11964. then :
  11965. enableval=$enable_pcre2grep_libz;
  11966. else $as_nop
  11967. enable_pcre2grep_libz=no
  11968. fi
  11969. # Handle --enable-pcre2grep-libbz2
  11970. # Check whether --enable-pcre2grep-libbz2 was given.
  11971. if test ${enable_pcre2grep_libbz2+y}
  11972. then :
  11973. enableval=$enable_pcre2grep_libbz2;
  11974. else $as_nop
  11975. enable_pcre2grep_libbz2=no
  11976. fi
  11977. # Handle --with-pcre2grep-bufsize=N
  11978. # Check whether --with-pcre2grep-bufsize was given.
  11979. if test ${with_pcre2grep_bufsize+y}
  11980. then :
  11981. withval=$with_pcre2grep_bufsize;
  11982. else $as_nop
  11983. with_pcre2grep_bufsize=20480
  11984. fi
  11985. # Handle --with-pcre2grep-max-bufsize=N
  11986. # Check whether --with-pcre2grep-max-bufsize was given.
  11987. if test ${with_pcre2grep_max_bufsize+y}
  11988. then :
  11989. withval=$with_pcre2grep_max_bufsize;
  11990. else $as_nop
  11991. with_pcre2grep_max_bufsize=1048576
  11992. fi
  11993. # Handle --enable-pcre2test-libedit
  11994. # Check whether --enable-pcre2test-libedit was given.
  11995. if test ${enable_pcre2test_libedit+y}
  11996. then :
  11997. enableval=$enable_pcre2test_libedit;
  11998. else $as_nop
  11999. enable_pcre2test_libedit=no
  12000. fi
  12001. # Handle --enable-pcre2test-libreadline
  12002. # Check whether --enable-pcre2test-libreadline was given.
  12003. if test ${enable_pcre2test_libreadline+y}
  12004. then :
  12005. enableval=$enable_pcre2test_libreadline;
  12006. else $as_nop
  12007. enable_pcre2test_libreadline=no
  12008. fi
  12009. # Handle --with-link-size=N
  12010. # Check whether --with-link-size was given.
  12011. if test ${with_link_size+y}
  12012. then :
  12013. withval=$with_link_size;
  12014. else $as_nop
  12015. with_link_size=2
  12016. fi
  12017. # Handle --with-parens-nest-limit=N
  12018. # Check whether --with-parens-nest-limit was given.
  12019. if test ${with_parens_nest_limit+y}
  12020. then :
  12021. withval=$with_parens_nest_limit;
  12022. else $as_nop
  12023. with_parens_nest_limit=250
  12024. fi
  12025. # Handle --with-heap-limit
  12026. # Check whether --with-heap-limit was given.
  12027. if test ${with_heap_limit+y}
  12028. then :
  12029. withval=$with_heap_limit;
  12030. else $as_nop
  12031. with_heap_limit=20000000
  12032. fi
  12033. # Handle --with-match-limit=N
  12034. # Check whether --with-match-limit was given.
  12035. if test ${with_match_limit+y}
  12036. then :
  12037. withval=$with_match_limit;
  12038. else $as_nop
  12039. with_match_limit=10000000
  12040. fi
  12041. # Handle --with-match-limit-depth=N
  12042. # Recognize old synonym --with-match-limit-recursion
  12043. #
  12044. # Note: In config.h, the default is to define MATCH_LIMIT_DEPTH symbolically as
  12045. # MATCH_LIMIT, which in turn is defined to be some numeric value (e.g.
  12046. # 10000000). MATCH_LIMIT_DEPTH can otherwise be set to some different numeric
  12047. # value (or even the same numeric value as MATCH_LIMIT, though no longer
  12048. # defined in terms of the latter).
  12049. #
  12050. # Check whether --with-match-limit-depth was given.
  12051. if test ${with_match_limit_depth+y}
  12052. then :
  12053. withval=$with_match_limit_depth;
  12054. else $as_nop
  12055. with_match_limit_depth=MATCH_LIMIT
  12056. fi
  12057. # Check whether --with-match-limit-recursion was given.
  12058. if test ${with_match_limit_recursion+y}
  12059. then :
  12060. withval=$with_match_limit_recursion;
  12061. else $as_nop
  12062. with_match_limit_recursion=UNSET
  12063. fi
  12064. # Handle --enable-valgrind
  12065. # Check whether --enable-valgrind was given.
  12066. if test ${enable_valgrind+y}
  12067. then :
  12068. enableval=$enable_valgrind;
  12069. else $as_nop
  12070. enable_valgrind=no
  12071. fi
  12072. # Enable code coverage reports using gcov
  12073. # Check whether --enable-coverage was given.
  12074. if test ${enable_coverage+y}
  12075. then :
  12076. enableval=$enable_coverage;
  12077. else $as_nop
  12078. enable_coverage=no
  12079. fi
  12080. # Handle --enable-fuzz-support
  12081. # Check whether --enable-fuzz_support was given.
  12082. if test ${enable_fuzz_support+y}
  12083. then :
  12084. enableval=$enable_fuzz_support;
  12085. else $as_nop
  12086. enable_fuzz_support=no
  12087. fi
  12088. # Handle --disable-stack-for-recursion
  12089. # This option became obsolete at release 10.30.
  12090. # Check whether --enable-stack-for-recursion was given.
  12091. if test ${enable_stack_for_recursion+y}
  12092. then :
  12093. enableval=$enable_stack_for_recursion;
  12094. else $as_nop
  12095. enable_stack_for_recursion=yes
  12096. fi
  12097. # Original code
  12098. # AC_ARG_ENABLE(stack-for-recursion,
  12099. # AS_HELP_STRING([--disable-stack-for-recursion],
  12100. # [don't use stack recursion when matching]),
  12101. # , enable_stack_for_recursion=yes)
  12102. # Handle --disable-percent_zt (set as "auto" by default)
  12103. # Check whether --enable-percent-zt was given.
  12104. if test ${enable_percent_zt+y}
  12105. then :
  12106. enableval=$enable_percent_zt;
  12107. else $as_nop
  12108. enable_percent_zt=auto
  12109. fi
  12110. # Set the default value for pcre2-8
  12111. if test "x$enable_pcre2_8" = "xunset"
  12112. then
  12113. enable_pcre2_8=yes
  12114. fi
  12115. # Set the default value for pcre2-16
  12116. if test "x$enable_pcre2_16" = "xunset"
  12117. then
  12118. enable_pcre2_16=no
  12119. fi
  12120. # Set the default value for pcre2-32
  12121. if test "x$enable_pcre2_32" = "xunset"
  12122. then
  12123. enable_pcre2_32=no
  12124. fi
  12125. # Make sure at least one library is selected
  12126. if test "x$enable_pcre2_8$enable_pcre2_16$enable_pcre2_32" = "xnonono"
  12127. then
  12128. as_fn_error $? "At least one of the 8, 16 or 32 bit libraries must be enabled" "$LINENO" 5
  12129. fi
  12130. # Unicode is enabled by default.
  12131. if test "x$enable_unicode" = "xunset"
  12132. then
  12133. enable_unicode=yes
  12134. fi
  12135. # Convert the newline identifier into the appropriate integer value. These must
  12136. # agree with the PCRE2_NEWLINE_xxx values in pcre2.h.
  12137. case "$enable_newline" in
  12138. cr) ac_pcre2_newline_value=1 ;;
  12139. lf) ac_pcre2_newline_value=2 ;;
  12140. crlf) ac_pcre2_newline_value=3 ;;
  12141. any) ac_pcre2_newline_value=4 ;;
  12142. anycrlf) ac_pcre2_newline_value=5 ;;
  12143. nul) ac_pcre2_newline_value=6 ;;
  12144. *)
  12145. as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
  12146. ;;
  12147. esac
  12148. # --enable-ebcdic-nl25 implies --enable-ebcdic
  12149. if test "x$enable_ebcdic_nl25" = "xyes"; then
  12150. enable_ebcdic=yes
  12151. fi
  12152. # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
  12153. # Also check that UTF support is not requested, because PCRE2 cannot handle
  12154. # EBCDIC and UTF in the same build. To do so it would need to use different
  12155. # character constants depending on the mode. Also, EBCDIC cannot be used with
  12156. # 16-bit and 32-bit libraries.
  12157. #
  12158. if test "x$enable_ebcdic" = "xyes"; then
  12159. enable_rebuild_chartables=yes
  12160. if test "x$enable_unicode" = "xyes"; then
  12161. as_fn_error $? "support for EBCDIC and Unicode cannot be enabled at the same time" "$LINENO" 5
  12162. fi
  12163. if test "x$enable_pcre2_16" = "xyes" -o "x$enable_pcre2_32" = "xyes"; then
  12164. as_fn_error $? "EBCDIC support is available only for the 8-bit library" "$LINENO" 5
  12165. fi
  12166. fi
  12167. # Check argument to --with-link-size
  12168. case "$with_link_size" in
  12169. 2|3|4) ;;
  12170. *)
  12171. as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
  12172. ;;
  12173. esac
  12174. # Checks for header files.
  12175. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  12176. if test "x$ac_cv_header_limits_h" = xyes
  12177. then :
  12178. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  12179. fi
  12180. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  12181. if test "x$ac_cv_header_sys_types_h" = xyes
  12182. then :
  12183. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  12184. fi
  12185. ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
  12186. if test "x$ac_cv_header_sys_stat_h" = xyes
  12187. then :
  12188. printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
  12189. fi
  12190. ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
  12191. if test "x$ac_cv_header_dirent_h" = xyes
  12192. then :
  12193. printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
  12194. fi
  12195. for ac_header in windows.h
  12196. do :
  12197. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  12198. if test "x$ac_cv_header_windows_h" = xyes
  12199. then :
  12200. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  12201. HAVE_WINDOWS_H=1
  12202. fi
  12203. done
  12204. for ac_header in sys/wait.h
  12205. do :
  12206. ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  12207. if test "x$ac_cv_header_sys_wait_h" = xyes
  12208. then :
  12209. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  12210. HAVE_SYS_WAIT_H=1
  12211. fi
  12212. done
  12213. # Conditional compilation
  12214. if test "x$enable_pcre2_8" = "xyes"; then
  12215. WITH_PCRE2_8_TRUE=
  12216. WITH_PCRE2_8_FALSE='#'
  12217. else
  12218. WITH_PCRE2_8_TRUE='#'
  12219. WITH_PCRE2_8_FALSE=
  12220. fi
  12221. if test "x$enable_pcre2_16" = "xyes"; then
  12222. WITH_PCRE2_16_TRUE=
  12223. WITH_PCRE2_16_FALSE='#'
  12224. else
  12225. WITH_PCRE2_16_TRUE='#'
  12226. WITH_PCRE2_16_FALSE=
  12227. fi
  12228. if test "x$enable_pcre2_32" = "xyes"; then
  12229. WITH_PCRE2_32_TRUE=
  12230. WITH_PCRE2_32_FALSE='#'
  12231. else
  12232. WITH_PCRE2_32_TRUE='#'
  12233. WITH_PCRE2_32_FALSE=
  12234. fi
  12235. if test "x$enable_debug" = "xyes"; then
  12236. WITH_DEBUG_TRUE=
  12237. WITH_DEBUG_FALSE='#'
  12238. else
  12239. WITH_DEBUG_TRUE='#'
  12240. WITH_DEBUG_FALSE=
  12241. fi
  12242. if test "x$enable_rebuild_chartables" = "xyes"; then
  12243. WITH_REBUILD_CHARTABLES_TRUE=
  12244. WITH_REBUILD_CHARTABLES_FALSE='#'
  12245. else
  12246. WITH_REBUILD_CHARTABLES_TRUE='#'
  12247. WITH_REBUILD_CHARTABLES_FALSE=
  12248. fi
  12249. if test "x$enable_jit" = "xyes"; then
  12250. WITH_JIT_TRUE=
  12251. WITH_JIT_FALSE='#'
  12252. else
  12253. WITH_JIT_TRUE='#'
  12254. WITH_JIT_FALSE=
  12255. fi
  12256. if test "x$enable_unicode" = "xyes"; then
  12257. WITH_UNICODE_TRUE=
  12258. WITH_UNICODE_FALSE='#'
  12259. else
  12260. WITH_UNICODE_TRUE='#'
  12261. WITH_UNICODE_FALSE=
  12262. fi
  12263. if test "x$enable_valgrind" = "xyes"; then
  12264. WITH_VALGRIND_TRUE=
  12265. WITH_VALGRIND_FALSE='#'
  12266. else
  12267. WITH_VALGRIND_TRUE='#'
  12268. WITH_VALGRIND_FALSE=
  12269. fi
  12270. if test "x$enable_fuzz_support" = "xyes"; then
  12271. WITH_FUZZ_SUPPORT_TRUE=
  12272. WITH_FUZZ_SUPPORT_FALSE='#'
  12273. else
  12274. WITH_FUZZ_SUPPORT_TRUE='#'
  12275. WITH_FUZZ_SUPPORT_FALSE=
  12276. fi
  12277. if test "$enable_fuzz_support" = "yes" -a "$enable_pcre2_8" = "no"; then
  12278. echo "** ERROR: Fuzzer support requires the 8-bit library"
  12279. exit 1
  12280. fi
  12281. # Checks for typedefs, structures, and compiler characteristics.
  12282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  12283. printf %s "checking for an ANSI C-conforming const... " >&6; }
  12284. if test ${ac_cv_c_const+y}
  12285. then :
  12286. printf %s "(cached) " >&6
  12287. else $as_nop
  12288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12289. /* end confdefs.h. */
  12290. int
  12291. main (void)
  12292. {
  12293. #ifndef __cplusplus
  12294. /* Ultrix mips cc rejects this sort of thing. */
  12295. typedef int charset[2];
  12296. const charset cs = { 0, 0 };
  12297. /* SunOS 4.1.1 cc rejects this. */
  12298. char const *const *pcpcc;
  12299. char **ppc;
  12300. /* NEC SVR4.0.2 mips cc rejects this. */
  12301. struct point {int x, y;};
  12302. static struct point const zero = {0,0};
  12303. /* IBM XL C 1.02.0.0 rejects this.
  12304. It does not let you subtract one const X* pointer from another in
  12305. an arm of an if-expression whose if-part is not a constant
  12306. expression */
  12307. const char *g = "string";
  12308. pcpcc = &g + (g ? g-g : 0);
  12309. /* HPUX 7.0 cc rejects these. */
  12310. ++pcpcc;
  12311. ppc = (char**) pcpcc;
  12312. pcpcc = (char const *const *) ppc;
  12313. { /* SCO 3.2v4 cc rejects this sort of thing. */
  12314. char tx;
  12315. char *t = &tx;
  12316. char const *s = 0 ? (char *) 0 : (char const *) 0;
  12317. *t++ = 0;
  12318. if (s) return 0;
  12319. }
  12320. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  12321. int x[] = {25, 17};
  12322. const int *foo = &x[0];
  12323. ++foo;
  12324. }
  12325. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  12326. typedef const int *iptr;
  12327. iptr p = 0;
  12328. ++p;
  12329. }
  12330. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  12331. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  12332. struct s { int j; const int *ap[3]; } bx;
  12333. struct s *b = &bx; b->j = 5;
  12334. }
  12335. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  12336. const int foo = 10;
  12337. if (!foo) return 0;
  12338. }
  12339. return !cs[0] && !zero.x;
  12340. #endif
  12341. ;
  12342. return 0;
  12343. }
  12344. _ACEOF
  12345. if ac_fn_c_try_compile "$LINENO"
  12346. then :
  12347. ac_cv_c_const=yes
  12348. else $as_nop
  12349. ac_cv_c_const=no
  12350. fi
  12351. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12352. fi
  12353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  12354. printf "%s\n" "$ac_cv_c_const" >&6; }
  12355. if test $ac_cv_c_const = no; then
  12356. printf "%s\n" "#define const /**/" >>confdefs.h
  12357. fi
  12358. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  12359. if test "x$ac_cv_type_size_t" = xyes
  12360. then :
  12361. else $as_nop
  12362. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  12363. fi
  12364. # Checks for library functions.
  12365. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  12366. if test "x$ac_cv_func_bcopy" = xyes
  12367. then :
  12368. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  12369. fi
  12370. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  12371. if test "x$ac_cv_func_memfd_create" = xyes
  12372. then :
  12373. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  12374. fi
  12375. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  12376. if test "x$ac_cv_func_memmove" = xyes
  12377. then :
  12378. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  12379. fi
  12380. ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
  12381. if test "x$ac_cv_func_mkostemp" = xyes
  12382. then :
  12383. printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
  12384. fi
  12385. ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
  12386. if test "x$ac_cv_func_realpath" = xyes
  12387. then :
  12388. printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
  12389. fi
  12390. ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
  12391. if test "x$ac_cv_func_secure_getenv" = xyes
  12392. then :
  12393. printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
  12394. fi
  12395. ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
  12396. if test "x$ac_cv_func_strerror" = xyes
  12397. then :
  12398. printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
  12399. fi
  12400. # Check for the availability of libz (aka zlib)
  12401. for ac_header in zlib.h
  12402. do :
  12403. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  12404. if test "x$ac_cv_header_zlib_h" = xyes
  12405. then :
  12406. printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
  12407. HAVE_ZLIB_H=1
  12408. fi
  12409. done
  12410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  12411. printf %s "checking for gzopen in -lz... " >&6; }
  12412. if test ${ac_cv_lib_z_gzopen+y}
  12413. then :
  12414. printf %s "(cached) " >&6
  12415. else $as_nop
  12416. ac_check_lib_save_LIBS=$LIBS
  12417. LIBS="-lz $LIBS"
  12418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12419. /* end confdefs.h. */
  12420. /* Override any GCC internal prototype to avoid an error.
  12421. Use char because int might match the return type of a GCC
  12422. builtin and then its argument prototype would still apply. */
  12423. char gzopen ();
  12424. int
  12425. main (void)
  12426. {
  12427. return gzopen ();
  12428. ;
  12429. return 0;
  12430. }
  12431. _ACEOF
  12432. if ac_fn_c_try_link "$LINENO"
  12433. then :
  12434. ac_cv_lib_z_gzopen=yes
  12435. else $as_nop
  12436. ac_cv_lib_z_gzopen=no
  12437. fi
  12438. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12439. conftest$ac_exeext conftest.$ac_ext
  12440. LIBS=$ac_check_lib_save_LIBS
  12441. fi
  12442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  12443. printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
  12444. if test "x$ac_cv_lib_z_gzopen" = xyes
  12445. then :
  12446. HAVE_LIBZ=1
  12447. fi
  12448. # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
  12449. # as for libz. However, this had the following problem, diagnosed and fixed by
  12450. # a user:
  12451. #
  12452. # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
  12453. # under Win32.
  12454. # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
  12455. # therefore missing the function definition.
  12456. # - The compiler thus generates a "C" signature for the test function.
  12457. # - The linker fails to find the "C" function.
  12458. # - PCRE2 fails to configure if asked to do so against libbz2.
  12459. #
  12460. # Solution:
  12461. #
  12462. # - Replace the AC_CHECK_LIB test with a custom test.
  12463. for ac_header in bzlib.h
  12464. do :
  12465. ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  12466. if test "x$ac_cv_header_bzlib_h" = xyes
  12467. then :
  12468. printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
  12469. HAVE_BZLIB_H=1
  12470. fi
  12471. done
  12472. # Original test
  12473. # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
  12474. #
  12475. # Custom test follows
  12476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
  12477. printf %s "checking for libbz2... " >&6; }
  12478. OLD_LIBS="$LIBS"
  12479. LIBS="$LIBS -lbz2"
  12480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12481. /* end confdefs.h. */
  12482. #ifdef HAVE_BZLIB_H
  12483. #include <bzlib.h>
  12484. #endif
  12485. int
  12486. main (void)
  12487. {
  12488. return (int)BZ2_bzopen("conftest", "rb");
  12489. ;
  12490. return 0;
  12491. }
  12492. _ACEOF
  12493. if ac_fn_c_try_link "$LINENO"
  12494. then :
  12495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12496. printf "%s\n" "yes" >&6; };HAVE_LIBBZ2=1; break;
  12497. else $as_nop
  12498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12499. printf "%s\n" "no" >&6; }
  12500. fi
  12501. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12502. conftest$ac_exeext conftest.$ac_ext
  12503. LIBS="$OLD_LIBS"
  12504. # Check for the availabiity of libreadline
  12505. if test "$enable_pcre2test_libreadline" = "yes"; then
  12506. for ac_header in readline/readline.h
  12507. do :
  12508. ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  12509. if test "x$ac_cv_header_readline_readline_h" = xyes
  12510. then :
  12511. printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
  12512. HAVE_READLINE_H=1
  12513. fi
  12514. done
  12515. for ac_header in readline/history.h
  12516. do :
  12517. ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
  12518. if test "x$ac_cv_header_readline_history_h" = xyes
  12519. then :
  12520. printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
  12521. HAVE_HISTORY_H=1
  12522. fi
  12523. done
  12524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  12525. printf %s "checking for readline in -lreadline... " >&6; }
  12526. if test ${ac_cv_lib_readline_readline+y}
  12527. then :
  12528. printf %s "(cached) " >&6
  12529. else $as_nop
  12530. ac_check_lib_save_LIBS=$LIBS
  12531. LIBS="-lreadline $LIBS"
  12532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12533. /* end confdefs.h. */
  12534. /* Override any GCC internal prototype to avoid an error.
  12535. Use char because int might match the return type of a GCC
  12536. builtin and then its argument prototype would still apply. */
  12537. char readline ();
  12538. int
  12539. main (void)
  12540. {
  12541. return readline ();
  12542. ;
  12543. return 0;
  12544. }
  12545. _ACEOF
  12546. if ac_fn_c_try_link "$LINENO"
  12547. then :
  12548. ac_cv_lib_readline_readline=yes
  12549. else $as_nop
  12550. ac_cv_lib_readline_readline=no
  12551. fi
  12552. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12553. conftest$ac_exeext conftest.$ac_ext
  12554. LIBS=$ac_check_lib_save_LIBS
  12555. fi
  12556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  12557. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  12558. if test "x$ac_cv_lib_readline_readline" = xyes
  12559. then :
  12560. LIBREADLINE="-lreadline"
  12561. else $as_nop
  12562. unset ac_cv_lib_readline_readline;
  12563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  12564. printf %s "checking for readline in -lreadline... " >&6; }
  12565. if test ${ac_cv_lib_readline_readline+y}
  12566. then :
  12567. printf %s "(cached) " >&6
  12568. else $as_nop
  12569. ac_check_lib_save_LIBS=$LIBS
  12570. LIBS="-lreadline -ltinfo $LIBS"
  12571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12572. /* end confdefs.h. */
  12573. /* Override any GCC internal prototype to avoid an error.
  12574. Use char because int might match the return type of a GCC
  12575. builtin and then its argument prototype would still apply. */
  12576. char readline ();
  12577. int
  12578. main (void)
  12579. {
  12580. return readline ();
  12581. ;
  12582. return 0;
  12583. }
  12584. _ACEOF
  12585. if ac_fn_c_try_link "$LINENO"
  12586. then :
  12587. ac_cv_lib_readline_readline=yes
  12588. else $as_nop
  12589. ac_cv_lib_readline_readline=no
  12590. fi
  12591. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12592. conftest$ac_exeext conftest.$ac_ext
  12593. LIBS=$ac_check_lib_save_LIBS
  12594. fi
  12595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  12596. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  12597. if test "x$ac_cv_lib_readline_readline" = xyes
  12598. then :
  12599. LIBREADLINE="-ltinfo"
  12600. else $as_nop
  12601. unset ac_cv_lib_readline_readline;
  12602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  12603. printf %s "checking for readline in -lreadline... " >&6; }
  12604. if test ${ac_cv_lib_readline_readline+y}
  12605. then :
  12606. printf %s "(cached) " >&6
  12607. else $as_nop
  12608. ac_check_lib_save_LIBS=$LIBS
  12609. LIBS="-lreadline -lcurses $LIBS"
  12610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12611. /* end confdefs.h. */
  12612. /* Override any GCC internal prototype to avoid an error.
  12613. Use char because int might match the return type of a GCC
  12614. builtin and then its argument prototype would still apply. */
  12615. char readline ();
  12616. int
  12617. main (void)
  12618. {
  12619. return readline ();
  12620. ;
  12621. return 0;
  12622. }
  12623. _ACEOF
  12624. if ac_fn_c_try_link "$LINENO"
  12625. then :
  12626. ac_cv_lib_readline_readline=yes
  12627. else $as_nop
  12628. ac_cv_lib_readline_readline=no
  12629. fi
  12630. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12631. conftest$ac_exeext conftest.$ac_ext
  12632. LIBS=$ac_check_lib_save_LIBS
  12633. fi
  12634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  12635. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  12636. if test "x$ac_cv_lib_readline_readline" = xyes
  12637. then :
  12638. LIBREADLINE="-lcurses"
  12639. else $as_nop
  12640. unset ac_cv_lib_readline_readline;
  12641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  12642. printf %s "checking for readline in -lreadline... " >&6; }
  12643. if test ${ac_cv_lib_readline_readline+y}
  12644. then :
  12645. printf %s "(cached) " >&6
  12646. else $as_nop
  12647. ac_check_lib_save_LIBS=$LIBS
  12648. LIBS="-lreadline -lncurses $LIBS"
  12649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12650. /* end confdefs.h. */
  12651. /* Override any GCC internal prototype to avoid an error.
  12652. Use char because int might match the return type of a GCC
  12653. builtin and then its argument prototype would still apply. */
  12654. char readline ();
  12655. int
  12656. main (void)
  12657. {
  12658. return readline ();
  12659. ;
  12660. return 0;
  12661. }
  12662. _ACEOF
  12663. if ac_fn_c_try_link "$LINENO"
  12664. then :
  12665. ac_cv_lib_readline_readline=yes
  12666. else $as_nop
  12667. ac_cv_lib_readline_readline=no
  12668. fi
  12669. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12670. conftest$ac_exeext conftest.$ac_ext
  12671. LIBS=$ac_check_lib_save_LIBS
  12672. fi
  12673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  12674. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  12675. if test "x$ac_cv_lib_readline_readline" = xyes
  12676. then :
  12677. LIBREADLINE="-lncurses"
  12678. else $as_nop
  12679. unset ac_cv_lib_readline_readline;
  12680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  12681. printf %s "checking for readline in -lreadline... " >&6; }
  12682. if test ${ac_cv_lib_readline_readline+y}
  12683. then :
  12684. printf %s "(cached) " >&6
  12685. else $as_nop
  12686. ac_check_lib_save_LIBS=$LIBS
  12687. LIBS="-lreadline -lncursesw $LIBS"
  12688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12689. /* end confdefs.h. */
  12690. /* Override any GCC internal prototype to avoid an error.
  12691. Use char because int might match the return type of a GCC
  12692. builtin and then its argument prototype would still apply. */
  12693. char readline ();
  12694. int
  12695. main (void)
  12696. {
  12697. return readline ();
  12698. ;
  12699. return 0;
  12700. }
  12701. _ACEOF
  12702. if ac_fn_c_try_link "$LINENO"
  12703. then :
  12704. ac_cv_lib_readline_readline=yes
  12705. else $as_nop
  12706. ac_cv_lib_readline_readline=no
  12707. fi
  12708. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12709. conftest$ac_exeext conftest.$ac_ext
  12710. LIBS=$ac_check_lib_save_LIBS
  12711. fi
  12712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  12713. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  12714. if test "x$ac_cv_lib_readline_readline" = xyes
  12715. then :
  12716. LIBREADLINE="-lncursesw"
  12717. else $as_nop
  12718. unset ac_cv_lib_readline_readline;
  12719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  12720. printf %s "checking for readline in -lreadline... " >&6; }
  12721. if test ${ac_cv_lib_readline_readline+y}
  12722. then :
  12723. printf %s "(cached) " >&6
  12724. else $as_nop
  12725. ac_check_lib_save_LIBS=$LIBS
  12726. LIBS="-lreadline -ltermcap $LIBS"
  12727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12728. /* end confdefs.h. */
  12729. /* Override any GCC internal prototype to avoid an error.
  12730. Use char because int might match the return type of a GCC
  12731. builtin and then its argument prototype would still apply. */
  12732. char readline ();
  12733. int
  12734. main (void)
  12735. {
  12736. return readline ();
  12737. ;
  12738. return 0;
  12739. }
  12740. _ACEOF
  12741. if ac_fn_c_try_link "$LINENO"
  12742. then :
  12743. ac_cv_lib_readline_readline=yes
  12744. else $as_nop
  12745. ac_cv_lib_readline_readline=no
  12746. fi
  12747. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12748. conftest$ac_exeext conftest.$ac_ext
  12749. LIBS=$ac_check_lib_save_LIBS
  12750. fi
  12751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  12752. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  12753. if test "x$ac_cv_lib_readline_readline" = xyes
  12754. then :
  12755. LIBREADLINE="-ltermcap"
  12756. else $as_nop
  12757. LIBREADLINE=""
  12758. fi
  12759. fi
  12760. fi
  12761. fi
  12762. fi
  12763. fi
  12764. if test -n "$LIBREADLINE"; then
  12765. if test "$LIBREADLINE" != "-lreadline"; then
  12766. echo "-lreadline needs $LIBREADLINE"
  12767. LIBREADLINE="-lreadline $LIBREADLINE"
  12768. fi
  12769. fi
  12770. fi
  12771. # Check for the availability of libedit. Different distributions put its
  12772. # headers in different places. Try to cover the most common ones.
  12773. if test "$enable_pcre2test_libedit" = "yes"; then
  12774. for ac_header in editline/readline.h
  12775. do :
  12776. ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
  12777. if test "x$ac_cv_header_editline_readline_h" = xyes
  12778. then :
  12779. printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
  12780. HAVE_EDITLINE_READLINE_H=1
  12781. else $as_nop
  12782. for ac_header in edit/readline/readline.h
  12783. do :
  12784. ac_fn_c_check_header_compile "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
  12785. if test "x$ac_cv_header_edit_readline_readline_h" = xyes
  12786. then :
  12787. printf "%s\n" "#define HAVE_EDIT_READLINE_READLINE_H 1" >>confdefs.h
  12788. HAVE_READLINE_READLINE_H=1
  12789. else $as_nop
  12790. for ac_header in readline/readline.h
  12791. do :
  12792. ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  12793. if test "x$ac_cv_header_readline_readline_h" = xyes
  12794. then :
  12795. printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
  12796. HAVE_READLINE_READLINE_H=1
  12797. fi
  12798. done
  12799. fi
  12800. done
  12801. fi
  12802. done
  12803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
  12804. printf %s "checking for readline in -ledit... " >&6; }
  12805. if test ${ac_cv_lib_edit_readline+y}
  12806. then :
  12807. printf %s "(cached) " >&6
  12808. else $as_nop
  12809. ac_check_lib_save_LIBS=$LIBS
  12810. LIBS="-ledit $LIBS"
  12811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12812. /* end confdefs.h. */
  12813. /* Override any GCC internal prototype to avoid an error.
  12814. Use char because int might match the return type of a GCC
  12815. builtin and then its argument prototype would still apply. */
  12816. char readline ();
  12817. int
  12818. main (void)
  12819. {
  12820. return readline ();
  12821. ;
  12822. return 0;
  12823. }
  12824. _ACEOF
  12825. if ac_fn_c_try_link "$LINENO"
  12826. then :
  12827. ac_cv_lib_edit_readline=yes
  12828. else $as_nop
  12829. ac_cv_lib_edit_readline=no
  12830. fi
  12831. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12832. conftest$ac_exeext conftest.$ac_ext
  12833. LIBS=$ac_check_lib_save_LIBS
  12834. fi
  12835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
  12836. printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
  12837. if test "x$ac_cv_lib_edit_readline" = xyes
  12838. then :
  12839. LIBEDIT="-ledit"
  12840. fi
  12841. fi
  12842. PCRE2_STATIC_CFLAG=""
  12843. if test "x$enable_shared" = "xno" ; then
  12844. printf "%s\n" "#define PCRE2_STATIC 1" >>confdefs.h
  12845. PCRE2_STATIC_CFLAG="-DPCRE2_STATIC"
  12846. fi
  12847. # Here is where PCRE2-specific defines are handled
  12848. if test "$enable_pcre2_8" = "yes"; then
  12849. printf "%s\n" "#define SUPPORT_PCRE2_8 /**/" >>confdefs.h
  12850. fi
  12851. if test "$enable_pcre2_16" = "yes"; then
  12852. printf "%s\n" "#define SUPPORT_PCRE2_16 /**/" >>confdefs.h
  12853. fi
  12854. if test "$enable_pcre2_32" = "yes"; then
  12855. printf "%s\n" "#define SUPPORT_PCRE2_32 /**/" >>confdefs.h
  12856. fi
  12857. if test "$enable_debug" = "yes"; then
  12858. printf "%s\n" "#define PCRE2_DEBUG /**/" >>confdefs.h
  12859. fi
  12860. if test "$enable_percent_zt" = "no"; then
  12861. printf "%s\n" "#define DISABLE_PERCENT_ZT /**/" >>confdefs.h
  12862. else
  12863. enable_percent_zt=auto
  12864. fi
  12865. # Unless running under Windows, JIT support requires pthreads.
  12866. if test "$enable_jit" = "yes"; then
  12867. if test "$HAVE_WINDOWS_H" != "1"; then
  12868. ac_ext=c
  12869. ac_cpp='$CPP $CPPFLAGS'
  12870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12873. ax_pthread_ok=no
  12874. # We used to check for pthread.h first, but this fails if pthread.h
  12875. # requires special compiler flags (e.g. on True64 or Sequent).
  12876. # It gets checked for in the link test anyway.
  12877. # First of all, check if the user has set any of the PTHREAD_LIBS,
  12878. # etcetera environment variables, and if threads linking works using
  12879. # them:
  12880. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  12881. save_CFLAGS="$CFLAGS"
  12882. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12883. save_LIBS="$LIBS"
  12884. LIBS="$PTHREAD_LIBS $LIBS"
  12885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  12886. printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  12887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12888. /* end confdefs.h. */
  12889. /* Override any GCC internal prototype to avoid an error.
  12890. Use char because int might match the return type of a GCC
  12891. builtin and then its argument prototype would still apply. */
  12892. char pthread_join ();
  12893. int
  12894. main (void)
  12895. {
  12896. return pthread_join ();
  12897. ;
  12898. return 0;
  12899. }
  12900. _ACEOF
  12901. if ac_fn_c_try_link "$LINENO"
  12902. then :
  12903. ax_pthread_ok=yes
  12904. fi
  12905. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12906. conftest$ac_exeext conftest.$ac_ext
  12907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  12908. printf "%s\n" "$ax_pthread_ok" >&6; }
  12909. if test x"$ax_pthread_ok" = xno; then
  12910. PTHREAD_LIBS=""
  12911. PTHREAD_CFLAGS=""
  12912. fi
  12913. LIBS="$save_LIBS"
  12914. CFLAGS="$save_CFLAGS"
  12915. fi
  12916. # We must check for the threads library under a number of different
  12917. # names; the ordering is very important because some systems
  12918. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  12919. # libraries is broken (non-POSIX).
  12920. # Create a list of thread flags to try. Items starting with a "-" are
  12921. # C compiler flags, and other items are library names, except for "none"
  12922. # which indicates that we try without any flags at all, and "pthread-config"
  12923. # which is a program returning the flags for the Pth emulation library.
  12924. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  12925. # The ordering *is* (sometimes) important. Some notes on the
  12926. # individual items follow:
  12927. # pthreads: AIX (must check this before -lpthread)
  12928. # none: in case threads are in libc; should be tried before -Kthread and
  12929. # other compiler flags to prevent continual compiler warnings
  12930. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  12931. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  12932. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  12933. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  12934. # -pthreads: Solaris/gcc
  12935. # -mthreads: Mingw32/gcc, Lynx/gcc
  12936. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  12937. # doesn't hurt to check since this sometimes defines pthreads too;
  12938. # also defines -D_REENTRANT)
  12939. # ... -mt is also the pthreads flag for HP/aCC
  12940. # pthread: Linux, etcetera
  12941. # --thread-safe: KAI C++
  12942. # pthread-config: use pthread-config program (for GNU Pth library)
  12943. case ${host_os} in
  12944. solaris*)
  12945. # On Solaris (at least, for some versions), libc contains stubbed
  12946. # (non-functional) versions of the pthreads routines, so link-based
  12947. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  12948. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  12949. # a function called by this macro, so we could check for that, but
  12950. # who knows whether they'll stub that too in a future libc.) So,
  12951. # we'll just look for -pthreads and -lpthread first:
  12952. ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  12953. ;;
  12954. darwin*)
  12955. ax_pthread_flags="-pthread $ax_pthread_flags"
  12956. ;;
  12957. esac
  12958. if test x"$ax_pthread_ok" = xno; then
  12959. for flag in $ax_pthread_flags; do
  12960. case $flag in
  12961. none)
  12962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  12963. printf %s "checking whether pthreads work without any flags... " >&6; }
  12964. ;;
  12965. -*)
  12966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  12967. printf %s "checking whether pthreads work with $flag... " >&6; }
  12968. PTHREAD_CFLAGS="$flag"
  12969. ;;
  12970. pthread-config)
  12971. # Extract the first word of "pthread-config", so it can be a program name with args.
  12972. set dummy pthread-config; ac_word=$2
  12973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12974. printf %s "checking for $ac_word... " >&6; }
  12975. if test ${ac_cv_prog_ax_pthread_config+y}
  12976. then :
  12977. printf %s "(cached) " >&6
  12978. else $as_nop
  12979. if test -n "$ax_pthread_config"; then
  12980. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  12981. else
  12982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12983. for as_dir in $PATH
  12984. do
  12985. IFS=$as_save_IFS
  12986. case $as_dir in #(((
  12987. '') as_dir=./ ;;
  12988. */) ;;
  12989. *) as_dir=$as_dir/ ;;
  12990. esac
  12991. for ac_exec_ext in '' $ac_executable_extensions; do
  12992. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12993. ac_cv_prog_ax_pthread_config="yes"
  12994. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12995. break 2
  12996. fi
  12997. done
  12998. done
  12999. IFS=$as_save_IFS
  13000. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  13001. fi
  13002. fi
  13003. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  13004. if test -n "$ax_pthread_config"; then
  13005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  13006. printf "%s\n" "$ax_pthread_config" >&6; }
  13007. else
  13008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13009. printf "%s\n" "no" >&6; }
  13010. fi
  13011. if test x"$ax_pthread_config" = xno; then continue; fi
  13012. PTHREAD_CFLAGS="`pthread-config --cflags`"
  13013. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  13014. ;;
  13015. *)
  13016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  13017. printf %s "checking for the pthreads library -l$flag... " >&6; }
  13018. PTHREAD_LIBS="-l$flag"
  13019. ;;
  13020. esac
  13021. save_LIBS="$LIBS"
  13022. save_CFLAGS="$CFLAGS"
  13023. LIBS="$PTHREAD_LIBS $LIBS"
  13024. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13025. # Check for various functions. We must include pthread.h,
  13026. # since some functions may be macros. (On the Sequent, we
  13027. # need a special flag -Kthread to make this header compile.)
  13028. # We check for pthread_join because it is in -lpthread on IRIX
  13029. # while pthread_create is in libc. We check for pthread_attr_init
  13030. # due to DEC craziness with -lpthreads. We check for
  13031. # pthread_cleanup_push because it is one of the few pthread
  13032. # functions on Solaris that doesn't have a non-functional libc stub.
  13033. # We try pthread_create on general principles.
  13034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13035. /* end confdefs.h. */
  13036. #include <pthread.h>
  13037. static void routine(void *a) { a = 0; }
  13038. static void *start_routine(void *a) { return a; }
  13039. int
  13040. main (void)
  13041. {
  13042. pthread_t th; pthread_attr_t attr;
  13043. pthread_create(&th, 0, start_routine, 0);
  13044. pthread_join(th, 0);
  13045. pthread_attr_init(&attr);
  13046. pthread_cleanup_push(routine, 0);
  13047. pthread_cleanup_pop(0) /* ; */
  13048. ;
  13049. return 0;
  13050. }
  13051. _ACEOF
  13052. if ac_fn_c_try_link "$LINENO"
  13053. then :
  13054. ax_pthread_ok=yes
  13055. fi
  13056. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13057. conftest$ac_exeext conftest.$ac_ext
  13058. LIBS="$save_LIBS"
  13059. CFLAGS="$save_CFLAGS"
  13060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  13061. printf "%s\n" "$ax_pthread_ok" >&6; }
  13062. if test "x$ax_pthread_ok" = xyes; then
  13063. break;
  13064. fi
  13065. PTHREAD_LIBS=""
  13066. PTHREAD_CFLAGS=""
  13067. done
  13068. fi
  13069. # Various other checks:
  13070. if test "x$ax_pthread_ok" = xyes; then
  13071. save_LIBS="$LIBS"
  13072. LIBS="$PTHREAD_LIBS $LIBS"
  13073. save_CFLAGS="$CFLAGS"
  13074. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13075. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  13076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  13077. printf %s "checking for joinable pthread attribute... " >&6; }
  13078. attr_name=unknown
  13079. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  13080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13081. /* end confdefs.h. */
  13082. #include <pthread.h>
  13083. int
  13084. main (void)
  13085. {
  13086. int attr = $attr; return attr /* ; */
  13087. ;
  13088. return 0;
  13089. }
  13090. _ACEOF
  13091. if ac_fn_c_try_link "$LINENO"
  13092. then :
  13093. attr_name=$attr; break
  13094. fi
  13095. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13096. conftest$ac_exeext conftest.$ac_ext
  13097. done
  13098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  13099. printf "%s\n" "$attr_name" >&6; }
  13100. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  13101. printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
  13102. fi
  13103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  13104. printf %s "checking if more special flags are required for pthreads... " >&6; }
  13105. flag=no
  13106. case ${host_os} in
  13107. aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
  13108. osf* | hpux*) flag="-D_REENTRANT";;
  13109. solaris*)
  13110. if test "$GCC" = "yes"; then
  13111. flag="-D_REENTRANT"
  13112. else
  13113. flag="-mt -D_REENTRANT"
  13114. fi
  13115. ;;
  13116. esac
  13117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  13118. printf "%s\n" "${flag}" >&6; }
  13119. if test "x$flag" != xno; then
  13120. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  13121. fi
  13122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  13123. printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  13124. if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
  13125. then :
  13126. printf %s "(cached) " >&6
  13127. else $as_nop
  13128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13129. /* end confdefs.h. */
  13130. #include <pthread.h>
  13131. int
  13132. main (void)
  13133. {
  13134. int i = PTHREAD_PRIO_INHERIT;
  13135. ;
  13136. return 0;
  13137. }
  13138. _ACEOF
  13139. if ac_fn_c_try_link "$LINENO"
  13140. then :
  13141. ax_cv_PTHREAD_PRIO_INHERIT=yes
  13142. else $as_nop
  13143. ax_cv_PTHREAD_PRIO_INHERIT=no
  13144. fi
  13145. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13146. conftest$ac_exeext conftest.$ac_ext
  13147. fi
  13148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  13149. printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  13150. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
  13151. then :
  13152. printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  13153. fi
  13154. LIBS="$save_LIBS"
  13155. CFLAGS="$save_CFLAGS"
  13156. # More AIX lossage: must compile with xlc_r or cc_r
  13157. if test x"$GCC" != xyes; then
  13158. for ac_prog in xlc_r cc_r
  13159. do
  13160. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13161. set dummy $ac_prog; ac_word=$2
  13162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13163. printf %s "checking for $ac_word... " >&6; }
  13164. if test ${ac_cv_prog_PTHREAD_CC+y}
  13165. then :
  13166. printf %s "(cached) " >&6
  13167. else $as_nop
  13168. if test -n "$PTHREAD_CC"; then
  13169. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  13170. else
  13171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13172. for as_dir in $PATH
  13173. do
  13174. IFS=$as_save_IFS
  13175. case $as_dir in #(((
  13176. '') as_dir=./ ;;
  13177. */) ;;
  13178. *) as_dir=$as_dir/ ;;
  13179. esac
  13180. for ac_exec_ext in '' $ac_executable_extensions; do
  13181. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13182. ac_cv_prog_PTHREAD_CC="$ac_prog"
  13183. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13184. break 2
  13185. fi
  13186. done
  13187. done
  13188. IFS=$as_save_IFS
  13189. fi
  13190. fi
  13191. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  13192. if test -n "$PTHREAD_CC"; then
  13193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  13194. printf "%s\n" "$PTHREAD_CC" >&6; }
  13195. else
  13196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13197. printf "%s\n" "no" >&6; }
  13198. fi
  13199. test -n "$PTHREAD_CC" && break
  13200. done
  13201. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  13202. else
  13203. PTHREAD_CC=$CC
  13204. fi
  13205. else
  13206. PTHREAD_CC="$CC"
  13207. fi
  13208. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  13209. if test x"$ax_pthread_ok" = xyes; then
  13210. printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
  13211. :
  13212. else
  13213. ax_pthread_ok=no
  13214. as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
  13215. fi
  13216. ac_ext=c
  13217. ac_cpp='$CPP $CPPFLAGS'
  13218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13221. CC="$PTHREAD_CC"
  13222. CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  13223. LIBS="$PTHREAD_LIBS $LIBS"
  13224. fi
  13225. printf "%s\n" "#define SUPPORT_JIT /**/" >>confdefs.h
  13226. else
  13227. enable_pcre2grep_jit="no"
  13228. fi
  13229. if test "$enable_jit_sealloc" = "yes"; then
  13230. printf "%s\n" "#define SLJIT_PROT_EXECUTABLE_ALLOCATOR 1" >>confdefs.h
  13231. fi
  13232. if test "$enable_pcre2grep_jit" = "yes"; then
  13233. printf "%s\n" "#define SUPPORT_PCRE2GREP_JIT /**/" >>confdefs.h
  13234. fi
  13235. if test "$enable_pcre2grep_callout" = "yes"; then
  13236. if test "$enable_pcre2grep_callout_fork" = "yes"; then
  13237. if test "$HAVE_WINDOWS_H" != "1"; then
  13238. if test "$HAVE_SYS_WAIT_H" != "1"; then
  13239. as_fn_error $? "Callout script support needs sys/wait.h." "$LINENO" 5
  13240. fi
  13241. fi
  13242. printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT_FORK /**/" >>confdefs.h
  13243. fi
  13244. printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT /**/" >>confdefs.h
  13245. else
  13246. enable_pcre2grep_callout_fork="no"
  13247. fi
  13248. if test "$enable_unicode" = "yes"; then
  13249. printf "%s\n" "#define SUPPORT_UNICODE /**/" >>confdefs.h
  13250. fi
  13251. if test "$enable_pcre2grep_libz" = "yes"; then
  13252. printf "%s\n" "#define SUPPORT_LIBZ /**/" >>confdefs.h
  13253. fi
  13254. if test "$enable_pcre2grep_libbz2" = "yes"; then
  13255. printf "%s\n" "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
  13256. fi
  13257. if test $with_pcre2grep_bufsize -lt 8192 ; then
  13258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&5
  13259. printf "%s\n" "$as_me: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&2;}
  13260. with_pcre2grep_bufsize="8192"
  13261. else
  13262. if test $? -gt 1 ; then
  13263. as_fn_error $? "Bad value for --with-pcre2grep-bufsize" "$LINENO" 5
  13264. fi
  13265. fi
  13266. if test $with_pcre2grep_max_bufsize -lt $with_pcre2grep_bufsize ; then
  13267. with_pcre2grep_max_bufsize="$with_pcre2grep_bufsize"
  13268. else
  13269. if test $? -gt 1 ; then
  13270. as_fn_error $? "Bad value for --with-pcre2grep-max-bufsize" "$LINENO" 5
  13271. fi
  13272. fi
  13273. printf "%s\n" "#define PCRE2GREP_BUFSIZE $with_pcre2grep_bufsize" >>confdefs.h
  13274. printf "%s\n" "#define PCRE2GREP_MAX_BUFSIZE $with_pcre2grep_max_bufsize" >>confdefs.h
  13275. if test "$enable_pcre2test_libedit" = "yes"; then
  13276. printf "%s\n" "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
  13277. LIBREADLINE="$LIBEDIT"
  13278. elif test "$enable_pcre2test_libreadline" = "yes"; then
  13279. printf "%s\n" "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
  13280. fi
  13281. printf "%s\n" "#define NEWLINE_DEFAULT $ac_pcre2_newline_value" >>confdefs.h
  13282. if test "$enable_bsr_anycrlf" = "yes"; then
  13283. printf "%s\n" "#define BSR_ANYCRLF /**/" >>confdefs.h
  13284. fi
  13285. if test "$enable_never_backslash_C" = "yes"; then
  13286. printf "%s\n" "#define NEVER_BACKSLASH_C /**/" >>confdefs.h
  13287. fi
  13288. printf "%s\n" "#define LINK_SIZE $with_link_size" >>confdefs.h
  13289. printf "%s\n" "#define PARENS_NEST_LIMIT $with_parens_nest_limit" >>confdefs.h
  13290. printf "%s\n" "#define MATCH_LIMIT $with_match_limit" >>confdefs.h
  13291. # --with-match-limit-recursion is an obsolete synonym for --with-match-limit-depth
  13292. if test "$with_match_limit_recursion" != "UNSET"; then
  13293. cat <<EOF
  13294. WARNING: --with-match-limit-recursion is an obsolete option. Please use
  13295. --with-match-limit-depth in future. If both are set, --with-match-limit-depth
  13296. will be used. See also --with-heap-limit.
  13297. EOF
  13298. if test "$with_match_limit_depth" = "MATCH_LIMIT"; then
  13299. with_match_limit_depth=$with_match_limit_recursion
  13300. fi
  13301. fi
  13302. printf "%s\n" "#define MATCH_LIMIT_DEPTH $with_match_limit_depth" >>confdefs.h
  13303. printf "%s\n" "#define HEAP_LIMIT $with_heap_limit" >>confdefs.h
  13304. printf "%s\n" "#define MAX_NAME_SIZE 32" >>confdefs.h
  13305. printf "%s\n" "#define MAX_NAME_COUNT 10000" >>confdefs.h
  13306. if test "$enable_ebcdic" = "yes"; then
  13307. printf "%s\n" "#define EBCDIC /**/" >>confdefs.h
  13308. fi
  13309. if test "$enable_ebcdic_nl25" = "yes"; then
  13310. printf "%s\n" "#define EBCDIC_NL25 /**/" >>confdefs.h
  13311. fi
  13312. if test "$enable_valgrind" = "yes"; then
  13313. printf "%s\n" "#define SUPPORT_VALGRIND /**/" >>confdefs.h
  13314. fi
  13315. # Platform specific issues
  13316. NO_UNDEFINED=
  13317. EXPORT_ALL_SYMBOLS=
  13318. case $host_os in
  13319. cygwin* | mingw* )
  13320. if test X"$enable_shared" = Xyes; then
  13321. NO_UNDEFINED="-no-undefined"
  13322. EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
  13323. fi
  13324. ;;
  13325. esac
  13326. # The extra LDFLAGS for each particular library. The libpcre2*_version values
  13327. # are m4 variables, assigned above.
  13328. EXTRA_LIBPCRE2_8_LDFLAGS="$EXTRA_LIBPCRE2_8_LDFLAGS \
  13329. $NO_UNDEFINED -version-info 10:4:10"
  13330. EXTRA_LIBPCRE2_16_LDFLAGS="$EXTRA_LIBPCRE2_16_LDFLAGS \
  13331. $NO_UNDEFINED -version-info 10:4:10"
  13332. EXTRA_LIBPCRE2_32_LDFLAGS="$EXTRA_LIBPCRE2_32_LDFLAGS \
  13333. $NO_UNDEFINED -version-info 10:4:10"
  13334. EXTRA_LIBPCRE2_POSIX_LDFLAGS="$EXTRA_LIBPCRE2_POSIX_LDFLAGS \
  13335. $NO_UNDEFINED -version-info 3:1:0"
  13336. # When we run 'make distcheck', use these arguments. Turning off compiler
  13337. # optimization makes it run faster.
  13338. DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre2-16 --enable-pcre2-32 --enable-jit"
  13339. # Check that, if --enable-pcre2grep-libz or --enable-pcre2grep-libbz2 is
  13340. # specified, the relevant library is available.
  13341. if test "$enable_pcre2grep_libz" = "yes"; then
  13342. if test "$HAVE_ZLIB_H" != "1"; then
  13343. echo "** Cannot --enable-pcre2grep-libz because zlib.h was not found"
  13344. exit 1
  13345. fi
  13346. if test "$HAVE_LIBZ" != "1"; then
  13347. echo "** Cannot --enable-pcre2grep-libz because libz was not found"
  13348. exit 1
  13349. fi
  13350. LIBZ="-lz"
  13351. fi
  13352. if test "$enable_pcre2grep_libbz2" = "yes"; then
  13353. if test "$HAVE_BZLIB_H" != "1"; then
  13354. echo "** Cannot --enable-pcre2grep-libbz2 because bzlib.h was not found"
  13355. exit 1
  13356. fi
  13357. if test "$HAVE_LIBBZ2" != "1"; then
  13358. echo "** Cannot --enable-pcre2grep-libbz2 because libbz2 was not found"
  13359. exit 1
  13360. fi
  13361. LIBBZ2="-lbz2"
  13362. fi
  13363. # Similarly for --enable-pcre2test-readline
  13364. if test "$enable_pcre2test_libedit" = "yes"; then
  13365. if test "$enable_pcre2test_libreadline" = "yes"; then
  13366. echo "** Cannot use both --enable-pcre2test-libedit and --enable-pcre2test-readline"
  13367. exit 1
  13368. fi
  13369. if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
  13370. "$HAVE_READLINE_READLINE_H" != "1"; then
  13371. echo "** Cannot --enable-pcre2test-libedit because neither editline/readline.h"
  13372. echo "** nor readline/readline.h was found."
  13373. exit 1
  13374. fi
  13375. if test -z "$LIBEDIT"; then
  13376. echo "** Cannot --enable-pcre2test-libedit because libedit library was not found."
  13377. exit 1
  13378. fi
  13379. fi
  13380. if test "$enable_pcre2test_libreadline" = "yes"; then
  13381. if test "$HAVE_READLINE_H" != "1"; then
  13382. echo "** Cannot --enable-pcre2test-readline because readline/readline.h was not found."
  13383. exit 1
  13384. fi
  13385. if test "$HAVE_HISTORY_H" != "1"; then
  13386. echo "** Cannot --enable-pcre2test-readline because readline/history.h was not found."
  13387. exit 1
  13388. fi
  13389. if test -z "$LIBREADLINE"; then
  13390. echo "** Cannot --enable-pcre2test-readline because readline library was not found."
  13391. exit 1
  13392. fi
  13393. fi
  13394. # Handle valgrind support
  13395. if test "$enable_valgrind" = "yes"; then
  13396. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13397. if test -n "$ac_tool_prefix"; then
  13398. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13399. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13401. printf %s "checking for $ac_word... " >&6; }
  13402. if test ${ac_cv_path_PKG_CONFIG+y}
  13403. then :
  13404. printf %s "(cached) " >&6
  13405. else $as_nop
  13406. case $PKG_CONFIG in
  13407. [\\/]* | ?:[\\/]*)
  13408. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13409. ;;
  13410. *)
  13411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13412. for as_dir in $PATH
  13413. do
  13414. IFS=$as_save_IFS
  13415. case $as_dir in #(((
  13416. '') as_dir=./ ;;
  13417. */) ;;
  13418. *) as_dir=$as_dir/ ;;
  13419. esac
  13420. for ac_exec_ext in '' $ac_executable_extensions; do
  13421. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13422. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  13423. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13424. break 2
  13425. fi
  13426. done
  13427. done
  13428. IFS=$as_save_IFS
  13429. ;;
  13430. esac
  13431. fi
  13432. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13433. if test -n "$PKG_CONFIG"; then
  13434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13435. printf "%s\n" "$PKG_CONFIG" >&6; }
  13436. else
  13437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13438. printf "%s\n" "no" >&6; }
  13439. fi
  13440. fi
  13441. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13442. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13443. # Extract the first word of "pkg-config", so it can be a program name with args.
  13444. set dummy pkg-config; ac_word=$2
  13445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13446. printf %s "checking for $ac_word... " >&6; }
  13447. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  13448. then :
  13449. printf %s "(cached) " >&6
  13450. else $as_nop
  13451. case $ac_pt_PKG_CONFIG in
  13452. [\\/]* | ?:[\\/]*)
  13453. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13454. ;;
  13455. *)
  13456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13457. for as_dir in $PATH
  13458. do
  13459. IFS=$as_save_IFS
  13460. case $as_dir in #(((
  13461. '') as_dir=./ ;;
  13462. */) ;;
  13463. *) as_dir=$as_dir/ ;;
  13464. esac
  13465. for ac_exec_ext in '' $ac_executable_extensions; do
  13466. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13467. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  13468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13469. break 2
  13470. fi
  13471. done
  13472. done
  13473. IFS=$as_save_IFS
  13474. ;;
  13475. esac
  13476. fi
  13477. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13478. if test -n "$ac_pt_PKG_CONFIG"; then
  13479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13480. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  13481. else
  13482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13483. printf "%s\n" "no" >&6; }
  13484. fi
  13485. if test "x$ac_pt_PKG_CONFIG" = x; then
  13486. PKG_CONFIG=""
  13487. else
  13488. case $cross_compiling:$ac_tool_warned in
  13489. yes:)
  13490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13491. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13492. ac_tool_warned=yes ;;
  13493. esac
  13494. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13495. fi
  13496. else
  13497. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13498. fi
  13499. fi
  13500. if test -n "$PKG_CONFIG"; then
  13501. _pkg_min_version=0.9.0
  13502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13503. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13504. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13506. printf "%s\n" "yes" >&6; }
  13507. else
  13508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13509. printf "%s\n" "no" >&6; }
  13510. PKG_CONFIG=""
  13511. fi
  13512. fi
  13513. pkg_failed=no
  13514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
  13515. printf %s "checking for VALGRIND... " >&6; }
  13516. if test -n "$VALGRIND_CFLAGS"; then
  13517. pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
  13518. elif test -n "$PKG_CONFIG"; then
  13519. if test -n "$PKG_CONFIG" && \
  13520. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  13521. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  13522. ac_status=$?
  13523. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13524. test $ac_status = 0; }; then
  13525. pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
  13526. test "x$?" != "x0" && pkg_failed=yes
  13527. else
  13528. pkg_failed=yes
  13529. fi
  13530. else
  13531. pkg_failed=untried
  13532. fi
  13533. if test -n "$VALGRIND_LIBS"; then
  13534. pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
  13535. elif test -n "$PKG_CONFIG"; then
  13536. if test -n "$PKG_CONFIG" && \
  13537. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  13538. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  13539. ac_status=$?
  13540. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13541. test $ac_status = 0; }; then
  13542. pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
  13543. test "x$?" != "x0" && pkg_failed=yes
  13544. else
  13545. pkg_failed=yes
  13546. fi
  13547. else
  13548. pkg_failed=untried
  13549. fi
  13550. if test $pkg_failed = yes; then
  13551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13552. printf "%s\n" "no" >&6; }
  13553. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13554. _pkg_short_errors_supported=yes
  13555. else
  13556. _pkg_short_errors_supported=no
  13557. fi
  13558. if test $_pkg_short_errors_supported = yes; then
  13559. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
  13560. else
  13561. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
  13562. fi
  13563. # Put the nasty error message in config.log where it belongs
  13564. echo "$VALGRIND_PKG_ERRORS" >&5
  13565. as_fn_error $? "Package requirements (valgrind) were not met:
  13566. $VALGRIND_PKG_ERRORS
  13567. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13568. installed software in a non-standard prefix.
  13569. Alternatively, you may set the environment variables VALGRIND_CFLAGS
  13570. and VALGRIND_LIBS to avoid the need to call pkg-config.
  13571. See the pkg-config man page for more details." "$LINENO" 5
  13572. elif test $pkg_failed = untried; then
  13573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13574. printf "%s\n" "no" >&6; }
  13575. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13576. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  13577. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13578. is in your PATH or set the PKG_CONFIG environment variable to the full
  13579. path to pkg-config.
  13580. Alternatively, you may set the environment variables VALGRIND_CFLAGS
  13581. and VALGRIND_LIBS to avoid the need to call pkg-config.
  13582. See the pkg-config man page for more details.
  13583. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13584. See \`config.log' for more details" "$LINENO" 5; }
  13585. else
  13586. VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
  13587. VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
  13588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13589. printf "%s\n" "yes" >&6; }
  13590. fi
  13591. fi
  13592. # Handle code coverage reporting support
  13593. if test "$enable_coverage" = "yes"; then
  13594. if test "x$GCC" != "xyes"; then
  13595. as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
  13596. fi
  13597. # ccache is incompatible with gcov
  13598. # Extract the first word of "shtool", so it can be a program name with args.
  13599. set dummy shtool; ac_word=$2
  13600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13601. printf %s "checking for $ac_word... " >&6; }
  13602. if test ${ac_cv_path_SHTOOL+y}
  13603. then :
  13604. printf %s "(cached) " >&6
  13605. else $as_nop
  13606. case $SHTOOL in
  13607. [\\/]* | ?:[\\/]*)
  13608. ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
  13609. ;;
  13610. *)
  13611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13612. for as_dir in $PATH
  13613. do
  13614. IFS=$as_save_IFS
  13615. case $as_dir in #(((
  13616. '') as_dir=./ ;;
  13617. */) ;;
  13618. *) as_dir=$as_dir/ ;;
  13619. esac
  13620. for ac_exec_ext in '' $ac_executable_extensions; do
  13621. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13622. ac_cv_path_SHTOOL="$as_dir$ac_word$ac_exec_ext"
  13623. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13624. break 2
  13625. fi
  13626. done
  13627. done
  13628. IFS=$as_save_IFS
  13629. test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
  13630. ;;
  13631. esac
  13632. fi
  13633. SHTOOL=$ac_cv_path_SHTOOL
  13634. if test -n "$SHTOOL"; then
  13635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
  13636. printf "%s\n" "$SHTOOL" >&6; }
  13637. else
  13638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13639. printf "%s\n" "no" >&6; }
  13640. fi
  13641. case `$SHTOOL path $CC` in
  13642. *ccache*) cc_ccache=yes;;
  13643. *) cc_ccache=no;;
  13644. esac
  13645. if test "$cc_ccache" = "yes"; then
  13646. if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
  13647. as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
  13648. fi
  13649. fi
  13650. # Extract the first word of "lcov", so it can be a program name with args.
  13651. set dummy lcov; ac_word=$2
  13652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13653. printf %s "checking for $ac_word... " >&6; }
  13654. if test ${ac_cv_path_LCOV+y}
  13655. then :
  13656. printf %s "(cached) " >&6
  13657. else $as_nop
  13658. case $LCOV in
  13659. [\\/]* | ?:[\\/]*)
  13660. ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
  13661. ;;
  13662. *)
  13663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13664. for as_dir in $PATH
  13665. do
  13666. IFS=$as_save_IFS
  13667. case $as_dir in #(((
  13668. '') as_dir=./ ;;
  13669. */) ;;
  13670. *) as_dir=$as_dir/ ;;
  13671. esac
  13672. for ac_exec_ext in '' $ac_executable_extensions; do
  13673. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13674. ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext"
  13675. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13676. break 2
  13677. fi
  13678. done
  13679. done
  13680. IFS=$as_save_IFS
  13681. test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
  13682. ;;
  13683. esac
  13684. fi
  13685. LCOV=$ac_cv_path_LCOV
  13686. if test -n "$LCOV"; then
  13687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  13688. printf "%s\n" "$LCOV" >&6; }
  13689. else
  13690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13691. printf "%s\n" "no" >&6; }
  13692. fi
  13693. if test "x$LCOV" = "xfalse"; then
  13694. as_fn_error $? "lcov not found" "$LINENO" 5
  13695. fi
  13696. # Extract the first word of "genhtml", so it can be a program name with args.
  13697. set dummy genhtml; ac_word=$2
  13698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13699. printf %s "checking for $ac_word... " >&6; }
  13700. if test ${ac_cv_path_GENHTML+y}
  13701. then :
  13702. printf %s "(cached) " >&6
  13703. else $as_nop
  13704. case $GENHTML in
  13705. [\\/]* | ?:[\\/]*)
  13706. ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
  13707. ;;
  13708. *)
  13709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13710. for as_dir in $PATH
  13711. do
  13712. IFS=$as_save_IFS
  13713. case $as_dir in #(((
  13714. '') as_dir=./ ;;
  13715. */) ;;
  13716. *) as_dir=$as_dir/ ;;
  13717. esac
  13718. for ac_exec_ext in '' $ac_executable_extensions; do
  13719. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13720. ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext"
  13721. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13722. break 2
  13723. fi
  13724. done
  13725. done
  13726. IFS=$as_save_IFS
  13727. test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
  13728. ;;
  13729. esac
  13730. fi
  13731. GENHTML=$ac_cv_path_GENHTML
  13732. if test -n "$GENHTML"; then
  13733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  13734. printf "%s\n" "$GENHTML" >&6; }
  13735. else
  13736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13737. printf "%s\n" "no" >&6; }
  13738. fi
  13739. if test "x$GENHTML" = "xfalse"; then
  13740. as_fn_error $? "genhtml not found" "$LINENO" 5
  13741. fi
  13742. # Set flags needed for gcov
  13743. GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
  13744. GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
  13745. GCOV_LIBS="-lgcov"
  13746. fi # enable_coverage
  13747. if test "x$enable_coverage" = "xyes"; then
  13748. WITH_GCOV_TRUE=
  13749. WITH_GCOV_FALSE='#'
  13750. else
  13751. WITH_GCOV_TRUE='#'
  13752. WITH_GCOV_FALSE=
  13753. fi
  13754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Intel CET is enabled" >&5
  13755. printf %s "checking whether Intel CET is enabled... " >&6; }
  13756. ac_ext=c
  13757. ac_cpp='$CPP $CPPFLAGS'
  13758. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13759. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13760. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13762. /* end confdefs.h. */
  13763. int
  13764. main (void)
  13765. {
  13766. #ifndef __CET__
  13767. # error CET is not enabled
  13768. #endif
  13769. ;
  13770. return 0;
  13771. }
  13772. _ACEOF
  13773. if ac_fn_c_try_compile "$LINENO"
  13774. then :
  13775. pcre2_cc_cv_intel_cet_enabled=yes
  13776. else $as_nop
  13777. pcre2_cc_cv_intel_cet_enabled=no
  13778. fi
  13779. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_intel_cet_enabled" >&5
  13781. printf "%s\n" "$pcre2_cc_cv_intel_cet_enabled" >&6; }
  13782. if test "$pcre2_cc_cv_intel_cet_enabled" = yes; then
  13783. CET_CFLAGS="-mshstk"
  13784. fi
  13785. ac_ext=c
  13786. ac_cpp='$CPP $CPPFLAGS'
  13787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13790. # LIB_POSTFIX is used by CMakeLists.txt for Windows debug builds.
  13791. # Pass empty LIB_POSTFIX to *.pc files and pcre2-config here.
  13792. # Produce these files, in addition to config.h.
  13793. ac_config_files="$ac_config_files Makefile libpcre2-8.pc libpcre2-16.pc libpcre2-32.pc libpcre2-posix.pc pcre2-config src/pcre2.h"
  13794. # Make the generated script files executable.
  13795. ac_config_commands="$ac_config_commands script-chmod"
  13796. # Make sure that pcre2_chartables.c is removed in case the method for
  13797. # creating it was changed by reconfiguration.
  13798. ac_config_commands="$ac_config_commands delete-old-chartables"
  13799. cat >confcache <<\_ACEOF
  13800. # This file is a shell script that caches the results of configure
  13801. # tests run on this system so they can be shared between configure
  13802. # scripts and configure runs, see configure's option --config-cache.
  13803. # It is not useful on other systems. If it contains results you don't
  13804. # want to keep, you may remove or edit it.
  13805. #
  13806. # config.status only pays attention to the cache file if you give it
  13807. # the --recheck option to rerun configure.
  13808. #
  13809. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13810. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13811. # following values.
  13812. _ACEOF
  13813. # The following way of writing the cache mishandles newlines in values,
  13814. # but we know of no workaround that is simple, portable, and efficient.
  13815. # So, we kill variables containing newlines.
  13816. # Ultrix sh set writes to stderr and can't be redirected directly,
  13817. # and sets the high bit in the cache file unless we assign to the vars.
  13818. (
  13819. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13820. eval ac_val=\$$ac_var
  13821. case $ac_val in #(
  13822. *${as_nl}*)
  13823. case $ac_var in #(
  13824. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13825. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13826. esac
  13827. case $ac_var in #(
  13828. _ | IFS | as_nl) ;; #(
  13829. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13830. *) { eval $ac_var=; unset $ac_var;} ;;
  13831. esac ;;
  13832. esac
  13833. done
  13834. (set) 2>&1 |
  13835. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13836. *${as_nl}ac_space=\ *)
  13837. # `set' does not quote correctly, so add quotes: double-quote
  13838. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13839. sed -n \
  13840. "s/'/'\\\\''/g;
  13841. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13842. ;; #(
  13843. *)
  13844. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13845. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13846. ;;
  13847. esac |
  13848. sort
  13849. ) |
  13850. sed '
  13851. /^ac_cv_env_/b end
  13852. t clear
  13853. :clear
  13854. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  13855. t end
  13856. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13857. :end' >>confcache
  13858. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13859. if test -w "$cache_file"; then
  13860. if test "x$cache_file" != "x/dev/null"; then
  13861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13862. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  13863. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13864. cat confcache >"$cache_file"
  13865. else
  13866. case $cache_file in #(
  13867. */* | ?:*)
  13868. mv -f confcache "$cache_file"$$ &&
  13869. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13870. *)
  13871. mv -f confcache "$cache_file" ;;
  13872. esac
  13873. fi
  13874. fi
  13875. else
  13876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13877. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  13878. fi
  13879. fi
  13880. rm -f confcache
  13881. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13882. # Let make expand exec_prefix.
  13883. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13884. DEFS=-DHAVE_CONFIG_H
  13885. ac_libobjs=
  13886. ac_ltlibobjs=
  13887. U=
  13888. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13889. # 1. Remove the extension, and $U if already installed.
  13890. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13891. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  13892. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13893. # will be set to the directory where LIBOBJS objects are built.
  13894. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13895. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13896. done
  13897. LIBOBJS=$ac_libobjs
  13898. LTLIBOBJS=$ac_ltlibobjs
  13899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13900. printf %s "checking that generated files are newer than configure... " >&6; }
  13901. if test -n "$am_sleep_pid"; then
  13902. # Hide warnings about reused PIDs.
  13903. wait $am_sleep_pid 2>/dev/null
  13904. fi
  13905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13906. printf "%s\n" "done" >&6; }
  13907. if test -n "$EXEEXT"; then
  13908. am__EXEEXT_TRUE=
  13909. am__EXEEXT_FALSE='#'
  13910. else
  13911. am__EXEEXT_TRUE='#'
  13912. am__EXEEXT_FALSE=
  13913. fi
  13914. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13915. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13916. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13917. fi
  13918. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13919. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13920. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13921. fi
  13922. if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then
  13923. as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined.
  13924. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13925. fi
  13926. if test -z "${WITH_PCRE2_16_TRUE}" && test -z "${WITH_PCRE2_16_FALSE}"; then
  13927. as_fn_error $? "conditional \"WITH_PCRE2_16\" was never defined.
  13928. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13929. fi
  13930. if test -z "${WITH_PCRE2_32_TRUE}" && test -z "${WITH_PCRE2_32_FALSE}"; then
  13931. as_fn_error $? "conditional \"WITH_PCRE2_32\" was never defined.
  13932. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13933. fi
  13934. if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
  13935. as_fn_error $? "conditional \"WITH_DEBUG\" was never defined.
  13936. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13937. fi
  13938. if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
  13939. as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
  13940. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13941. fi
  13942. if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
  13943. as_fn_error $? "conditional \"WITH_JIT\" was never defined.
  13944. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13945. fi
  13946. if test -z "${WITH_UNICODE_TRUE}" && test -z "${WITH_UNICODE_FALSE}"; then
  13947. as_fn_error $? "conditional \"WITH_UNICODE\" was never defined.
  13948. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13949. fi
  13950. if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
  13951. as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
  13952. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13953. fi
  13954. if test -z "${WITH_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_FUZZ_SUPPORT_FALSE}"; then
  13955. as_fn_error $? "conditional \"WITH_FUZZ_SUPPORT\" was never defined.
  13956. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13957. fi
  13958. if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
  13959. as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
  13960. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13961. fi
  13962. : "${CONFIG_STATUS=./config.status}"
  13963. ac_write_fail=0
  13964. ac_clean_files_save=$ac_clean_files
  13965. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13967. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  13968. as_write_fail=0
  13969. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13970. #! $SHELL
  13971. # Generated by $as_me.
  13972. # Run this file to recreate the current configuration.
  13973. # Compiler output produced by configure, useful for debugging
  13974. # configure, is in config.log if it exists.
  13975. debug=false
  13976. ac_cs_recheck=false
  13977. ac_cs_silent=false
  13978. SHELL=\${CONFIG_SHELL-$SHELL}
  13979. export SHELL
  13980. _ASEOF
  13981. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13982. ## -------------------- ##
  13983. ## M4sh Initialization. ##
  13984. ## -------------------- ##
  13985. # Be more Bourne compatible
  13986. DUALCASE=1; export DUALCASE # for MKS sh
  13987. as_nop=:
  13988. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  13989. then :
  13990. emulate sh
  13991. NULLCMD=:
  13992. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13993. # is contrary to our usage. Disable this feature.
  13994. alias -g '${1+"$@"}'='"$@"'
  13995. setopt NO_GLOB_SUBST
  13996. else $as_nop
  13997. case `(set -o) 2>/dev/null` in #(
  13998. *posix*) :
  13999. set -o posix ;; #(
  14000. *) :
  14001. ;;
  14002. esac
  14003. fi
  14004. # Reset variables that may have inherited troublesome values from
  14005. # the environment.
  14006. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  14007. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  14008. # side effect of setting IFS to empty, thus disabling word splitting.)
  14009. # Quoting is to prevent editors from complaining about space-tab.
  14010. as_nl='
  14011. '
  14012. export as_nl
  14013. IFS=" "" $as_nl"
  14014. PS1='$ '
  14015. PS2='> '
  14016. PS4='+ '
  14017. # Ensure predictable behavior from utilities with locale-dependent output.
  14018. LC_ALL=C
  14019. export LC_ALL
  14020. LANGUAGE=C
  14021. export LANGUAGE
  14022. # We cannot yet rely on "unset" to work, but we need these variables
  14023. # to be unset--not just set to an empty or harmless value--now, to
  14024. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  14025. # also avoids known problems related to "unset" and subshell syntax
  14026. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  14027. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  14028. do eval test \${$as_var+y} \
  14029. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14030. done
  14031. # Ensure that fds 0, 1, and 2 are open.
  14032. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  14033. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  14034. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  14035. # The user is always right.
  14036. if ${PATH_SEPARATOR+false} :; then
  14037. PATH_SEPARATOR=:
  14038. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14039. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14040. PATH_SEPARATOR=';'
  14041. }
  14042. fi
  14043. # Find who we are. Look in the path if we contain no directory separator.
  14044. as_myself=
  14045. case $0 in #((
  14046. *[\\/]* ) as_myself=$0 ;;
  14047. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14048. for as_dir in $PATH
  14049. do
  14050. IFS=$as_save_IFS
  14051. case $as_dir in #(((
  14052. '') as_dir=./ ;;
  14053. */) ;;
  14054. *) as_dir=$as_dir/ ;;
  14055. esac
  14056. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  14057. done
  14058. IFS=$as_save_IFS
  14059. ;;
  14060. esac
  14061. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14062. # in which case we are not to be found in the path.
  14063. if test "x$as_myself" = x; then
  14064. as_myself=$0
  14065. fi
  14066. if test ! -f "$as_myself"; then
  14067. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14068. exit 1
  14069. fi
  14070. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14071. # ----------------------------------------
  14072. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14073. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14074. # script with STATUS, using 1 if that was 0.
  14075. as_fn_error ()
  14076. {
  14077. as_status=$1; test $as_status -eq 0 && as_status=1
  14078. if test "$4"; then
  14079. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14080. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14081. fi
  14082. printf "%s\n" "$as_me: error: $2" >&2
  14083. as_fn_exit $as_status
  14084. } # as_fn_error
  14085. # as_fn_set_status STATUS
  14086. # -----------------------
  14087. # Set $? to STATUS, without forking.
  14088. as_fn_set_status ()
  14089. {
  14090. return $1
  14091. } # as_fn_set_status
  14092. # as_fn_exit STATUS
  14093. # -----------------
  14094. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14095. as_fn_exit ()
  14096. {
  14097. set +e
  14098. as_fn_set_status $1
  14099. exit $1
  14100. } # as_fn_exit
  14101. # as_fn_unset VAR
  14102. # ---------------
  14103. # Portably unset VAR.
  14104. as_fn_unset ()
  14105. {
  14106. { eval $1=; unset $1;}
  14107. }
  14108. as_unset=as_fn_unset
  14109. # as_fn_append VAR VALUE
  14110. # ----------------------
  14111. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14112. # advantage of any shell optimizations that allow amortized linear growth over
  14113. # repeated appends, instead of the typical quadratic growth present in naive
  14114. # implementations.
  14115. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  14116. then :
  14117. eval 'as_fn_append ()
  14118. {
  14119. eval $1+=\$2
  14120. }'
  14121. else $as_nop
  14122. as_fn_append ()
  14123. {
  14124. eval $1=\$$1\$2
  14125. }
  14126. fi # as_fn_append
  14127. # as_fn_arith ARG...
  14128. # ------------------
  14129. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14130. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14131. # must be portable across $(()) and expr.
  14132. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  14133. then :
  14134. eval 'as_fn_arith ()
  14135. {
  14136. as_val=$(( $* ))
  14137. }'
  14138. else $as_nop
  14139. as_fn_arith ()
  14140. {
  14141. as_val=`expr "$@" || test $? -eq 1`
  14142. }
  14143. fi # as_fn_arith
  14144. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14145. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14146. as_expr=expr
  14147. else
  14148. as_expr=false
  14149. fi
  14150. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14151. as_basename=basename
  14152. else
  14153. as_basename=false
  14154. fi
  14155. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14156. as_dirname=dirname
  14157. else
  14158. as_dirname=false
  14159. fi
  14160. as_me=`$as_basename -- "$0" ||
  14161. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14162. X"$0" : 'X\(//\)$' \| \
  14163. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14164. printf "%s\n" X/"$0" |
  14165. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14166. s//\1/
  14167. q
  14168. }
  14169. /^X\/\(\/\/\)$/{
  14170. s//\1/
  14171. q
  14172. }
  14173. /^X\/\(\/\).*/{
  14174. s//\1/
  14175. q
  14176. }
  14177. s/.*/./; q'`
  14178. # Avoid depending upon Character Ranges.
  14179. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14180. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14181. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14182. as_cr_digits='0123456789'
  14183. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14184. # Determine whether it's possible to make 'echo' print without a newline.
  14185. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  14186. # for compatibility with existing Makefiles.
  14187. ECHO_C= ECHO_N= ECHO_T=
  14188. case `echo -n x` in #(((((
  14189. -n*)
  14190. case `echo 'xy\c'` in
  14191. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14192. xy) ECHO_C='\c';;
  14193. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14194. ECHO_T=' ';;
  14195. esac;;
  14196. *)
  14197. ECHO_N='-n';;
  14198. esac
  14199. # For backward compatibility with old third-party macros, we provide
  14200. # the shell variables $as_echo and $as_echo_n. New code should use
  14201. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  14202. as_echo='printf %s\n'
  14203. as_echo_n='printf %s'
  14204. rm -f conf$$ conf$$.exe conf$$.file
  14205. if test -d conf$$.dir; then
  14206. rm -f conf$$.dir/conf$$.file
  14207. else
  14208. rm -f conf$$.dir
  14209. mkdir conf$$.dir 2>/dev/null
  14210. fi
  14211. if (echo >conf$$.file) 2>/dev/null; then
  14212. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14213. as_ln_s='ln -s'
  14214. # ... but there are two gotchas:
  14215. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14216. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14217. # In both cases, we have to default to `cp -pR'.
  14218. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14219. as_ln_s='cp -pR'
  14220. elif ln conf$$.file conf$$ 2>/dev/null; then
  14221. as_ln_s=ln
  14222. else
  14223. as_ln_s='cp -pR'
  14224. fi
  14225. else
  14226. as_ln_s='cp -pR'
  14227. fi
  14228. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14229. rmdir conf$$.dir 2>/dev/null
  14230. # as_fn_mkdir_p
  14231. # -------------
  14232. # Create "$as_dir" as a directory, including parents if necessary.
  14233. as_fn_mkdir_p ()
  14234. {
  14235. case $as_dir in #(
  14236. -*) as_dir=./$as_dir;;
  14237. esac
  14238. test -d "$as_dir" || eval $as_mkdir_p || {
  14239. as_dirs=
  14240. while :; do
  14241. case $as_dir in #(
  14242. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14243. *) as_qdir=$as_dir;;
  14244. esac
  14245. as_dirs="'$as_qdir' $as_dirs"
  14246. as_dir=`$as_dirname -- "$as_dir" ||
  14247. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14248. X"$as_dir" : 'X\(//\)[^/]' \| \
  14249. X"$as_dir" : 'X\(//\)$' \| \
  14250. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14251. printf "%s\n" X"$as_dir" |
  14252. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14253. s//\1/
  14254. q
  14255. }
  14256. /^X\(\/\/\)[^/].*/{
  14257. s//\1/
  14258. q
  14259. }
  14260. /^X\(\/\/\)$/{
  14261. s//\1/
  14262. q
  14263. }
  14264. /^X\(\/\).*/{
  14265. s//\1/
  14266. q
  14267. }
  14268. s/.*/./; q'`
  14269. test -d "$as_dir" && break
  14270. done
  14271. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14272. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14273. } # as_fn_mkdir_p
  14274. if mkdir -p . 2>/dev/null; then
  14275. as_mkdir_p='mkdir -p "$as_dir"'
  14276. else
  14277. test -d ./-p && rmdir ./-p
  14278. as_mkdir_p=false
  14279. fi
  14280. # as_fn_executable_p FILE
  14281. # -----------------------
  14282. # Test if FILE is an executable regular file.
  14283. as_fn_executable_p ()
  14284. {
  14285. test -f "$1" && test -x "$1"
  14286. } # as_fn_executable_p
  14287. as_test_x='test -x'
  14288. as_executable_p=as_fn_executable_p
  14289. # Sed expression to map a string onto a valid CPP name.
  14290. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14291. # Sed expression to map a string onto a valid variable name.
  14292. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14293. exec 6>&1
  14294. ## ----------------------------------- ##
  14295. ## Main body of $CONFIG_STATUS script. ##
  14296. ## ----------------------------------- ##
  14297. _ASEOF
  14298. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14299. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14300. # Save the log message, to keep $0 and so on meaningful, and to
  14301. # report actual input values of CONFIG_FILES etc. instead of their
  14302. # values after options handling.
  14303. ac_log="
  14304. This file was extended by PCRE2 $as_me 10.39, which was
  14305. generated by GNU Autoconf 2.71. Invocation command line was
  14306. CONFIG_FILES = $CONFIG_FILES
  14307. CONFIG_HEADERS = $CONFIG_HEADERS
  14308. CONFIG_LINKS = $CONFIG_LINKS
  14309. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14310. $ $0 $@
  14311. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14312. "
  14313. _ACEOF
  14314. case $ac_config_files in *"
  14315. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14316. esac
  14317. case $ac_config_headers in *"
  14318. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14319. esac
  14320. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14321. # Files that config.status was made for.
  14322. config_files="$ac_config_files"
  14323. config_headers="$ac_config_headers"
  14324. config_commands="$ac_config_commands"
  14325. _ACEOF
  14326. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14327. ac_cs_usage="\
  14328. \`$as_me' instantiates files and other configuration actions
  14329. from templates according to the current configuration. Unless the files
  14330. and actions are specified as TAGs, all are instantiated by default.
  14331. Usage: $0 [OPTION]... [TAG]...
  14332. -h, --help print this help, then exit
  14333. -V, --version print version number and configuration settings, then exit
  14334. --config print configuration, then exit
  14335. -q, --quiet, --silent
  14336. do not print progress messages
  14337. -d, --debug don't remove temporary files
  14338. --recheck update $as_me by reconfiguring in the same conditions
  14339. --file=FILE[:TEMPLATE]
  14340. instantiate the configuration file FILE
  14341. --header=FILE[:TEMPLATE]
  14342. instantiate the configuration header FILE
  14343. Configuration files:
  14344. $config_files
  14345. Configuration headers:
  14346. $config_headers
  14347. Configuration commands:
  14348. $config_commands
  14349. Report bugs to the package provider."
  14350. _ACEOF
  14351. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  14352. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  14353. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14354. ac_cs_config='$ac_cs_config_escaped'
  14355. ac_cs_version="\\
  14356. PCRE2 config.status 10.39
  14357. configured by $0, generated by GNU Autoconf 2.71,
  14358. with options \\"\$ac_cs_config\\"
  14359. Copyright (C) 2021 Free Software Foundation, Inc.
  14360. This config.status script is free software; the Free Software Foundation
  14361. gives unlimited permission to copy, distribute and modify it."
  14362. ac_pwd='$ac_pwd'
  14363. srcdir='$srcdir'
  14364. INSTALL='$INSTALL'
  14365. MKDIR_P='$MKDIR_P'
  14366. AWK='$AWK'
  14367. test -n "\$AWK" || AWK=awk
  14368. _ACEOF
  14369. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14370. # The default lists apply if the user does not specify any file.
  14371. ac_need_defaults=:
  14372. while test $# != 0
  14373. do
  14374. case $1 in
  14375. --*=?*)
  14376. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14377. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14378. ac_shift=:
  14379. ;;
  14380. --*=)
  14381. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14382. ac_optarg=
  14383. ac_shift=:
  14384. ;;
  14385. *)
  14386. ac_option=$1
  14387. ac_optarg=$2
  14388. ac_shift=shift
  14389. ;;
  14390. esac
  14391. case $ac_option in
  14392. # Handling of the options.
  14393. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14394. ac_cs_recheck=: ;;
  14395. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14396. printf "%s\n" "$ac_cs_version"; exit ;;
  14397. --config | --confi | --conf | --con | --co | --c )
  14398. printf "%s\n" "$ac_cs_config"; exit ;;
  14399. --debug | --debu | --deb | --de | --d | -d )
  14400. debug=: ;;
  14401. --file | --fil | --fi | --f )
  14402. $ac_shift
  14403. case $ac_optarg in
  14404. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14405. '') as_fn_error $? "missing file argument" ;;
  14406. esac
  14407. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14408. ac_need_defaults=false;;
  14409. --header | --heade | --head | --hea )
  14410. $ac_shift
  14411. case $ac_optarg in
  14412. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14413. esac
  14414. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14415. ac_need_defaults=false;;
  14416. --he | --h)
  14417. # Conflict between --help and --header
  14418. as_fn_error $? "ambiguous option: \`$1'
  14419. Try \`$0 --help' for more information.";;
  14420. --help | --hel | -h )
  14421. printf "%s\n" "$ac_cs_usage"; exit ;;
  14422. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14423. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14424. ac_cs_silent=: ;;
  14425. # This is an error.
  14426. -*) as_fn_error $? "unrecognized option: \`$1'
  14427. Try \`$0 --help' for more information." ;;
  14428. *) as_fn_append ac_config_targets " $1"
  14429. ac_need_defaults=false ;;
  14430. esac
  14431. shift
  14432. done
  14433. ac_configure_extra_args=
  14434. if $ac_cs_silent; then
  14435. exec 6>/dev/null
  14436. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14437. fi
  14438. _ACEOF
  14439. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14440. if \$ac_cs_recheck; then
  14441. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14442. shift
  14443. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  14444. CONFIG_SHELL='$SHELL'
  14445. export CONFIG_SHELL
  14446. exec "\$@"
  14447. fi
  14448. _ACEOF
  14449. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14450. exec 5>>config.log
  14451. {
  14452. echo
  14453. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14454. ## Running $as_me. ##
  14455. _ASBOX
  14456. printf "%s\n" "$ac_log"
  14457. } >&5
  14458. _ACEOF
  14459. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14460. #
  14461. # INIT-COMMANDS
  14462. #
  14463. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  14464. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14465. # if CDPATH is set.
  14466. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14467. sed_quote_subst='$sed_quote_subst'
  14468. double_quote_subst='$double_quote_subst'
  14469. delay_variable_subst='$delay_variable_subst'
  14470. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14471. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14472. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  14473. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14474. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14475. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14476. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14477. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14478. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14479. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  14480. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14481. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14482. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14483. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14484. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14485. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14486. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14487. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14488. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14489. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14490. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14491. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14492. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14493. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14494. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14495. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14496. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14497. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14498. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14499. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14500. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14501. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14502. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14503. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14504. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14505. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14506. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14507. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14508. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14509. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14510. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14511. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14512. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14513. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  14514. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14515. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14516. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14517. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14518. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14519. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14520. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14521. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14522. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14523. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14524. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14525. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14526. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14527. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14528. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  14529. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14530. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14531. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  14532. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14533. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14534. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  14535. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14536. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14537. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14538. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14539. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14540. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14541. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14542. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14543. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14544. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14545. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14546. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14547. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14548. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14549. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14550. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14551. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14552. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14553. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14554. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14555. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14556. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14557. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14558. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14559. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14560. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14561. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14562. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14563. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14564. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14565. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14566. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14567. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14568. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14569. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14570. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14571. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14572. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14573. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14574. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14575. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14576. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14577. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14578. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14579. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14580. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14581. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14582. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14583. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14584. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14585. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14586. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14587. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14588. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14589. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14590. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14591. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14592. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14593. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14594. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14595. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14596. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14597. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14598. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14599. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  14600. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  14601. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14602. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14603. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14604. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14605. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14606. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14607. LTCC='$LTCC'
  14608. LTCFLAGS='$LTCFLAGS'
  14609. compiler='$compiler_DEFAULT'
  14610. # A function that is used when there is no print builtin or printf.
  14611. func_fallback_echo ()
  14612. {
  14613. eval 'cat <<_LTECHO_EOF
  14614. \$1
  14615. _LTECHO_EOF'
  14616. }
  14617. # Quote evaled strings.
  14618. for var in AS \
  14619. DLLTOOL \
  14620. OBJDUMP \
  14621. SHELL \
  14622. ECHO \
  14623. PATH_SEPARATOR \
  14624. SED \
  14625. GREP \
  14626. EGREP \
  14627. FGREP \
  14628. LD \
  14629. NM \
  14630. LN_S \
  14631. lt_SP2NL \
  14632. lt_NL2SP \
  14633. reload_flag \
  14634. deplibs_check_method \
  14635. file_magic_cmd \
  14636. file_magic_glob \
  14637. want_nocaseglob \
  14638. sharedlib_from_linklib_cmd \
  14639. AR \
  14640. archiver_list_spec \
  14641. STRIP \
  14642. RANLIB \
  14643. CC \
  14644. CFLAGS \
  14645. compiler \
  14646. lt_cv_sys_global_symbol_pipe \
  14647. lt_cv_sys_global_symbol_to_cdecl \
  14648. lt_cv_sys_global_symbol_to_import \
  14649. lt_cv_sys_global_symbol_to_c_name_address \
  14650. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14651. lt_cv_nm_interface \
  14652. nm_file_list_spec \
  14653. lt_cv_truncate_bin \
  14654. lt_prog_compiler_no_builtin_flag \
  14655. lt_prog_compiler_pic \
  14656. lt_prog_compiler_wl \
  14657. lt_prog_compiler_static \
  14658. lt_cv_prog_compiler_c_o \
  14659. need_locks \
  14660. MANIFEST_TOOL \
  14661. DSYMUTIL \
  14662. NMEDIT \
  14663. LIPO \
  14664. OTOOL \
  14665. OTOOL64 \
  14666. shrext_cmds \
  14667. export_dynamic_flag_spec \
  14668. whole_archive_flag_spec \
  14669. compiler_needs_object \
  14670. with_gnu_ld \
  14671. allow_undefined_flag \
  14672. no_undefined_flag \
  14673. hardcode_libdir_flag_spec \
  14674. hardcode_libdir_separator \
  14675. exclude_expsyms \
  14676. include_expsyms \
  14677. file_list_spec \
  14678. variables_saved_for_relink \
  14679. libname_spec \
  14680. library_names_spec \
  14681. soname_spec \
  14682. install_override_mode \
  14683. finish_eval \
  14684. old_striplib \
  14685. striplib; do
  14686. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14687. *[\\\\\\\`\\"\\\$]*)
  14688. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14689. ;;
  14690. *)
  14691. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14692. ;;
  14693. esac
  14694. done
  14695. # Double-quote double-evaled strings.
  14696. for var in reload_cmds \
  14697. old_postinstall_cmds \
  14698. old_postuninstall_cmds \
  14699. old_archive_cmds \
  14700. extract_expsyms_cmds \
  14701. old_archive_from_new_cmds \
  14702. old_archive_from_expsyms_cmds \
  14703. archive_cmds \
  14704. archive_expsym_cmds \
  14705. module_cmds \
  14706. module_expsym_cmds \
  14707. export_symbols_cmds \
  14708. prelink_cmds \
  14709. postlink_cmds \
  14710. postinstall_cmds \
  14711. postuninstall_cmds \
  14712. finish_cmds \
  14713. sys_lib_search_path_spec \
  14714. configure_time_dlsearch_path \
  14715. configure_time_lt_sys_library_path; do
  14716. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14717. *[\\\\\\\`\\"\\\$]*)
  14718. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14719. ;;
  14720. *)
  14721. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14722. ;;
  14723. esac
  14724. done
  14725. ac_aux_dir='$ac_aux_dir'
  14726. # See if we are running on zsh, and set the options that allow our
  14727. # commands through without removal of \ escapes INIT.
  14728. if test -n "\${ZSH_VERSION+set}"; then
  14729. setopt NO_GLOB_SUBST
  14730. fi
  14731. PACKAGE='$PACKAGE'
  14732. VERSION='$VERSION'
  14733. RM='$RM'
  14734. ofile='$ofile'
  14735. _ACEOF
  14736. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14737. # Handling of arguments.
  14738. for ac_config_target in $ac_config_targets
  14739. do
  14740. case $ac_config_target in
  14741. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  14742. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14743. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14744. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14745. "libpcre2-8.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-8.pc" ;;
  14746. "libpcre2-16.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-16.pc" ;;
  14747. "libpcre2-32.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-32.pc" ;;
  14748. "libpcre2-posix.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-posix.pc" ;;
  14749. "pcre2-config") CONFIG_FILES="$CONFIG_FILES pcre2-config" ;;
  14750. "src/pcre2.h") CONFIG_FILES="$CONFIG_FILES src/pcre2.h" ;;
  14751. "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
  14752. "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
  14753. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14754. esac
  14755. done
  14756. # If the user did not use the arguments to specify the items to instantiate,
  14757. # then the envvar interface is used. Set only those that are not.
  14758. # We use the long form for the default assignment because of an extremely
  14759. # bizarre bug on SunOS 4.1.3.
  14760. if $ac_need_defaults; then
  14761. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  14762. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  14763. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  14764. fi
  14765. # Have a temporary directory for convenience. Make it in the build tree
  14766. # simply because there is no reason against having it here, and in addition,
  14767. # creating and moving files from /tmp can sometimes cause problems.
  14768. # Hook for its removal unless debugging.
  14769. # Note that there is a small window in which the directory will not be cleaned:
  14770. # after its creation but before its name has been assigned to `$tmp'.
  14771. $debug ||
  14772. {
  14773. tmp= ac_tmp=
  14774. trap 'exit_status=$?
  14775. : "${ac_tmp:=$tmp}"
  14776. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14777. ' 0
  14778. trap 'as_fn_exit 1' 1 2 13 15
  14779. }
  14780. # Create a (secure) tmp directory for tmp files.
  14781. {
  14782. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14783. test -d "$tmp"
  14784. } ||
  14785. {
  14786. tmp=./conf$$-$RANDOM
  14787. (umask 077 && mkdir "$tmp")
  14788. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14789. ac_tmp=$tmp
  14790. # Set up the scripts for CONFIG_FILES section.
  14791. # No need to generate them if there are no CONFIG_FILES.
  14792. # This happens for instance with `./config.status config.h'.
  14793. if test -n "$CONFIG_FILES"; then
  14794. ac_cr=`echo X | tr X '\015'`
  14795. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14796. # But we know of no other shell where ac_cr would be empty at this
  14797. # point, so we can use a bashism as a fallback.
  14798. if test "x$ac_cr" = x; then
  14799. eval ac_cr=\$\'\\r\'
  14800. fi
  14801. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14802. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14803. ac_cs_awk_cr='\\r'
  14804. else
  14805. ac_cs_awk_cr=$ac_cr
  14806. fi
  14807. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14808. _ACEOF
  14809. {
  14810. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14811. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14812. echo "_ACEOF"
  14813. } >conf$$subs.sh ||
  14814. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14815. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14816. ac_delim='%!_!# '
  14817. for ac_last_try in false false false false false :; do
  14818. . ./conf$$subs.sh ||
  14819. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14820. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14821. if test $ac_delim_n = $ac_delim_num; then
  14822. break
  14823. elif $ac_last_try; then
  14824. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14825. else
  14826. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14827. fi
  14828. done
  14829. rm -f conf$$subs.sh
  14830. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14831. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14832. _ACEOF
  14833. sed -n '
  14834. h
  14835. s/^/S["/; s/!.*/"]=/
  14836. p
  14837. g
  14838. s/^[^!]*!//
  14839. :repl
  14840. t repl
  14841. s/'"$ac_delim"'$//
  14842. t delim
  14843. :nl
  14844. h
  14845. s/\(.\{148\}\)..*/\1/
  14846. t more1
  14847. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14848. p
  14849. n
  14850. b repl
  14851. :more1
  14852. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14853. p
  14854. g
  14855. s/.\{148\}//
  14856. t nl
  14857. :delim
  14858. h
  14859. s/\(.\{148\}\)..*/\1/
  14860. t more2
  14861. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14862. p
  14863. b
  14864. :more2
  14865. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14866. p
  14867. g
  14868. s/.\{148\}//
  14869. t delim
  14870. ' <conf$$subs.awk | sed '
  14871. /^[^""]/{
  14872. N
  14873. s/\n//
  14874. }
  14875. ' >>$CONFIG_STATUS || ac_write_fail=1
  14876. rm -f conf$$subs.awk
  14877. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14878. _ACAWK
  14879. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14880. for (key in S) S_is_set[key] = 1
  14881. FS = ""
  14882. }
  14883. {
  14884. line = $ 0
  14885. nfields = split(line, field, "@")
  14886. substed = 0
  14887. len = length(field[1])
  14888. for (i = 2; i < nfields; i++) {
  14889. key = field[i]
  14890. keylen = length(key)
  14891. if (S_is_set[key]) {
  14892. value = S[key]
  14893. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14894. len += length(value) + length(field[++i])
  14895. substed = 1
  14896. } else
  14897. len += 1 + keylen
  14898. }
  14899. print line
  14900. }
  14901. _ACAWK
  14902. _ACEOF
  14903. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14904. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14905. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14906. else
  14907. cat
  14908. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14909. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14910. _ACEOF
  14911. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14912. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14913. # trailing colons and then remove the whole line if VPATH becomes empty
  14914. # (actually we leave an empty line to preserve line numbers).
  14915. if test "x$srcdir" = x.; then
  14916. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14917. h
  14918. s///
  14919. s/^/:/
  14920. s/[ ]*$/:/
  14921. s/:\$(srcdir):/:/g
  14922. s/:\${srcdir}:/:/g
  14923. s/:@srcdir@:/:/g
  14924. s/^:*//
  14925. s/:*$//
  14926. x
  14927. s/\(=[ ]*\).*/\1/
  14928. G
  14929. s/\n//
  14930. s/^[^=]*=[ ]*$//
  14931. }'
  14932. fi
  14933. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14934. fi # test -n "$CONFIG_FILES"
  14935. # Set up the scripts for CONFIG_HEADERS section.
  14936. # No need to generate them if there are no CONFIG_HEADERS.
  14937. # This happens for instance with `./config.status Makefile'.
  14938. if test -n "$CONFIG_HEADERS"; then
  14939. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14940. BEGIN {
  14941. _ACEOF
  14942. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14943. # here-document in config.status, that substitutes the proper values into
  14944. # config.h.in to produce config.h.
  14945. # Create a delimiter string that does not exist in confdefs.h, to ease
  14946. # handling of long lines.
  14947. ac_delim='%!_!# '
  14948. for ac_last_try in false false :; do
  14949. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14950. if test -z "$ac_tt"; then
  14951. break
  14952. elif $ac_last_try; then
  14953. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14954. else
  14955. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14956. fi
  14957. done
  14958. # For the awk script, D is an array of macro values keyed by name,
  14959. # likewise P contains macro parameters if any. Preserve backslash
  14960. # newline sequences.
  14961. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14962. sed -n '
  14963. s/.\{148\}/&'"$ac_delim"'/g
  14964. t rset
  14965. :rset
  14966. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14967. t def
  14968. d
  14969. :def
  14970. s/\\$//
  14971. t bsnl
  14972. s/["\\]/\\&/g
  14973. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14974. D["\1"]=" \3"/p
  14975. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14976. d
  14977. :bsnl
  14978. s/["\\]/\\&/g
  14979. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14980. D["\1"]=" \3\\\\\\n"\\/p
  14981. t cont
  14982. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14983. t cont
  14984. d
  14985. :cont
  14986. n
  14987. s/.\{148\}/&'"$ac_delim"'/g
  14988. t clear
  14989. :clear
  14990. s/\\$//
  14991. t bsnlc
  14992. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14993. d
  14994. :bsnlc
  14995. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14996. b cont
  14997. ' <confdefs.h | sed '
  14998. s/'"$ac_delim"'/"\\\
  14999. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15000. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15001. for (key in D) D_is_set[key] = 1
  15002. FS = ""
  15003. }
  15004. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15005. line = \$ 0
  15006. split(line, arg, " ")
  15007. if (arg[1] == "#") {
  15008. defundef = arg[2]
  15009. mac1 = arg[3]
  15010. } else {
  15011. defundef = substr(arg[1], 2)
  15012. mac1 = arg[2]
  15013. }
  15014. split(mac1, mac2, "(") #)
  15015. macro = mac2[1]
  15016. prefix = substr(line, 1, index(line, defundef) - 1)
  15017. if (D_is_set[macro]) {
  15018. # Preserve the white space surrounding the "#".
  15019. print prefix "define", macro P[macro] D[macro]
  15020. next
  15021. } else {
  15022. # Replace #undef with comments. This is necessary, for example,
  15023. # in the case of _POSIX_SOURCE, which is predefined and required
  15024. # on some systems where configure will not decide to define it.
  15025. if (defundef == "undef") {
  15026. print "/*", prefix defundef, macro, "*/"
  15027. next
  15028. }
  15029. }
  15030. }
  15031. { print }
  15032. _ACAWK
  15033. _ACEOF
  15034. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15035. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15036. fi # test -n "$CONFIG_HEADERS"
  15037. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15038. shift
  15039. for ac_tag
  15040. do
  15041. case $ac_tag in
  15042. :[FHLC]) ac_mode=$ac_tag; continue;;
  15043. esac
  15044. case $ac_mode$ac_tag in
  15045. :[FHL]*:*);;
  15046. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15047. :[FH]-) ac_tag=-:-;;
  15048. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15049. esac
  15050. ac_save_IFS=$IFS
  15051. IFS=:
  15052. set x $ac_tag
  15053. IFS=$ac_save_IFS
  15054. shift
  15055. ac_file=$1
  15056. shift
  15057. case $ac_mode in
  15058. :L) ac_source=$1;;
  15059. :[FH])
  15060. ac_file_inputs=
  15061. for ac_f
  15062. do
  15063. case $ac_f in
  15064. -) ac_f="$ac_tmp/stdin";;
  15065. *) # Look for the file first in the build tree, then in the source tree
  15066. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15067. # because $ac_f cannot contain `:'.
  15068. test -f "$ac_f" ||
  15069. case $ac_f in
  15070. [\\/$]*) false;;
  15071. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15072. esac ||
  15073. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15074. esac
  15075. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15076. as_fn_append ac_file_inputs " '$ac_f'"
  15077. done
  15078. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15079. # use $as_me), people would be surprised to read:
  15080. # /* config.h. Generated by config.status. */
  15081. configure_input='Generated from '`
  15082. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15083. `' by configure.'
  15084. if test x"$ac_file" != x-; then
  15085. configure_input="$ac_file. $configure_input"
  15086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15087. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  15088. fi
  15089. # Neutralize special characters interpreted by sed in replacement strings.
  15090. case $configure_input in #(
  15091. *\&* | *\|* | *\\* )
  15092. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  15093. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15094. *) ac_sed_conf_input=$configure_input;;
  15095. esac
  15096. case $ac_tag in
  15097. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15098. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15099. esac
  15100. ;;
  15101. esac
  15102. ac_dir=`$as_dirname -- "$ac_file" ||
  15103. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15104. X"$ac_file" : 'X\(//\)[^/]' \| \
  15105. X"$ac_file" : 'X\(//\)$' \| \
  15106. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15107. printf "%s\n" X"$ac_file" |
  15108. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15109. s//\1/
  15110. q
  15111. }
  15112. /^X\(\/\/\)[^/].*/{
  15113. s//\1/
  15114. q
  15115. }
  15116. /^X\(\/\/\)$/{
  15117. s//\1/
  15118. q
  15119. }
  15120. /^X\(\/\).*/{
  15121. s//\1/
  15122. q
  15123. }
  15124. s/.*/./; q'`
  15125. as_dir="$ac_dir"; as_fn_mkdir_p
  15126. ac_builddir=.
  15127. case "$ac_dir" in
  15128. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15129. *)
  15130. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  15131. # A ".." for each directory in $ac_dir_suffix.
  15132. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15133. case $ac_top_builddir_sub in
  15134. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15135. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15136. esac ;;
  15137. esac
  15138. ac_abs_top_builddir=$ac_pwd
  15139. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15140. # for backward compatibility:
  15141. ac_top_builddir=$ac_top_build_prefix
  15142. case $srcdir in
  15143. .) # We are building in place.
  15144. ac_srcdir=.
  15145. ac_top_srcdir=$ac_top_builddir_sub
  15146. ac_abs_top_srcdir=$ac_pwd ;;
  15147. [\\/]* | ?:[\\/]* ) # Absolute name.
  15148. ac_srcdir=$srcdir$ac_dir_suffix;
  15149. ac_top_srcdir=$srcdir
  15150. ac_abs_top_srcdir=$srcdir ;;
  15151. *) # Relative name.
  15152. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15153. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15154. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15155. esac
  15156. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15157. case $ac_mode in
  15158. :F)
  15159. #
  15160. # CONFIG_FILE
  15161. #
  15162. case $INSTALL in
  15163. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15164. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15165. esac
  15166. ac_MKDIR_P=$MKDIR_P
  15167. case $MKDIR_P in
  15168. [\\/$]* | ?:[\\/]* ) ;;
  15169. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15170. esac
  15171. _ACEOF
  15172. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15173. # If the template does not know about datarootdir, expand it.
  15174. # FIXME: This hack should be removed a few years after 2.60.
  15175. ac_datarootdir_hack=; ac_datarootdir_seen=
  15176. ac_sed_dataroot='
  15177. /datarootdir/ {
  15178. p
  15179. q
  15180. }
  15181. /@datadir@/p
  15182. /@docdir@/p
  15183. /@infodir@/p
  15184. /@localedir@/p
  15185. /@mandir@/p'
  15186. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15187. *datarootdir*) ac_datarootdir_seen=yes;;
  15188. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15190. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15191. _ACEOF
  15192. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15193. ac_datarootdir_hack='
  15194. s&@datadir@&$datadir&g
  15195. s&@docdir@&$docdir&g
  15196. s&@infodir@&$infodir&g
  15197. s&@localedir@&$localedir&g
  15198. s&@mandir@&$mandir&g
  15199. s&\\\${datarootdir}&$datarootdir&g' ;;
  15200. esac
  15201. _ACEOF
  15202. # Neutralize VPATH when `$srcdir' = `.'.
  15203. # Shell code in configure.ac might set extrasub.
  15204. # FIXME: do we really want to maintain this feature?
  15205. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15206. ac_sed_extra="$ac_vpsub
  15207. $extrasub
  15208. _ACEOF
  15209. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15210. :t
  15211. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15212. s|@configure_input@|$ac_sed_conf_input|;t t
  15213. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15214. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15215. s&@srcdir@&$ac_srcdir&;t t
  15216. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15217. s&@top_srcdir@&$ac_top_srcdir&;t t
  15218. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15219. s&@builddir@&$ac_builddir&;t t
  15220. s&@abs_builddir@&$ac_abs_builddir&;t t
  15221. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15222. s&@INSTALL@&$ac_INSTALL&;t t
  15223. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15224. $ac_datarootdir_hack
  15225. "
  15226. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15227. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15228. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15229. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15230. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15231. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15233. which seems to be undefined. Please make sure it is defined" >&5
  15234. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15235. which seems to be undefined. Please make sure it is defined" >&2;}
  15236. rm -f "$ac_tmp/stdin"
  15237. case $ac_file in
  15238. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15239. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15240. esac \
  15241. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15242. ;;
  15243. :H)
  15244. #
  15245. # CONFIG_HEADER
  15246. #
  15247. if test x"$ac_file" != x-; then
  15248. {
  15249. printf "%s\n" "/* $configure_input */" >&1 \
  15250. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15251. } >"$ac_tmp/config.h" \
  15252. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15253. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15255. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  15256. else
  15257. rm -f "$ac_file"
  15258. mv "$ac_tmp/config.h" "$ac_file" \
  15259. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15260. fi
  15261. else
  15262. printf "%s\n" "/* $configure_input */" >&1 \
  15263. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15264. || as_fn_error $? "could not create -" "$LINENO" 5
  15265. fi
  15266. # Compute "$ac_file"'s index in $config_headers.
  15267. _am_arg="$ac_file"
  15268. _am_stamp_count=1
  15269. for _am_header in $config_headers :; do
  15270. case $_am_header in
  15271. $_am_arg | $_am_arg:* )
  15272. break ;;
  15273. * )
  15274. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15275. esac
  15276. done
  15277. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15278. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15279. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15280. X"$_am_arg" : 'X\(//\)$' \| \
  15281. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15282. printf "%s\n" X"$_am_arg" |
  15283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15284. s//\1/
  15285. q
  15286. }
  15287. /^X\(\/\/\)[^/].*/{
  15288. s//\1/
  15289. q
  15290. }
  15291. /^X\(\/\/\)$/{
  15292. s//\1/
  15293. q
  15294. }
  15295. /^X\(\/\).*/{
  15296. s//\1/
  15297. q
  15298. }
  15299. s/.*/./; q'`/stamp-h$_am_stamp_count
  15300. ;;
  15301. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15302. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  15303. ;;
  15304. esac
  15305. case $ac_file$ac_mode in
  15306. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15307. # Older Autoconf quotes --file arguments for eval, but not when files
  15308. # are listed without --file. Let's play safe and only enable the eval
  15309. # if we detect the quoting.
  15310. # TODO: see whether this extra hack can be removed once we start
  15311. # requiring Autoconf 2.70 or later.
  15312. case $CONFIG_FILES in #(
  15313. *\'*) :
  15314. eval set x "$CONFIG_FILES" ;; #(
  15315. *) :
  15316. set x $CONFIG_FILES ;; #(
  15317. *) :
  15318. ;;
  15319. esac
  15320. shift
  15321. # Used to flag and report bootstrapping failures.
  15322. am_rc=0
  15323. for am_mf
  15324. do
  15325. # Strip MF so we end up with the name of the file.
  15326. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  15327. # Check whether this is an Automake generated Makefile which includes
  15328. # dependency-tracking related rules and includes.
  15329. # Grep'ing the whole file directly is not great: AIX grep has a line
  15330. # limit of 2048, but all sed's we know have understand at least 4000.
  15331. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  15332. || continue
  15333. am_dirpart=`$as_dirname -- "$am_mf" ||
  15334. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15335. X"$am_mf" : 'X\(//\)[^/]' \| \
  15336. X"$am_mf" : 'X\(//\)$' \| \
  15337. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  15338. printf "%s\n" X"$am_mf" |
  15339. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15340. s//\1/
  15341. q
  15342. }
  15343. /^X\(\/\/\)[^/].*/{
  15344. s//\1/
  15345. q
  15346. }
  15347. /^X\(\/\/\)$/{
  15348. s//\1/
  15349. q
  15350. }
  15351. /^X\(\/\).*/{
  15352. s//\1/
  15353. q
  15354. }
  15355. s/.*/./; q'`
  15356. am_filepart=`$as_basename -- "$am_mf" ||
  15357. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  15358. X"$am_mf" : 'X\(//\)$' \| \
  15359. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  15360. printf "%s\n" X/"$am_mf" |
  15361. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15362. s//\1/
  15363. q
  15364. }
  15365. /^X\/\(\/\/\)$/{
  15366. s//\1/
  15367. q
  15368. }
  15369. /^X\/\(\/\).*/{
  15370. s//\1/
  15371. q
  15372. }
  15373. s/.*/./; q'`
  15374. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  15375. && sed -e '/# am--include-marker/d' "$am_filepart" \
  15376. | $MAKE -f - am--depfiles" >&5
  15377. (cd "$am_dirpart" \
  15378. && sed -e '/# am--include-marker/d' "$am_filepart" \
  15379. | $MAKE -f - am--depfiles) >&5 2>&5
  15380. ac_status=$?
  15381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15382. (exit $ac_status); } || am_rc=$?
  15383. done
  15384. if test $am_rc -ne 0; then
  15385. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15386. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15387. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  15388. for automatic dependency tracking. If GNU make was not used, consider
  15389. re-running the configure script with MAKE=\"gmake\" (or whatever is
  15390. necessary). You can also try re-running configure with the
  15391. '--disable-dependency-tracking' option to at least be able to build
  15392. the package (albeit without support for automatic dependency tracking).
  15393. See \`config.log' for more details" "$LINENO" 5; }
  15394. fi
  15395. { am_dirpart=; unset am_dirpart;}
  15396. { am_filepart=; unset am_filepart;}
  15397. { am_mf=; unset am_mf;}
  15398. { am_rc=; unset am_rc;}
  15399. rm -f conftest-deps.mk
  15400. }
  15401. ;;
  15402. "libtool":C)
  15403. # See if we are running on zsh, and set the options that allow our
  15404. # commands through without removal of \ escapes.
  15405. if test -n "${ZSH_VERSION+set}"; then
  15406. setopt NO_GLOB_SUBST
  15407. fi
  15408. cfgfile=${ofile}T
  15409. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15410. $RM "$cfgfile"
  15411. cat <<_LT_EOF >> "$cfgfile"
  15412. #! $SHELL
  15413. # Generated automatically by $as_me ($PACKAGE) $VERSION
  15414. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15415. # Provide generalized library-building support services.
  15416. # Written by Gordon Matzigkeit, 1996
  15417. # Copyright (C) 2014 Free Software Foundation, Inc.
  15418. # This is free software; see the source for copying conditions. There is NO
  15419. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15420. # GNU Libtool is free software; you can redistribute it and/or modify
  15421. # it under the terms of the GNU General Public License as published by
  15422. # the Free Software Foundation; either version 2 of of the License, or
  15423. # (at your option) any later version.
  15424. #
  15425. # As a special exception to the GNU General Public License, if you
  15426. # distribute this file as part of a program or library that is built
  15427. # using GNU Libtool, you may include this file under the same
  15428. # distribution terms that you use for the rest of that program.
  15429. #
  15430. # GNU Libtool is distributed in the hope that it will be useful, but
  15431. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15432. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15433. # GNU General Public License for more details.
  15434. #
  15435. # You should have received a copy of the GNU General Public License
  15436. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15437. # The names of the tagged configurations supported by this script.
  15438. available_tags=''
  15439. # Configured defaults for sys_lib_dlsearch_path munging.
  15440. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  15441. # ### BEGIN LIBTOOL CONFIG
  15442. # Which release of libtool.m4 was used?
  15443. macro_version=$macro_version
  15444. macro_revision=$macro_revision
  15445. # Assembler program.
  15446. AS=$lt_AS
  15447. # DLL creation program.
  15448. DLLTOOL=$lt_DLLTOOL
  15449. # Object dumper program.
  15450. OBJDUMP=$lt_OBJDUMP
  15451. # Whether or not to build shared libraries.
  15452. build_libtool_libs=$enable_shared
  15453. # Whether or not to build static libraries.
  15454. build_old_libs=$enable_static
  15455. # What type of objects to build.
  15456. pic_mode=$pic_mode
  15457. # Whether or not to optimize for fast installation.
  15458. fast_install=$enable_fast_install
  15459. # Shared archive member basename,for filename based shared library versioning on AIX.
  15460. shared_archive_member_spec=$shared_archive_member_spec
  15461. # Shell to use when invoking shell scripts.
  15462. SHELL=$lt_SHELL
  15463. # An echo program that protects backslashes.
  15464. ECHO=$lt_ECHO
  15465. # The PATH separator for the build system.
  15466. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15467. # The host system.
  15468. host_alias=$host_alias
  15469. host=$host
  15470. host_os=$host_os
  15471. # The build system.
  15472. build_alias=$build_alias
  15473. build=$build
  15474. build_os=$build_os
  15475. # A sed program that does not truncate output.
  15476. SED=$lt_SED
  15477. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15478. Xsed="\$SED -e 1s/^X//"
  15479. # A grep program that handles long lines.
  15480. GREP=$lt_GREP
  15481. # An ERE matcher.
  15482. EGREP=$lt_EGREP
  15483. # A literal string matcher.
  15484. FGREP=$lt_FGREP
  15485. # A BSD- or MS-compatible name lister.
  15486. NM=$lt_NM
  15487. # Whether we need soft or hard links.
  15488. LN_S=$lt_LN_S
  15489. # What is the maximum length of a command?
  15490. max_cmd_len=$max_cmd_len
  15491. # Object file suffix (normally "o").
  15492. objext=$ac_objext
  15493. # Executable file suffix (normally "").
  15494. exeext=$exeext
  15495. # whether the shell understands "unset".
  15496. lt_unset=$lt_unset
  15497. # turn spaces into newlines.
  15498. SP2NL=$lt_lt_SP2NL
  15499. # turn newlines into spaces.
  15500. NL2SP=$lt_lt_NL2SP
  15501. # convert \$build file names to \$host format.
  15502. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15503. # convert \$build files to toolchain format.
  15504. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15505. # Method to check whether dependent libraries are shared objects.
  15506. deplibs_check_method=$lt_deplibs_check_method
  15507. # Command to use when deplibs_check_method = "file_magic".
  15508. file_magic_cmd=$lt_file_magic_cmd
  15509. # How to find potential files when deplibs_check_method = "file_magic".
  15510. file_magic_glob=$lt_file_magic_glob
  15511. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15512. want_nocaseglob=$lt_want_nocaseglob
  15513. # Command to associate shared and link libraries.
  15514. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15515. # The archiver.
  15516. AR=$lt_AR
  15517. # Flags to create an archive (by configure).
  15518. lt_ar_flags=$lt_ar_flags
  15519. # Flags to create an archive.
  15520. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  15521. # How to feed a file listing to the archiver.
  15522. archiver_list_spec=$lt_archiver_list_spec
  15523. # A symbol stripping program.
  15524. STRIP=$lt_STRIP
  15525. # Commands used to install an old-style archive.
  15526. RANLIB=$lt_RANLIB
  15527. old_postinstall_cmds=$lt_old_postinstall_cmds
  15528. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15529. # Whether to use a lock for old archive extraction.
  15530. lock_old_archive_extraction=$lock_old_archive_extraction
  15531. # A C compiler.
  15532. LTCC=$lt_CC
  15533. # LTCC compiler flags.
  15534. LTCFLAGS=$lt_CFLAGS
  15535. # Take the output of nm and produce a listing of raw symbols and C names.
  15536. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15537. # Transform the output of nm in a proper C declaration.
  15538. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15539. # Transform the output of nm into a list of symbols to manually relocate.
  15540. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  15541. # Transform the output of nm in a C name address pair.
  15542. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15543. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15544. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15545. # The name lister interface.
  15546. nm_interface=$lt_lt_cv_nm_interface
  15547. # Specify filename containing input files for \$NM.
  15548. nm_file_list_spec=$lt_nm_file_list_spec
  15549. # The root where to search for dependent libraries,and where our libraries should be installed.
  15550. lt_sysroot=$lt_sysroot
  15551. # Command to truncate a binary pipe.
  15552. lt_truncate_bin=$lt_lt_cv_truncate_bin
  15553. # The name of the directory that contains temporary libtool files.
  15554. objdir=$objdir
  15555. # Used to examine libraries when file_magic_cmd begins with "file".
  15556. MAGIC_CMD=$MAGIC_CMD
  15557. # Must we lock files when doing compilation?
  15558. need_locks=$lt_need_locks
  15559. # Manifest tool.
  15560. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15561. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15562. DSYMUTIL=$lt_DSYMUTIL
  15563. # Tool to change global to local symbols on Mac OS X.
  15564. NMEDIT=$lt_NMEDIT
  15565. # Tool to manipulate fat objects and archives on Mac OS X.
  15566. LIPO=$lt_LIPO
  15567. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15568. OTOOL=$lt_OTOOL
  15569. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15570. OTOOL64=$lt_OTOOL64
  15571. # Old archive suffix (normally "a").
  15572. libext=$libext
  15573. # Shared library suffix (normally ".so").
  15574. shrext_cmds=$lt_shrext_cmds
  15575. # The commands to extract the exported symbol list from a shared archive.
  15576. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15577. # Variables whose values should be saved in libtool wrapper scripts and
  15578. # restored at link time.
  15579. variables_saved_for_relink=$lt_variables_saved_for_relink
  15580. # Do we need the "lib" prefix for modules?
  15581. need_lib_prefix=$need_lib_prefix
  15582. # Do we need a version for libraries?
  15583. need_version=$need_version
  15584. # Library versioning type.
  15585. version_type=$version_type
  15586. # Shared library runtime path variable.
  15587. runpath_var=$runpath_var
  15588. # Shared library path variable.
  15589. shlibpath_var=$shlibpath_var
  15590. # Is shlibpath searched before the hard-coded library search path?
  15591. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15592. # Format of library name prefix.
  15593. libname_spec=$lt_libname_spec
  15594. # List of archive names. First name is the real one, the rest are links.
  15595. # The last name is the one that the linker finds with -lNAME
  15596. library_names_spec=$lt_library_names_spec
  15597. # The coded name of the library, if different from the real name.
  15598. soname_spec=$lt_soname_spec
  15599. # Permission mode override for installation of shared libraries.
  15600. install_override_mode=$lt_install_override_mode
  15601. # Command to use after installation of a shared archive.
  15602. postinstall_cmds=$lt_postinstall_cmds
  15603. # Command to use after uninstallation of a shared archive.
  15604. postuninstall_cmds=$lt_postuninstall_cmds
  15605. # Commands used to finish a libtool library installation in a directory.
  15606. finish_cmds=$lt_finish_cmds
  15607. # As "finish_cmds", except a single script fragment to be evaled but
  15608. # not shown.
  15609. finish_eval=$lt_finish_eval
  15610. # Whether we should hardcode library paths into libraries.
  15611. hardcode_into_libs=$hardcode_into_libs
  15612. # Compile-time system search path for libraries.
  15613. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15614. # Detected run-time system search path for libraries.
  15615. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  15616. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  15617. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  15618. # Whether dlopen is supported.
  15619. dlopen_support=$enable_dlopen
  15620. # Whether dlopen of programs is supported.
  15621. dlopen_self=$enable_dlopen_self
  15622. # Whether dlopen of statically linked programs is supported.
  15623. dlopen_self_static=$enable_dlopen_self_static
  15624. # Commands to strip libraries.
  15625. old_striplib=$lt_old_striplib
  15626. striplib=$lt_striplib
  15627. # The linker used to build libraries.
  15628. LD=$lt_LD
  15629. # How to create reloadable object files.
  15630. reload_flag=$lt_reload_flag
  15631. reload_cmds=$lt_reload_cmds
  15632. # Commands used to build an old-style archive.
  15633. old_archive_cmds=$lt_old_archive_cmds
  15634. # A language specific compiler.
  15635. CC=$lt_compiler
  15636. # Is the compiler the GNU compiler?
  15637. with_gcc=$GCC
  15638. # Compiler flag to turn off builtin functions.
  15639. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15640. # Additional compiler flags for building library objects.
  15641. pic_flag=$lt_lt_prog_compiler_pic
  15642. # How to pass a linker flag through the compiler.
  15643. wl=$lt_lt_prog_compiler_wl
  15644. # Compiler flag to prevent dynamic linking.
  15645. link_static_flag=$lt_lt_prog_compiler_static
  15646. # Does compiler simultaneously support -c and -o options?
  15647. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15648. # Whether or not to add -lc for building shared libraries.
  15649. build_libtool_need_lc=$archive_cmds_need_lc
  15650. # Whether or not to disallow shared libs when runtime libs are static.
  15651. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15652. # Compiler flag to allow reflexive dlopens.
  15653. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15654. # Compiler flag to generate shared objects directly from archives.
  15655. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15656. # Whether the compiler copes with passing no objects directly.
  15657. compiler_needs_object=$lt_compiler_needs_object
  15658. # Create an old-style archive from a shared archive.
  15659. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15660. # Create a temporary old-style archive to link instead of a shared archive.
  15661. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15662. # Commands used to build a shared archive.
  15663. archive_cmds=$lt_archive_cmds
  15664. archive_expsym_cmds=$lt_archive_expsym_cmds
  15665. # Commands used to build a loadable module if different from building
  15666. # a shared archive.
  15667. module_cmds=$lt_module_cmds
  15668. module_expsym_cmds=$lt_module_expsym_cmds
  15669. # Whether we are building with GNU ld or not.
  15670. with_gnu_ld=$lt_with_gnu_ld
  15671. # Flag that allows shared libraries with undefined symbols to be built.
  15672. allow_undefined_flag=$lt_allow_undefined_flag
  15673. # Flag that enforces no undefined symbols.
  15674. no_undefined_flag=$lt_no_undefined_flag
  15675. # Flag to hardcode \$libdir into a binary during linking.
  15676. # This must work even if \$libdir does not exist
  15677. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15678. # Whether we need a single "-rpath" flag with a separated argument.
  15679. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15680. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15681. # DIR into the resulting binary.
  15682. hardcode_direct=$hardcode_direct
  15683. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15684. # DIR into the resulting binary and the resulting library dependency is
  15685. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  15686. # library is relocated.
  15687. hardcode_direct_absolute=$hardcode_direct_absolute
  15688. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15689. # into the resulting binary.
  15690. hardcode_minus_L=$hardcode_minus_L
  15691. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15692. # into the resulting binary.
  15693. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15694. # Set to "yes" if building a shared library automatically hardcodes DIR
  15695. # into the library and all subsequent libraries and executables linked
  15696. # against it.
  15697. hardcode_automatic=$hardcode_automatic
  15698. # Set to yes if linker adds runtime paths of dependent libraries
  15699. # to runtime path list.
  15700. inherit_rpath=$inherit_rpath
  15701. # Whether libtool must link a program against all its dependency libraries.
  15702. link_all_deplibs=$link_all_deplibs
  15703. # Set to "yes" if exported symbols are required.
  15704. always_export_symbols=$always_export_symbols
  15705. # The commands to list exported symbols.
  15706. export_symbols_cmds=$lt_export_symbols_cmds
  15707. # Symbols that should not be listed in the preloaded symbols.
  15708. exclude_expsyms=$lt_exclude_expsyms
  15709. # Symbols that must always be exported.
  15710. include_expsyms=$lt_include_expsyms
  15711. # Commands necessary for linking programs (against libraries) with templates.
  15712. prelink_cmds=$lt_prelink_cmds
  15713. # Commands necessary for finishing linking programs.
  15714. postlink_cmds=$lt_postlink_cmds
  15715. # Specify filename containing input files.
  15716. file_list_spec=$lt_file_list_spec
  15717. # How to hardcode a shared library path into an executable.
  15718. hardcode_action=$hardcode_action
  15719. # ### END LIBTOOL CONFIG
  15720. _LT_EOF
  15721. cat <<'_LT_EOF' >> "$cfgfile"
  15722. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  15723. # func_munge_path_list VARIABLE PATH
  15724. # -----------------------------------
  15725. # VARIABLE is name of variable containing _space_ separated list of
  15726. # directories to be munged by the contents of PATH, which is string
  15727. # having a format:
  15728. # "DIR[:DIR]:"
  15729. # string "DIR[ DIR]" will be prepended to VARIABLE
  15730. # ":DIR[:DIR]"
  15731. # string "DIR[ DIR]" will be appended to VARIABLE
  15732. # "DIRP[:DIRP]::[DIRA:]DIRA"
  15733. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  15734. # "DIRA[ DIRA]" will be appended to VARIABLE
  15735. # "DIR[:DIR]"
  15736. # VARIABLE will be replaced by "DIR[ DIR]"
  15737. func_munge_path_list ()
  15738. {
  15739. case x$2 in
  15740. x)
  15741. ;;
  15742. *:)
  15743. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  15744. ;;
  15745. x:*)
  15746. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  15747. ;;
  15748. *::*)
  15749. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  15750. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  15751. ;;
  15752. *)
  15753. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  15754. ;;
  15755. esac
  15756. }
  15757. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  15758. func_cc_basename ()
  15759. {
  15760. for cc_temp in $*""; do
  15761. case $cc_temp in
  15762. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15763. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15764. \-*) ;;
  15765. *) break;;
  15766. esac
  15767. done
  15768. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  15769. }
  15770. # ### END FUNCTIONS SHARED WITH CONFIGURE
  15771. _LT_EOF
  15772. case $host_os in
  15773. aix3*)
  15774. cat <<\_LT_EOF >> "$cfgfile"
  15775. # AIX sometimes has problems with the GCC collect2 program. For some
  15776. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15777. # vanish in a puff of smoke.
  15778. if test set != "${COLLECT_NAMES+set}"; then
  15779. COLLECT_NAMES=
  15780. export COLLECT_NAMES
  15781. fi
  15782. _LT_EOF
  15783. ;;
  15784. esac
  15785. ltmain=$ac_aux_dir/ltmain.sh
  15786. # We use sed instead of cat because bash on DJGPP gets confused if
  15787. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15788. # text mode, it properly converts lines to CR/LF. This bash problem
  15789. # is reportedly fixed, but why not run on old versions too?
  15790. sed '$q' "$ltmain" >> "$cfgfile" \
  15791. || (rm -f "$cfgfile"; exit 1)
  15792. mv -f "$cfgfile" "$ofile" ||
  15793. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15794. chmod +x "$ofile"
  15795. ;;
  15796. "script-chmod":C) chmod a+x pcre2-config ;;
  15797. "delete-old-chartables":C) rm -f pcre2_chartables.c ;;
  15798. esac
  15799. done # for ac_tag
  15800. as_fn_exit 0
  15801. _ACEOF
  15802. ac_clean_files=$ac_clean_files_save
  15803. test $ac_write_fail = 0 ||
  15804. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15805. # configure is writing to config.log, and then calls config.status.
  15806. # config.status does its own redirection, appending to config.log.
  15807. # Unfortunately, on DOS this fails, as config.log is still kept open
  15808. # by configure, so config.status won't be able to write to it; its
  15809. # output is simply discarded. So we exec the FD to /dev/null,
  15810. # effectively closing config.log, so it can be properly (re)opened and
  15811. # appended to by config.status. When coming back to configure, we
  15812. # need to make the FD available again.
  15813. if test "$no_create" != yes; then
  15814. ac_cs_success=:
  15815. ac_config_status_args=
  15816. test "$silent" = yes &&
  15817. ac_config_status_args="$ac_config_status_args --quiet"
  15818. exec 5>/dev/null
  15819. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15820. exec 5>>config.log
  15821. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15822. # would make configure fail if this is the last instruction.
  15823. $ac_cs_success || as_fn_exit 1
  15824. fi
  15825. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15827. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15828. fi
  15829. # --disable-stack-for-recursion is obsolete and has no effect.
  15830. if test "$enable_stack_for_recursion" = "no"; then
  15831. cat <<EOF
  15832. WARNING: --disable-stack-for-recursion is obsolete and has no effect.
  15833. EOF
  15834. fi
  15835. # Print out a nice little message after configure is run displaying the
  15836. # chosen options.
  15837. ebcdic_nl_code=n/a
  15838. if test "$enable_ebcdic_nl25" = "yes"; then
  15839. ebcdic_nl_code=0x25
  15840. elif test "$enable_ebcdic" = "yes"; then
  15841. ebcdic_nl_code=0x15
  15842. fi
  15843. cat <<EOF
  15844. $PACKAGE-$VERSION configuration summary:
  15845. Install prefix ..................... : ${prefix}
  15846. C preprocessor ..................... : ${CPP}
  15847. C compiler ......................... : ${CC}
  15848. Linker ............................. : ${LD}
  15849. C preprocessor flags ............... : ${CPPFLAGS}
  15850. C compiler flags ................... : ${CFLAGS} ${VISIBILITY_CFLAGS}
  15851. Linker flags ....................... : ${LDFLAGS}
  15852. Extra libraries .................... : ${LIBS}
  15853. Build 8-bit pcre2 library .......... : ${enable_pcre2_8}
  15854. Build 16-bit pcre2 library ......... : ${enable_pcre2_16}
  15855. Build 32-bit pcre2 library ......... : ${enable_pcre2_32}
  15856. Include debugging code ............. : ${enable_debug}
  15857. Enable JIT compiling support ....... : ${enable_jit}
  15858. Use SELinux allocator in JIT ....... : ${enable_jit_sealloc}
  15859. Enable Unicode support ............. : ${enable_unicode}
  15860. Newline char/sequence .............. : ${enable_newline}
  15861. \R matches only ANYCRLF ............ : ${enable_bsr_anycrlf}
  15862. \C is disabled ..................... : ${enable_never_backslash_C}
  15863. EBCDIC coding ...................... : ${enable_ebcdic}
  15864. EBCDIC code for NL ................. : ${ebcdic_nl_code}
  15865. Rebuild char tables ................ : ${enable_rebuild_chartables}
  15866. Internal link size ................. : ${with_link_size}
  15867. Nested parentheses limit ........... : ${with_parens_nest_limit}
  15868. Heap limit ......................... : ${with_heap_limit} kibibytes
  15869. Match limit ........................ : ${with_match_limit}
  15870. Match depth limit .................. : ${with_match_limit_depth}
  15871. Build shared libs .................. : ${enable_shared}
  15872. Build static libs .................. : ${enable_static}
  15873. Use JIT in pcre2grep ............... : ${enable_pcre2grep_jit}
  15874. Enable callouts in pcre2grep ....... : ${enable_pcre2grep_callout}
  15875. Enable fork in pcre2grep callouts .. : ${enable_pcre2grep_callout_fork}
  15876. Initial buffer size for pcre2grep .. : ${with_pcre2grep_bufsize}
  15877. Maximum buffer size for pcre2grep .. : ${with_pcre2grep_max_bufsize}
  15878. Link pcre2grep with libz ........... : ${enable_pcre2grep_libz}
  15879. Link pcre2grep with libbz2 ......... : ${enable_pcre2grep_libbz2}
  15880. Link pcre2test with libedit ........ : ${enable_pcre2test_libedit}
  15881. Link pcre2test with libreadline .... : ${enable_pcre2test_libreadline}
  15882. Valgrind support ................... : ${enable_valgrind}
  15883. Code coverage ...................... : ${enable_coverage}
  15884. Fuzzer support ..................... : ${enable_fuzz_support}
  15885. Use %zu and %td .................... : ${enable_percent_zt}
  15886. EOF