configure 551 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for lighttpd 1.4.39.
  4. #
  5. # Report bugs to <contact@lighttpd.net>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: contact@lighttpd.net about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='lighttpd'
  542. PACKAGE_TARNAME='lighttpd'
  543. PACKAGE_VERSION='1.4.39'
  544. PACKAGE_STRING='lighttpd 1.4.39'
  545. PACKAGE_BUGREPORT='contact@lighttpd.net'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/server.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. CHECK_WITH_FASTCGI_FALSE
  587. CHECK_WITH_FASTCGI_TRUE
  588. CROSS_COMPILING_FALSE
  589. CROSS_COMPILING_TRUE
  590. SENDFILE_LIB
  591. CRYPT_LIB
  592. LUA_LIBS
  593. LUA_CFLAGS
  594. MEMCACHE_LIB
  595. GDBM_LIB
  596. UUID_LIBS
  597. SQLITE_LIBS
  598. SQLITE_CFLAGS
  599. XML_LIBS
  600. XML_CFLAGS
  601. FAM_LIBS
  602. FAM_CFLAGS
  603. BZ_LIB
  604. Z_LIB
  605. PCRE_LIB
  606. PCRECONFIG
  607. SSL_LIB
  608. LIBUNWIND_LIBS
  609. LIBUNWIND_CFLAGS
  610. DL_LIB
  611. ATTR_LIB
  612. LBER_LIB
  613. LDAP_LIB
  614. MYSQL_INCLUDE
  615. MYSQL_LIBS
  616. MYSQL_CONFIG
  617. LIBEV_LIBS
  618. LIBEV_CFLAGS
  619. PKG_CONFIG_LIBDIR
  620. PKG_CONFIG_PATH
  621. PKG_CONFIG
  622. LIBOBJS
  623. OTOOL64
  624. OTOOL
  625. LIPO
  626. NMEDIT
  627. DSYMUTIL
  628. MANIFEST_TOOL
  629. RANLIB
  630. DLLTOOL
  631. OBJDUMP
  632. NM
  633. ac_ct_DUMPBIN
  634. DUMPBIN
  635. LIBTOOL
  636. NO_RDYNAMIC_FALSE
  637. NO_RDYNAMIC_TRUE
  638. ac_ct_AR
  639. AR
  640. LN_S
  641. CPP
  642. LD
  643. FGREP
  644. EGREP
  645. GREP
  646. SED
  647. am__fastdepCC_FALSE
  648. am__fastdepCC_TRUE
  649. CCDEPMODE
  650. am__nodep
  651. AMDEPBACKSLASH
  652. AMDEP_FALSE
  653. AMDEP_TRUE
  654. am__quote
  655. am__include
  656. DEPDIR
  657. OBJEXT
  658. EXEEXT
  659. ac_ct_CC
  660. CPPFLAGS
  661. LDFLAGS
  662. CFLAGS
  663. CC
  664. AM_BACKSLASH
  665. AM_DEFAULT_VERBOSITY
  666. AM_DEFAULT_V
  667. AM_V
  668. am__untar
  669. am__tar
  670. AMTAR
  671. am__leading_dot
  672. SET_MAKE
  673. AWK
  674. mkdir_p
  675. MKDIR_P
  676. INSTALL_STRIP_PROGRAM
  677. STRIP
  678. install_sh
  679. MAKEINFO
  680. AUTOHEADER
  681. AUTOMAKE
  682. AUTOCONF
  683. ACLOCAL
  684. VERSION
  685. PACKAGE
  686. CYGPATH_W
  687. am__isrc
  688. INSTALL_DATA
  689. INSTALL_SCRIPT
  690. INSTALL_PROGRAM
  691. target_os
  692. target_vendor
  693. target_cpu
  694. target
  695. host_os
  696. host_vendor
  697. host_cpu
  698. host
  699. build_os
  700. build_vendor
  701. build_cpu
  702. build
  703. target_alias
  704. host_alias
  705. build_alias
  706. LIBS
  707. ECHO_T
  708. ECHO_N
  709. ECHO_C
  710. DEFS
  711. mandir
  712. localedir
  713. libdir
  714. psdir
  715. pdfdir
  716. dvidir
  717. htmldir
  718. infodir
  719. docdir
  720. oldincludedir
  721. includedir
  722. runstatedir
  723. localstatedir
  724. sharedstatedir
  725. sysconfdir
  726. datadir
  727. datarootdir
  728. libexecdir
  729. sbindir
  730. bindir
  731. program_transform_name
  732. prefix
  733. exec_prefix
  734. PACKAGE_URL
  735. PACKAGE_BUGREPORT
  736. PACKAGE_STRING
  737. PACKAGE_VERSION
  738. PACKAGE_TARNAME
  739. PACKAGE_NAME
  740. PATH_SEPARATOR
  741. SHELL'
  742. ac_subst_files=''
  743. ac_user_opts='
  744. enable_option_checking
  745. enable_silent_rules
  746. enable_dependency_tracking
  747. with_gnu_ld
  748. enable_static
  749. enable_shared
  750. with_pic
  751. enable_fast_install
  752. with_sysroot
  753. enable_libtool_lock
  754. with_libev
  755. with_mysql
  756. with_ldap
  757. with_attr
  758. with_valgrind
  759. with_libunwind
  760. with_openssl
  761. with_openssl_includes
  762. with_openssl_libs
  763. with_kerberos5
  764. with_pcre
  765. with_zlib
  766. with_bzip2
  767. with_fam
  768. with_webdav_props
  769. with_webdav_locks
  770. with_gdbm
  771. with_memcache
  772. with_lua
  773. enable_lfs
  774. enable_ipv6
  775. enable_mmap
  776. enable_extra_warnings
  777. '
  778. ac_precious_vars='build_alias
  779. host_alias
  780. target_alias
  781. CC
  782. CFLAGS
  783. LDFLAGS
  784. LIBS
  785. CPPFLAGS
  786. CPP
  787. PKG_CONFIG
  788. PKG_CONFIG_PATH
  789. PKG_CONFIG_LIBDIR
  790. LIBEV_CFLAGS
  791. LIBEV_LIBS
  792. LIBUNWIND_CFLAGS
  793. LIBUNWIND_LIBS
  794. FAM_CFLAGS
  795. FAM_LIBS
  796. XML_CFLAGS
  797. XML_LIBS
  798. SQLITE_CFLAGS
  799. SQLITE_LIBS
  800. LUA_CFLAGS
  801. LUA_LIBS'
  802. # Initialize some variables set by options.
  803. ac_init_help=
  804. ac_init_version=false
  805. ac_unrecognized_opts=
  806. ac_unrecognized_sep=
  807. # The variables have the same names as the options, with
  808. # dashes changed to underlines.
  809. cache_file=/dev/null
  810. exec_prefix=NONE
  811. no_create=
  812. no_recursion=
  813. prefix=NONE
  814. program_prefix=NONE
  815. program_suffix=NONE
  816. program_transform_name=s,x,x,
  817. silent=
  818. site=
  819. srcdir=
  820. verbose=
  821. x_includes=NONE
  822. x_libraries=NONE
  823. # Installation directory options.
  824. # These are left unexpanded so users can "make install exec_prefix=/foo"
  825. # and all the variables that are supposed to be based on exec_prefix
  826. # by default will actually change.
  827. # Use braces instead of parens because sh, perl, etc. also accept them.
  828. # (The list follows the same order as the GNU Coding Standards.)
  829. bindir='${exec_prefix}/bin'
  830. sbindir='${exec_prefix}/sbin'
  831. libexecdir='${exec_prefix}/libexec'
  832. datarootdir='${prefix}/share'
  833. datadir='${datarootdir}'
  834. sysconfdir='${prefix}/etc'
  835. sharedstatedir='${prefix}/com'
  836. localstatedir='${prefix}/var'
  837. runstatedir='${localstatedir}/run'
  838. includedir='${prefix}/include'
  839. oldincludedir='/usr/include'
  840. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  841. infodir='${datarootdir}/info'
  842. htmldir='${docdir}'
  843. dvidir='${docdir}'
  844. pdfdir='${docdir}'
  845. psdir='${docdir}'
  846. libdir='${exec_prefix}/lib'
  847. localedir='${datarootdir}/locale'
  848. mandir='${datarootdir}/man'
  849. ac_prev=
  850. ac_dashdash=
  851. for ac_option
  852. do
  853. # If the previous option needs an argument, assign it.
  854. if test -n "$ac_prev"; then
  855. eval $ac_prev=\$ac_option
  856. ac_prev=
  857. continue
  858. fi
  859. case $ac_option in
  860. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  861. *=) ac_optarg= ;;
  862. *) ac_optarg=yes ;;
  863. esac
  864. # Accept the important Cygnus configure options, so we can diagnose typos.
  865. case $ac_dashdash$ac_option in
  866. --)
  867. ac_dashdash=yes ;;
  868. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  869. ac_prev=bindir ;;
  870. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  871. bindir=$ac_optarg ;;
  872. -build | --build | --buil | --bui | --bu)
  873. ac_prev=build_alias ;;
  874. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  875. build_alias=$ac_optarg ;;
  876. -cache-file | --cache-file | --cache-fil | --cache-fi \
  877. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  878. ac_prev=cache_file ;;
  879. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  880. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  881. cache_file=$ac_optarg ;;
  882. --config-cache | -C)
  883. cache_file=config.cache ;;
  884. -datadir | --datadir | --datadi | --datad)
  885. ac_prev=datadir ;;
  886. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  887. datadir=$ac_optarg ;;
  888. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  889. | --dataroo | --dataro | --datar)
  890. ac_prev=datarootdir ;;
  891. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  892. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  893. datarootdir=$ac_optarg ;;
  894. -disable-* | --disable-*)
  895. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  896. # Reject names that are not valid shell variable names.
  897. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  898. as_fn_error $? "invalid feature name: $ac_useropt"
  899. ac_useropt_orig=$ac_useropt
  900. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  901. case $ac_user_opts in
  902. *"
  903. "enable_$ac_useropt"
  904. "*) ;;
  905. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  906. ac_unrecognized_sep=', ';;
  907. esac
  908. eval enable_$ac_useropt=no ;;
  909. -docdir | --docdir | --docdi | --doc | --do)
  910. ac_prev=docdir ;;
  911. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  912. docdir=$ac_optarg ;;
  913. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  914. ac_prev=dvidir ;;
  915. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  916. dvidir=$ac_optarg ;;
  917. -enable-* | --enable-*)
  918. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  919. # Reject names that are not valid shell variable names.
  920. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  921. as_fn_error $? "invalid feature name: $ac_useropt"
  922. ac_useropt_orig=$ac_useropt
  923. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  924. case $ac_user_opts in
  925. *"
  926. "enable_$ac_useropt"
  927. "*) ;;
  928. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  929. ac_unrecognized_sep=', ';;
  930. esac
  931. eval enable_$ac_useropt=\$ac_optarg ;;
  932. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  933. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  934. | --exec | --exe | --ex)
  935. ac_prev=exec_prefix ;;
  936. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  937. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  938. | --exec=* | --exe=* | --ex=*)
  939. exec_prefix=$ac_optarg ;;
  940. -gas | --gas | --ga | --g)
  941. # Obsolete; use --with-gas.
  942. with_gas=yes ;;
  943. -help | --help | --hel | --he | -h)
  944. ac_init_help=long ;;
  945. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  946. ac_init_help=recursive ;;
  947. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  948. ac_init_help=short ;;
  949. -host | --host | --hos | --ho)
  950. ac_prev=host_alias ;;
  951. -host=* | --host=* | --hos=* | --ho=*)
  952. host_alias=$ac_optarg ;;
  953. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  954. ac_prev=htmldir ;;
  955. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  956. | --ht=*)
  957. htmldir=$ac_optarg ;;
  958. -includedir | --includedir | --includedi | --included | --include \
  959. | --includ | --inclu | --incl | --inc)
  960. ac_prev=includedir ;;
  961. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  962. | --includ=* | --inclu=* | --incl=* | --inc=*)
  963. includedir=$ac_optarg ;;
  964. -infodir | --infodir | --infodi | --infod | --info | --inf)
  965. ac_prev=infodir ;;
  966. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  967. infodir=$ac_optarg ;;
  968. -libdir | --libdir | --libdi | --libd)
  969. ac_prev=libdir ;;
  970. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  971. libdir=$ac_optarg ;;
  972. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  973. | --libexe | --libex | --libe)
  974. ac_prev=libexecdir ;;
  975. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  976. | --libexe=* | --libex=* | --libe=*)
  977. libexecdir=$ac_optarg ;;
  978. -localedir | --localedir | --localedi | --localed | --locale)
  979. ac_prev=localedir ;;
  980. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  981. localedir=$ac_optarg ;;
  982. -localstatedir | --localstatedir | --localstatedi | --localstated \
  983. | --localstate | --localstat | --localsta | --localst | --locals)
  984. ac_prev=localstatedir ;;
  985. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  986. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  987. localstatedir=$ac_optarg ;;
  988. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  989. ac_prev=mandir ;;
  990. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  991. mandir=$ac_optarg ;;
  992. -nfp | --nfp | --nf)
  993. # Obsolete; use --without-fp.
  994. with_fp=no ;;
  995. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  996. | --no-cr | --no-c | -n)
  997. no_create=yes ;;
  998. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  999. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1000. no_recursion=yes ;;
  1001. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1002. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1003. | --oldin | --oldi | --old | --ol | --o)
  1004. ac_prev=oldincludedir ;;
  1005. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1006. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1007. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1008. oldincludedir=$ac_optarg ;;
  1009. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1010. ac_prev=prefix ;;
  1011. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1012. prefix=$ac_optarg ;;
  1013. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1014. | --program-pre | --program-pr | --program-p)
  1015. ac_prev=program_prefix ;;
  1016. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1017. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1018. program_prefix=$ac_optarg ;;
  1019. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1020. | --program-suf | --program-su | --program-s)
  1021. ac_prev=program_suffix ;;
  1022. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1023. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1024. program_suffix=$ac_optarg ;;
  1025. -program-transform-name | --program-transform-name \
  1026. | --program-transform-nam | --program-transform-na \
  1027. | --program-transform-n | --program-transform- \
  1028. | --program-transform | --program-transfor \
  1029. | --program-transfo | --program-transf \
  1030. | --program-trans | --program-tran \
  1031. | --progr-tra | --program-tr | --program-t)
  1032. ac_prev=program_transform_name ;;
  1033. -program-transform-name=* | --program-transform-name=* \
  1034. | --program-transform-nam=* | --program-transform-na=* \
  1035. | --program-transform-n=* | --program-transform-=* \
  1036. | --program-transform=* | --program-transfor=* \
  1037. | --program-transfo=* | --program-transf=* \
  1038. | --program-trans=* | --program-tran=* \
  1039. | --progr-tra=* | --program-tr=* | --program-t=*)
  1040. program_transform_name=$ac_optarg ;;
  1041. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1042. ac_prev=pdfdir ;;
  1043. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1044. pdfdir=$ac_optarg ;;
  1045. -psdir | --psdir | --psdi | --psd | --ps)
  1046. ac_prev=psdir ;;
  1047. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1048. psdir=$ac_optarg ;;
  1049. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1050. | -silent | --silent | --silen | --sile | --sil)
  1051. silent=yes ;;
  1052. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1053. | --runstate | --runstat | --runsta | --runst | --runs \
  1054. | --run | --ru | --r)
  1055. ac_prev=runstatedir ;;
  1056. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1057. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1058. | --run=* | --ru=* | --r=*)
  1059. runstatedir=$ac_optarg ;;
  1060. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1061. ac_prev=sbindir ;;
  1062. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1063. | --sbi=* | --sb=*)
  1064. sbindir=$ac_optarg ;;
  1065. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1066. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1067. | --sharedst | --shareds | --shared | --share | --shar \
  1068. | --sha | --sh)
  1069. ac_prev=sharedstatedir ;;
  1070. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1071. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1072. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1073. | --sha=* | --sh=*)
  1074. sharedstatedir=$ac_optarg ;;
  1075. -site | --site | --sit)
  1076. ac_prev=site ;;
  1077. -site=* | --site=* | --sit=*)
  1078. site=$ac_optarg ;;
  1079. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1080. ac_prev=srcdir ;;
  1081. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1082. srcdir=$ac_optarg ;;
  1083. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1084. | --syscon | --sysco | --sysc | --sys | --sy)
  1085. ac_prev=sysconfdir ;;
  1086. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1087. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1088. sysconfdir=$ac_optarg ;;
  1089. -target | --target | --targe | --targ | --tar | --ta | --t)
  1090. ac_prev=target_alias ;;
  1091. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1092. target_alias=$ac_optarg ;;
  1093. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1094. verbose=yes ;;
  1095. -version | --version | --versio | --versi | --vers | -V)
  1096. ac_init_version=: ;;
  1097. -with-* | --with-*)
  1098. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1099. # Reject names that are not valid shell variable names.
  1100. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1101. as_fn_error $? "invalid package name: $ac_useropt"
  1102. ac_useropt_orig=$ac_useropt
  1103. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1104. case $ac_user_opts in
  1105. *"
  1106. "with_$ac_useropt"
  1107. "*) ;;
  1108. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1109. ac_unrecognized_sep=', ';;
  1110. esac
  1111. eval with_$ac_useropt=\$ac_optarg ;;
  1112. -without-* | --without-*)
  1113. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1114. # Reject names that are not valid shell variable names.
  1115. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1116. as_fn_error $? "invalid package name: $ac_useropt"
  1117. ac_useropt_orig=$ac_useropt
  1118. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1119. case $ac_user_opts in
  1120. *"
  1121. "with_$ac_useropt"
  1122. "*) ;;
  1123. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1124. ac_unrecognized_sep=', ';;
  1125. esac
  1126. eval with_$ac_useropt=no ;;
  1127. --x)
  1128. # Obsolete; use --with-x.
  1129. with_x=yes ;;
  1130. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1131. | --x-incl | --x-inc | --x-in | --x-i)
  1132. ac_prev=x_includes ;;
  1133. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1134. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1135. x_includes=$ac_optarg ;;
  1136. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1137. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1138. ac_prev=x_libraries ;;
  1139. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1140. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1141. x_libraries=$ac_optarg ;;
  1142. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1143. Try \`$0 --help' for more information"
  1144. ;;
  1145. *=*)
  1146. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1147. # Reject names that are not valid shell variable names.
  1148. case $ac_envvar in #(
  1149. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1150. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1151. esac
  1152. eval $ac_envvar=\$ac_optarg
  1153. export $ac_envvar ;;
  1154. *)
  1155. # FIXME: should be removed in autoconf 3.0.
  1156. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1157. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1158. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1159. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1160. ;;
  1161. esac
  1162. done
  1163. if test -n "$ac_prev"; then
  1164. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1165. as_fn_error $? "missing argument to $ac_option"
  1166. fi
  1167. if test -n "$ac_unrecognized_opts"; then
  1168. case $enable_option_checking in
  1169. no) ;;
  1170. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1171. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1172. esac
  1173. fi
  1174. # Check all directory arguments for consistency.
  1175. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1176. datadir sysconfdir sharedstatedir localstatedir includedir \
  1177. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1178. libdir localedir mandir runstatedir
  1179. do
  1180. eval ac_val=\$$ac_var
  1181. # Remove trailing slashes.
  1182. case $ac_val in
  1183. */ )
  1184. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1185. eval $ac_var=\$ac_val;;
  1186. esac
  1187. # Be sure to have absolute directory names.
  1188. case $ac_val in
  1189. [\\/$]* | ?:[\\/]* ) continue;;
  1190. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1191. esac
  1192. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1193. done
  1194. # There might be people who depend on the old broken behavior: `$host'
  1195. # used to hold the argument of --host etc.
  1196. # FIXME: To remove some day.
  1197. build=$build_alias
  1198. host=$host_alias
  1199. target=$target_alias
  1200. # FIXME: To remove some day.
  1201. if test "x$host_alias" != x; then
  1202. if test "x$build_alias" = x; then
  1203. cross_compiling=maybe
  1204. elif test "x$build_alias" != "x$host_alias"; then
  1205. cross_compiling=yes
  1206. fi
  1207. fi
  1208. ac_tool_prefix=
  1209. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1210. test "$silent" = yes && exec 6>/dev/null
  1211. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1212. ac_ls_di=`ls -di .` &&
  1213. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1214. as_fn_error $? "working directory cannot be determined"
  1215. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1216. as_fn_error $? "pwd does not report name of working directory"
  1217. # Find the source files, if location was not specified.
  1218. if test -z "$srcdir"; then
  1219. ac_srcdir_defaulted=yes
  1220. # Try the directory containing this script, then the parent directory.
  1221. ac_confdir=`$as_dirname -- "$as_myself" ||
  1222. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1223. X"$as_myself" : 'X\(//\)[^/]' \| \
  1224. X"$as_myself" : 'X\(//\)$' \| \
  1225. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1226. $as_echo X"$as_myself" |
  1227. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1228. s//\1/
  1229. q
  1230. }
  1231. /^X\(\/\/\)[^/].*/{
  1232. s//\1/
  1233. q
  1234. }
  1235. /^X\(\/\/\)$/{
  1236. s//\1/
  1237. q
  1238. }
  1239. /^X\(\/\).*/{
  1240. s//\1/
  1241. q
  1242. }
  1243. s/.*/./; q'`
  1244. srcdir=$ac_confdir
  1245. if test ! -r "$srcdir/$ac_unique_file"; then
  1246. srcdir=..
  1247. fi
  1248. else
  1249. ac_srcdir_defaulted=no
  1250. fi
  1251. if test ! -r "$srcdir/$ac_unique_file"; then
  1252. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1253. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1254. fi
  1255. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1256. ac_abs_confdir=`(
  1257. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1258. pwd)`
  1259. # When building in place, set srcdir=.
  1260. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1261. srcdir=.
  1262. fi
  1263. # Remove unnecessary trailing slashes from srcdir.
  1264. # Double slashes in file names in object file debugging info
  1265. # mess up M-x gdb in Emacs.
  1266. case $srcdir in
  1267. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1268. esac
  1269. for ac_var in $ac_precious_vars; do
  1270. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1271. eval ac_env_${ac_var}_value=\$${ac_var}
  1272. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1273. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1274. done
  1275. #
  1276. # Report the --help message.
  1277. #
  1278. if test "$ac_init_help" = "long"; then
  1279. # Omit some internal or obsolete options to make the list less imposing.
  1280. # This message is too long to be a string in the A/UX 3.1 sh.
  1281. cat <<_ACEOF
  1282. \`configure' configures lighttpd 1.4.39 to adapt to many kinds of systems.
  1283. Usage: $0 [OPTION]... [VAR=VALUE]...
  1284. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1285. VAR=VALUE. See below for descriptions of some of the useful variables.
  1286. Defaults for the options are specified in brackets.
  1287. Configuration:
  1288. -h, --help display this help and exit
  1289. --help=short display options specific to this package
  1290. --help=recursive display the short help of all the included packages
  1291. -V, --version display version information and exit
  1292. -q, --quiet, --silent do not print \`checking ...' messages
  1293. --cache-file=FILE cache test results in FILE [disabled]
  1294. -C, --config-cache alias for \`--cache-file=config.cache'
  1295. -n, --no-create do not create output files
  1296. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1297. Installation directories:
  1298. --prefix=PREFIX install architecture-independent files in PREFIX
  1299. [$ac_default_prefix]
  1300. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1301. [PREFIX]
  1302. By default, \`make install' will install all the files in
  1303. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1304. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1305. for instance \`--prefix=\$HOME'.
  1306. For better control, use the options below.
  1307. Fine tuning of the installation directories:
  1308. --bindir=DIR user executables [EPREFIX/bin]
  1309. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1310. --libexecdir=DIR program executables [EPREFIX/libexec]
  1311. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1312. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1313. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1314. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1315. --libdir=DIR object code libraries [EPREFIX/lib]
  1316. --includedir=DIR C header files [PREFIX/include]
  1317. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1318. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1319. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1320. --infodir=DIR info documentation [DATAROOTDIR/info]
  1321. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1322. --mandir=DIR man documentation [DATAROOTDIR/man]
  1323. --docdir=DIR documentation root [DATAROOTDIR/doc/lighttpd]
  1324. --htmldir=DIR html documentation [DOCDIR]
  1325. --dvidir=DIR dvi documentation [DOCDIR]
  1326. --pdfdir=DIR pdf documentation [DOCDIR]
  1327. --psdir=DIR ps documentation [DOCDIR]
  1328. _ACEOF
  1329. cat <<\_ACEOF
  1330. Program names:
  1331. --program-prefix=PREFIX prepend PREFIX to installed program names
  1332. --program-suffix=SUFFIX append SUFFIX to installed program names
  1333. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1334. System types:
  1335. --build=BUILD configure for building on BUILD [guessed]
  1336. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1337. --target=TARGET configure for building compilers for TARGET [HOST]
  1338. _ACEOF
  1339. fi
  1340. if test -n "$ac_init_help"; then
  1341. case $ac_init_help in
  1342. short | recursive ) echo "Configuration of lighttpd 1.4.39:";;
  1343. esac
  1344. cat <<\_ACEOF
  1345. Optional Features:
  1346. --disable-option-checking ignore unrecognized --enable/--with options
  1347. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1348. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1349. --enable-silent-rules less verbose build output (undo: "make V=1")
  1350. --disable-silent-rules verbose build output (undo: "make V=0")
  1351. --enable-dependency-tracking
  1352. do not reject slow dependency extractors
  1353. --disable-dependency-tracking
  1354. speeds up one-time build
  1355. --enable-static[=PKGS] build static libraries [default=no]
  1356. --enable-shared[=PKGS] build shared libraries [default=yes]
  1357. --enable-fast-install[=PKGS]
  1358. optimize for fast installation [default=yes]
  1359. --disable-libtool-lock avoid locking (might break parallel builds)
  1360. --enable-lfs Turn on Large File System (default)
  1361. --disable-ipv6 disable IPv6 support
  1362. --enable-mmap use mmap if available (DANGEROUS, allows local users
  1363. to trigger SIGBUS crashes)
  1364. --enable-extra-warnings enable extra warnings (gcc specific)
  1365. Optional Packages:
  1366. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1367. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1368. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1369. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1370. both]
  1371. --with-sysroot=DIR Search for dependent libraries within DIR
  1372. (or the compiler's sysroot if not specified).
  1373. --with-libev[=PATH] Include libev support for fdevent handlers in
  1374. PATH/include and PATH/lib
  1375. --with-mysql[=PATH] Include MySQL support. PATH is the path to
  1376. 'mysql_config'
  1377. --with-ldap enable LDAP support
  1378. --with-attr enable extended attribute support
  1379. --with-valgrind enable internal support for valgrind
  1380. --with-libunwind Include libunwind support for backtraces on assert
  1381. failures
  1382. --with-openssl[=DIR] Include openssl support (default no)
  1383. --with-openssl-includes=DIR
  1384. OpenSSL includes
  1385. --with-openssl-libs=DIR OpenSSL libraries
  1386. --with-kerberos5 use Kerberos5 support with OpenSSL
  1387. --with-pcre Enable pcre support (default yes)
  1388. --with-zlib Enable zlib support for mod_compress
  1389. --with-bzip2 Enable bzip2 support for mod_compress
  1390. --with-fam fam/gamin for reducing number of stat() calls
  1391. --with-webdav-props properties in mod_webdav
  1392. --with-webdav-locks locks in mod_webdav
  1393. --with-gdbm gdbm storage for mod_trigger_b4_dl
  1394. --with-memcache memcached storage for mod_trigger_b4_dl
  1395. --with-lua lua engine for mod_cml
  1396. Some influential environment variables:
  1397. CC C compiler command
  1398. CFLAGS C compiler flags
  1399. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1400. nonstandard directory <lib dir>
  1401. LIBS libraries to pass to the linker, e.g. -l<library>
  1402. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1403. you have headers in a nonstandard directory <include dir>
  1404. CPP C preprocessor
  1405. PKG_CONFIG path to pkg-config utility
  1406. PKG_CONFIG_PATH
  1407. directories to add to pkg-config's search path
  1408. PKG_CONFIG_LIBDIR
  1409. path overriding pkg-config's built-in search path
  1410. LIBEV_CFLAGS
  1411. C compiler flags for LIBEV, overriding pkg-config
  1412. LIBEV_LIBS linker flags for LIBEV, overriding pkg-config
  1413. LIBUNWIND_CFLAGS
  1414. C compiler flags for LIBUNWIND, overriding pkg-config
  1415. LIBUNWIND_LIBS
  1416. linker flags for LIBUNWIND, overriding pkg-config
  1417. FAM_CFLAGS C compiler flags for FAM, overriding pkg-config
  1418. FAM_LIBS linker flags for FAM, overriding pkg-config
  1419. XML_CFLAGS C compiler flags for XML, overriding pkg-config
  1420. XML_LIBS linker flags for XML, overriding pkg-config
  1421. SQLITE_CFLAGS
  1422. C compiler flags for SQLITE, overriding pkg-config
  1423. SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
  1424. LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
  1425. LUA_LIBS linker flags for LUA, overriding pkg-config
  1426. Use these variables to override the choices made by `configure' or to help
  1427. it to find libraries and programs with nonstandard names/locations.
  1428. Report bugs to <contact@lighttpd.net>.
  1429. _ACEOF
  1430. ac_status=$?
  1431. fi
  1432. if test "$ac_init_help" = "recursive"; then
  1433. # If there are subdirs, report their specific --help.
  1434. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1435. test -d "$ac_dir" ||
  1436. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1437. continue
  1438. ac_builddir=.
  1439. case "$ac_dir" in
  1440. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1441. *)
  1442. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1443. # A ".." for each directory in $ac_dir_suffix.
  1444. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1445. case $ac_top_builddir_sub in
  1446. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1447. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1448. esac ;;
  1449. esac
  1450. ac_abs_top_builddir=$ac_pwd
  1451. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1452. # for backward compatibility:
  1453. ac_top_builddir=$ac_top_build_prefix
  1454. case $srcdir in
  1455. .) # We are building in place.
  1456. ac_srcdir=.
  1457. ac_top_srcdir=$ac_top_builddir_sub
  1458. ac_abs_top_srcdir=$ac_pwd ;;
  1459. [\\/]* | ?:[\\/]* ) # Absolute name.
  1460. ac_srcdir=$srcdir$ac_dir_suffix;
  1461. ac_top_srcdir=$srcdir
  1462. ac_abs_top_srcdir=$srcdir ;;
  1463. *) # Relative name.
  1464. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1465. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1466. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1467. esac
  1468. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1469. cd "$ac_dir" || { ac_status=$?; continue; }
  1470. # Check for guested configure.
  1471. if test -f "$ac_srcdir/configure.gnu"; then
  1472. echo &&
  1473. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1474. elif test -f "$ac_srcdir/configure"; then
  1475. echo &&
  1476. $SHELL "$ac_srcdir/configure" --help=recursive
  1477. else
  1478. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1479. fi || ac_status=$?
  1480. cd "$ac_pwd" || { ac_status=$?; break; }
  1481. done
  1482. fi
  1483. test -n "$ac_init_help" && exit $ac_status
  1484. if $ac_init_version; then
  1485. cat <<\_ACEOF
  1486. lighttpd configure 1.4.39
  1487. generated by GNU Autoconf 2.69
  1488. Copyright (C) 2012 Free Software Foundation, Inc.
  1489. This configure script is free software; the Free Software Foundation
  1490. gives unlimited permission to copy, distribute and modify it.
  1491. _ACEOF
  1492. exit
  1493. fi
  1494. ## ------------------------ ##
  1495. ## Autoconf initialization. ##
  1496. ## ------------------------ ##
  1497. # ac_fn_c_try_compile LINENO
  1498. # --------------------------
  1499. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1500. ac_fn_c_try_compile ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. rm -f conftest.$ac_objext
  1504. if { { ac_try="$ac_compile"
  1505. case "(($ac_try" in
  1506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1507. *) ac_try_echo=$ac_try;;
  1508. esac
  1509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1510. $as_echo "$ac_try_echo"; } >&5
  1511. (eval "$ac_compile") 2>conftest.err
  1512. ac_status=$?
  1513. if test -s conftest.err; then
  1514. grep -v '^ *+' conftest.err >conftest.er1
  1515. cat conftest.er1 >&5
  1516. mv -f conftest.er1 conftest.err
  1517. fi
  1518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; } && {
  1520. test -z "$ac_c_werror_flag" ||
  1521. test ! -s conftest.err
  1522. } && test -s conftest.$ac_objext; then :
  1523. ac_retval=0
  1524. else
  1525. $as_echo "$as_me: failed program was:" >&5
  1526. sed 's/^/| /' conftest.$ac_ext >&5
  1527. ac_retval=1
  1528. fi
  1529. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1530. as_fn_set_status $ac_retval
  1531. } # ac_fn_c_try_compile
  1532. # ac_fn_c_try_cpp LINENO
  1533. # ----------------------
  1534. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1535. ac_fn_c_try_cpp ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1539. case "(($ac_try" in
  1540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1541. *) ac_try_echo=$ac_try;;
  1542. esac
  1543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1544. $as_echo "$ac_try_echo"; } >&5
  1545. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1546. ac_status=$?
  1547. if test -s conftest.err; then
  1548. grep -v '^ *+' conftest.err >conftest.er1
  1549. cat conftest.er1 >&5
  1550. mv -f conftest.er1 conftest.err
  1551. fi
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; } > conftest.i && {
  1554. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1555. test ! -s conftest.err
  1556. }; then :
  1557. ac_retval=0
  1558. else
  1559. $as_echo "$as_me: failed program was:" >&5
  1560. sed 's/^/| /' conftest.$ac_ext >&5
  1561. ac_retval=1
  1562. fi
  1563. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1564. as_fn_set_status $ac_retval
  1565. } # ac_fn_c_try_cpp
  1566. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1567. # -------------------------------------------------------
  1568. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1569. # the include files in INCLUDES and setting the cache variable VAR
  1570. # accordingly.
  1571. ac_fn_c_check_header_mongrel ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. if eval \${$3+:} false; then :
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1576. $as_echo_n "checking for $2... " >&6; }
  1577. if eval \${$3+:} false; then :
  1578. $as_echo_n "(cached) " >&6
  1579. fi
  1580. eval ac_res=\$$3
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1582. $as_echo "$ac_res" >&6; }
  1583. else
  1584. # Is the header compilable?
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1586. $as_echo_n "checking $2 usability... " >&6; }
  1587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1588. /* end confdefs.h. */
  1589. $4
  1590. #include <$2>
  1591. _ACEOF
  1592. if ac_fn_c_try_compile "$LINENO"; then :
  1593. ac_header_compiler=yes
  1594. else
  1595. ac_header_compiler=no
  1596. fi
  1597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1599. $as_echo "$ac_header_compiler" >&6; }
  1600. # Is the header present?
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1602. $as_echo_n "checking $2 presence... " >&6; }
  1603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1604. /* end confdefs.h. */
  1605. #include <$2>
  1606. _ACEOF
  1607. if ac_fn_c_try_cpp "$LINENO"; then :
  1608. ac_header_preproc=yes
  1609. else
  1610. ac_header_preproc=no
  1611. fi
  1612. rm -f conftest.err conftest.i conftest.$ac_ext
  1613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1614. $as_echo "$ac_header_preproc" >&6; }
  1615. # So? What about this header?
  1616. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1617. yes:no: )
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1619. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1621. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1622. ;;
  1623. no:yes:* )
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1625. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1627. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1629. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1631. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1633. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1634. ( $as_echo "## ----------------------------------- ##
  1635. ## Report this to contact@lighttpd.net ##
  1636. ## ----------------------------------- ##"
  1637. ) | sed "s/^/$as_me: WARNING: /" >&2
  1638. ;;
  1639. esac
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1641. $as_echo_n "checking for $2... " >&6; }
  1642. if eval \${$3+:} false; then :
  1643. $as_echo_n "(cached) " >&6
  1644. else
  1645. eval "$3=\$ac_header_compiler"
  1646. fi
  1647. eval ac_res=\$$3
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1649. $as_echo "$ac_res" >&6; }
  1650. fi
  1651. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1652. } # ac_fn_c_check_header_mongrel
  1653. # ac_fn_c_try_run LINENO
  1654. # ----------------------
  1655. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1656. # that executables *can* be run.
  1657. ac_fn_c_try_run ()
  1658. {
  1659. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1660. if { { ac_try="$ac_link"
  1661. case "(($ac_try" in
  1662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1663. *) ac_try_echo=$ac_try;;
  1664. esac
  1665. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1666. $as_echo "$ac_try_echo"; } >&5
  1667. (eval "$ac_link") 2>&5
  1668. ac_status=$?
  1669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1670. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1671. { { case "(($ac_try" in
  1672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1673. *) ac_try_echo=$ac_try;;
  1674. esac
  1675. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1676. $as_echo "$ac_try_echo"; } >&5
  1677. (eval "$ac_try") 2>&5
  1678. ac_status=$?
  1679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1680. test $ac_status = 0; }; }; then :
  1681. ac_retval=0
  1682. else
  1683. $as_echo "$as_me: program exited with status $ac_status" >&5
  1684. $as_echo "$as_me: failed program was:" >&5
  1685. sed 's/^/| /' conftest.$ac_ext >&5
  1686. ac_retval=$ac_status
  1687. fi
  1688. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. as_fn_set_status $ac_retval
  1691. } # ac_fn_c_try_run
  1692. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1693. # -------------------------------------------------------
  1694. # Tests whether HEADER exists and can be compiled using the include files in
  1695. # INCLUDES, setting the cache variable VAR accordingly.
  1696. ac_fn_c_check_header_compile ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1700. $as_echo_n "checking for $2... " >&6; }
  1701. if eval \${$3+:} false; then :
  1702. $as_echo_n "(cached) " >&6
  1703. else
  1704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1705. /* end confdefs.h. */
  1706. $4
  1707. #include <$2>
  1708. _ACEOF
  1709. if ac_fn_c_try_compile "$LINENO"; then :
  1710. eval "$3=yes"
  1711. else
  1712. eval "$3=no"
  1713. fi
  1714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1715. fi
  1716. eval ac_res=\$$3
  1717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1718. $as_echo "$ac_res" >&6; }
  1719. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1720. } # ac_fn_c_check_header_compile
  1721. # ac_fn_c_try_link LINENO
  1722. # -----------------------
  1723. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1724. ac_fn_c_try_link ()
  1725. {
  1726. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1727. rm -f conftest.$ac_objext conftest$ac_exeext
  1728. if { { ac_try="$ac_link"
  1729. case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735. (eval "$ac_link") 2>conftest.err
  1736. ac_status=$?
  1737. if test -s conftest.err; then
  1738. grep -v '^ *+' conftest.err >conftest.er1
  1739. cat conftest.er1 >&5
  1740. mv -f conftest.er1 conftest.err
  1741. fi
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; } && {
  1744. test -z "$ac_c_werror_flag" ||
  1745. test ! -s conftest.err
  1746. } && test -s conftest$ac_exeext && {
  1747. test "$cross_compiling" = yes ||
  1748. test -x conftest$ac_exeext
  1749. }; then :
  1750. ac_retval=0
  1751. else
  1752. $as_echo "$as_me: failed program was:" >&5
  1753. sed 's/^/| /' conftest.$ac_ext >&5
  1754. ac_retval=1
  1755. fi
  1756. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1757. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1758. # interfere with the next link command; also delete a directory that is
  1759. # left behind by Apple's compiler. We do this before executing the actions.
  1760. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1761. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1762. as_fn_set_status $ac_retval
  1763. } # ac_fn_c_try_link
  1764. # ac_fn_c_check_func LINENO FUNC VAR
  1765. # ----------------------------------
  1766. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1767. ac_fn_c_check_func ()
  1768. {
  1769. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1771. $as_echo_n "checking for $2... " >&6; }
  1772. if eval \${$3+:} false; then :
  1773. $as_echo_n "(cached) " >&6
  1774. else
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1778. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1779. #define $2 innocuous_$2
  1780. /* System header to define __stub macros and hopefully few prototypes,
  1781. which can conflict with char $2 (); below.
  1782. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1783. <limits.h> exists even on freestanding compilers. */
  1784. #ifdef __STDC__
  1785. # include <limits.h>
  1786. #else
  1787. # include <assert.h>
  1788. #endif
  1789. #undef $2
  1790. /* Override any GCC internal prototype to avoid an error.
  1791. Use char because int might match the return type of a GCC
  1792. builtin and then its argument prototype would still apply. */
  1793. #ifdef __cplusplus
  1794. extern "C"
  1795. #endif
  1796. char $2 ();
  1797. /* The GNU C library defines this for functions which it implements
  1798. to always fail with ENOSYS. Some functions are actually named
  1799. something starting with __ and the normal name is an alias. */
  1800. #if defined __stub_$2 || defined __stub___$2
  1801. choke me
  1802. #endif
  1803. int
  1804. main ()
  1805. {
  1806. return $2 ();
  1807. ;
  1808. return 0;
  1809. }
  1810. _ACEOF
  1811. if ac_fn_c_try_link "$LINENO"; then :
  1812. eval "$3=yes"
  1813. else
  1814. eval "$3=no"
  1815. fi
  1816. rm -f core conftest.err conftest.$ac_objext \
  1817. conftest$ac_exeext conftest.$ac_ext
  1818. fi
  1819. eval ac_res=\$$3
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1821. $as_echo "$ac_res" >&6; }
  1822. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1823. } # ac_fn_c_check_func
  1824. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1825. # -------------------------------------------
  1826. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1827. # variable VAR accordingly.
  1828. ac_fn_c_check_type ()
  1829. {
  1830. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1832. $as_echo_n "checking for $2... " >&6; }
  1833. if eval \${$3+:} false; then :
  1834. $as_echo_n "(cached) " >&6
  1835. else
  1836. eval "$3=no"
  1837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1838. /* end confdefs.h. */
  1839. $4
  1840. int
  1841. main ()
  1842. {
  1843. if (sizeof ($2))
  1844. return 0;
  1845. ;
  1846. return 0;
  1847. }
  1848. _ACEOF
  1849. if ac_fn_c_try_compile "$LINENO"; then :
  1850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1851. /* end confdefs.h. */
  1852. $4
  1853. int
  1854. main ()
  1855. {
  1856. if (sizeof (($2)))
  1857. return 0;
  1858. ;
  1859. return 0;
  1860. }
  1861. _ACEOF
  1862. if ac_fn_c_try_compile "$LINENO"; then :
  1863. else
  1864. eval "$3=yes"
  1865. fi
  1866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1867. fi
  1868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1869. fi
  1870. eval ac_res=\$$3
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1872. $as_echo "$ac_res" >&6; }
  1873. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1874. } # ac_fn_c_check_type
  1875. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1876. # ----------------------------------------------------
  1877. # Tries to find if the field MEMBER exists in type AGGR, after including
  1878. # INCLUDES, setting cache variable VAR accordingly.
  1879. ac_fn_c_check_member ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1883. $as_echo_n "checking for $2.$3... " >&6; }
  1884. if eval \${$4+:} false; then :
  1885. $as_echo_n "(cached) " >&6
  1886. else
  1887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1888. /* end confdefs.h. */
  1889. $5
  1890. int
  1891. main ()
  1892. {
  1893. static $2 ac_aggr;
  1894. if (ac_aggr.$3)
  1895. return 0;
  1896. ;
  1897. return 0;
  1898. }
  1899. _ACEOF
  1900. if ac_fn_c_try_compile "$LINENO"; then :
  1901. eval "$4=yes"
  1902. else
  1903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1904. /* end confdefs.h. */
  1905. $5
  1906. int
  1907. main ()
  1908. {
  1909. static $2 ac_aggr;
  1910. if (sizeof ac_aggr.$3)
  1911. return 0;
  1912. ;
  1913. return 0;
  1914. }
  1915. _ACEOF
  1916. if ac_fn_c_try_compile "$LINENO"; then :
  1917. eval "$4=yes"
  1918. else
  1919. eval "$4=no"
  1920. fi
  1921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1924. fi
  1925. eval ac_res=\$$4
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1927. $as_echo "$ac_res" >&6; }
  1928. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1929. } # ac_fn_c_check_member
  1930. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1931. # --------------------------------------------
  1932. # Tries to find the compile-time value of EXPR in a program that includes
  1933. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1934. # computed
  1935. ac_fn_c_compute_int ()
  1936. {
  1937. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1938. if test "$cross_compiling" = yes; then
  1939. # Depending upon the size, compute the lo and hi bounds.
  1940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1941. /* end confdefs.h. */
  1942. $4
  1943. int
  1944. main ()
  1945. {
  1946. static int test_array [1 - 2 * !(($2) >= 0)];
  1947. test_array [0] = 0;
  1948. return test_array [0];
  1949. ;
  1950. return 0;
  1951. }
  1952. _ACEOF
  1953. if ac_fn_c_try_compile "$LINENO"; then :
  1954. ac_lo=0 ac_mid=0
  1955. while :; do
  1956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1957. /* end confdefs.h. */
  1958. $4
  1959. int
  1960. main ()
  1961. {
  1962. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1963. test_array [0] = 0;
  1964. return test_array [0];
  1965. ;
  1966. return 0;
  1967. }
  1968. _ACEOF
  1969. if ac_fn_c_try_compile "$LINENO"; then :
  1970. ac_hi=$ac_mid; break
  1971. else
  1972. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1973. if test $ac_lo -le $ac_mid; then
  1974. ac_lo= ac_hi=
  1975. break
  1976. fi
  1977. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1978. fi
  1979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1980. done
  1981. else
  1982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1983. /* end confdefs.h. */
  1984. $4
  1985. int
  1986. main ()
  1987. {
  1988. static int test_array [1 - 2 * !(($2) < 0)];
  1989. test_array [0] = 0;
  1990. return test_array [0];
  1991. ;
  1992. return 0;
  1993. }
  1994. _ACEOF
  1995. if ac_fn_c_try_compile "$LINENO"; then :
  1996. ac_hi=-1 ac_mid=-1
  1997. while :; do
  1998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1999. /* end confdefs.h. */
  2000. $4
  2001. int
  2002. main ()
  2003. {
  2004. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2005. test_array [0] = 0;
  2006. return test_array [0];
  2007. ;
  2008. return 0;
  2009. }
  2010. _ACEOF
  2011. if ac_fn_c_try_compile "$LINENO"; then :
  2012. ac_lo=$ac_mid; break
  2013. else
  2014. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2015. if test $ac_mid -le $ac_hi; then
  2016. ac_lo= ac_hi=
  2017. break
  2018. fi
  2019. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2020. fi
  2021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2022. done
  2023. else
  2024. ac_lo= ac_hi=
  2025. fi
  2026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2027. fi
  2028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2029. # Binary search between lo and hi bounds.
  2030. while test "x$ac_lo" != "x$ac_hi"; do
  2031. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2033. /* end confdefs.h. */
  2034. $4
  2035. int
  2036. main ()
  2037. {
  2038. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2039. test_array [0] = 0;
  2040. return test_array [0];
  2041. ;
  2042. return 0;
  2043. }
  2044. _ACEOF
  2045. if ac_fn_c_try_compile "$LINENO"; then :
  2046. ac_hi=$ac_mid
  2047. else
  2048. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2049. fi
  2050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2051. done
  2052. case $ac_lo in #((
  2053. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2054. '') ac_retval=1 ;;
  2055. esac
  2056. else
  2057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2058. /* end confdefs.h. */
  2059. $4
  2060. static long int longval () { return $2; }
  2061. static unsigned long int ulongval () { return $2; }
  2062. #include <stdio.h>
  2063. #include <stdlib.h>
  2064. int
  2065. main ()
  2066. {
  2067. FILE *f = fopen ("conftest.val", "w");
  2068. if (! f)
  2069. return 1;
  2070. if (($2) < 0)
  2071. {
  2072. long int i = longval ();
  2073. if (i != ($2))
  2074. return 1;
  2075. fprintf (f, "%ld", i);
  2076. }
  2077. else
  2078. {
  2079. unsigned long int i = ulongval ();
  2080. if (i != ($2))
  2081. return 1;
  2082. fprintf (f, "%lu", i);
  2083. }
  2084. /* Do not output a trailing newline, as this causes \r\n confusion
  2085. on some platforms. */
  2086. return ferror (f) || fclose (f) != 0;
  2087. ;
  2088. return 0;
  2089. }
  2090. _ACEOF
  2091. if ac_fn_c_try_run "$LINENO"; then :
  2092. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2093. else
  2094. ac_retval=1
  2095. fi
  2096. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2097. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2098. rm -f conftest.val
  2099. fi
  2100. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2101. as_fn_set_status $ac_retval
  2102. } # ac_fn_c_compute_int
  2103. cat >config.log <<_ACEOF
  2104. This file contains any messages produced by compilers while
  2105. running configure, to aid debugging if configure makes a mistake.
  2106. It was created by lighttpd $as_me 1.4.39, which was
  2107. generated by GNU Autoconf 2.69. Invocation command line was
  2108. $ $0 $@
  2109. _ACEOF
  2110. exec 5>>config.log
  2111. {
  2112. cat <<_ASUNAME
  2113. ## --------- ##
  2114. ## Platform. ##
  2115. ## --------- ##
  2116. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2117. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2118. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2119. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2120. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2121. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2122. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2123. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2124. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2125. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2126. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2127. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2128. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2129. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2130. _ASUNAME
  2131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2132. for as_dir in $PATH
  2133. do
  2134. IFS=$as_save_IFS
  2135. test -z "$as_dir" && as_dir=.
  2136. $as_echo "PATH: $as_dir"
  2137. done
  2138. IFS=$as_save_IFS
  2139. } >&5
  2140. cat >&5 <<_ACEOF
  2141. ## ----------- ##
  2142. ## Core tests. ##
  2143. ## ----------- ##
  2144. _ACEOF
  2145. # Keep a trace of the command line.
  2146. # Strip out --no-create and --no-recursion so they do not pile up.
  2147. # Strip out --silent because we don't want to record it for future runs.
  2148. # Also quote any args containing shell meta-characters.
  2149. # Make two passes to allow for proper duplicate-argument suppression.
  2150. ac_configure_args=
  2151. ac_configure_args0=
  2152. ac_configure_args1=
  2153. ac_must_keep_next=false
  2154. for ac_pass in 1 2
  2155. do
  2156. for ac_arg
  2157. do
  2158. case $ac_arg in
  2159. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2160. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2161. | -silent | --silent | --silen | --sile | --sil)
  2162. continue ;;
  2163. *\'*)
  2164. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2165. esac
  2166. case $ac_pass in
  2167. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2168. 2)
  2169. as_fn_append ac_configure_args1 " '$ac_arg'"
  2170. if test $ac_must_keep_next = true; then
  2171. ac_must_keep_next=false # Got value, back to normal.
  2172. else
  2173. case $ac_arg in
  2174. *=* | --config-cache | -C | -disable-* | --disable-* \
  2175. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2176. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2177. | -with-* | --with-* | -without-* | --without-* | --x)
  2178. case "$ac_configure_args0 " in
  2179. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2180. esac
  2181. ;;
  2182. -* ) ac_must_keep_next=true ;;
  2183. esac
  2184. fi
  2185. as_fn_append ac_configure_args " '$ac_arg'"
  2186. ;;
  2187. esac
  2188. done
  2189. done
  2190. { ac_configure_args0=; unset ac_configure_args0;}
  2191. { ac_configure_args1=; unset ac_configure_args1;}
  2192. # When interrupted or exit'd, cleanup temporary files, and complete
  2193. # config.log. We remove comments because anyway the quotes in there
  2194. # would cause problems or look ugly.
  2195. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2196. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2197. trap 'exit_status=$?
  2198. # Save into config.log some information that might help in debugging.
  2199. {
  2200. echo
  2201. $as_echo "## ---------------- ##
  2202. ## Cache variables. ##
  2203. ## ---------------- ##"
  2204. echo
  2205. # The following way of writing the cache mishandles newlines in values,
  2206. (
  2207. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2208. eval ac_val=\$$ac_var
  2209. case $ac_val in #(
  2210. *${as_nl}*)
  2211. case $ac_var in #(
  2212. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2213. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2214. esac
  2215. case $ac_var in #(
  2216. _ | IFS | as_nl) ;; #(
  2217. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2218. *) { eval $ac_var=; unset $ac_var;} ;;
  2219. esac ;;
  2220. esac
  2221. done
  2222. (set) 2>&1 |
  2223. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2224. *${as_nl}ac_space=\ *)
  2225. sed -n \
  2226. "s/'\''/'\''\\\\'\'''\''/g;
  2227. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2228. ;; #(
  2229. *)
  2230. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2231. ;;
  2232. esac |
  2233. sort
  2234. )
  2235. echo
  2236. $as_echo "## ----------------- ##
  2237. ## Output variables. ##
  2238. ## ----------------- ##"
  2239. echo
  2240. for ac_var in $ac_subst_vars
  2241. do
  2242. eval ac_val=\$$ac_var
  2243. case $ac_val in
  2244. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2245. esac
  2246. $as_echo "$ac_var='\''$ac_val'\''"
  2247. done | sort
  2248. echo
  2249. if test -n "$ac_subst_files"; then
  2250. $as_echo "## ------------------- ##
  2251. ## File substitutions. ##
  2252. ## ------------------- ##"
  2253. echo
  2254. for ac_var in $ac_subst_files
  2255. do
  2256. eval ac_val=\$$ac_var
  2257. case $ac_val in
  2258. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2259. esac
  2260. $as_echo "$ac_var='\''$ac_val'\''"
  2261. done | sort
  2262. echo
  2263. fi
  2264. if test -s confdefs.h; then
  2265. $as_echo "## ----------- ##
  2266. ## confdefs.h. ##
  2267. ## ----------- ##"
  2268. echo
  2269. cat confdefs.h
  2270. echo
  2271. fi
  2272. test "$ac_signal" != 0 &&
  2273. $as_echo "$as_me: caught signal $ac_signal"
  2274. $as_echo "$as_me: exit $exit_status"
  2275. } >&5
  2276. rm -f core *.core core.conftest.* &&
  2277. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2278. exit $exit_status
  2279. ' 0
  2280. for ac_signal in 1 2 13 15; do
  2281. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2282. done
  2283. ac_signal=0
  2284. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2285. rm -f -r conftest* confdefs.h
  2286. $as_echo "/* confdefs.h */" > confdefs.h
  2287. # Predefined preprocessor variables.
  2288. cat >>confdefs.h <<_ACEOF
  2289. #define PACKAGE_NAME "$PACKAGE_NAME"
  2290. _ACEOF
  2291. cat >>confdefs.h <<_ACEOF
  2292. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2296. _ACEOF
  2297. cat >>confdefs.h <<_ACEOF
  2298. #define PACKAGE_STRING "$PACKAGE_STRING"
  2299. _ACEOF
  2300. cat >>confdefs.h <<_ACEOF
  2301. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2302. _ACEOF
  2303. cat >>confdefs.h <<_ACEOF
  2304. #define PACKAGE_URL "$PACKAGE_URL"
  2305. _ACEOF
  2306. # Let the site file select an alternate cache file if it wants to.
  2307. # Prefer an explicitly selected file to automatically selected ones.
  2308. ac_site_file1=NONE
  2309. ac_site_file2=NONE
  2310. if test -n "$CONFIG_SITE"; then
  2311. # We do not want a PATH search for config.site.
  2312. case $CONFIG_SITE in #((
  2313. -*) ac_site_file1=./$CONFIG_SITE;;
  2314. */*) ac_site_file1=$CONFIG_SITE;;
  2315. *) ac_site_file1=./$CONFIG_SITE;;
  2316. esac
  2317. elif test "x$prefix" != xNONE; then
  2318. ac_site_file1=$prefix/share/config.site
  2319. ac_site_file2=$prefix/etc/config.site
  2320. else
  2321. ac_site_file1=$ac_default_prefix/share/config.site
  2322. ac_site_file2=$ac_default_prefix/etc/config.site
  2323. fi
  2324. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2325. do
  2326. test "x$ac_site_file" = xNONE && continue
  2327. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2329. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2330. sed 's/^/| /' "$ac_site_file" >&5
  2331. . "$ac_site_file" \
  2332. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2333. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2334. as_fn_error $? "failed to load site script $ac_site_file
  2335. See \`config.log' for more details" "$LINENO" 5; }
  2336. fi
  2337. done
  2338. if test -r "$cache_file"; then
  2339. # Some versions of bash will fail to source /dev/null (special files
  2340. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2341. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2343. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2344. case $cache_file in
  2345. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2346. *) . "./$cache_file";;
  2347. esac
  2348. fi
  2349. else
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2351. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2352. >$cache_file
  2353. fi
  2354. # Check that the precious variables saved in the cache have kept the same
  2355. # value.
  2356. ac_cache_corrupted=false
  2357. for ac_var in $ac_precious_vars; do
  2358. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2359. eval ac_new_set=\$ac_env_${ac_var}_set
  2360. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2361. eval ac_new_val=\$ac_env_${ac_var}_value
  2362. case $ac_old_set,$ac_new_set in
  2363. set,)
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2365. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2366. ac_cache_corrupted=: ;;
  2367. ,set)
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2369. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2370. ac_cache_corrupted=: ;;
  2371. ,);;
  2372. *)
  2373. if test "x$ac_old_val" != "x$ac_new_val"; then
  2374. # differences in whitespace do not lead to failure.
  2375. ac_old_val_w=`echo x $ac_old_val`
  2376. ac_new_val_w=`echo x $ac_new_val`
  2377. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2379. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2380. ac_cache_corrupted=:
  2381. else
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2383. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2384. eval $ac_var=\$ac_old_val
  2385. fi
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2387. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2389. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2390. fi;;
  2391. esac
  2392. # Pass precious variables to config.status.
  2393. if test "$ac_new_set" = set; then
  2394. case $ac_new_val in
  2395. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2396. *) ac_arg=$ac_var=$ac_new_val ;;
  2397. esac
  2398. case " $ac_configure_args " in
  2399. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2400. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2401. esac
  2402. fi
  2403. done
  2404. if $ac_cache_corrupted; then
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2406. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2408. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2409. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2410. fi
  2411. ## -------------------- ##
  2412. ## Main body of script. ##
  2413. ## -------------------- ##
  2414. ac_ext=c
  2415. ac_cpp='$CPP $CPPFLAGS'
  2416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2419. ac_config_headers="$ac_config_headers config.h"
  2420. ac_aux_dir=
  2421. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2422. if test -f "$ac_dir/install-sh"; then
  2423. ac_aux_dir=$ac_dir
  2424. ac_install_sh="$ac_aux_dir/install-sh -c"
  2425. break
  2426. elif test -f "$ac_dir/install.sh"; then
  2427. ac_aux_dir=$ac_dir
  2428. ac_install_sh="$ac_aux_dir/install.sh -c"
  2429. break
  2430. elif test -f "$ac_dir/shtool"; then
  2431. ac_aux_dir=$ac_dir
  2432. ac_install_sh="$ac_aux_dir/shtool install -c"
  2433. break
  2434. fi
  2435. done
  2436. if test -z "$ac_aux_dir"; then
  2437. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2438. fi
  2439. # These three variables are undocumented and unsupported,
  2440. # and are intended to be withdrawn in a future Autoconf release.
  2441. # They can cause serious problems if a builder's source tree is in a directory
  2442. # whose full name contains unusual characters.
  2443. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2444. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2445. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2446. # Make sure we can run config.sub.
  2447. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2448. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2450. $as_echo_n "checking build system type... " >&6; }
  2451. if ${ac_cv_build+:} false; then :
  2452. $as_echo_n "(cached) " >&6
  2453. else
  2454. ac_build_alias=$build_alias
  2455. test "x$ac_build_alias" = x &&
  2456. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2457. test "x$ac_build_alias" = x &&
  2458. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2459. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2460. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2461. fi
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2463. $as_echo "$ac_cv_build" >&6; }
  2464. case $ac_cv_build in
  2465. *-*-*) ;;
  2466. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2467. esac
  2468. build=$ac_cv_build
  2469. ac_save_IFS=$IFS; IFS='-'
  2470. set x $ac_cv_build
  2471. shift
  2472. build_cpu=$1
  2473. build_vendor=$2
  2474. shift; shift
  2475. # Remember, the first character of IFS is used to create $*,
  2476. # except with old shells:
  2477. build_os=$*
  2478. IFS=$ac_save_IFS
  2479. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2481. $as_echo_n "checking host system type... " >&6; }
  2482. if ${ac_cv_host+:} false; then :
  2483. $as_echo_n "(cached) " >&6
  2484. else
  2485. if test "x$host_alias" = x; then
  2486. ac_cv_host=$ac_cv_build
  2487. else
  2488. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2489. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2490. fi
  2491. fi
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2493. $as_echo "$ac_cv_host" >&6; }
  2494. case $ac_cv_host in
  2495. *-*-*) ;;
  2496. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2497. esac
  2498. host=$ac_cv_host
  2499. ac_save_IFS=$IFS; IFS='-'
  2500. set x $ac_cv_host
  2501. shift
  2502. host_cpu=$1
  2503. host_vendor=$2
  2504. shift; shift
  2505. # Remember, the first character of IFS is used to create $*,
  2506. # except with old shells:
  2507. host_os=$*
  2508. IFS=$ac_save_IFS
  2509. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2511. $as_echo_n "checking target system type... " >&6; }
  2512. if ${ac_cv_target+:} false; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. if test "x$target_alias" = x; then
  2516. ac_cv_target=$ac_cv_host
  2517. else
  2518. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2519. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2520. fi
  2521. fi
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2523. $as_echo "$ac_cv_target" >&6; }
  2524. case $ac_cv_target in
  2525. *-*-*) ;;
  2526. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2527. esac
  2528. target=$ac_cv_target
  2529. ac_save_IFS=$IFS; IFS='-'
  2530. set x $ac_cv_target
  2531. shift
  2532. target_cpu=$1
  2533. target_vendor=$2
  2534. shift; shift
  2535. # Remember, the first character of IFS is used to create $*,
  2536. # except with old shells:
  2537. target_os=$*
  2538. IFS=$ac_save_IFS
  2539. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2540. # The aliases save the names the user supplied, while $host etc.
  2541. # will get canonicalized.
  2542. test -n "$target_alias" &&
  2543. test "$program_prefix$program_suffix$program_transform_name" = \
  2544. NONENONEs,x,x, &&
  2545. program_prefix=${target_alias}-
  2546. am__api_version='1.15'
  2547. # Find a good install program. We prefer a C program (faster),
  2548. # so one script is as good as another. But avoid the broken or
  2549. # incompatible versions:
  2550. # SysV /etc/install, /usr/sbin/install
  2551. # SunOS /usr/etc/install
  2552. # IRIX /sbin/install
  2553. # AIX /bin/install
  2554. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2555. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2556. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2557. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2558. # OS/2's system install, which has a completely different semantic
  2559. # ./install, which can be erroneously created by make from ./install.sh.
  2560. # Reject install programs that cannot install multiple files.
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2562. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2563. if test -z "$INSTALL"; then
  2564. if ${ac_cv_path_install+:} false; then :
  2565. $as_echo_n "(cached) " >&6
  2566. else
  2567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2568. for as_dir in $PATH
  2569. do
  2570. IFS=$as_save_IFS
  2571. test -z "$as_dir" && as_dir=.
  2572. # Account for people who put trailing slashes in PATH elements.
  2573. case $as_dir/ in #((
  2574. ./ | .// | /[cC]/* | \
  2575. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2576. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2577. /usr/ucb/* ) ;;
  2578. *)
  2579. # OSF1 and SCO ODT 3.0 have their own names for install.
  2580. # Don't use installbsd from OSF since it installs stuff as root
  2581. # by default.
  2582. for ac_prog in ginstall scoinst install; do
  2583. for ac_exec_ext in '' $ac_executable_extensions; do
  2584. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2585. if test $ac_prog = install &&
  2586. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2587. # AIX install. It has an incompatible calling convention.
  2588. :
  2589. elif test $ac_prog = install &&
  2590. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2591. # program-specific install script used by HP pwplus--don't use.
  2592. :
  2593. else
  2594. rm -rf conftest.one conftest.two conftest.dir
  2595. echo one > conftest.one
  2596. echo two > conftest.two
  2597. mkdir conftest.dir
  2598. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2599. test -s conftest.one && test -s conftest.two &&
  2600. test -s conftest.dir/conftest.one &&
  2601. test -s conftest.dir/conftest.two
  2602. then
  2603. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2604. break 3
  2605. fi
  2606. fi
  2607. fi
  2608. done
  2609. done
  2610. ;;
  2611. esac
  2612. done
  2613. IFS=$as_save_IFS
  2614. rm -rf conftest.one conftest.two conftest.dir
  2615. fi
  2616. if test "${ac_cv_path_install+set}" = set; then
  2617. INSTALL=$ac_cv_path_install
  2618. else
  2619. # As a last resort, use the slow shell script. Don't cache a
  2620. # value for INSTALL within a source directory, because that will
  2621. # break other packages using the cache if that directory is
  2622. # removed, or if the value is a relative name.
  2623. INSTALL=$ac_install_sh
  2624. fi
  2625. fi
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2627. $as_echo "$INSTALL" >&6; }
  2628. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2629. # It thinks the first close brace ends the variable substitution.
  2630. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2631. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2632. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2634. $as_echo_n "checking whether build environment is sane... " >&6; }
  2635. # Reject unsafe characters in $srcdir or the absolute working directory
  2636. # name. Accept space and tab only in the latter.
  2637. am_lf='
  2638. '
  2639. case `pwd` in
  2640. *[\\\"\#\$\&\'\`$am_lf]*)
  2641. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2642. esac
  2643. case $srcdir in
  2644. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2645. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2646. esac
  2647. # Do 'set' in a subshell so we don't clobber the current shell's
  2648. # arguments. Must try -L first in case configure is actually a
  2649. # symlink; some systems play weird games with the mod time of symlinks
  2650. # (eg FreeBSD returns the mod time of the symlink's containing
  2651. # directory).
  2652. if (
  2653. am_has_slept=no
  2654. for am_try in 1 2; do
  2655. echo "timestamp, slept: $am_has_slept" > conftest.file
  2656. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2657. if test "$*" = "X"; then
  2658. # -L didn't work.
  2659. set X `ls -t "$srcdir/configure" conftest.file`
  2660. fi
  2661. if test "$*" != "X $srcdir/configure conftest.file" \
  2662. && test "$*" != "X conftest.file $srcdir/configure"; then
  2663. # If neither matched, then we have a broken ls. This can happen
  2664. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2665. # broken ls alias from the environment. This has actually
  2666. # happened. Such a system could not be considered "sane".
  2667. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2668. alias in your environment" "$LINENO" 5
  2669. fi
  2670. if test "$2" = conftest.file || test $am_try -eq 2; then
  2671. break
  2672. fi
  2673. # Just in case.
  2674. sleep 1
  2675. am_has_slept=yes
  2676. done
  2677. test "$2" = conftest.file
  2678. )
  2679. then
  2680. # Ok.
  2681. :
  2682. else
  2683. as_fn_error $? "newly created file is older than distributed files!
  2684. Check your system clock" "$LINENO" 5
  2685. fi
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2687. $as_echo "yes" >&6; }
  2688. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2689. # generated files are strictly newer.
  2690. am_sleep_pid=
  2691. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2692. ( sleep 1 ) &
  2693. am_sleep_pid=$!
  2694. fi
  2695. rm -f conftest.file
  2696. test "$program_prefix" != NONE &&
  2697. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2698. # Use a double $ so make ignores it.
  2699. test "$program_suffix" != NONE &&
  2700. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2701. # Double any \ or $.
  2702. # By default was `s,x,x', remove it if useless.
  2703. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2704. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2705. # Expand $ac_aux_dir to an absolute path.
  2706. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2707. if test x"${MISSING+set}" != xset; then
  2708. case $am_aux_dir in
  2709. *\ * | *\ *)
  2710. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2711. *)
  2712. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2713. esac
  2714. fi
  2715. # Use eval to expand $SHELL
  2716. if eval "$MISSING --is-lightweight"; then
  2717. am_missing_run="$MISSING "
  2718. else
  2719. am_missing_run=
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2721. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2722. fi
  2723. if test x"${install_sh+set}" != xset; then
  2724. case $am_aux_dir in
  2725. *\ * | *\ *)
  2726. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2727. *)
  2728. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2729. esac
  2730. fi
  2731. # Installed binaries are usually stripped using 'strip' when the user
  2732. # run "make install-strip". However 'strip' might not be the right
  2733. # tool to use in cross-compilation environments, therefore Automake
  2734. # will honor the 'STRIP' environment variable to overrule this program.
  2735. if test "$cross_compiling" != no; then
  2736. if test -n "$ac_tool_prefix"; then
  2737. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2738. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2740. $as_echo_n "checking for $ac_word... " >&6; }
  2741. if ${ac_cv_prog_STRIP+:} false; then :
  2742. $as_echo_n "(cached) " >&6
  2743. else
  2744. if test -n "$STRIP"; then
  2745. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2746. else
  2747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2748. for as_dir in $PATH
  2749. do
  2750. IFS=$as_save_IFS
  2751. test -z "$as_dir" && as_dir=.
  2752. for ac_exec_ext in '' $ac_executable_extensions; do
  2753. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2754. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2756. break 2
  2757. fi
  2758. done
  2759. done
  2760. IFS=$as_save_IFS
  2761. fi
  2762. fi
  2763. STRIP=$ac_cv_prog_STRIP
  2764. if test -n "$STRIP"; then
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2766. $as_echo "$STRIP" >&6; }
  2767. else
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2769. $as_echo "no" >&6; }
  2770. fi
  2771. fi
  2772. if test -z "$ac_cv_prog_STRIP"; then
  2773. ac_ct_STRIP=$STRIP
  2774. # Extract the first word of "strip", so it can be a program name with args.
  2775. set dummy strip; ac_word=$2
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2777. $as_echo_n "checking for $ac_word... " >&6; }
  2778. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2779. $as_echo_n "(cached) " >&6
  2780. else
  2781. if test -n "$ac_ct_STRIP"; then
  2782. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2783. else
  2784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2785. for as_dir in $PATH
  2786. do
  2787. IFS=$as_save_IFS
  2788. test -z "$as_dir" && as_dir=.
  2789. for ac_exec_ext in '' $ac_executable_extensions; do
  2790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2791. ac_cv_prog_ac_ct_STRIP="strip"
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2793. break 2
  2794. fi
  2795. done
  2796. done
  2797. IFS=$as_save_IFS
  2798. fi
  2799. fi
  2800. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2801. if test -n "$ac_ct_STRIP"; then
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2803. $as_echo "$ac_ct_STRIP" >&6; }
  2804. else
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2806. $as_echo "no" >&6; }
  2807. fi
  2808. if test "x$ac_ct_STRIP" = x; then
  2809. STRIP=":"
  2810. else
  2811. case $cross_compiling:$ac_tool_warned in
  2812. yes:)
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2814. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2815. ac_tool_warned=yes ;;
  2816. esac
  2817. STRIP=$ac_ct_STRIP
  2818. fi
  2819. else
  2820. STRIP="$ac_cv_prog_STRIP"
  2821. fi
  2822. fi
  2823. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2825. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2826. if test -z "$MKDIR_P"; then
  2827. if ${ac_cv_path_mkdir+:} false; then :
  2828. $as_echo_n "(cached) " >&6
  2829. else
  2830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2831. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2832. do
  2833. IFS=$as_save_IFS
  2834. test -z "$as_dir" && as_dir=.
  2835. for ac_prog in mkdir gmkdir; do
  2836. for ac_exec_ext in '' $ac_executable_extensions; do
  2837. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2838. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2839. 'mkdir (GNU coreutils) '* | \
  2840. 'mkdir (coreutils) '* | \
  2841. 'mkdir (fileutils) '4.1*)
  2842. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2843. break 3;;
  2844. esac
  2845. done
  2846. done
  2847. done
  2848. IFS=$as_save_IFS
  2849. fi
  2850. test -d ./--version && rmdir ./--version
  2851. if test "${ac_cv_path_mkdir+set}" = set; then
  2852. MKDIR_P="$ac_cv_path_mkdir -p"
  2853. else
  2854. # As a last resort, use the slow shell script. Don't cache a
  2855. # value for MKDIR_P within a source directory, because that will
  2856. # break other packages using the cache if that directory is
  2857. # removed, or if the value is a relative name.
  2858. MKDIR_P="$ac_install_sh -d"
  2859. fi
  2860. fi
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2862. $as_echo "$MKDIR_P" >&6; }
  2863. for ac_prog in gawk mawk nawk awk
  2864. do
  2865. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2866. set dummy $ac_prog; ac_word=$2
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2868. $as_echo_n "checking for $ac_word... " >&6; }
  2869. if ${ac_cv_prog_AWK+:} false; then :
  2870. $as_echo_n "(cached) " >&6
  2871. else
  2872. if test -n "$AWK"; then
  2873. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2874. else
  2875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2876. for as_dir in $PATH
  2877. do
  2878. IFS=$as_save_IFS
  2879. test -z "$as_dir" && as_dir=.
  2880. for ac_exec_ext in '' $ac_executable_extensions; do
  2881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2882. ac_cv_prog_AWK="$ac_prog"
  2883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2884. break 2
  2885. fi
  2886. done
  2887. done
  2888. IFS=$as_save_IFS
  2889. fi
  2890. fi
  2891. AWK=$ac_cv_prog_AWK
  2892. if test -n "$AWK"; then
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2894. $as_echo "$AWK" >&6; }
  2895. else
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2897. $as_echo "no" >&6; }
  2898. fi
  2899. test -n "$AWK" && break
  2900. done
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2902. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2903. set x ${MAKE-make}
  2904. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2905. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. cat >conftest.make <<\_ACEOF
  2909. SHELL = /bin/sh
  2910. all:
  2911. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2912. _ACEOF
  2913. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2914. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2915. *@@@%%%=?*=@@@%%%*)
  2916. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2917. *)
  2918. eval ac_cv_prog_make_${ac_make}_set=no;;
  2919. esac
  2920. rm -f conftest.make
  2921. fi
  2922. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2924. $as_echo "yes" >&6; }
  2925. SET_MAKE=
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2928. $as_echo "no" >&6; }
  2929. SET_MAKE="MAKE=${MAKE-make}"
  2930. fi
  2931. rm -rf .tst 2>/dev/null
  2932. mkdir .tst 2>/dev/null
  2933. if test -d .tst; then
  2934. am__leading_dot=.
  2935. else
  2936. am__leading_dot=_
  2937. fi
  2938. rmdir .tst 2>/dev/null
  2939. # Check whether --enable-silent-rules was given.
  2940. if test "${enable_silent_rules+set}" = set; then :
  2941. enableval=$enable_silent_rules;
  2942. fi
  2943. case $enable_silent_rules in # (((
  2944. yes) AM_DEFAULT_VERBOSITY=0;;
  2945. no) AM_DEFAULT_VERBOSITY=1;;
  2946. *) AM_DEFAULT_VERBOSITY=1;;
  2947. esac
  2948. am_make=${MAKE-make}
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2950. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2951. if ${am_cv_make_support_nested_variables+:} false; then :
  2952. $as_echo_n "(cached) " >&6
  2953. else
  2954. if $as_echo 'TRUE=$(BAR$(V))
  2955. BAR0=false
  2956. BAR1=true
  2957. V=1
  2958. am__doit:
  2959. @$(TRUE)
  2960. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2961. am_cv_make_support_nested_variables=yes
  2962. else
  2963. am_cv_make_support_nested_variables=no
  2964. fi
  2965. fi
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2967. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2968. if test $am_cv_make_support_nested_variables = yes; then
  2969. AM_V='$(V)'
  2970. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2971. else
  2972. AM_V=$AM_DEFAULT_VERBOSITY
  2973. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2974. fi
  2975. AM_BACKSLASH='\'
  2976. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2977. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2978. # is not polluted with repeated "-I."
  2979. am__isrc=' -I$(srcdir)'
  2980. # test to see if srcdir already configured
  2981. if test -f $srcdir/config.status; then
  2982. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2983. fi
  2984. fi
  2985. # test whether we have cygpath
  2986. if test -z "$CYGPATH_W"; then
  2987. if (cygpath --version) >/dev/null 2>/dev/null; then
  2988. CYGPATH_W='cygpath -w'
  2989. else
  2990. CYGPATH_W=echo
  2991. fi
  2992. fi
  2993. # Define the identity of the package.
  2994. PACKAGE='lighttpd'
  2995. VERSION='1.4.39'
  2996. cat >>confdefs.h <<_ACEOF
  2997. #define PACKAGE "$PACKAGE"
  2998. _ACEOF
  2999. cat >>confdefs.h <<_ACEOF
  3000. #define VERSION "$VERSION"
  3001. _ACEOF
  3002. # Some tools Automake needs.
  3003. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3004. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3005. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3006. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3007. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3008. # For better backward compatibility. To be removed once Automake 1.9.x
  3009. # dies out for good. For more background, see:
  3010. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3011. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3012. mkdir_p='$(MKDIR_P)'
  3013. # We need awk for the "check" target (and possibly the TAP driver). The
  3014. # system "awk" is bad on some platforms.
  3015. # Always define AMTAR for backward compatibility. Yes, it's still used
  3016. # in the wild :-( We should find a proper way to deprecate it ...
  3017. AMTAR='$${TAR-tar}'
  3018. # We'll loop over all known methods to create a tar archive until one works.
  3019. _am_tools='gnutar plaintar pax cpio none'
  3020. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  3021. # There is notably a 21 bits limit for the UID and the GID. In fact,
  3022. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  3023. # and bug#13588).
  3024. am_max_uid=2097151 # 2^21 - 1
  3025. am_max_gid=$am_max_uid
  3026. # The $UID and $GID variables are not portable, so we need to resort
  3027. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  3028. # below are definitely unexpected, so allow the users to see them
  3029. # (that is, avoid stderr redirection).
  3030. am_uid=`id -u || echo unknown`
  3031. am_gid=`id -g || echo unknown`
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  3033. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  3034. if test $am_uid -le $am_max_uid; then
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3036. $as_echo "yes" >&6; }
  3037. else
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3039. $as_echo "no" >&6; }
  3040. _am_tools=none
  3041. fi
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  3043. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  3044. if test $am_gid -le $am_max_gid; then
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3046. $as_echo "yes" >&6; }
  3047. else
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3049. $as_echo "no" >&6; }
  3050. _am_tools=none
  3051. fi
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  3053. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  3054. # Go ahead even if we have the value already cached. We do so because we
  3055. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3056. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3057. for _am_tool in $_am_tools; do
  3058. case $_am_tool in
  3059. gnutar)
  3060. for _am_tar in tar gnutar gtar; do
  3061. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3062. ($_am_tar --version) >&5 2>&5
  3063. ac_status=$?
  3064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3065. (exit $ac_status); } && break
  3066. done
  3067. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3068. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3069. am__untar="$_am_tar -xf -"
  3070. ;;
  3071. plaintar)
  3072. # Must skip GNU tar: if it does not support --format= it doesn't create
  3073. # ustar tarball either.
  3074. (tar --version) >/dev/null 2>&1 && continue
  3075. am__tar='tar chf - "$$tardir"'
  3076. am__tar_='tar chf - "$tardir"'
  3077. am__untar='tar xf -'
  3078. ;;
  3079. pax)
  3080. am__tar='pax -L -x ustar -w "$$tardir"'
  3081. am__tar_='pax -L -x ustar -w "$tardir"'
  3082. am__untar='pax -r'
  3083. ;;
  3084. cpio)
  3085. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3086. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3087. am__untar='cpio -i -H ustar -d'
  3088. ;;
  3089. none)
  3090. am__tar=false
  3091. am__tar_=false
  3092. am__untar=false
  3093. ;;
  3094. esac
  3095. # If the value was cached, stop now. We just wanted to have am__tar
  3096. # and am__untar set.
  3097. test -n "${am_cv_prog_tar_ustar}" && break
  3098. # tar/untar a dummy directory, and stop if the command works.
  3099. rm -rf conftest.dir
  3100. mkdir conftest.dir
  3101. echo GrepMe > conftest.dir/file
  3102. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3103. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3104. ac_status=$?
  3105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3106. (exit $ac_status); }
  3107. rm -rf conftest.dir
  3108. if test -s conftest.tar; then
  3109. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3110. ($am__untar <conftest.tar) >&5 2>&5
  3111. ac_status=$?
  3112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3113. (exit $ac_status); }
  3114. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3115. (cat conftest.dir/file) >&5 2>&5
  3116. ac_status=$?
  3117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3118. (exit $ac_status); }
  3119. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3120. fi
  3121. done
  3122. rm -rf conftest.dir
  3123. if ${am_cv_prog_tar_ustar+:} false; then :
  3124. $as_echo_n "(cached) " >&6
  3125. else
  3126. am_cv_prog_tar_ustar=$_am_tool
  3127. fi
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3129. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  3130. # POSIX will say in a future version that running "rm -f" with no argument
  3131. # is OK; and we want to be able to make that assumption in our Makefile
  3132. # recipes. So use an aggressive probe to check that the usage we want is
  3133. # actually supported "in the wild" to an acceptable degree.
  3134. # See automake bug#10828.
  3135. # To make any issue more visible, cause the running configure to be aborted
  3136. # by default if the 'rm' program in use doesn't match our expectations; the
  3137. # user can still override this though.
  3138. if rm -f && rm -fr && rm -rf; then : OK; else
  3139. cat >&2 <<'END'
  3140. Oops!
  3141. Your 'rm' program seems unable to run without file operands specified
  3142. on the command line, even when the '-f' option is present. This is contrary
  3143. to the behaviour of most rm programs out there, and not conforming with
  3144. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3145. Please tell bug-automake@gnu.org about your system, including the value
  3146. of your $PATH and any error possibly output before this message. This
  3147. can help us improve future automake versions.
  3148. END
  3149. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3150. echo 'Configuration will proceed anyway, since you have set the' >&2
  3151. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3152. echo >&2
  3153. else
  3154. cat >&2 <<'END'
  3155. Aborting the configuration process, to ensure you take notice of the issue.
  3156. You can download and install GNU coreutils to get an 'rm' implementation
  3157. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3158. If you want to complete the configuration process using your problematic
  3159. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3160. to "yes", and re-run configure.
  3161. END
  3162. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3163. fi
  3164. fi
  3165. # Check whether --enable-silent-rules was given.
  3166. if test "${enable_silent_rules+set}" = set; then :
  3167. enableval=$enable_silent_rules;
  3168. fi
  3169. case $enable_silent_rules in # (((
  3170. yes) AM_DEFAULT_VERBOSITY=0;;
  3171. no) AM_DEFAULT_VERBOSITY=1;;
  3172. *) AM_DEFAULT_VERBOSITY=1;;
  3173. esac
  3174. am_make=${MAKE-make}
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3176. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3177. if ${am_cv_make_support_nested_variables+:} false; then :
  3178. $as_echo_n "(cached) " >&6
  3179. else
  3180. if $as_echo 'TRUE=$(BAR$(V))
  3181. BAR0=false
  3182. BAR1=true
  3183. V=1
  3184. am__doit:
  3185. @$(TRUE)
  3186. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3187. am_cv_make_support_nested_variables=yes
  3188. else
  3189. am_cv_make_support_nested_variables=no
  3190. fi
  3191. fi
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3193. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3194. if test $am_cv_make_support_nested_variables = yes; then
  3195. AM_V='$(V)'
  3196. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3197. else
  3198. AM_V=$AM_DEFAULT_VERBOSITY
  3199. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3200. fi
  3201. AM_BACKSLASH='\'
  3202. ac_ext=c
  3203. ac_cpp='$CPP $CPPFLAGS'
  3204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3207. if test -n "$ac_tool_prefix"; then
  3208. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3209. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3211. $as_echo_n "checking for $ac_word... " >&6; }
  3212. if ${ac_cv_prog_CC+:} false; then :
  3213. $as_echo_n "(cached) " >&6
  3214. else
  3215. if test -n "$CC"; then
  3216. ac_cv_prog_CC="$CC" # Let the user override the test.
  3217. else
  3218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3219. for as_dir in $PATH
  3220. do
  3221. IFS=$as_save_IFS
  3222. test -z "$as_dir" && as_dir=.
  3223. for ac_exec_ext in '' $ac_executable_extensions; do
  3224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3225. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3227. break 2
  3228. fi
  3229. done
  3230. done
  3231. IFS=$as_save_IFS
  3232. fi
  3233. fi
  3234. CC=$ac_cv_prog_CC
  3235. if test -n "$CC"; then
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3237. $as_echo "$CC" >&6; }
  3238. else
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3240. $as_echo "no" >&6; }
  3241. fi
  3242. fi
  3243. if test -z "$ac_cv_prog_CC"; then
  3244. ac_ct_CC=$CC
  3245. # Extract the first word of "gcc", so it can be a program name with args.
  3246. set dummy gcc; ac_word=$2
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3248. $as_echo_n "checking for $ac_word... " >&6; }
  3249. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. if test -n "$ac_ct_CC"; then
  3253. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3254. else
  3255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3256. for as_dir in $PATH
  3257. do
  3258. IFS=$as_save_IFS
  3259. test -z "$as_dir" && as_dir=.
  3260. for ac_exec_ext in '' $ac_executable_extensions; do
  3261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3262. ac_cv_prog_ac_ct_CC="gcc"
  3263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3264. break 2
  3265. fi
  3266. done
  3267. done
  3268. IFS=$as_save_IFS
  3269. fi
  3270. fi
  3271. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3272. if test -n "$ac_ct_CC"; then
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3274. $as_echo "$ac_ct_CC" >&6; }
  3275. else
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3277. $as_echo "no" >&6; }
  3278. fi
  3279. if test "x$ac_ct_CC" = x; then
  3280. CC=""
  3281. else
  3282. case $cross_compiling:$ac_tool_warned in
  3283. yes:)
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3285. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3286. ac_tool_warned=yes ;;
  3287. esac
  3288. CC=$ac_ct_CC
  3289. fi
  3290. else
  3291. CC="$ac_cv_prog_CC"
  3292. fi
  3293. if test -z "$CC"; then
  3294. if test -n "$ac_tool_prefix"; then
  3295. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3296. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3298. $as_echo_n "checking for $ac_word... " >&6; }
  3299. if ${ac_cv_prog_CC+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. if test -n "$CC"; then
  3303. ac_cv_prog_CC="$CC" # Let the user override the test.
  3304. else
  3305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3306. for as_dir in $PATH
  3307. do
  3308. IFS=$as_save_IFS
  3309. test -z "$as_dir" && as_dir=.
  3310. for ac_exec_ext in '' $ac_executable_extensions; do
  3311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3312. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3314. break 2
  3315. fi
  3316. done
  3317. done
  3318. IFS=$as_save_IFS
  3319. fi
  3320. fi
  3321. CC=$ac_cv_prog_CC
  3322. if test -n "$CC"; then
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3324. $as_echo "$CC" >&6; }
  3325. else
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3327. $as_echo "no" >&6; }
  3328. fi
  3329. fi
  3330. fi
  3331. if test -z "$CC"; then
  3332. # Extract the first word of "cc", so it can be a program name with args.
  3333. set dummy cc; ac_word=$2
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3335. $as_echo_n "checking for $ac_word... " >&6; }
  3336. if ${ac_cv_prog_CC+:} false; then :
  3337. $as_echo_n "(cached) " >&6
  3338. else
  3339. if test -n "$CC"; then
  3340. ac_cv_prog_CC="$CC" # Let the user override the test.
  3341. else
  3342. ac_prog_rejected=no
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346. IFS=$as_save_IFS
  3347. test -z "$as_dir" && as_dir=.
  3348. for ac_exec_ext in '' $ac_executable_extensions; do
  3349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3350. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3351. ac_prog_rejected=yes
  3352. continue
  3353. fi
  3354. ac_cv_prog_CC="cc"
  3355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3356. break 2
  3357. fi
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. if test $ac_prog_rejected = yes; then
  3362. # We found a bogon in the path, so make sure we never use it.
  3363. set dummy $ac_cv_prog_CC
  3364. shift
  3365. if test $# != 0; then
  3366. # We chose a different compiler from the bogus one.
  3367. # However, it has the same basename, so the bogon will be chosen
  3368. # first if we set CC to just the basename; use the full file name.
  3369. shift
  3370. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3371. fi
  3372. fi
  3373. fi
  3374. fi
  3375. CC=$ac_cv_prog_CC
  3376. if test -n "$CC"; then
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3378. $as_echo "$CC" >&6; }
  3379. else
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3381. $as_echo "no" >&6; }
  3382. fi
  3383. fi
  3384. if test -z "$CC"; then
  3385. if test -n "$ac_tool_prefix"; then
  3386. for ac_prog in cl.exe
  3387. do
  3388. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3389. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3391. $as_echo_n "checking for $ac_word... " >&6; }
  3392. if ${ac_cv_prog_CC+:} false; then :
  3393. $as_echo_n "(cached) " >&6
  3394. else
  3395. if test -n "$CC"; then
  3396. ac_cv_prog_CC="$CC" # Let the user override the test.
  3397. else
  3398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3399. for as_dir in $PATH
  3400. do
  3401. IFS=$as_save_IFS
  3402. test -z "$as_dir" && as_dir=.
  3403. for ac_exec_ext in '' $ac_executable_extensions; do
  3404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3405. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3407. break 2
  3408. fi
  3409. done
  3410. done
  3411. IFS=$as_save_IFS
  3412. fi
  3413. fi
  3414. CC=$ac_cv_prog_CC
  3415. if test -n "$CC"; then
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3417. $as_echo "$CC" >&6; }
  3418. else
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3420. $as_echo "no" >&6; }
  3421. fi
  3422. test -n "$CC" && break
  3423. done
  3424. fi
  3425. if test -z "$CC"; then
  3426. ac_ct_CC=$CC
  3427. for ac_prog in cl.exe
  3428. do
  3429. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3430. set dummy $ac_prog; ac_word=$2
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3432. $as_echo_n "checking for $ac_word... " >&6; }
  3433. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. if test -n "$ac_ct_CC"; then
  3437. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3438. else
  3439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3440. for as_dir in $PATH
  3441. do
  3442. IFS=$as_save_IFS
  3443. test -z "$as_dir" && as_dir=.
  3444. for ac_exec_ext in '' $ac_executable_extensions; do
  3445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3446. ac_cv_prog_ac_ct_CC="$ac_prog"
  3447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3448. break 2
  3449. fi
  3450. done
  3451. done
  3452. IFS=$as_save_IFS
  3453. fi
  3454. fi
  3455. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3456. if test -n "$ac_ct_CC"; then
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3458. $as_echo "$ac_ct_CC" >&6; }
  3459. else
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3461. $as_echo "no" >&6; }
  3462. fi
  3463. test -n "$ac_ct_CC" && break
  3464. done
  3465. if test "x$ac_ct_CC" = x; then
  3466. CC=""
  3467. else
  3468. case $cross_compiling:$ac_tool_warned in
  3469. yes:)
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3471. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3472. ac_tool_warned=yes ;;
  3473. esac
  3474. CC=$ac_ct_CC
  3475. fi
  3476. fi
  3477. fi
  3478. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3480. as_fn_error $? "no acceptable C compiler found in \$PATH
  3481. See \`config.log' for more details" "$LINENO" 5; }
  3482. # Provide some information about the compiler.
  3483. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3484. set X $ac_compile
  3485. ac_compiler=$2
  3486. for ac_option in --version -v -V -qversion; do
  3487. { { ac_try="$ac_compiler $ac_option >&5"
  3488. case "(($ac_try" in
  3489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3490. *) ac_try_echo=$ac_try;;
  3491. esac
  3492. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3493. $as_echo "$ac_try_echo"; } >&5
  3494. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3495. ac_status=$?
  3496. if test -s conftest.err; then
  3497. sed '10a\
  3498. ... rest of stderr output deleted ...
  3499. 10q' conftest.err >conftest.er1
  3500. cat conftest.er1 >&5
  3501. fi
  3502. rm -f conftest.er1 conftest.err
  3503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3504. test $ac_status = 0; }
  3505. done
  3506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3507. /* end confdefs.h. */
  3508. int
  3509. main ()
  3510. {
  3511. ;
  3512. return 0;
  3513. }
  3514. _ACEOF
  3515. ac_clean_files_save=$ac_clean_files
  3516. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3517. # Try to create an executable without -o first, disregard a.out.
  3518. # It will help us diagnose broken compilers, and finding out an intuition
  3519. # of exeext.
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3521. $as_echo_n "checking whether the C compiler works... " >&6; }
  3522. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3523. # The possible output files:
  3524. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3525. ac_rmfiles=
  3526. for ac_file in $ac_files
  3527. do
  3528. case $ac_file in
  3529. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3530. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3531. esac
  3532. done
  3533. rm -f $ac_rmfiles
  3534. if { { ac_try="$ac_link_default"
  3535. case "(($ac_try" in
  3536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3537. *) ac_try_echo=$ac_try;;
  3538. esac
  3539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3540. $as_echo "$ac_try_echo"; } >&5
  3541. (eval "$ac_link_default") 2>&5
  3542. ac_status=$?
  3543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3544. test $ac_status = 0; }; then :
  3545. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3546. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3547. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3548. # so that the user can short-circuit this test for compilers unknown to
  3549. # Autoconf.
  3550. for ac_file in $ac_files ''
  3551. do
  3552. test -f "$ac_file" || continue
  3553. case $ac_file in
  3554. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3555. ;;
  3556. [ab].out )
  3557. # We found the default executable, but exeext='' is most
  3558. # certainly right.
  3559. break;;
  3560. *.* )
  3561. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3562. then :; else
  3563. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3564. fi
  3565. # We set ac_cv_exeext here because the later test for it is not
  3566. # safe: cross compilers may not add the suffix if given an `-o'
  3567. # argument, so we may need to know it at that point already.
  3568. # Even if this section looks crufty: it has the advantage of
  3569. # actually working.
  3570. break;;
  3571. * )
  3572. break;;
  3573. esac
  3574. done
  3575. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3576. else
  3577. ac_file=''
  3578. fi
  3579. if test -z "$ac_file"; then :
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3581. $as_echo "no" >&6; }
  3582. $as_echo "$as_me: failed program was:" >&5
  3583. sed 's/^/| /' conftest.$ac_ext >&5
  3584. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3585. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3586. as_fn_error 77 "C compiler cannot create executables
  3587. See \`config.log' for more details" "$LINENO" 5; }
  3588. else
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3590. $as_echo "yes" >&6; }
  3591. fi
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3593. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3595. $as_echo "$ac_file" >&6; }
  3596. ac_exeext=$ac_cv_exeext
  3597. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3598. ac_clean_files=$ac_clean_files_save
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3600. $as_echo_n "checking for suffix of executables... " >&6; }
  3601. if { { ac_try="$ac_link"
  3602. case "(($ac_try" in
  3603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3604. *) ac_try_echo=$ac_try;;
  3605. esac
  3606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3607. $as_echo "$ac_try_echo"; } >&5
  3608. (eval "$ac_link") 2>&5
  3609. ac_status=$?
  3610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3611. test $ac_status = 0; }; then :
  3612. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3613. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3614. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3615. # `rm'.
  3616. for ac_file in conftest.exe conftest conftest.*; do
  3617. test -f "$ac_file" || continue
  3618. case $ac_file in
  3619. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3620. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3621. break;;
  3622. * ) break;;
  3623. esac
  3624. done
  3625. else
  3626. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3627. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3628. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3629. See \`config.log' for more details" "$LINENO" 5; }
  3630. fi
  3631. rm -f conftest conftest$ac_cv_exeext
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3633. $as_echo "$ac_cv_exeext" >&6; }
  3634. rm -f conftest.$ac_ext
  3635. EXEEXT=$ac_cv_exeext
  3636. ac_exeext=$EXEEXT
  3637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3638. /* end confdefs.h. */
  3639. #include <stdio.h>
  3640. int
  3641. main ()
  3642. {
  3643. FILE *f = fopen ("conftest.out", "w");
  3644. return ferror (f) || fclose (f) != 0;
  3645. ;
  3646. return 0;
  3647. }
  3648. _ACEOF
  3649. ac_clean_files="$ac_clean_files conftest.out"
  3650. # Check that the compiler produces executables we can run. If not, either
  3651. # the compiler is broken, or we cross compile.
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3653. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3654. if test "$cross_compiling" != yes; then
  3655. { { ac_try="$ac_link"
  3656. case "(($ac_try" in
  3657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3658. *) ac_try_echo=$ac_try;;
  3659. esac
  3660. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3661. $as_echo "$ac_try_echo"; } >&5
  3662. (eval "$ac_link") 2>&5
  3663. ac_status=$?
  3664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3665. test $ac_status = 0; }
  3666. if { ac_try='./conftest$ac_cv_exeext'
  3667. { { case "(($ac_try" in
  3668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3669. *) ac_try_echo=$ac_try;;
  3670. esac
  3671. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3672. $as_echo "$ac_try_echo"; } >&5
  3673. (eval "$ac_try") 2>&5
  3674. ac_status=$?
  3675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3676. test $ac_status = 0; }; }; then
  3677. cross_compiling=no
  3678. else
  3679. if test "$cross_compiling" = maybe; then
  3680. cross_compiling=yes
  3681. else
  3682. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3683. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3684. as_fn_error $? "cannot run C compiled programs.
  3685. If you meant to cross compile, use \`--host'.
  3686. See \`config.log' for more details" "$LINENO" 5; }
  3687. fi
  3688. fi
  3689. fi
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3691. $as_echo "$cross_compiling" >&6; }
  3692. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3693. ac_clean_files=$ac_clean_files_save
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3695. $as_echo_n "checking for suffix of object files... " >&6; }
  3696. if ${ac_cv_objext+:} false; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3700. /* end confdefs.h. */
  3701. int
  3702. main ()
  3703. {
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. rm -f conftest.o conftest.obj
  3709. if { { ac_try="$ac_compile"
  3710. case "(($ac_try" in
  3711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3712. *) ac_try_echo=$ac_try;;
  3713. esac
  3714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3715. $as_echo "$ac_try_echo"; } >&5
  3716. (eval "$ac_compile") 2>&5
  3717. ac_status=$?
  3718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3719. test $ac_status = 0; }; then :
  3720. for ac_file in conftest.o conftest.obj conftest.*; do
  3721. test -f "$ac_file" || continue;
  3722. case $ac_file in
  3723. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3724. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3725. break;;
  3726. esac
  3727. done
  3728. else
  3729. $as_echo "$as_me: failed program was:" >&5
  3730. sed 's/^/| /' conftest.$ac_ext >&5
  3731. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3732. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3733. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3734. See \`config.log' for more details" "$LINENO" 5; }
  3735. fi
  3736. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3737. fi
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3739. $as_echo "$ac_cv_objext" >&6; }
  3740. OBJEXT=$ac_cv_objext
  3741. ac_objext=$OBJEXT
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3743. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3744. if ${ac_cv_c_compiler_gnu+:} false; then :
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3748. /* end confdefs.h. */
  3749. int
  3750. main ()
  3751. {
  3752. #ifndef __GNUC__
  3753. choke me
  3754. #endif
  3755. ;
  3756. return 0;
  3757. }
  3758. _ACEOF
  3759. if ac_fn_c_try_compile "$LINENO"; then :
  3760. ac_compiler_gnu=yes
  3761. else
  3762. ac_compiler_gnu=no
  3763. fi
  3764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3765. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3766. fi
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3768. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3769. if test $ac_compiler_gnu = yes; then
  3770. GCC=yes
  3771. else
  3772. GCC=
  3773. fi
  3774. ac_test_CFLAGS=${CFLAGS+set}
  3775. ac_save_CFLAGS=$CFLAGS
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3777. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3778. if ${ac_cv_prog_cc_g+:} false; then :
  3779. $as_echo_n "(cached) " >&6
  3780. else
  3781. ac_save_c_werror_flag=$ac_c_werror_flag
  3782. ac_c_werror_flag=yes
  3783. ac_cv_prog_cc_g=no
  3784. CFLAGS="-g"
  3785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3786. /* end confdefs.h. */
  3787. int
  3788. main ()
  3789. {
  3790. ;
  3791. return 0;
  3792. }
  3793. _ACEOF
  3794. if ac_fn_c_try_compile "$LINENO"; then :
  3795. ac_cv_prog_cc_g=yes
  3796. else
  3797. CFLAGS=""
  3798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3799. /* end confdefs.h. */
  3800. int
  3801. main ()
  3802. {
  3803. ;
  3804. return 0;
  3805. }
  3806. _ACEOF
  3807. if ac_fn_c_try_compile "$LINENO"; then :
  3808. else
  3809. ac_c_werror_flag=$ac_save_c_werror_flag
  3810. CFLAGS="-g"
  3811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3812. /* end confdefs.h. */
  3813. int
  3814. main ()
  3815. {
  3816. ;
  3817. return 0;
  3818. }
  3819. _ACEOF
  3820. if ac_fn_c_try_compile "$LINENO"; then :
  3821. ac_cv_prog_cc_g=yes
  3822. fi
  3823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3824. fi
  3825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3826. fi
  3827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3828. ac_c_werror_flag=$ac_save_c_werror_flag
  3829. fi
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3831. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3832. if test "$ac_test_CFLAGS" = set; then
  3833. CFLAGS=$ac_save_CFLAGS
  3834. elif test $ac_cv_prog_cc_g = yes; then
  3835. if test "$GCC" = yes; then
  3836. CFLAGS="-g -O2"
  3837. else
  3838. CFLAGS="-g"
  3839. fi
  3840. else
  3841. if test "$GCC" = yes; then
  3842. CFLAGS="-O2"
  3843. else
  3844. CFLAGS=
  3845. fi
  3846. fi
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3848. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3849. if ${ac_cv_prog_cc_c89+:} false; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. ac_cv_prog_cc_c89=no
  3853. ac_save_CC=$CC
  3854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3855. /* end confdefs.h. */
  3856. #include <stdarg.h>
  3857. #include <stdio.h>
  3858. struct stat;
  3859. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3860. struct buf { int x; };
  3861. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3862. static char *e (p, i)
  3863. char **p;
  3864. int i;
  3865. {
  3866. return p[i];
  3867. }
  3868. static char *f (char * (*g) (char **, int), char **p, ...)
  3869. {
  3870. char *s;
  3871. va_list v;
  3872. va_start (v,p);
  3873. s = g (p, va_arg (v,int));
  3874. va_end (v);
  3875. return s;
  3876. }
  3877. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3878. function prototypes and stuff, but not '\xHH' hex character constants.
  3879. These don't provoke an error unfortunately, instead are silently treated
  3880. as 'x'. The following induces an error, until -std is added to get
  3881. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3882. array size at least. It's necessary to write '\x00'==0 to get something
  3883. that's true only with -std. */
  3884. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3885. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3886. inside strings and character constants. */
  3887. #define FOO(x) 'x'
  3888. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3889. int test (int i, double x);
  3890. struct s1 {int (*f) (int a);};
  3891. struct s2 {int (*f) (double a);};
  3892. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3893. int argc;
  3894. char **argv;
  3895. int
  3896. main ()
  3897. {
  3898. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3899. ;
  3900. return 0;
  3901. }
  3902. _ACEOF
  3903. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3904. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3905. do
  3906. CC="$ac_save_CC $ac_arg"
  3907. if ac_fn_c_try_compile "$LINENO"; then :
  3908. ac_cv_prog_cc_c89=$ac_arg
  3909. fi
  3910. rm -f core conftest.err conftest.$ac_objext
  3911. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3912. done
  3913. rm -f conftest.$ac_ext
  3914. CC=$ac_save_CC
  3915. fi
  3916. # AC_CACHE_VAL
  3917. case "x$ac_cv_prog_cc_c89" in
  3918. x)
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3920. $as_echo "none needed" >&6; } ;;
  3921. xno)
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3923. $as_echo "unsupported" >&6; } ;;
  3924. *)
  3925. CC="$CC $ac_cv_prog_cc_c89"
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3927. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3928. esac
  3929. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3930. fi
  3931. ac_ext=c
  3932. ac_cpp='$CPP $CPPFLAGS'
  3933. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3934. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3935. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3936. ac_ext=c
  3937. ac_cpp='$CPP $CPPFLAGS'
  3938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3942. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3943. if ${am_cv_prog_cc_c_o+:} false; then :
  3944. $as_echo_n "(cached) " >&6
  3945. else
  3946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3947. /* end confdefs.h. */
  3948. int
  3949. main ()
  3950. {
  3951. ;
  3952. return 0;
  3953. }
  3954. _ACEOF
  3955. # Make sure it works both with $CC and with simple cc.
  3956. # Following AC_PROG_CC_C_O, we do the test twice because some
  3957. # compilers refuse to overwrite an existing .o file with -o,
  3958. # though they will create one.
  3959. am_cv_prog_cc_c_o=yes
  3960. for am_i in 1 2; do
  3961. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3962. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3963. ac_status=$?
  3964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3965. (exit $ac_status); } \
  3966. && test -f conftest2.$ac_objext; then
  3967. : OK
  3968. else
  3969. am_cv_prog_cc_c_o=no
  3970. break
  3971. fi
  3972. done
  3973. rm -f core conftest*
  3974. unset am_i
  3975. fi
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3977. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3978. if test "$am_cv_prog_cc_c_o" != yes; then
  3979. # Losing compiler, so override with the script.
  3980. # FIXME: It is wrong to rewrite CC.
  3981. # But if we don't then we get into trouble of one sort or another.
  3982. # A longer-term fix would be to have automake use am__CC in this case,
  3983. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3984. CC="$am_aux_dir/compile $CC"
  3985. fi
  3986. ac_ext=c
  3987. ac_cpp='$CPP $CPPFLAGS'
  3988. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3989. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3990. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3991. DEPDIR="${am__leading_dot}deps"
  3992. ac_config_commands="$ac_config_commands depfiles"
  3993. am_make=${MAKE-make}
  3994. cat > confinc << 'END'
  3995. am__doit:
  3996. @echo this is the am__doit target
  3997. .PHONY: am__doit
  3998. END
  3999. # If we don't find an include directive, just comment out the code.
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4001. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4002. am__include="#"
  4003. am__quote=
  4004. _am_result=none
  4005. # First try GNU make style include.
  4006. echo "include confinc" > confmf
  4007. # Ignore all kinds of additional output from 'make'.
  4008. case `$am_make -s -f confmf 2> /dev/null` in #(
  4009. *the\ am__doit\ target*)
  4010. am__include=include
  4011. am__quote=
  4012. _am_result=GNU
  4013. ;;
  4014. esac
  4015. # Now try BSD make style include.
  4016. if test "$am__include" = "#"; then
  4017. echo '.include "confinc"' > confmf
  4018. case `$am_make -s -f confmf 2> /dev/null` in #(
  4019. *the\ am__doit\ target*)
  4020. am__include=.include
  4021. am__quote="\""
  4022. _am_result=BSD
  4023. ;;
  4024. esac
  4025. fi
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4027. $as_echo "$_am_result" >&6; }
  4028. rm -f confinc confmf
  4029. # Check whether --enable-dependency-tracking was given.
  4030. if test "${enable_dependency_tracking+set}" = set; then :
  4031. enableval=$enable_dependency_tracking;
  4032. fi
  4033. if test "x$enable_dependency_tracking" != xno; then
  4034. am_depcomp="$ac_aux_dir/depcomp"
  4035. AMDEPBACKSLASH='\'
  4036. am__nodep='_no'
  4037. fi
  4038. if test "x$enable_dependency_tracking" != xno; then
  4039. AMDEP_TRUE=
  4040. AMDEP_FALSE='#'
  4041. else
  4042. AMDEP_TRUE='#'
  4043. AMDEP_FALSE=
  4044. fi
  4045. depcc="$CC" am_compiler_list=
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4047. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4048. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4049. $as_echo_n "(cached) " >&6
  4050. else
  4051. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4052. # We make a subdir and do the tests there. Otherwise we can end up
  4053. # making bogus files that we don't know about and never remove. For
  4054. # instance it was reported that on HP-UX the gcc test will end up
  4055. # making a dummy file named 'D' -- because '-MD' means "put the output
  4056. # in D".
  4057. rm -rf conftest.dir
  4058. mkdir conftest.dir
  4059. # Copy depcomp to subdir because otherwise we won't find it if we're
  4060. # using a relative directory.
  4061. cp "$am_depcomp" conftest.dir
  4062. cd conftest.dir
  4063. # We will build objects and dependencies in a subdirectory because
  4064. # it helps to detect inapplicable dependency modes. For instance
  4065. # both Tru64's cc and ICC support -MD to output dependencies as a
  4066. # side effect of compilation, but ICC will put the dependencies in
  4067. # the current directory while Tru64 will put them in the object
  4068. # directory.
  4069. mkdir sub
  4070. am_cv_CC_dependencies_compiler_type=none
  4071. if test "$am_compiler_list" = ""; then
  4072. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4073. fi
  4074. am__universal=false
  4075. case " $depcc " in #(
  4076. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4077. esac
  4078. for depmode in $am_compiler_list; do
  4079. # Setup a source with many dependencies, because some compilers
  4080. # like to wrap large dependency lists on column 80 (with \), and
  4081. # we should not choose a depcomp mode which is confused by this.
  4082. #
  4083. # We need to recreate these files for each test, as the compiler may
  4084. # overwrite some of them when testing with obscure command lines.
  4085. # This happens at least with the AIX C compiler.
  4086. : > sub/conftest.c
  4087. for i in 1 2 3 4 5 6; do
  4088. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4089. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4090. # Solaris 10 /bin/sh.
  4091. echo '/* dummy */' > sub/conftst$i.h
  4092. done
  4093. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4094. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4095. # mode. It turns out that the SunPro C++ compiler does not properly
  4096. # handle '-M -o', and we need to detect this. Also, some Intel
  4097. # versions had trouble with output in subdirs.
  4098. am__obj=sub/conftest.${OBJEXT-o}
  4099. am__minus_obj="-o $am__obj"
  4100. case $depmode in
  4101. gcc)
  4102. # This depmode causes a compiler race in universal mode.
  4103. test "$am__universal" = false || continue
  4104. ;;
  4105. nosideeffect)
  4106. # After this tag, mechanisms are not by side-effect, so they'll
  4107. # only be used when explicitly requested.
  4108. if test "x$enable_dependency_tracking" = xyes; then
  4109. continue
  4110. else
  4111. break
  4112. fi
  4113. ;;
  4114. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4115. # This compiler won't grok '-c -o', but also, the minuso test has
  4116. # not run yet. These depmodes are late enough in the game, and
  4117. # so weak that their functioning should not be impacted.
  4118. am__obj=conftest.${OBJEXT-o}
  4119. am__minus_obj=
  4120. ;;
  4121. none) break ;;
  4122. esac
  4123. if depmode=$depmode \
  4124. source=sub/conftest.c object=$am__obj \
  4125. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4126. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4127. >/dev/null 2>conftest.err &&
  4128. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4129. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4130. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4131. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4132. # icc doesn't choke on unknown options, it will just issue warnings
  4133. # or remarks (even with -Werror). So we grep stderr for any message
  4134. # that says an option was ignored or not supported.
  4135. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4136. # icc: Command line warning: ignoring option '-M'; no argument required
  4137. # The diagnosis changed in icc 8.0:
  4138. # icc: Command line remark: option '-MP' not supported
  4139. if (grep 'ignoring option' conftest.err ||
  4140. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4141. am_cv_CC_dependencies_compiler_type=$depmode
  4142. break
  4143. fi
  4144. fi
  4145. done
  4146. cd ..
  4147. rm -rf conftest.dir
  4148. else
  4149. am_cv_CC_dependencies_compiler_type=none
  4150. fi
  4151. fi
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4153. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4154. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4155. if
  4156. test "x$enable_dependency_tracking" != xno \
  4157. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4158. am__fastdepCC_TRUE=
  4159. am__fastdepCC_FALSE='#'
  4160. else
  4161. am__fastdepCC_TRUE='#'
  4162. am__fastdepCC_FALSE=
  4163. fi
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4165. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4166. if ${ac_cv_path_SED+:} false; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4170. for ac_i in 1 2 3 4 5 6 7; do
  4171. ac_script="$ac_script$as_nl$ac_script"
  4172. done
  4173. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4174. { ac_script=; unset ac_script;}
  4175. if test -z "$SED"; then
  4176. ac_path_SED_found=false
  4177. # Loop through the user's path and test for each of PROGNAME-LIST
  4178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4179. for as_dir in $PATH
  4180. do
  4181. IFS=$as_save_IFS
  4182. test -z "$as_dir" && as_dir=.
  4183. for ac_prog in sed gsed; do
  4184. for ac_exec_ext in '' $ac_executable_extensions; do
  4185. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4186. as_fn_executable_p "$ac_path_SED" || continue
  4187. # Check for GNU ac_path_SED and select it if it is found.
  4188. # Check for GNU $ac_path_SED
  4189. case `"$ac_path_SED" --version 2>&1` in
  4190. *GNU*)
  4191. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4192. *)
  4193. ac_count=0
  4194. $as_echo_n 0123456789 >"conftest.in"
  4195. while :
  4196. do
  4197. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4198. mv "conftest.tmp" "conftest.in"
  4199. cp "conftest.in" "conftest.nl"
  4200. $as_echo '' >> "conftest.nl"
  4201. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4202. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4203. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4204. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4205. # Best one so far, save it but keep looking for a better one
  4206. ac_cv_path_SED="$ac_path_SED"
  4207. ac_path_SED_max=$ac_count
  4208. fi
  4209. # 10*(2^10) chars as input seems more than enough
  4210. test $ac_count -gt 10 && break
  4211. done
  4212. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4213. esac
  4214. $ac_path_SED_found && break 3
  4215. done
  4216. done
  4217. done
  4218. IFS=$as_save_IFS
  4219. if test -z "$ac_cv_path_SED"; then
  4220. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4221. fi
  4222. else
  4223. ac_cv_path_SED=$SED
  4224. fi
  4225. fi
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4227. $as_echo "$ac_cv_path_SED" >&6; }
  4228. SED="$ac_cv_path_SED"
  4229. rm -f conftest.sed
  4230. test -z "$SED" && SED=sed
  4231. Xsed="$SED -e 1s/^X//"
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4233. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4234. if ${ac_cv_path_GREP+:} false; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. if test -z "$GREP"; then
  4238. ac_path_GREP_found=false
  4239. # Loop through the user's path and test for each of PROGNAME-LIST
  4240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4241. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4242. do
  4243. IFS=$as_save_IFS
  4244. test -z "$as_dir" && as_dir=.
  4245. for ac_prog in grep ggrep; do
  4246. for ac_exec_ext in '' $ac_executable_extensions; do
  4247. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4248. as_fn_executable_p "$ac_path_GREP" || continue
  4249. # Check for GNU ac_path_GREP and select it if it is found.
  4250. # Check for GNU $ac_path_GREP
  4251. case `"$ac_path_GREP" --version 2>&1` in
  4252. *GNU*)
  4253. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4254. *)
  4255. ac_count=0
  4256. $as_echo_n 0123456789 >"conftest.in"
  4257. while :
  4258. do
  4259. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4260. mv "conftest.tmp" "conftest.in"
  4261. cp "conftest.in" "conftest.nl"
  4262. $as_echo 'GREP' >> "conftest.nl"
  4263. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4264. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4265. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4266. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4267. # Best one so far, save it but keep looking for a better one
  4268. ac_cv_path_GREP="$ac_path_GREP"
  4269. ac_path_GREP_max=$ac_count
  4270. fi
  4271. # 10*(2^10) chars as input seems more than enough
  4272. test $ac_count -gt 10 && break
  4273. done
  4274. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4275. esac
  4276. $ac_path_GREP_found && break 3
  4277. done
  4278. done
  4279. done
  4280. IFS=$as_save_IFS
  4281. if test -z "$ac_cv_path_GREP"; then
  4282. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4283. fi
  4284. else
  4285. ac_cv_path_GREP=$GREP
  4286. fi
  4287. fi
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4289. $as_echo "$ac_cv_path_GREP" >&6; }
  4290. GREP="$ac_cv_path_GREP"
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4292. $as_echo_n "checking for egrep... " >&6; }
  4293. if ${ac_cv_path_EGREP+:} false; then :
  4294. $as_echo_n "(cached) " >&6
  4295. else
  4296. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4297. then ac_cv_path_EGREP="$GREP -E"
  4298. else
  4299. if test -z "$EGREP"; then
  4300. ac_path_EGREP_found=false
  4301. # Loop through the user's path and test for each of PROGNAME-LIST
  4302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4303. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4304. do
  4305. IFS=$as_save_IFS
  4306. test -z "$as_dir" && as_dir=.
  4307. for ac_prog in egrep; do
  4308. for ac_exec_ext in '' $ac_executable_extensions; do
  4309. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4310. as_fn_executable_p "$ac_path_EGREP" || continue
  4311. # Check for GNU ac_path_EGREP and select it if it is found.
  4312. # Check for GNU $ac_path_EGREP
  4313. case `"$ac_path_EGREP" --version 2>&1` in
  4314. *GNU*)
  4315. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4316. *)
  4317. ac_count=0
  4318. $as_echo_n 0123456789 >"conftest.in"
  4319. while :
  4320. do
  4321. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4322. mv "conftest.tmp" "conftest.in"
  4323. cp "conftest.in" "conftest.nl"
  4324. $as_echo 'EGREP' >> "conftest.nl"
  4325. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4326. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4327. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4328. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4329. # Best one so far, save it but keep looking for a better one
  4330. ac_cv_path_EGREP="$ac_path_EGREP"
  4331. ac_path_EGREP_max=$ac_count
  4332. fi
  4333. # 10*(2^10) chars as input seems more than enough
  4334. test $ac_count -gt 10 && break
  4335. done
  4336. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4337. esac
  4338. $ac_path_EGREP_found && break 3
  4339. done
  4340. done
  4341. done
  4342. IFS=$as_save_IFS
  4343. if test -z "$ac_cv_path_EGREP"; then
  4344. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4345. fi
  4346. else
  4347. ac_cv_path_EGREP=$EGREP
  4348. fi
  4349. fi
  4350. fi
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4352. $as_echo "$ac_cv_path_EGREP" >&6; }
  4353. EGREP="$ac_cv_path_EGREP"
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4355. $as_echo_n "checking for fgrep... " >&6; }
  4356. if ${ac_cv_path_FGREP+:} false; then :
  4357. $as_echo_n "(cached) " >&6
  4358. else
  4359. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4360. then ac_cv_path_FGREP="$GREP -F"
  4361. else
  4362. if test -z "$FGREP"; then
  4363. ac_path_FGREP_found=false
  4364. # Loop through the user's path and test for each of PROGNAME-LIST
  4365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4366. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4367. do
  4368. IFS=$as_save_IFS
  4369. test -z "$as_dir" && as_dir=.
  4370. for ac_prog in fgrep; do
  4371. for ac_exec_ext in '' $ac_executable_extensions; do
  4372. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4373. as_fn_executable_p "$ac_path_FGREP" || continue
  4374. # Check for GNU ac_path_FGREP and select it if it is found.
  4375. # Check for GNU $ac_path_FGREP
  4376. case `"$ac_path_FGREP" --version 2>&1` in
  4377. *GNU*)
  4378. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4379. *)
  4380. ac_count=0
  4381. $as_echo_n 0123456789 >"conftest.in"
  4382. while :
  4383. do
  4384. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4385. mv "conftest.tmp" "conftest.in"
  4386. cp "conftest.in" "conftest.nl"
  4387. $as_echo 'FGREP' >> "conftest.nl"
  4388. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4389. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4390. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4391. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4392. # Best one so far, save it but keep looking for a better one
  4393. ac_cv_path_FGREP="$ac_path_FGREP"
  4394. ac_path_FGREP_max=$ac_count
  4395. fi
  4396. # 10*(2^10) chars as input seems more than enough
  4397. test $ac_count -gt 10 && break
  4398. done
  4399. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4400. esac
  4401. $ac_path_FGREP_found && break 3
  4402. done
  4403. done
  4404. done
  4405. IFS=$as_save_IFS
  4406. if test -z "$ac_cv_path_FGREP"; then
  4407. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4408. fi
  4409. else
  4410. ac_cv_path_FGREP=$FGREP
  4411. fi
  4412. fi
  4413. fi
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4415. $as_echo "$ac_cv_path_FGREP" >&6; }
  4416. FGREP="$ac_cv_path_FGREP"
  4417. test -z "$GREP" && GREP=grep
  4418. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4419. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4420. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4422. $as_echo_n "checking how to print strings... " >&6; }
  4423. # Test print first, because it will be a builtin if present.
  4424. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4425. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4426. ECHO='print -r --'
  4427. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4428. ECHO='printf %s\n'
  4429. else
  4430. # Use this function as a fallback that always works.
  4431. func_fallback_echo ()
  4432. {
  4433. eval 'cat <<_LTECHO_EOF
  4434. $1
  4435. _LTECHO_EOF'
  4436. }
  4437. ECHO='func_fallback_echo'
  4438. fi
  4439. # func_echo_all arg...
  4440. # Invoke $ECHO with all args, space-separated.
  4441. func_echo_all ()
  4442. {
  4443. $ECHO ""
  4444. }
  4445. case "$ECHO" in
  4446. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4447. $as_echo "printf" >&6; } ;;
  4448. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4449. $as_echo "print -r" >&6; } ;;
  4450. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4451. $as_echo "cat" >&6; } ;;
  4452. esac
  4453. # Check whether --with-gnu-ld was given.
  4454. if test "${with_gnu_ld+set}" = set; then :
  4455. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4456. else
  4457. with_gnu_ld=no
  4458. fi
  4459. ac_prog=ld
  4460. if test "$GCC" = yes; then
  4461. # Check if gcc -print-prog-name=ld gives a path.
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4463. $as_echo_n "checking for ld used by $CC... " >&6; }
  4464. case $host in
  4465. *-*-mingw*)
  4466. # gcc leaves a trailing carriage return which upsets mingw
  4467. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4468. *)
  4469. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4470. esac
  4471. case $ac_prog in
  4472. # Accept absolute paths.
  4473. [\\/]* | ?:[\\/]*)
  4474. re_direlt='/[^/][^/]*/\.\./'
  4475. # Canonicalize the pathname of ld
  4476. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4477. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4478. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4479. done
  4480. test -z "$LD" && LD="$ac_prog"
  4481. ;;
  4482. "")
  4483. # If it fails, then pretend we aren't using GCC.
  4484. ac_prog=ld
  4485. ;;
  4486. *)
  4487. # If it is relative, then search for the first ld in PATH.
  4488. with_gnu_ld=unknown
  4489. ;;
  4490. esac
  4491. elif test "$with_gnu_ld" = yes; then
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4493. $as_echo_n "checking for GNU ld... " >&6; }
  4494. else
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4496. $as_echo_n "checking for non-GNU ld... " >&6; }
  4497. fi
  4498. if ${lt_cv_path_LD+:} false; then :
  4499. $as_echo_n "(cached) " >&6
  4500. else
  4501. if test -z "$LD"; then
  4502. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4503. for ac_dir in $PATH; do
  4504. IFS="$lt_save_ifs"
  4505. test -z "$ac_dir" && ac_dir=.
  4506. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4507. lt_cv_path_LD="$ac_dir/$ac_prog"
  4508. # Check to see if the program is GNU ld. I'd rather use --version,
  4509. # but apparently some variants of GNU ld only accept -v.
  4510. # Break only if it was the GNU/non-GNU ld that we prefer.
  4511. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4512. *GNU* | *'with BFD'*)
  4513. test "$with_gnu_ld" != no && break
  4514. ;;
  4515. *)
  4516. test "$with_gnu_ld" != yes && break
  4517. ;;
  4518. esac
  4519. fi
  4520. done
  4521. IFS="$lt_save_ifs"
  4522. else
  4523. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4524. fi
  4525. fi
  4526. LD="$lt_cv_path_LD"
  4527. if test -n "$LD"; then
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4529. $as_echo "$LD" >&6; }
  4530. else
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4532. $as_echo "no" >&6; }
  4533. fi
  4534. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4536. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4537. if ${lt_cv_prog_gnu_ld+:} false; then :
  4538. $as_echo_n "(cached) " >&6
  4539. else
  4540. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4541. case `$LD -v 2>&1 </dev/null` in
  4542. *GNU* | *'with BFD'*)
  4543. lt_cv_prog_gnu_ld=yes
  4544. ;;
  4545. *)
  4546. lt_cv_prog_gnu_ld=no
  4547. ;;
  4548. esac
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4551. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4552. with_gnu_ld=$lt_cv_prog_gnu_ld
  4553. for ac_prog in gawk mawk nawk awk
  4554. do
  4555. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4556. set dummy $ac_prog; ac_word=$2
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4558. $as_echo_n "checking for $ac_word... " >&6; }
  4559. if ${ac_cv_prog_AWK+:} false; then :
  4560. $as_echo_n "(cached) " >&6
  4561. else
  4562. if test -n "$AWK"; then
  4563. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4564. else
  4565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4566. for as_dir in $PATH
  4567. do
  4568. IFS=$as_save_IFS
  4569. test -z "$as_dir" && as_dir=.
  4570. for ac_exec_ext in '' $ac_executable_extensions; do
  4571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4572. ac_cv_prog_AWK="$ac_prog"
  4573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4574. break 2
  4575. fi
  4576. done
  4577. done
  4578. IFS=$as_save_IFS
  4579. fi
  4580. fi
  4581. AWK=$ac_cv_prog_AWK
  4582. if test -n "$AWK"; then
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4584. $as_echo "$AWK" >&6; }
  4585. else
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4587. $as_echo "no" >&6; }
  4588. fi
  4589. test -n "$AWK" && break
  4590. done
  4591. ac_ext=c
  4592. ac_cpp='$CPP $CPPFLAGS'
  4593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4597. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4598. # On Suns, sometimes $CPP names a directory.
  4599. if test -n "$CPP" && test -d "$CPP"; then
  4600. CPP=
  4601. fi
  4602. if test -z "$CPP"; then
  4603. if ${ac_cv_prog_CPP+:} false; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. # Double quotes because CPP needs to be expanded
  4607. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4608. do
  4609. ac_preproc_ok=false
  4610. for ac_c_preproc_warn_flag in '' yes
  4611. do
  4612. # Use a header file that comes with gcc, so configuring glibc
  4613. # with a fresh cross-compiler works.
  4614. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4615. # <limits.h> exists even on freestanding compilers.
  4616. # On the NeXT, cc -E runs the code through the compiler's parser,
  4617. # not just through cpp. "Syntax error" is here to catch this case.
  4618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4619. /* end confdefs.h. */
  4620. #ifdef __STDC__
  4621. # include <limits.h>
  4622. #else
  4623. # include <assert.h>
  4624. #endif
  4625. Syntax error
  4626. _ACEOF
  4627. if ac_fn_c_try_cpp "$LINENO"; then :
  4628. else
  4629. # Broken: fails on valid input.
  4630. continue
  4631. fi
  4632. rm -f conftest.err conftest.i conftest.$ac_ext
  4633. # OK, works on sane cases. Now check whether nonexistent headers
  4634. # can be detected and how.
  4635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4636. /* end confdefs.h. */
  4637. #include <ac_nonexistent.h>
  4638. _ACEOF
  4639. if ac_fn_c_try_cpp "$LINENO"; then :
  4640. # Broken: success on invalid input.
  4641. continue
  4642. else
  4643. # Passes both tests.
  4644. ac_preproc_ok=:
  4645. break
  4646. fi
  4647. rm -f conftest.err conftest.i conftest.$ac_ext
  4648. done
  4649. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4650. rm -f conftest.i conftest.err conftest.$ac_ext
  4651. if $ac_preproc_ok; then :
  4652. break
  4653. fi
  4654. done
  4655. ac_cv_prog_CPP=$CPP
  4656. fi
  4657. CPP=$ac_cv_prog_CPP
  4658. else
  4659. ac_cv_prog_CPP=$CPP
  4660. fi
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4662. $as_echo "$CPP" >&6; }
  4663. ac_preproc_ok=false
  4664. for ac_c_preproc_warn_flag in '' yes
  4665. do
  4666. # Use a header file that comes with gcc, so configuring glibc
  4667. # with a fresh cross-compiler works.
  4668. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4669. # <limits.h> exists even on freestanding compilers.
  4670. # On the NeXT, cc -E runs the code through the compiler's parser,
  4671. # not just through cpp. "Syntax error" is here to catch this case.
  4672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4673. /* end confdefs.h. */
  4674. #ifdef __STDC__
  4675. # include <limits.h>
  4676. #else
  4677. # include <assert.h>
  4678. #endif
  4679. Syntax error
  4680. _ACEOF
  4681. if ac_fn_c_try_cpp "$LINENO"; then :
  4682. else
  4683. # Broken: fails on valid input.
  4684. continue
  4685. fi
  4686. rm -f conftest.err conftest.i conftest.$ac_ext
  4687. # OK, works on sane cases. Now check whether nonexistent headers
  4688. # can be detected and how.
  4689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4690. /* end confdefs.h. */
  4691. #include <ac_nonexistent.h>
  4692. _ACEOF
  4693. if ac_fn_c_try_cpp "$LINENO"; then :
  4694. # Broken: success on invalid input.
  4695. continue
  4696. else
  4697. # Passes both tests.
  4698. ac_preproc_ok=:
  4699. break
  4700. fi
  4701. rm -f conftest.err conftest.i conftest.$ac_ext
  4702. done
  4703. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4704. rm -f conftest.i conftest.err conftest.$ac_ext
  4705. if $ac_preproc_ok; then :
  4706. else
  4707. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4708. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4709. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4710. See \`config.log' for more details" "$LINENO" 5; }
  4711. fi
  4712. ac_ext=c
  4713. ac_cpp='$CPP $CPPFLAGS'
  4714. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4715. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4716. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4718. $as_echo_n "checking whether ln -s works... " >&6; }
  4719. LN_S=$as_ln_s
  4720. if test "$LN_S" = "ln -s"; then
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4722. $as_echo "yes" >&6; }
  4723. else
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4725. $as_echo "no, using $LN_S" >&6; }
  4726. fi
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4728. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4729. set x ${MAKE-make}
  4730. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4731. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. cat >conftest.make <<\_ACEOF
  4735. SHELL = /bin/sh
  4736. all:
  4737. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4738. _ACEOF
  4739. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4740. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4741. *@@@%%%=?*=@@@%%%*)
  4742. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4743. *)
  4744. eval ac_cv_prog_make_${ac_make}_set=no;;
  4745. esac
  4746. rm -f conftest.make
  4747. fi
  4748. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4750. $as_echo "yes" >&6; }
  4751. SET_MAKE=
  4752. else
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4754. $as_echo "no" >&6; }
  4755. SET_MAKE="MAKE=${MAKE-make}"
  4756. fi
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4758. $as_echo_n "checking for ANSI C header files... " >&6; }
  4759. if ${ac_cv_header_stdc+:} false; then :
  4760. $as_echo_n "(cached) " >&6
  4761. else
  4762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4763. /* end confdefs.h. */
  4764. #include <stdlib.h>
  4765. #include <stdarg.h>
  4766. #include <string.h>
  4767. #include <float.h>
  4768. int
  4769. main ()
  4770. {
  4771. ;
  4772. return 0;
  4773. }
  4774. _ACEOF
  4775. if ac_fn_c_try_compile "$LINENO"; then :
  4776. ac_cv_header_stdc=yes
  4777. else
  4778. ac_cv_header_stdc=no
  4779. fi
  4780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4781. if test $ac_cv_header_stdc = yes; then
  4782. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4784. /* end confdefs.h. */
  4785. #include <string.h>
  4786. _ACEOF
  4787. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4788. $EGREP "memchr" >/dev/null 2>&1; then :
  4789. else
  4790. ac_cv_header_stdc=no
  4791. fi
  4792. rm -f conftest*
  4793. fi
  4794. if test $ac_cv_header_stdc = yes; then
  4795. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4797. /* end confdefs.h. */
  4798. #include <stdlib.h>
  4799. _ACEOF
  4800. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4801. $EGREP "free" >/dev/null 2>&1; then :
  4802. else
  4803. ac_cv_header_stdc=no
  4804. fi
  4805. rm -f conftest*
  4806. fi
  4807. if test $ac_cv_header_stdc = yes; then
  4808. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4809. if test "$cross_compiling" = yes; then :
  4810. :
  4811. else
  4812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4813. /* end confdefs.h. */
  4814. #include <ctype.h>
  4815. #include <stdlib.h>
  4816. #if ((' ' & 0x0FF) == 0x020)
  4817. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4818. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4819. #else
  4820. # define ISLOWER(c) \
  4821. (('a' <= (c) && (c) <= 'i') \
  4822. || ('j' <= (c) && (c) <= 'r') \
  4823. || ('s' <= (c) && (c) <= 'z'))
  4824. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4825. #endif
  4826. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4827. int
  4828. main ()
  4829. {
  4830. int i;
  4831. for (i = 0; i < 256; i++)
  4832. if (XOR (islower (i), ISLOWER (i))
  4833. || toupper (i) != TOUPPER (i))
  4834. return 2;
  4835. return 0;
  4836. }
  4837. _ACEOF
  4838. if ac_fn_c_try_run "$LINENO"; then :
  4839. else
  4840. ac_cv_header_stdc=no
  4841. fi
  4842. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4843. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4844. fi
  4845. fi
  4846. fi
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4848. $as_echo "$ac_cv_header_stdc" >&6; }
  4849. if test $ac_cv_header_stdc = yes; then
  4850. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4851. fi
  4852. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4853. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4854. inttypes.h stdint.h unistd.h
  4855. do :
  4856. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4857. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4858. "
  4859. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4860. cat >>confdefs.h <<_ACEOF
  4861. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4862. _ACEOF
  4863. fi
  4864. done
  4865. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4866. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4867. MINIX=yes
  4868. else
  4869. MINIX=
  4870. fi
  4871. if test "$MINIX" = yes; then
  4872. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4873. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4874. $as_echo "#define _MINIX 1" >>confdefs.h
  4875. fi
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4877. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4878. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4882. /* end confdefs.h. */
  4883. # define __EXTENSIONS__ 1
  4884. $ac_includes_default
  4885. int
  4886. main ()
  4887. {
  4888. ;
  4889. return 0;
  4890. }
  4891. _ACEOF
  4892. if ac_fn_c_try_compile "$LINENO"; then :
  4893. ac_cv_safe_to_define___extensions__=yes
  4894. else
  4895. ac_cv_safe_to_define___extensions__=no
  4896. fi
  4897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4898. fi
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4900. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4901. test $ac_cv_safe_to_define___extensions__ = yes &&
  4902. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4903. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4904. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4905. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4906. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4907. if test -n "$ac_tool_prefix"; then
  4908. for ac_prog in ar lib "link -lib"
  4909. do
  4910. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4911. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_AR+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$AR"; then
  4918. ac_cv_prog_AR="$AR" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. AR=$ac_cv_prog_AR
  4937. if test -n "$AR"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4939. $as_echo "$AR" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. test -n "$AR" && break
  4945. done
  4946. fi
  4947. if test -z "$AR"; then
  4948. ac_ct_AR=$AR
  4949. for ac_prog in ar lib "link -lib"
  4950. do
  4951. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4952. set dummy $ac_prog; ac_word=$2
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4954. $as_echo_n "checking for $ac_word... " >&6; }
  4955. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. if test -n "$ac_ct_AR"; then
  4959. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4960. else
  4961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4962. for as_dir in $PATH
  4963. do
  4964. IFS=$as_save_IFS
  4965. test -z "$as_dir" && as_dir=.
  4966. for ac_exec_ext in '' $ac_executable_extensions; do
  4967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4968. ac_cv_prog_ac_ct_AR="$ac_prog"
  4969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4970. break 2
  4971. fi
  4972. done
  4973. done
  4974. IFS=$as_save_IFS
  4975. fi
  4976. fi
  4977. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4978. if test -n "$ac_ct_AR"; then
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4980. $as_echo "$ac_ct_AR" >&6; }
  4981. else
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4983. $as_echo "no" >&6; }
  4984. fi
  4985. test -n "$ac_ct_AR" && break
  4986. done
  4987. if test "x$ac_ct_AR" = x; then
  4988. AR="false"
  4989. else
  4990. case $cross_compiling:$ac_tool_warned in
  4991. yes:)
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4993. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4994. ac_tool_warned=yes ;;
  4995. esac
  4996. AR=$ac_ct_AR
  4997. fi
  4998. fi
  4999. : ${AR=ar}
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  5001. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  5002. if ${am_cv_ar_interface+:} false; then :
  5003. $as_echo_n "(cached) " >&6
  5004. else
  5005. ac_ext=c
  5006. ac_cpp='$CPP $CPPFLAGS'
  5007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5010. am_cv_ar_interface=ar
  5011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5012. /* end confdefs.h. */
  5013. int some_variable = 0;
  5014. _ACEOF
  5015. if ac_fn_c_try_compile "$LINENO"; then :
  5016. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  5017. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5018. (eval $am_ar_try) 2>&5
  5019. ac_status=$?
  5020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5021. test $ac_status = 0; }
  5022. if test "$ac_status" -eq 0; then
  5023. am_cv_ar_interface=ar
  5024. else
  5025. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  5026. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5027. (eval $am_ar_try) 2>&5
  5028. ac_status=$?
  5029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5030. test $ac_status = 0; }
  5031. if test "$ac_status" -eq 0; then
  5032. am_cv_ar_interface=lib
  5033. else
  5034. am_cv_ar_interface=unknown
  5035. fi
  5036. fi
  5037. rm -f conftest.lib libconftest.a
  5038. fi
  5039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5040. ac_ext=c
  5041. ac_cpp='$CPP $CPPFLAGS'
  5042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5045. fi
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  5047. $as_echo "$am_cv_ar_interface" >&6; }
  5048. case $am_cv_ar_interface in
  5049. ar)
  5050. ;;
  5051. lib)
  5052. # Microsoft lib, so override with the ar-lib wrapper script.
  5053. # FIXME: It is wrong to rewrite AR.
  5054. # But if we don't then we get into trouble of one sort or another.
  5055. # A longer-term fix would be to have automake use am__AR in this case,
  5056. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  5057. # similar.
  5058. AR="$am_aux_dir/ar-lib $AR"
  5059. ;;
  5060. unknown)
  5061. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  5062. ;;
  5063. esac
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  5065. $as_echo_n "checking for library containing strerror... " >&6; }
  5066. if ${ac_cv_search_strerror+:} false; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. ac_func_search_save_LIBS=$LIBS
  5070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5071. /* end confdefs.h. */
  5072. /* Override any GCC internal prototype to avoid an error.
  5073. Use char because int might match the return type of a GCC
  5074. builtin and then its argument prototype would still apply. */
  5075. #ifdef __cplusplus
  5076. extern "C"
  5077. #endif
  5078. char strerror ();
  5079. int
  5080. main ()
  5081. {
  5082. return strerror ();
  5083. ;
  5084. return 0;
  5085. }
  5086. _ACEOF
  5087. for ac_lib in '' cposix; do
  5088. if test -z "$ac_lib"; then
  5089. ac_res="none required"
  5090. else
  5091. ac_res=-l$ac_lib
  5092. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5093. fi
  5094. if ac_fn_c_try_link "$LINENO"; then :
  5095. ac_cv_search_strerror=$ac_res
  5096. fi
  5097. rm -f core conftest.err conftest.$ac_objext \
  5098. conftest$ac_exeext
  5099. if ${ac_cv_search_strerror+:} false; then :
  5100. break
  5101. fi
  5102. done
  5103. if ${ac_cv_search_strerror+:} false; then :
  5104. else
  5105. ac_cv_search_strerror=no
  5106. fi
  5107. rm conftest.$ac_ext
  5108. LIBS=$ac_func_search_save_LIBS
  5109. fi
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  5111. $as_echo "$ac_cv_search_strerror" >&6; }
  5112. ac_res=$ac_cv_search_strerror
  5113. if test "$ac_res" != no; then :
  5114. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5115. fi
  5116. case $host_os in
  5117. *darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;;
  5118. * ) NO_RDYNAMIC=no;;
  5119. esac
  5120. if test x$NO_RDYNAMIC = xyes; then
  5121. NO_RDYNAMIC_TRUE=
  5122. NO_RDYNAMIC_FALSE='#'
  5123. else
  5124. NO_RDYNAMIC_TRUE='#'
  5125. NO_RDYNAMIC_FALSE=
  5126. fi
  5127. # Check whether --enable-static was given.
  5128. if test "${enable_static+set}" = set; then :
  5129. enableval=$enable_static; p=${PACKAGE-default}
  5130. case $enableval in
  5131. yes) enable_static=yes ;;
  5132. no) enable_static=no ;;
  5133. *)
  5134. enable_static=no
  5135. # Look at the argument we got. We use all the common list separators.
  5136. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5137. for pkg in $enableval; do
  5138. IFS="$lt_save_ifs"
  5139. if test "X$pkg" = "X$p"; then
  5140. enable_static=yes
  5141. fi
  5142. done
  5143. IFS="$lt_save_ifs"
  5144. ;;
  5145. esac
  5146. else
  5147. enable_static=no
  5148. fi
  5149. # Check whether --enable-shared was given.
  5150. if test "${enable_shared+set}" = set; then :
  5151. enableval=$enable_shared; p=${PACKAGE-default}
  5152. case $enableval in
  5153. yes) enable_shared=yes ;;
  5154. no) enable_shared=no ;;
  5155. *)
  5156. enable_shared=no
  5157. # Look at the argument we got. We use all the common list separators.
  5158. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5159. for pkg in $enableval; do
  5160. IFS="$lt_save_ifs"
  5161. if test "X$pkg" = "X$p"; then
  5162. enable_shared=yes
  5163. fi
  5164. done
  5165. IFS="$lt_save_ifs"
  5166. ;;
  5167. esac
  5168. else
  5169. enable_shared=yes
  5170. fi
  5171. enable_dlopen=yes
  5172. case `pwd` in
  5173. *\ * | *\ *)
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5175. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5176. esac
  5177. macro_version='2.4.2'
  5178. macro_revision='1.3337'
  5179. ltmain="$ac_aux_dir/ltmain.sh"
  5180. # Backslashify metacharacters that are still active within
  5181. # double-quoted strings.
  5182. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5183. # Same as above, but do not quote variable references.
  5184. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5185. # Sed substitution to delay expansion of an escaped shell variable in a
  5186. # double_quote_subst'ed string.
  5187. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5188. # Sed substitution to delay expansion of an escaped single quote.
  5189. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5190. # Sed substitution to avoid accidental globbing in evaled expressions
  5191. no_glob_subst='s/\*/\\\*/g'
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5193. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5194. if ${lt_cv_path_NM+:} false; then :
  5195. $as_echo_n "(cached) " >&6
  5196. else
  5197. if test -n "$NM"; then
  5198. # Let the user override the test.
  5199. lt_cv_path_NM="$NM"
  5200. else
  5201. lt_nm_to_check="${ac_tool_prefix}nm"
  5202. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5203. lt_nm_to_check="$lt_nm_to_check nm"
  5204. fi
  5205. for lt_tmp_nm in $lt_nm_to_check; do
  5206. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5207. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5208. IFS="$lt_save_ifs"
  5209. test -z "$ac_dir" && ac_dir=.
  5210. tmp_nm="$ac_dir/$lt_tmp_nm"
  5211. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5212. # Check to see if the nm accepts a BSD-compat flag.
  5213. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5214. # nm: unknown option "B" ignored
  5215. # Tru64's nm complains that /dev/null is an invalid object file
  5216. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5217. */dev/null* | *'Invalid file or object type'*)
  5218. lt_cv_path_NM="$tmp_nm -B"
  5219. break
  5220. ;;
  5221. *)
  5222. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5223. */dev/null*)
  5224. lt_cv_path_NM="$tmp_nm -p"
  5225. break
  5226. ;;
  5227. *)
  5228. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5229. continue # so that we can try to find one that supports BSD flags
  5230. ;;
  5231. esac
  5232. ;;
  5233. esac
  5234. fi
  5235. done
  5236. IFS="$lt_save_ifs"
  5237. done
  5238. : ${lt_cv_path_NM=no}
  5239. fi
  5240. fi
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5242. $as_echo "$lt_cv_path_NM" >&6; }
  5243. if test "$lt_cv_path_NM" != "no"; then
  5244. NM="$lt_cv_path_NM"
  5245. else
  5246. # Didn't find any BSD compatible name lister, look for dumpbin.
  5247. if test -n "$DUMPBIN"; then :
  5248. # Let the user override the test.
  5249. else
  5250. if test -n "$ac_tool_prefix"; then
  5251. for ac_prog in dumpbin "link -dump"
  5252. do
  5253. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5254. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5256. $as_echo_n "checking for $ac_word... " >&6; }
  5257. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5258. $as_echo_n "(cached) " >&6
  5259. else
  5260. if test -n "$DUMPBIN"; then
  5261. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5262. else
  5263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5264. for as_dir in $PATH
  5265. do
  5266. IFS=$as_save_IFS
  5267. test -z "$as_dir" && as_dir=.
  5268. for ac_exec_ext in '' $ac_executable_extensions; do
  5269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5270. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5272. break 2
  5273. fi
  5274. done
  5275. done
  5276. IFS=$as_save_IFS
  5277. fi
  5278. fi
  5279. DUMPBIN=$ac_cv_prog_DUMPBIN
  5280. if test -n "$DUMPBIN"; then
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5282. $as_echo "$DUMPBIN" >&6; }
  5283. else
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5285. $as_echo "no" >&6; }
  5286. fi
  5287. test -n "$DUMPBIN" && break
  5288. done
  5289. fi
  5290. if test -z "$DUMPBIN"; then
  5291. ac_ct_DUMPBIN=$DUMPBIN
  5292. for ac_prog in dumpbin "link -dump"
  5293. do
  5294. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5295. set dummy $ac_prog; ac_word=$2
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5297. $as_echo_n "checking for $ac_word... " >&6; }
  5298. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5299. $as_echo_n "(cached) " >&6
  5300. else
  5301. if test -n "$ac_ct_DUMPBIN"; then
  5302. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5303. else
  5304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5305. for as_dir in $PATH
  5306. do
  5307. IFS=$as_save_IFS
  5308. test -z "$as_dir" && as_dir=.
  5309. for ac_exec_ext in '' $ac_executable_extensions; do
  5310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5311. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5313. break 2
  5314. fi
  5315. done
  5316. done
  5317. IFS=$as_save_IFS
  5318. fi
  5319. fi
  5320. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5321. if test -n "$ac_ct_DUMPBIN"; then
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5323. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5324. else
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5326. $as_echo "no" >&6; }
  5327. fi
  5328. test -n "$ac_ct_DUMPBIN" && break
  5329. done
  5330. if test "x$ac_ct_DUMPBIN" = x; then
  5331. DUMPBIN=":"
  5332. else
  5333. case $cross_compiling:$ac_tool_warned in
  5334. yes:)
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5336. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5337. ac_tool_warned=yes ;;
  5338. esac
  5339. DUMPBIN=$ac_ct_DUMPBIN
  5340. fi
  5341. fi
  5342. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5343. *COFF*)
  5344. DUMPBIN="$DUMPBIN -symbols"
  5345. ;;
  5346. *)
  5347. DUMPBIN=:
  5348. ;;
  5349. esac
  5350. fi
  5351. if test "$DUMPBIN" != ":"; then
  5352. NM="$DUMPBIN"
  5353. fi
  5354. fi
  5355. test -z "$NM" && NM=nm
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5357. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5358. if ${lt_cv_nm_interface+:} false; then :
  5359. $as_echo_n "(cached) " >&6
  5360. else
  5361. lt_cv_nm_interface="BSD nm"
  5362. echo "int some_variable = 0;" > conftest.$ac_ext
  5363. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5364. (eval "$ac_compile" 2>conftest.err)
  5365. cat conftest.err >&5
  5366. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5367. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5368. cat conftest.err >&5
  5369. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5370. cat conftest.out >&5
  5371. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5372. lt_cv_nm_interface="MS dumpbin"
  5373. fi
  5374. rm -f conftest*
  5375. fi
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5377. $as_echo "$lt_cv_nm_interface" >&6; }
  5378. # find the maximum length of command line arguments
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5380. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5381. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5382. $as_echo_n "(cached) " >&6
  5383. else
  5384. i=0
  5385. teststring="ABCD"
  5386. case $build_os in
  5387. msdosdjgpp*)
  5388. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5389. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5390. # during glob expansion). Even if it were fixed, the result of this
  5391. # check would be larger than it should be.
  5392. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5393. ;;
  5394. gnu*)
  5395. # Under GNU Hurd, this test is not required because there is
  5396. # no limit to the length of command line arguments.
  5397. # Libtool will interpret -1 as no limit whatsoever
  5398. lt_cv_sys_max_cmd_len=-1;
  5399. ;;
  5400. cygwin* | mingw* | cegcc*)
  5401. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5402. # about 5 minutes as the teststring grows exponentially.
  5403. # Worse, since 9x/ME are not pre-emptively multitasking,
  5404. # you end up with a "frozen" computer, even though with patience
  5405. # the test eventually succeeds (with a max line length of 256k).
  5406. # Instead, let's just punt: use the minimum linelength reported by
  5407. # all of the supported platforms: 8192 (on NT/2K/XP).
  5408. lt_cv_sys_max_cmd_len=8192;
  5409. ;;
  5410. mint*)
  5411. # On MiNT this can take a long time and run out of memory.
  5412. lt_cv_sys_max_cmd_len=8192;
  5413. ;;
  5414. amigaos*)
  5415. # On AmigaOS with pdksh, this test takes hours, literally.
  5416. # So we just punt and use a minimum line length of 8192.
  5417. lt_cv_sys_max_cmd_len=8192;
  5418. ;;
  5419. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5420. # This has been around since 386BSD, at least. Likely further.
  5421. if test -x /sbin/sysctl; then
  5422. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5423. elif test -x /usr/sbin/sysctl; then
  5424. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5425. else
  5426. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5427. fi
  5428. # And add a safety zone
  5429. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5430. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5431. ;;
  5432. interix*)
  5433. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5434. lt_cv_sys_max_cmd_len=196608
  5435. ;;
  5436. os2*)
  5437. # The test takes a long time on OS/2.
  5438. lt_cv_sys_max_cmd_len=8192
  5439. ;;
  5440. osf*)
  5441. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5442. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5443. # nice to cause kernel panics so lets avoid the loop below.
  5444. # First set a reasonable default.
  5445. lt_cv_sys_max_cmd_len=16384
  5446. #
  5447. if test -x /sbin/sysconfig; then
  5448. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5449. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5450. esac
  5451. fi
  5452. ;;
  5453. sco3.2v5*)
  5454. lt_cv_sys_max_cmd_len=102400
  5455. ;;
  5456. sysv5* | sco5v6* | sysv4.2uw2*)
  5457. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5458. if test -n "$kargmax"; then
  5459. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5460. else
  5461. lt_cv_sys_max_cmd_len=32768
  5462. fi
  5463. ;;
  5464. *)
  5465. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5466. if test -n "$lt_cv_sys_max_cmd_len" && \
  5467. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5468. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5469. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5470. else
  5471. # Make teststring a little bigger before we do anything with it.
  5472. # a 1K string should be a reasonable start.
  5473. for i in 1 2 3 4 5 6 7 8 ; do
  5474. teststring=$teststring$teststring
  5475. done
  5476. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5477. # If test is not a shell built-in, we'll probably end up computing a
  5478. # maximum length that is only half of the actual maximum length, but
  5479. # we can't tell.
  5480. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5481. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5482. test $i != 17 # 1/2 MB should be enough
  5483. do
  5484. i=`expr $i + 1`
  5485. teststring=$teststring$teststring
  5486. done
  5487. # Only check the string length outside the loop.
  5488. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5489. teststring=
  5490. # Add a significant safety factor because C++ compilers can tack on
  5491. # massive amounts of additional arguments before passing them to the
  5492. # linker. It appears as though 1/2 is a usable value.
  5493. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5494. fi
  5495. ;;
  5496. esac
  5497. fi
  5498. if test -n $lt_cv_sys_max_cmd_len ; then
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5500. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5501. else
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5503. $as_echo "none" >&6; }
  5504. fi
  5505. max_cmd_len=$lt_cv_sys_max_cmd_len
  5506. : ${CP="cp -f"}
  5507. : ${MV="mv -f"}
  5508. : ${RM="rm -f"}
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5510. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5511. # Try some XSI features
  5512. xsi_shell=no
  5513. ( _lt_dummy="a/b/c"
  5514. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5515. = c,a/b,b/c, \
  5516. && eval 'test $(( 1 + 1 )) -eq 2 \
  5517. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5518. && xsi_shell=yes
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5520. $as_echo "$xsi_shell" >&6; }
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5522. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5523. lt_shell_append=no
  5524. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5525. >/dev/null 2>&1 \
  5526. && lt_shell_append=yes
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5528. $as_echo "$lt_shell_append" >&6; }
  5529. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5530. lt_unset=unset
  5531. else
  5532. lt_unset=false
  5533. fi
  5534. # test EBCDIC or ASCII
  5535. case `echo X|tr X '\101'` in
  5536. A) # ASCII based system
  5537. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5538. lt_SP2NL='tr \040 \012'
  5539. lt_NL2SP='tr \015\012 \040\040'
  5540. ;;
  5541. *) # EBCDIC based system
  5542. lt_SP2NL='tr \100 \n'
  5543. lt_NL2SP='tr \r\n \100\100'
  5544. ;;
  5545. esac
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5547. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5548. if ${lt_cv_to_host_file_cmd+:} false; then :
  5549. $as_echo_n "(cached) " >&6
  5550. else
  5551. case $host in
  5552. *-*-mingw* )
  5553. case $build in
  5554. *-*-mingw* ) # actually msys
  5555. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5556. ;;
  5557. *-*-cygwin* )
  5558. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5559. ;;
  5560. * ) # otherwise, assume *nix
  5561. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5562. ;;
  5563. esac
  5564. ;;
  5565. *-*-cygwin* )
  5566. case $build in
  5567. *-*-mingw* ) # actually msys
  5568. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5569. ;;
  5570. *-*-cygwin* )
  5571. lt_cv_to_host_file_cmd=func_convert_file_noop
  5572. ;;
  5573. * ) # otherwise, assume *nix
  5574. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5575. ;;
  5576. esac
  5577. ;;
  5578. * ) # unhandled hosts (and "normal" native builds)
  5579. lt_cv_to_host_file_cmd=func_convert_file_noop
  5580. ;;
  5581. esac
  5582. fi
  5583. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5585. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5587. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5588. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. #assume ordinary cross tools, or native build.
  5592. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5593. case $host in
  5594. *-*-mingw* )
  5595. case $build in
  5596. *-*-mingw* ) # actually msys
  5597. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5598. ;;
  5599. esac
  5600. ;;
  5601. esac
  5602. fi
  5603. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5605. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5607. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5608. if ${lt_cv_ld_reload_flag+:} false; then :
  5609. $as_echo_n "(cached) " >&6
  5610. else
  5611. lt_cv_ld_reload_flag='-r'
  5612. fi
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5614. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5615. reload_flag=$lt_cv_ld_reload_flag
  5616. case $reload_flag in
  5617. "" | " "*) ;;
  5618. *) reload_flag=" $reload_flag" ;;
  5619. esac
  5620. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5621. case $host_os in
  5622. cygwin* | mingw* | pw32* | cegcc*)
  5623. if test "$GCC" != yes; then
  5624. reload_cmds=false
  5625. fi
  5626. ;;
  5627. darwin*)
  5628. if test "$GCC" = yes; then
  5629. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5630. else
  5631. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5632. fi
  5633. ;;
  5634. esac
  5635. if test -n "$ac_tool_prefix"; then
  5636. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5637. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5639. $as_echo_n "checking for $ac_word... " >&6; }
  5640. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5641. $as_echo_n "(cached) " >&6
  5642. else
  5643. if test -n "$OBJDUMP"; then
  5644. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5645. else
  5646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5647. for as_dir in $PATH
  5648. do
  5649. IFS=$as_save_IFS
  5650. test -z "$as_dir" && as_dir=.
  5651. for ac_exec_ext in '' $ac_executable_extensions; do
  5652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5653. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5655. break 2
  5656. fi
  5657. done
  5658. done
  5659. IFS=$as_save_IFS
  5660. fi
  5661. fi
  5662. OBJDUMP=$ac_cv_prog_OBJDUMP
  5663. if test -n "$OBJDUMP"; then
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5665. $as_echo "$OBJDUMP" >&6; }
  5666. else
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5668. $as_echo "no" >&6; }
  5669. fi
  5670. fi
  5671. if test -z "$ac_cv_prog_OBJDUMP"; then
  5672. ac_ct_OBJDUMP=$OBJDUMP
  5673. # Extract the first word of "objdump", so it can be a program name with args.
  5674. set dummy objdump; ac_word=$2
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5676. $as_echo_n "checking for $ac_word... " >&6; }
  5677. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5678. $as_echo_n "(cached) " >&6
  5679. else
  5680. if test -n "$ac_ct_OBJDUMP"; then
  5681. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5682. else
  5683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5684. for as_dir in $PATH
  5685. do
  5686. IFS=$as_save_IFS
  5687. test -z "$as_dir" && as_dir=.
  5688. for ac_exec_ext in '' $ac_executable_extensions; do
  5689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5690. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5692. break 2
  5693. fi
  5694. done
  5695. done
  5696. IFS=$as_save_IFS
  5697. fi
  5698. fi
  5699. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5700. if test -n "$ac_ct_OBJDUMP"; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5702. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5703. else
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5705. $as_echo "no" >&6; }
  5706. fi
  5707. if test "x$ac_ct_OBJDUMP" = x; then
  5708. OBJDUMP="false"
  5709. else
  5710. case $cross_compiling:$ac_tool_warned in
  5711. yes:)
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5714. ac_tool_warned=yes ;;
  5715. esac
  5716. OBJDUMP=$ac_ct_OBJDUMP
  5717. fi
  5718. else
  5719. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5720. fi
  5721. test -z "$OBJDUMP" && OBJDUMP=objdump
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5723. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5724. if ${lt_cv_deplibs_check_method+:} false; then :
  5725. $as_echo_n "(cached) " >&6
  5726. else
  5727. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5728. lt_cv_file_magic_test_file=
  5729. lt_cv_deplibs_check_method='unknown'
  5730. # Need to set the preceding variable on all platforms that support
  5731. # interlibrary dependencies.
  5732. # 'none' -- dependencies not supported.
  5733. # `unknown' -- same as none, but documents that we really don't know.
  5734. # 'pass_all' -- all dependencies passed with no checks.
  5735. # 'test_compile' -- check by making test program.
  5736. # 'file_magic [[regex]]' -- check by looking for files in library path
  5737. # which responds to the $file_magic_cmd with a given extended regex.
  5738. # If you have `file' or equivalent on your system and you're not sure
  5739. # whether `pass_all' will *always* work, you probably want this one.
  5740. case $host_os in
  5741. aix[4-9]*)
  5742. lt_cv_deplibs_check_method=pass_all
  5743. ;;
  5744. beos*)
  5745. lt_cv_deplibs_check_method=pass_all
  5746. ;;
  5747. bsdi[45]*)
  5748. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5749. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5750. lt_cv_file_magic_test_file=/shlib/libc.so
  5751. ;;
  5752. cygwin*)
  5753. # func_win32_libid is a shell function defined in ltmain.sh
  5754. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5755. lt_cv_file_magic_cmd='func_win32_libid'
  5756. ;;
  5757. mingw* | pw32*)
  5758. # Base MSYS/MinGW do not provide the 'file' command needed by
  5759. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5760. # unless we find 'file', for example because we are cross-compiling.
  5761. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5762. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5763. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5764. lt_cv_file_magic_cmd='func_win32_libid'
  5765. else
  5766. # Keep this pattern in sync with the one in func_win32_libid.
  5767. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5768. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5769. fi
  5770. ;;
  5771. cegcc*)
  5772. # use the weaker test based on 'objdump'. See mingw*.
  5773. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5774. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5775. ;;
  5776. darwin* | rhapsody*)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. freebsd* | dragonfly*)
  5780. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5781. case $host_cpu in
  5782. i*86 )
  5783. # Not sure whether the presence of OpenBSD here was a mistake.
  5784. # Let's accept both of them until this is cleared up.
  5785. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5786. lt_cv_file_magic_cmd=/usr/bin/file
  5787. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5788. ;;
  5789. esac
  5790. else
  5791. lt_cv_deplibs_check_method=pass_all
  5792. fi
  5793. ;;
  5794. haiku*)
  5795. lt_cv_deplibs_check_method=pass_all
  5796. ;;
  5797. hpux10.20* | hpux11*)
  5798. lt_cv_file_magic_cmd=/usr/bin/file
  5799. case $host_cpu in
  5800. ia64*)
  5801. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5802. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5803. ;;
  5804. hppa*64*)
  5805. 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]'
  5806. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5807. ;;
  5808. *)
  5809. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5810. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5811. ;;
  5812. esac
  5813. ;;
  5814. interix[3-9]*)
  5815. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5816. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5817. ;;
  5818. irix5* | irix6* | nonstopux*)
  5819. case $LD in
  5820. *-32|*"-32 ") libmagic=32-bit;;
  5821. *-n32|*"-n32 ") libmagic=N32;;
  5822. *-64|*"-64 ") libmagic=64-bit;;
  5823. *) libmagic=never-match;;
  5824. esac
  5825. lt_cv_deplibs_check_method=pass_all
  5826. ;;
  5827. # This must be glibc/ELF.
  5828. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5829. lt_cv_deplibs_check_method=pass_all
  5830. ;;
  5831. netbsd* | netbsdelf*-gnu)
  5832. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5833. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5834. else
  5835. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5836. fi
  5837. ;;
  5838. newos6*)
  5839. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5840. lt_cv_file_magic_cmd=/usr/bin/file
  5841. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5842. ;;
  5843. *nto* | *qnx*)
  5844. lt_cv_deplibs_check_method=pass_all
  5845. ;;
  5846. openbsd*)
  5847. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5848. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5849. else
  5850. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5851. fi
  5852. ;;
  5853. osf3* | osf4* | osf5*)
  5854. lt_cv_deplibs_check_method=pass_all
  5855. ;;
  5856. rdos*)
  5857. lt_cv_deplibs_check_method=pass_all
  5858. ;;
  5859. solaris*)
  5860. lt_cv_deplibs_check_method=pass_all
  5861. ;;
  5862. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5863. lt_cv_deplibs_check_method=pass_all
  5864. ;;
  5865. sysv4 | sysv4.3*)
  5866. case $host_vendor in
  5867. motorola)
  5868. 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]'
  5869. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5870. ;;
  5871. ncr)
  5872. lt_cv_deplibs_check_method=pass_all
  5873. ;;
  5874. sequent)
  5875. lt_cv_file_magic_cmd='/bin/file'
  5876. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5877. ;;
  5878. sni)
  5879. lt_cv_file_magic_cmd='/bin/file'
  5880. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5881. lt_cv_file_magic_test_file=/lib/libc.so
  5882. ;;
  5883. siemens)
  5884. lt_cv_deplibs_check_method=pass_all
  5885. ;;
  5886. pc)
  5887. lt_cv_deplibs_check_method=pass_all
  5888. ;;
  5889. esac
  5890. ;;
  5891. tpf*)
  5892. lt_cv_deplibs_check_method=pass_all
  5893. ;;
  5894. esac
  5895. fi
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5897. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5898. file_magic_glob=
  5899. want_nocaseglob=no
  5900. if test "$build" = "$host"; then
  5901. case $host_os in
  5902. mingw* | pw32*)
  5903. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5904. want_nocaseglob=yes
  5905. else
  5906. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5907. fi
  5908. ;;
  5909. esac
  5910. fi
  5911. file_magic_cmd=$lt_cv_file_magic_cmd
  5912. deplibs_check_method=$lt_cv_deplibs_check_method
  5913. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5914. if test -n "$ac_tool_prefix"; then
  5915. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5916. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5918. $as_echo_n "checking for $ac_word... " >&6; }
  5919. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5920. $as_echo_n "(cached) " >&6
  5921. else
  5922. if test -n "$DLLTOOL"; then
  5923. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5924. else
  5925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5926. for as_dir in $PATH
  5927. do
  5928. IFS=$as_save_IFS
  5929. test -z "$as_dir" && as_dir=.
  5930. for ac_exec_ext in '' $ac_executable_extensions; do
  5931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5932. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5934. break 2
  5935. fi
  5936. done
  5937. done
  5938. IFS=$as_save_IFS
  5939. fi
  5940. fi
  5941. DLLTOOL=$ac_cv_prog_DLLTOOL
  5942. if test -n "$DLLTOOL"; then
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5944. $as_echo "$DLLTOOL" >&6; }
  5945. else
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5947. $as_echo "no" >&6; }
  5948. fi
  5949. fi
  5950. if test -z "$ac_cv_prog_DLLTOOL"; then
  5951. ac_ct_DLLTOOL=$DLLTOOL
  5952. # Extract the first word of "dlltool", so it can be a program name with args.
  5953. set dummy dlltool; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$ac_ct_DLLTOOL"; then
  5960. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5979. if test -n "$ac_ct_DLLTOOL"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5981. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. if test "x$ac_ct_DLLTOOL" = x; then
  5987. DLLTOOL="false"
  5988. else
  5989. case $cross_compiling:$ac_tool_warned in
  5990. yes:)
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5992. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5993. ac_tool_warned=yes ;;
  5994. esac
  5995. DLLTOOL=$ac_ct_DLLTOOL
  5996. fi
  5997. else
  5998. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5999. fi
  6000. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6002. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6003. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6004. $as_echo_n "(cached) " >&6
  6005. else
  6006. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6007. case $host_os in
  6008. cygwin* | mingw* | pw32* | cegcc*)
  6009. # two different shell functions defined in ltmain.sh
  6010. # decide which to use based on capabilities of $DLLTOOL
  6011. case `$DLLTOOL --help 2>&1` in
  6012. *--identify-strict*)
  6013. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6014. ;;
  6015. *)
  6016. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6017. ;;
  6018. esac
  6019. ;;
  6020. *)
  6021. # fallback: assume linklib IS sharedlib
  6022. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6023. ;;
  6024. esac
  6025. fi
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6027. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6028. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6029. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6030. if test -n "$ac_tool_prefix"; then
  6031. for ac_prog in ar
  6032. do
  6033. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6034. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6036. $as_echo_n "checking for $ac_word... " >&6; }
  6037. if ${ac_cv_prog_AR+:} false; then :
  6038. $as_echo_n "(cached) " >&6
  6039. else
  6040. if test -n "$AR"; then
  6041. ac_cv_prog_AR="$AR" # Let the user override the test.
  6042. else
  6043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6044. for as_dir in $PATH
  6045. do
  6046. IFS=$as_save_IFS
  6047. test -z "$as_dir" && as_dir=.
  6048. for ac_exec_ext in '' $ac_executable_extensions; do
  6049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6050. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6052. break 2
  6053. fi
  6054. done
  6055. done
  6056. IFS=$as_save_IFS
  6057. fi
  6058. fi
  6059. AR=$ac_cv_prog_AR
  6060. if test -n "$AR"; then
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6062. $as_echo "$AR" >&6; }
  6063. else
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6065. $as_echo "no" >&6; }
  6066. fi
  6067. test -n "$AR" && break
  6068. done
  6069. fi
  6070. if test -z "$AR"; then
  6071. ac_ct_AR=$AR
  6072. for ac_prog in ar
  6073. do
  6074. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6075. set dummy $ac_prog; ac_word=$2
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6077. $as_echo_n "checking for $ac_word... " >&6; }
  6078. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6079. $as_echo_n "(cached) " >&6
  6080. else
  6081. if test -n "$ac_ct_AR"; then
  6082. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6083. else
  6084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6085. for as_dir in $PATH
  6086. do
  6087. IFS=$as_save_IFS
  6088. test -z "$as_dir" && as_dir=.
  6089. for ac_exec_ext in '' $ac_executable_extensions; do
  6090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6091. ac_cv_prog_ac_ct_AR="$ac_prog"
  6092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6093. break 2
  6094. fi
  6095. done
  6096. done
  6097. IFS=$as_save_IFS
  6098. fi
  6099. fi
  6100. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6101. if test -n "$ac_ct_AR"; then
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6103. $as_echo "$ac_ct_AR" >&6; }
  6104. else
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6106. $as_echo "no" >&6; }
  6107. fi
  6108. test -n "$ac_ct_AR" && break
  6109. done
  6110. if test "x$ac_ct_AR" = x; then
  6111. AR="false"
  6112. else
  6113. case $cross_compiling:$ac_tool_warned in
  6114. yes:)
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6116. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6117. ac_tool_warned=yes ;;
  6118. esac
  6119. AR=$ac_ct_AR
  6120. fi
  6121. fi
  6122. : ${AR=ar}
  6123. : ${AR_FLAGS=cru}
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6125. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6126. if ${lt_cv_ar_at_file+:} false; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. lt_cv_ar_at_file=no
  6130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6131. /* end confdefs.h. */
  6132. int
  6133. main ()
  6134. {
  6135. ;
  6136. return 0;
  6137. }
  6138. _ACEOF
  6139. if ac_fn_c_try_compile "$LINENO"; then :
  6140. echo conftest.$ac_objext > conftest.lst
  6141. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6142. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6143. (eval $lt_ar_try) 2>&5
  6144. ac_status=$?
  6145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6146. test $ac_status = 0; }
  6147. if test "$ac_status" -eq 0; then
  6148. # Ensure the archiver fails upon bogus file names.
  6149. rm -f conftest.$ac_objext libconftest.a
  6150. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6151. (eval $lt_ar_try) 2>&5
  6152. ac_status=$?
  6153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6154. test $ac_status = 0; }
  6155. if test "$ac_status" -ne 0; then
  6156. lt_cv_ar_at_file=@
  6157. fi
  6158. fi
  6159. rm -f conftest.* libconftest.a
  6160. fi
  6161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6162. fi
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6164. $as_echo "$lt_cv_ar_at_file" >&6; }
  6165. if test "x$lt_cv_ar_at_file" = xno; then
  6166. archiver_list_spec=
  6167. else
  6168. archiver_list_spec=$lt_cv_ar_at_file
  6169. fi
  6170. if test -n "$ac_tool_prefix"; then
  6171. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6172. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6174. $as_echo_n "checking for $ac_word... " >&6; }
  6175. if ${ac_cv_prog_STRIP+:} false; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. if test -n "$STRIP"; then
  6179. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6180. else
  6181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6182. for as_dir in $PATH
  6183. do
  6184. IFS=$as_save_IFS
  6185. test -z "$as_dir" && as_dir=.
  6186. for ac_exec_ext in '' $ac_executable_extensions; do
  6187. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6188. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6190. break 2
  6191. fi
  6192. done
  6193. done
  6194. IFS=$as_save_IFS
  6195. fi
  6196. fi
  6197. STRIP=$ac_cv_prog_STRIP
  6198. if test -n "$STRIP"; then
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6200. $as_echo "$STRIP" >&6; }
  6201. else
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6203. $as_echo "no" >&6; }
  6204. fi
  6205. fi
  6206. if test -z "$ac_cv_prog_STRIP"; then
  6207. ac_ct_STRIP=$STRIP
  6208. # Extract the first word of "strip", so it can be a program name with args.
  6209. set dummy strip; ac_word=$2
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6211. $as_echo_n "checking for $ac_word... " >&6; }
  6212. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. if test -n "$ac_ct_STRIP"; then
  6216. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6217. else
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH
  6220. do
  6221. IFS=$as_save_IFS
  6222. test -z "$as_dir" && as_dir=.
  6223. for ac_exec_ext in '' $ac_executable_extensions; do
  6224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6225. ac_cv_prog_ac_ct_STRIP="strip"
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6227. break 2
  6228. fi
  6229. done
  6230. done
  6231. IFS=$as_save_IFS
  6232. fi
  6233. fi
  6234. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6235. if test -n "$ac_ct_STRIP"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6237. $as_echo "$ac_ct_STRIP" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. if test "x$ac_ct_STRIP" = x; then
  6243. STRIP=":"
  6244. else
  6245. case $cross_compiling:$ac_tool_warned in
  6246. yes:)
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6249. ac_tool_warned=yes ;;
  6250. esac
  6251. STRIP=$ac_ct_STRIP
  6252. fi
  6253. else
  6254. STRIP="$ac_cv_prog_STRIP"
  6255. fi
  6256. test -z "$STRIP" && STRIP=:
  6257. if test -n "$ac_tool_prefix"; then
  6258. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6259. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6261. $as_echo_n "checking for $ac_word... " >&6; }
  6262. if ${ac_cv_prog_RANLIB+:} false; then :
  6263. $as_echo_n "(cached) " >&6
  6264. else
  6265. if test -n "$RANLIB"; then
  6266. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6267. else
  6268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6269. for as_dir in $PATH
  6270. do
  6271. IFS=$as_save_IFS
  6272. test -z "$as_dir" && as_dir=.
  6273. for ac_exec_ext in '' $ac_executable_extensions; do
  6274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6275. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6277. break 2
  6278. fi
  6279. done
  6280. done
  6281. IFS=$as_save_IFS
  6282. fi
  6283. fi
  6284. RANLIB=$ac_cv_prog_RANLIB
  6285. if test -n "$RANLIB"; then
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6287. $as_echo "$RANLIB" >&6; }
  6288. else
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6290. $as_echo "no" >&6; }
  6291. fi
  6292. fi
  6293. if test -z "$ac_cv_prog_RANLIB"; then
  6294. ac_ct_RANLIB=$RANLIB
  6295. # Extract the first word of "ranlib", so it can be a program name with args.
  6296. set dummy ranlib; ac_word=$2
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6298. $as_echo_n "checking for $ac_word... " >&6; }
  6299. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. if test -n "$ac_ct_RANLIB"; then
  6303. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6304. else
  6305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6306. for as_dir in $PATH
  6307. do
  6308. IFS=$as_save_IFS
  6309. test -z "$as_dir" && as_dir=.
  6310. for ac_exec_ext in '' $ac_executable_extensions; do
  6311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6312. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6314. break 2
  6315. fi
  6316. done
  6317. done
  6318. IFS=$as_save_IFS
  6319. fi
  6320. fi
  6321. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6322. if test -n "$ac_ct_RANLIB"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6324. $as_echo "$ac_ct_RANLIB" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. if test "x$ac_ct_RANLIB" = x; then
  6330. RANLIB=":"
  6331. else
  6332. case $cross_compiling:$ac_tool_warned in
  6333. yes:)
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6335. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6336. ac_tool_warned=yes ;;
  6337. esac
  6338. RANLIB=$ac_ct_RANLIB
  6339. fi
  6340. else
  6341. RANLIB="$ac_cv_prog_RANLIB"
  6342. fi
  6343. test -z "$RANLIB" && RANLIB=:
  6344. # Determine commands to create old-style static archives.
  6345. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6346. old_postinstall_cmds='chmod 644 $oldlib'
  6347. old_postuninstall_cmds=
  6348. if test -n "$RANLIB"; then
  6349. case $host_os in
  6350. openbsd*)
  6351. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6352. ;;
  6353. *)
  6354. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6355. ;;
  6356. esac
  6357. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6358. fi
  6359. case $host_os in
  6360. darwin*)
  6361. lock_old_archive_extraction=yes ;;
  6362. *)
  6363. lock_old_archive_extraction=no ;;
  6364. esac
  6365. # If no C compiler was specified, use CC.
  6366. LTCC=${LTCC-"$CC"}
  6367. # If no C compiler flags were specified, use CFLAGS.
  6368. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6369. # Allow CC to be a program name with arguments.
  6370. compiler=$CC
  6371. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6373. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6374. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. # These are sane defaults that work on at least a few old systems.
  6378. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6379. # Character class describing NM global symbol codes.
  6380. symcode='[BCDEGRST]'
  6381. # Regexp to match symbols that can be accessed directly from C.
  6382. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6383. # Define system-specific variables.
  6384. case $host_os in
  6385. aix*)
  6386. symcode='[BCDT]'
  6387. ;;
  6388. cygwin* | mingw* | pw32* | cegcc*)
  6389. symcode='[ABCDGISTW]'
  6390. ;;
  6391. hpux*)
  6392. if test "$host_cpu" = ia64; then
  6393. symcode='[ABCDEGRST]'
  6394. fi
  6395. ;;
  6396. irix* | nonstopux*)
  6397. symcode='[BCDEGRST]'
  6398. ;;
  6399. osf*)
  6400. symcode='[BCDEGQRST]'
  6401. ;;
  6402. solaris*)
  6403. symcode='[BDRT]'
  6404. ;;
  6405. sco3.2v5*)
  6406. symcode='[DT]'
  6407. ;;
  6408. sysv4.2uw2*)
  6409. symcode='[DT]'
  6410. ;;
  6411. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6412. symcode='[ABDT]'
  6413. ;;
  6414. sysv4)
  6415. symcode='[DFNSTU]'
  6416. ;;
  6417. esac
  6418. # If we're using GNU nm, then use its standard symbol codes.
  6419. case `$NM -V 2>&1` in
  6420. *GNU* | *'with BFD'*)
  6421. symcode='[ABCDGIRSTW]' ;;
  6422. esac
  6423. # Transform an extracted symbol line into a proper C declaration.
  6424. # Some systems (esp. on ia64) link data and code symbols differently,
  6425. # so use this general approach.
  6426. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6427. # Transform an extracted symbol line into symbol name and symbol address
  6428. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6429. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6430. # Handle CRLF in mingw tool chain
  6431. opt_cr=
  6432. case $build_os in
  6433. mingw*)
  6434. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6435. ;;
  6436. esac
  6437. # Try without a prefix underscore, then with it.
  6438. for ac_symprfx in "" "_"; do
  6439. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6440. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6441. # Write the raw and C identifiers.
  6442. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6443. # Fake it for dumpbin and say T for any non-static function
  6444. # and D for any global variable.
  6445. # Also find C++ and __fastcall symbols from MSVC++,
  6446. # which start with @ or ?.
  6447. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6448. " {last_section=section; section=\$ 3};"\
  6449. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6450. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6451. " \$ 0!~/External *\|/{next};"\
  6452. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6453. " {if(hide[section]) next};"\
  6454. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6455. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6456. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6457. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6458. " ' prfx=^$ac_symprfx"
  6459. else
  6460. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6461. fi
  6462. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6463. # Check to see that the pipe works correctly.
  6464. pipe_works=no
  6465. rm -f conftest*
  6466. cat > conftest.$ac_ext <<_LT_EOF
  6467. #ifdef __cplusplus
  6468. extern "C" {
  6469. #endif
  6470. char nm_test_var;
  6471. void nm_test_func(void);
  6472. void nm_test_func(void){}
  6473. #ifdef __cplusplus
  6474. }
  6475. #endif
  6476. int main(){nm_test_var='a';nm_test_func();return(0);}
  6477. _LT_EOF
  6478. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6479. (eval $ac_compile) 2>&5
  6480. ac_status=$?
  6481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6482. test $ac_status = 0; }; then
  6483. # Now try to grab the symbols.
  6484. nlist=conftest.nm
  6485. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6486. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6487. ac_status=$?
  6488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6489. test $ac_status = 0; } && test -s "$nlist"; then
  6490. # Try sorting and uniquifying the output.
  6491. if sort "$nlist" | uniq > "$nlist"T; then
  6492. mv -f "$nlist"T "$nlist"
  6493. else
  6494. rm -f "$nlist"T
  6495. fi
  6496. # Make sure that we snagged all the symbols we need.
  6497. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6498. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6499. cat <<_LT_EOF > conftest.$ac_ext
  6500. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6501. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6502. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6503. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6504. # define LT_DLSYM_CONST
  6505. #elif defined(__osf__)
  6506. /* This system does not cope well with relocations in const data. */
  6507. # define LT_DLSYM_CONST
  6508. #else
  6509. # define LT_DLSYM_CONST const
  6510. #endif
  6511. #ifdef __cplusplus
  6512. extern "C" {
  6513. #endif
  6514. _LT_EOF
  6515. # Now generate the symbol file.
  6516. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6517. cat <<_LT_EOF >> conftest.$ac_ext
  6518. /* The mapping between symbol names and symbols. */
  6519. LT_DLSYM_CONST struct {
  6520. const char *name;
  6521. void *address;
  6522. }
  6523. lt__PROGRAM__LTX_preloaded_symbols[] =
  6524. {
  6525. { "@PROGRAM@", (void *) 0 },
  6526. _LT_EOF
  6527. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6528. cat <<\_LT_EOF >> conftest.$ac_ext
  6529. {0, (void *) 0}
  6530. };
  6531. /* This works around a problem in FreeBSD linker */
  6532. #ifdef FREEBSD_WORKAROUND
  6533. static const void *lt_preloaded_setup() {
  6534. return lt__PROGRAM__LTX_preloaded_symbols;
  6535. }
  6536. #endif
  6537. #ifdef __cplusplus
  6538. }
  6539. #endif
  6540. _LT_EOF
  6541. # Now try linking the two files.
  6542. mv conftest.$ac_objext conftstm.$ac_objext
  6543. lt_globsym_save_LIBS=$LIBS
  6544. lt_globsym_save_CFLAGS=$CFLAGS
  6545. LIBS="conftstm.$ac_objext"
  6546. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6547. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6548. (eval $ac_link) 2>&5
  6549. ac_status=$?
  6550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6551. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6552. pipe_works=yes
  6553. fi
  6554. LIBS=$lt_globsym_save_LIBS
  6555. CFLAGS=$lt_globsym_save_CFLAGS
  6556. else
  6557. echo "cannot find nm_test_func in $nlist" >&5
  6558. fi
  6559. else
  6560. echo "cannot find nm_test_var in $nlist" >&5
  6561. fi
  6562. else
  6563. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6564. fi
  6565. else
  6566. echo "$progname: failed program was:" >&5
  6567. cat conftest.$ac_ext >&5
  6568. fi
  6569. rm -rf conftest* conftst*
  6570. # Do not use the global_symbol_pipe unless it works.
  6571. if test "$pipe_works" = yes; then
  6572. break
  6573. else
  6574. lt_cv_sys_global_symbol_pipe=
  6575. fi
  6576. done
  6577. fi
  6578. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6579. lt_cv_sys_global_symbol_to_cdecl=
  6580. fi
  6581. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6583. $as_echo "failed" >&6; }
  6584. else
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6586. $as_echo "ok" >&6; }
  6587. fi
  6588. # Response file support.
  6589. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6590. nm_file_list_spec='@'
  6591. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6592. nm_file_list_spec='@'
  6593. fi
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6595. $as_echo_n "checking for sysroot... " >&6; }
  6596. # Check whether --with-sysroot was given.
  6597. if test "${with_sysroot+set}" = set; then :
  6598. withval=$with_sysroot;
  6599. else
  6600. with_sysroot=no
  6601. fi
  6602. lt_sysroot=
  6603. case ${with_sysroot} in #(
  6604. yes)
  6605. if test "$GCC" = yes; then
  6606. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6607. fi
  6608. ;; #(
  6609. /*)
  6610. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6611. ;; #(
  6612. no|'')
  6613. ;; #(
  6614. *)
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6616. $as_echo "${with_sysroot}" >&6; }
  6617. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6618. ;;
  6619. esac
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6621. $as_echo "${lt_sysroot:-no}" >&6; }
  6622. # Check whether --enable-libtool-lock was given.
  6623. if test "${enable_libtool_lock+set}" = set; then :
  6624. enableval=$enable_libtool_lock;
  6625. fi
  6626. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6627. # Some flags need to be propagated to the compiler or linker for good
  6628. # libtool support.
  6629. case $host in
  6630. ia64-*-hpux*)
  6631. # Find out which ABI we are using.
  6632. echo 'int i;' > conftest.$ac_ext
  6633. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6634. (eval $ac_compile) 2>&5
  6635. ac_status=$?
  6636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6637. test $ac_status = 0; }; then
  6638. case `/usr/bin/file conftest.$ac_objext` in
  6639. *ELF-32*)
  6640. HPUX_IA64_MODE="32"
  6641. ;;
  6642. *ELF-64*)
  6643. HPUX_IA64_MODE="64"
  6644. ;;
  6645. esac
  6646. fi
  6647. rm -rf conftest*
  6648. ;;
  6649. *-*-irix6*)
  6650. # Find out which ABI we are using.
  6651. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6652. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6653. (eval $ac_compile) 2>&5
  6654. ac_status=$?
  6655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6656. test $ac_status = 0; }; then
  6657. if test "$lt_cv_prog_gnu_ld" = yes; then
  6658. case `/usr/bin/file conftest.$ac_objext` in
  6659. *32-bit*)
  6660. LD="${LD-ld} -melf32bsmip"
  6661. ;;
  6662. *N32*)
  6663. LD="${LD-ld} -melf32bmipn32"
  6664. ;;
  6665. *64-bit*)
  6666. LD="${LD-ld} -melf64bmip"
  6667. ;;
  6668. esac
  6669. else
  6670. case `/usr/bin/file conftest.$ac_objext` in
  6671. *32-bit*)
  6672. LD="${LD-ld} -32"
  6673. ;;
  6674. *N32*)
  6675. LD="${LD-ld} -n32"
  6676. ;;
  6677. *64-bit*)
  6678. LD="${LD-ld} -64"
  6679. ;;
  6680. esac
  6681. fi
  6682. fi
  6683. rm -rf conftest*
  6684. ;;
  6685. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6686. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6687. # Find out which ABI we are using.
  6688. echo 'int i;' > conftest.$ac_ext
  6689. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6690. (eval $ac_compile) 2>&5
  6691. ac_status=$?
  6692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6693. test $ac_status = 0; }; then
  6694. case `/usr/bin/file conftest.o` in
  6695. *32-bit*)
  6696. case $host in
  6697. x86_64-*kfreebsd*-gnu)
  6698. LD="${LD-ld} -m elf_i386_fbsd"
  6699. ;;
  6700. x86_64-*linux*)
  6701. case `/usr/bin/file conftest.o` in
  6702. *x86-64*)
  6703. LD="${LD-ld} -m elf32_x86_64"
  6704. ;;
  6705. *)
  6706. LD="${LD-ld} -m elf_i386"
  6707. ;;
  6708. esac
  6709. ;;
  6710. powerpc64le-*)
  6711. LD="${LD-ld} -m elf32lppclinux"
  6712. ;;
  6713. powerpc64-*)
  6714. LD="${LD-ld} -m elf32ppclinux"
  6715. ;;
  6716. s390x-*linux*)
  6717. LD="${LD-ld} -m elf_s390"
  6718. ;;
  6719. sparc64-*linux*)
  6720. LD="${LD-ld} -m elf32_sparc"
  6721. ;;
  6722. esac
  6723. ;;
  6724. *64-bit*)
  6725. case $host in
  6726. x86_64-*kfreebsd*-gnu)
  6727. LD="${LD-ld} -m elf_x86_64_fbsd"
  6728. ;;
  6729. x86_64-*linux*)
  6730. LD="${LD-ld} -m elf_x86_64"
  6731. ;;
  6732. powerpcle-*)
  6733. LD="${LD-ld} -m elf64lppc"
  6734. ;;
  6735. powerpc-*)
  6736. LD="${LD-ld} -m elf64ppc"
  6737. ;;
  6738. s390*-*linux*|s390*-*tpf*)
  6739. LD="${LD-ld} -m elf64_s390"
  6740. ;;
  6741. sparc*-*linux*)
  6742. LD="${LD-ld} -m elf64_sparc"
  6743. ;;
  6744. esac
  6745. ;;
  6746. esac
  6747. fi
  6748. rm -rf conftest*
  6749. ;;
  6750. *-*-sco3.2v5*)
  6751. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6752. SAVE_CFLAGS="$CFLAGS"
  6753. CFLAGS="$CFLAGS -belf"
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6755. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6756. if ${lt_cv_cc_needs_belf+:} false; then :
  6757. $as_echo_n "(cached) " >&6
  6758. else
  6759. ac_ext=c
  6760. ac_cpp='$CPP $CPPFLAGS'
  6761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6765. /* end confdefs.h. */
  6766. int
  6767. main ()
  6768. {
  6769. ;
  6770. return 0;
  6771. }
  6772. _ACEOF
  6773. if ac_fn_c_try_link "$LINENO"; then :
  6774. lt_cv_cc_needs_belf=yes
  6775. else
  6776. lt_cv_cc_needs_belf=no
  6777. fi
  6778. rm -f core conftest.err conftest.$ac_objext \
  6779. conftest$ac_exeext conftest.$ac_ext
  6780. ac_ext=c
  6781. ac_cpp='$CPP $CPPFLAGS'
  6782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6785. fi
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6787. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6788. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6789. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6790. CFLAGS="$SAVE_CFLAGS"
  6791. fi
  6792. ;;
  6793. *-*solaris*)
  6794. # Find out which ABI we are using.
  6795. echo 'int i;' > conftest.$ac_ext
  6796. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6797. (eval $ac_compile) 2>&5
  6798. ac_status=$?
  6799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6800. test $ac_status = 0; }; then
  6801. case `/usr/bin/file conftest.o` in
  6802. *64-bit*)
  6803. case $lt_cv_prog_gnu_ld in
  6804. yes*)
  6805. case $host in
  6806. i?86-*-solaris*)
  6807. LD="${LD-ld} -m elf_x86_64"
  6808. ;;
  6809. sparc*-*-solaris*)
  6810. LD="${LD-ld} -m elf64_sparc"
  6811. ;;
  6812. esac
  6813. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6814. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6815. LD="${LD-ld}_sol2"
  6816. fi
  6817. ;;
  6818. *)
  6819. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6820. LD="${LD-ld} -64"
  6821. fi
  6822. ;;
  6823. esac
  6824. ;;
  6825. esac
  6826. fi
  6827. rm -rf conftest*
  6828. ;;
  6829. esac
  6830. need_locks="$enable_libtool_lock"
  6831. if test -n "$ac_tool_prefix"; then
  6832. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6833. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6835. $as_echo_n "checking for $ac_word... " >&6; }
  6836. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6837. $as_echo_n "(cached) " >&6
  6838. else
  6839. if test -n "$MANIFEST_TOOL"; then
  6840. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6841. else
  6842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6843. for as_dir in $PATH
  6844. do
  6845. IFS=$as_save_IFS
  6846. test -z "$as_dir" && as_dir=.
  6847. for ac_exec_ext in '' $ac_executable_extensions; do
  6848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6849. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6851. break 2
  6852. fi
  6853. done
  6854. done
  6855. IFS=$as_save_IFS
  6856. fi
  6857. fi
  6858. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6859. if test -n "$MANIFEST_TOOL"; then
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6861. $as_echo "$MANIFEST_TOOL" >&6; }
  6862. else
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6864. $as_echo "no" >&6; }
  6865. fi
  6866. fi
  6867. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6868. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6869. # Extract the first word of "mt", so it can be a program name with args.
  6870. set dummy mt; ac_word=$2
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6872. $as_echo_n "checking for $ac_word... " >&6; }
  6873. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6874. $as_echo_n "(cached) " >&6
  6875. else
  6876. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6877. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6878. else
  6879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6880. for as_dir in $PATH
  6881. do
  6882. IFS=$as_save_IFS
  6883. test -z "$as_dir" && as_dir=.
  6884. for ac_exec_ext in '' $ac_executable_extensions; do
  6885. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6886. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6888. break 2
  6889. fi
  6890. done
  6891. done
  6892. IFS=$as_save_IFS
  6893. fi
  6894. fi
  6895. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6896. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6898. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6899. else
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6901. $as_echo "no" >&6; }
  6902. fi
  6903. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6904. MANIFEST_TOOL=":"
  6905. else
  6906. case $cross_compiling:$ac_tool_warned in
  6907. yes:)
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6909. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6910. ac_tool_warned=yes ;;
  6911. esac
  6912. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6913. fi
  6914. else
  6915. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6916. fi
  6917. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6919. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6920. if ${lt_cv_path_mainfest_tool+:} false; then :
  6921. $as_echo_n "(cached) " >&6
  6922. else
  6923. lt_cv_path_mainfest_tool=no
  6924. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6925. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6926. cat conftest.err >&5
  6927. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6928. lt_cv_path_mainfest_tool=yes
  6929. fi
  6930. rm -f conftest*
  6931. fi
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6933. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6934. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6935. MANIFEST_TOOL=:
  6936. fi
  6937. case $host_os in
  6938. rhapsody* | darwin*)
  6939. if test -n "$ac_tool_prefix"; then
  6940. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6941. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6943. $as_echo_n "checking for $ac_word... " >&6; }
  6944. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6945. $as_echo_n "(cached) " >&6
  6946. else
  6947. if test -n "$DSYMUTIL"; then
  6948. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6949. else
  6950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6951. for as_dir in $PATH
  6952. do
  6953. IFS=$as_save_IFS
  6954. test -z "$as_dir" && as_dir=.
  6955. for ac_exec_ext in '' $ac_executable_extensions; do
  6956. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6957. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6959. break 2
  6960. fi
  6961. done
  6962. done
  6963. IFS=$as_save_IFS
  6964. fi
  6965. fi
  6966. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6967. if test -n "$DSYMUTIL"; then
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6969. $as_echo "$DSYMUTIL" >&6; }
  6970. else
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6972. $as_echo "no" >&6; }
  6973. fi
  6974. fi
  6975. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6976. ac_ct_DSYMUTIL=$DSYMUTIL
  6977. # Extract the first word of "dsymutil", so it can be a program name with args.
  6978. set dummy dsymutil; ac_word=$2
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6980. $as_echo_n "checking for $ac_word... " >&6; }
  6981. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6982. $as_echo_n "(cached) " >&6
  6983. else
  6984. if test -n "$ac_ct_DSYMUTIL"; then
  6985. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6986. else
  6987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6988. for as_dir in $PATH
  6989. do
  6990. IFS=$as_save_IFS
  6991. test -z "$as_dir" && as_dir=.
  6992. for ac_exec_ext in '' $ac_executable_extensions; do
  6993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6994. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6996. break 2
  6997. fi
  6998. done
  6999. done
  7000. IFS=$as_save_IFS
  7001. fi
  7002. fi
  7003. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7004. if test -n "$ac_ct_DSYMUTIL"; then
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7006. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7007. else
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7009. $as_echo "no" >&6; }
  7010. fi
  7011. if test "x$ac_ct_DSYMUTIL" = x; then
  7012. DSYMUTIL=":"
  7013. else
  7014. case $cross_compiling:$ac_tool_warned in
  7015. yes:)
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7017. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7018. ac_tool_warned=yes ;;
  7019. esac
  7020. DSYMUTIL=$ac_ct_DSYMUTIL
  7021. fi
  7022. else
  7023. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7024. fi
  7025. if test -n "$ac_tool_prefix"; then
  7026. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7027. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7029. $as_echo_n "checking for $ac_word... " >&6; }
  7030. if ${ac_cv_prog_NMEDIT+:} false; then :
  7031. $as_echo_n "(cached) " >&6
  7032. else
  7033. if test -n "$NMEDIT"; then
  7034. ac_cv_prog_NMEDIT="$NMEDIT" # 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. test -z "$as_dir" && as_dir=.
  7041. for ac_exec_ext in '' $ac_executable_extensions; do
  7042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7043. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7045. break 2
  7046. fi
  7047. done
  7048. done
  7049. IFS=$as_save_IFS
  7050. fi
  7051. fi
  7052. NMEDIT=$ac_cv_prog_NMEDIT
  7053. if test -n "$NMEDIT"; then
  7054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7055. $as_echo "$NMEDIT" >&6; }
  7056. else
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7058. $as_echo "no" >&6; }
  7059. fi
  7060. fi
  7061. if test -z "$ac_cv_prog_NMEDIT"; then
  7062. ac_ct_NMEDIT=$NMEDIT
  7063. # Extract the first word of "nmedit", so it can be a program name with args.
  7064. set dummy nmedit; ac_word=$2
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7066. $as_echo_n "checking for $ac_word... " >&6; }
  7067. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. if test -n "$ac_ct_NMEDIT"; then
  7071. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7072. else
  7073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7074. for as_dir in $PATH
  7075. do
  7076. IFS=$as_save_IFS
  7077. test -z "$as_dir" && as_dir=.
  7078. for ac_exec_ext in '' $ac_executable_extensions; do
  7079. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7080. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7082. break 2
  7083. fi
  7084. done
  7085. done
  7086. IFS=$as_save_IFS
  7087. fi
  7088. fi
  7089. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7090. if test -n "$ac_ct_NMEDIT"; then
  7091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7092. $as_echo "$ac_ct_NMEDIT" >&6; }
  7093. else
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7095. $as_echo "no" >&6; }
  7096. fi
  7097. if test "x$ac_ct_NMEDIT" = x; then
  7098. NMEDIT=":"
  7099. else
  7100. case $cross_compiling:$ac_tool_warned in
  7101. yes:)
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7103. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7104. ac_tool_warned=yes ;;
  7105. esac
  7106. NMEDIT=$ac_ct_NMEDIT
  7107. fi
  7108. else
  7109. NMEDIT="$ac_cv_prog_NMEDIT"
  7110. fi
  7111. if test -n "$ac_tool_prefix"; then
  7112. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7113. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7115. $as_echo_n "checking for $ac_word... " >&6; }
  7116. if ${ac_cv_prog_LIPO+:} false; then :
  7117. $as_echo_n "(cached) " >&6
  7118. else
  7119. if test -n "$LIPO"; then
  7120. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7121. else
  7122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7123. for as_dir in $PATH
  7124. do
  7125. IFS=$as_save_IFS
  7126. test -z "$as_dir" && as_dir=.
  7127. for ac_exec_ext in '' $ac_executable_extensions; do
  7128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7129. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7131. break 2
  7132. fi
  7133. done
  7134. done
  7135. IFS=$as_save_IFS
  7136. fi
  7137. fi
  7138. LIPO=$ac_cv_prog_LIPO
  7139. if test -n "$LIPO"; then
  7140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7141. $as_echo "$LIPO" >&6; }
  7142. else
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7144. $as_echo "no" >&6; }
  7145. fi
  7146. fi
  7147. if test -z "$ac_cv_prog_LIPO"; then
  7148. ac_ct_LIPO=$LIPO
  7149. # Extract the first word of "lipo", so it can be a program name with args.
  7150. set dummy lipo; ac_word=$2
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7152. $as_echo_n "checking for $ac_word... " >&6; }
  7153. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7154. $as_echo_n "(cached) " >&6
  7155. else
  7156. if test -n "$ac_ct_LIPO"; then
  7157. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7158. else
  7159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7160. for as_dir in $PATH
  7161. do
  7162. IFS=$as_save_IFS
  7163. test -z "$as_dir" && as_dir=.
  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_LIPO="lipo"
  7167. $as_echo "$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_LIPO=$ac_cv_prog_ac_ct_LIPO
  7176. if test -n "$ac_ct_LIPO"; then
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7178. $as_echo "$ac_ct_LIPO" >&6; }
  7179. else
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7181. $as_echo "no" >&6; }
  7182. fi
  7183. if test "x$ac_ct_LIPO" = x; then
  7184. LIPO=":"
  7185. else
  7186. case $cross_compiling:$ac_tool_warned in
  7187. yes:)
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7189. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7190. ac_tool_warned=yes ;;
  7191. esac
  7192. LIPO=$ac_ct_LIPO
  7193. fi
  7194. else
  7195. LIPO="$ac_cv_prog_LIPO"
  7196. fi
  7197. if test -n "$ac_tool_prefix"; then
  7198. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7199. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7201. $as_echo_n "checking for $ac_word... " >&6; }
  7202. if ${ac_cv_prog_OTOOL+:} false; then :
  7203. $as_echo_n "(cached) " >&6
  7204. else
  7205. if test -n "$OTOOL"; then
  7206. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7207. else
  7208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7209. for as_dir in $PATH
  7210. do
  7211. IFS=$as_save_IFS
  7212. test -z "$as_dir" && as_dir=.
  7213. for ac_exec_ext in '' $ac_executable_extensions; do
  7214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7215. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7217. break 2
  7218. fi
  7219. done
  7220. done
  7221. IFS=$as_save_IFS
  7222. fi
  7223. fi
  7224. OTOOL=$ac_cv_prog_OTOOL
  7225. if test -n "$OTOOL"; then
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7227. $as_echo "$OTOOL" >&6; }
  7228. else
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7230. $as_echo "no" >&6; }
  7231. fi
  7232. fi
  7233. if test -z "$ac_cv_prog_OTOOL"; then
  7234. ac_ct_OTOOL=$OTOOL
  7235. # Extract the first word of "otool", so it can be a program name with args.
  7236. set dummy otool; ac_word=$2
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7238. $as_echo_n "checking for $ac_word... " >&6; }
  7239. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7240. $as_echo_n "(cached) " >&6
  7241. else
  7242. if test -n "$ac_ct_OTOOL"; then
  7243. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7244. else
  7245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7246. for as_dir in $PATH
  7247. do
  7248. IFS=$as_save_IFS
  7249. test -z "$as_dir" && as_dir=.
  7250. for ac_exec_ext in '' $ac_executable_extensions; do
  7251. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7252. ac_cv_prog_ac_ct_OTOOL="otool"
  7253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7254. break 2
  7255. fi
  7256. done
  7257. done
  7258. IFS=$as_save_IFS
  7259. fi
  7260. fi
  7261. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7262. if test -n "$ac_ct_OTOOL"; then
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7264. $as_echo "$ac_ct_OTOOL" >&6; }
  7265. else
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7267. $as_echo "no" >&6; }
  7268. fi
  7269. if test "x$ac_ct_OTOOL" = x; then
  7270. OTOOL=":"
  7271. else
  7272. case $cross_compiling:$ac_tool_warned in
  7273. yes:)
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7275. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7276. ac_tool_warned=yes ;;
  7277. esac
  7278. OTOOL=$ac_ct_OTOOL
  7279. fi
  7280. else
  7281. OTOOL="$ac_cv_prog_OTOOL"
  7282. fi
  7283. if test -n "$ac_tool_prefix"; then
  7284. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7285. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7287. $as_echo_n "checking for $ac_word... " >&6; }
  7288. if ${ac_cv_prog_OTOOL64+:} false; then :
  7289. $as_echo_n "(cached) " >&6
  7290. else
  7291. if test -n "$OTOOL64"; then
  7292. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7293. else
  7294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7295. for as_dir in $PATH
  7296. do
  7297. IFS=$as_save_IFS
  7298. test -z "$as_dir" && as_dir=.
  7299. for ac_exec_ext in '' $ac_executable_extensions; do
  7300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7301. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7303. break 2
  7304. fi
  7305. done
  7306. done
  7307. IFS=$as_save_IFS
  7308. fi
  7309. fi
  7310. OTOOL64=$ac_cv_prog_OTOOL64
  7311. if test -n "$OTOOL64"; then
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7313. $as_echo "$OTOOL64" >&6; }
  7314. else
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7316. $as_echo "no" >&6; }
  7317. fi
  7318. fi
  7319. if test -z "$ac_cv_prog_OTOOL64"; then
  7320. ac_ct_OTOOL64=$OTOOL64
  7321. # Extract the first word of "otool64", so it can be a program name with args.
  7322. set dummy otool64; ac_word=$2
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7324. $as_echo_n "checking for $ac_word... " >&6; }
  7325. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7326. $as_echo_n "(cached) " >&6
  7327. else
  7328. if test -n "$ac_ct_OTOOL64"; then
  7329. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7330. else
  7331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7332. for as_dir in $PATH
  7333. do
  7334. IFS=$as_save_IFS
  7335. test -z "$as_dir" && as_dir=.
  7336. for ac_exec_ext in '' $ac_executable_extensions; do
  7337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7338. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7340. break 2
  7341. fi
  7342. done
  7343. done
  7344. IFS=$as_save_IFS
  7345. fi
  7346. fi
  7347. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7348. if test -n "$ac_ct_OTOOL64"; then
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7350. $as_echo "$ac_ct_OTOOL64" >&6; }
  7351. else
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7353. $as_echo "no" >&6; }
  7354. fi
  7355. if test "x$ac_ct_OTOOL64" = x; then
  7356. OTOOL64=":"
  7357. else
  7358. case $cross_compiling:$ac_tool_warned in
  7359. yes:)
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7362. ac_tool_warned=yes ;;
  7363. esac
  7364. OTOOL64=$ac_ct_OTOOL64
  7365. fi
  7366. else
  7367. OTOOL64="$ac_cv_prog_OTOOL64"
  7368. fi
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7370. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7371. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7372. $as_echo_n "(cached) " >&6
  7373. else
  7374. lt_cv_apple_cc_single_mod=no
  7375. if test -z "${LT_MULTI_MODULE}"; then
  7376. # By default we will add the -single_module flag. You can override
  7377. # by either setting the environment variable LT_MULTI_MODULE
  7378. # non-empty at configure time, or by adding -multi_module to the
  7379. # link flags.
  7380. rm -rf libconftest.dylib*
  7381. echo "int foo(void){return 1;}" > conftest.c
  7382. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7383. -dynamiclib -Wl,-single_module conftest.c" >&5
  7384. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7385. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7386. _lt_result=$?
  7387. # If there is a non-empty error log, and "single_module"
  7388. # appears in it, assume the flag caused a linker warning
  7389. if test -s conftest.err && $GREP single_module conftest.err; then
  7390. cat conftest.err >&5
  7391. # Otherwise, if the output was created with a 0 exit code from
  7392. # the compiler, it worked.
  7393. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7394. lt_cv_apple_cc_single_mod=yes
  7395. else
  7396. cat conftest.err >&5
  7397. fi
  7398. rm -rf libconftest.dylib*
  7399. rm -f conftest.*
  7400. fi
  7401. fi
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7403. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7405. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7406. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7407. $as_echo_n "(cached) " >&6
  7408. else
  7409. lt_cv_ld_exported_symbols_list=no
  7410. save_LDFLAGS=$LDFLAGS
  7411. echo "_main" > conftest.sym
  7412. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7414. /* end confdefs.h. */
  7415. int
  7416. main ()
  7417. {
  7418. ;
  7419. return 0;
  7420. }
  7421. _ACEOF
  7422. if ac_fn_c_try_link "$LINENO"; then :
  7423. lt_cv_ld_exported_symbols_list=yes
  7424. else
  7425. lt_cv_ld_exported_symbols_list=no
  7426. fi
  7427. rm -f core conftest.err conftest.$ac_objext \
  7428. conftest$ac_exeext conftest.$ac_ext
  7429. LDFLAGS="$save_LDFLAGS"
  7430. fi
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7432. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7434. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7435. if ${lt_cv_ld_force_load+:} false; then :
  7436. $as_echo_n "(cached) " >&6
  7437. else
  7438. lt_cv_ld_force_load=no
  7439. cat > conftest.c << _LT_EOF
  7440. int forced_loaded() { return 2;}
  7441. _LT_EOF
  7442. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7443. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7444. echo "$AR cru libconftest.a conftest.o" >&5
  7445. $AR cru libconftest.a conftest.o 2>&5
  7446. echo "$RANLIB libconftest.a" >&5
  7447. $RANLIB libconftest.a 2>&5
  7448. cat > conftest.c << _LT_EOF
  7449. int main() { return 0;}
  7450. _LT_EOF
  7451. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7452. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7453. _lt_result=$?
  7454. if test -s conftest.err && $GREP force_load conftest.err; then
  7455. cat conftest.err >&5
  7456. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7457. lt_cv_ld_force_load=yes
  7458. else
  7459. cat conftest.err >&5
  7460. fi
  7461. rm -f conftest.err libconftest.a conftest conftest.c
  7462. rm -rf conftest.dSYM
  7463. fi
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7465. $as_echo "$lt_cv_ld_force_load" >&6; }
  7466. case $host_os in
  7467. rhapsody* | darwin1.[012])
  7468. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7469. darwin1.*)
  7470. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7471. darwin*) # darwin 5.x on
  7472. # if running on 10.5 or later, the deployment target defaults
  7473. # to the OS version, if on x86, and 10.4, the deployment
  7474. # target defaults to 10.4. Don't you love it?
  7475. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7476. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7477. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7478. 10.[012]*)
  7479. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7480. 10.*)
  7481. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7482. esac
  7483. ;;
  7484. esac
  7485. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7486. _lt_dar_single_mod='$single_module'
  7487. fi
  7488. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7489. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7490. else
  7491. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7492. fi
  7493. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7494. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7495. else
  7496. _lt_dsymutil=
  7497. fi
  7498. ;;
  7499. esac
  7500. for ac_header in dlfcn.h
  7501. do :
  7502. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7503. "
  7504. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7505. cat >>confdefs.h <<_ACEOF
  7506. #define HAVE_DLFCN_H 1
  7507. _ACEOF
  7508. fi
  7509. done
  7510. # Set options
  7511. enable_win32_dll=no
  7512. # Check whether --with-pic was given.
  7513. if test "${with_pic+set}" = set; then :
  7514. withval=$with_pic; lt_p=${PACKAGE-default}
  7515. case $withval in
  7516. yes|no) pic_mode=$withval ;;
  7517. *)
  7518. pic_mode=default
  7519. # Look at the argument we got. We use all the common list separators.
  7520. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7521. for lt_pkg in $withval; do
  7522. IFS="$lt_save_ifs"
  7523. if test "X$lt_pkg" = "X$lt_p"; then
  7524. pic_mode=yes
  7525. fi
  7526. done
  7527. IFS="$lt_save_ifs"
  7528. ;;
  7529. esac
  7530. else
  7531. pic_mode=default
  7532. fi
  7533. test -z "$pic_mode" && pic_mode=default
  7534. # Check whether --enable-fast-install was given.
  7535. if test "${enable_fast_install+set}" = set; then :
  7536. enableval=$enable_fast_install; p=${PACKAGE-default}
  7537. case $enableval in
  7538. yes) enable_fast_install=yes ;;
  7539. no) enable_fast_install=no ;;
  7540. *)
  7541. enable_fast_install=no
  7542. # Look at the argument we got. We use all the common list separators.
  7543. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7544. for pkg in $enableval; do
  7545. IFS="$lt_save_ifs"
  7546. if test "X$pkg" = "X$p"; then
  7547. enable_fast_install=yes
  7548. fi
  7549. done
  7550. IFS="$lt_save_ifs"
  7551. ;;
  7552. esac
  7553. else
  7554. enable_fast_install=yes
  7555. fi
  7556. # This can be used to rebuild libtool when needed
  7557. LIBTOOL_DEPS="$ltmain"
  7558. # Always use our own libtool.
  7559. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7560. test -z "$LN_S" && LN_S="ln -s"
  7561. if test -n "${ZSH_VERSION+set}" ; then
  7562. setopt NO_GLOB_SUBST
  7563. fi
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7565. $as_echo_n "checking for objdir... " >&6; }
  7566. if ${lt_cv_objdir+:} false; then :
  7567. $as_echo_n "(cached) " >&6
  7568. else
  7569. rm -f .libs 2>/dev/null
  7570. mkdir .libs 2>/dev/null
  7571. if test -d .libs; then
  7572. lt_cv_objdir=.libs
  7573. else
  7574. # MS-DOS does not allow filenames that begin with a dot.
  7575. lt_cv_objdir=_libs
  7576. fi
  7577. rmdir .libs 2>/dev/null
  7578. fi
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7580. $as_echo "$lt_cv_objdir" >&6; }
  7581. objdir=$lt_cv_objdir
  7582. cat >>confdefs.h <<_ACEOF
  7583. #define LT_OBJDIR "$lt_cv_objdir/"
  7584. _ACEOF
  7585. case $host_os in
  7586. aix3*)
  7587. # AIX sometimes has problems with the GCC collect2 program. For some
  7588. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7589. # vanish in a puff of smoke.
  7590. if test "X${COLLECT_NAMES+set}" != Xset; then
  7591. COLLECT_NAMES=
  7592. export COLLECT_NAMES
  7593. fi
  7594. ;;
  7595. esac
  7596. # Global variables:
  7597. ofile=libtool
  7598. can_build_shared=yes
  7599. # All known linkers require a `.a' archive for static linking (except MSVC,
  7600. # which needs '.lib').
  7601. libext=a
  7602. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7603. old_CC="$CC"
  7604. old_CFLAGS="$CFLAGS"
  7605. # Set sane defaults for various variables
  7606. test -z "$CC" && CC=cc
  7607. test -z "$LTCC" && LTCC=$CC
  7608. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7609. test -z "$LD" && LD=ld
  7610. test -z "$ac_objext" && ac_objext=o
  7611. for cc_temp in $compiler""; do
  7612. case $cc_temp in
  7613. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7614. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7615. \-*) ;;
  7616. *) break;;
  7617. esac
  7618. done
  7619. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7620. # Only perform the check for file, if the check method requires it
  7621. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7622. case $deplibs_check_method in
  7623. file_magic*)
  7624. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7626. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7627. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7628. $as_echo_n "(cached) " >&6
  7629. else
  7630. case $MAGIC_CMD in
  7631. [\\/*] | ?:[\\/]*)
  7632. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7633. ;;
  7634. *)
  7635. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7636. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7637. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7638. for ac_dir in $ac_dummy; do
  7639. IFS="$lt_save_ifs"
  7640. test -z "$ac_dir" && ac_dir=.
  7641. if test -f $ac_dir/${ac_tool_prefix}file; then
  7642. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7643. if test -n "$file_magic_test_file"; then
  7644. case $deplibs_check_method in
  7645. "file_magic "*)
  7646. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7647. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7648. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7649. $EGREP "$file_magic_regex" > /dev/null; then
  7650. :
  7651. else
  7652. cat <<_LT_EOF 1>&2
  7653. *** Warning: the command libtool uses to detect shared libraries,
  7654. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7655. *** The result is that libtool may fail to recognize shared libraries
  7656. *** as such. This will affect the creation of libtool libraries that
  7657. *** depend on shared libraries, but programs linked with such libtool
  7658. *** libraries will work regardless of this problem. Nevertheless, you
  7659. *** may want to report the problem to your system manager and/or to
  7660. *** bug-libtool@gnu.org
  7661. _LT_EOF
  7662. fi ;;
  7663. esac
  7664. fi
  7665. break
  7666. fi
  7667. done
  7668. IFS="$lt_save_ifs"
  7669. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7670. ;;
  7671. esac
  7672. fi
  7673. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7674. if test -n "$MAGIC_CMD"; then
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7676. $as_echo "$MAGIC_CMD" >&6; }
  7677. else
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7679. $as_echo "no" >&6; }
  7680. fi
  7681. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7682. if test -n "$ac_tool_prefix"; then
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7684. $as_echo_n "checking for file... " >&6; }
  7685. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. case $MAGIC_CMD in
  7689. [\\/*] | ?:[\\/]*)
  7690. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7691. ;;
  7692. *)
  7693. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7694. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7695. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7696. for ac_dir in $ac_dummy; do
  7697. IFS="$lt_save_ifs"
  7698. test -z "$ac_dir" && ac_dir=.
  7699. if test -f $ac_dir/file; then
  7700. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7701. if test -n "$file_magic_test_file"; then
  7702. case $deplibs_check_method in
  7703. "file_magic "*)
  7704. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7705. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7706. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7707. $EGREP "$file_magic_regex" > /dev/null; then
  7708. :
  7709. else
  7710. cat <<_LT_EOF 1>&2
  7711. *** Warning: the command libtool uses to detect shared libraries,
  7712. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7713. *** The result is that libtool may fail to recognize shared libraries
  7714. *** as such. This will affect the creation of libtool libraries that
  7715. *** depend on shared libraries, but programs linked with such libtool
  7716. *** libraries will work regardless of this problem. Nevertheless, you
  7717. *** may want to report the problem to your system manager and/or to
  7718. *** bug-libtool@gnu.org
  7719. _LT_EOF
  7720. fi ;;
  7721. esac
  7722. fi
  7723. break
  7724. fi
  7725. done
  7726. IFS="$lt_save_ifs"
  7727. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7728. ;;
  7729. esac
  7730. fi
  7731. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7732. if test -n "$MAGIC_CMD"; then
  7733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7734. $as_echo "$MAGIC_CMD" >&6; }
  7735. else
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7737. $as_echo "no" >&6; }
  7738. fi
  7739. else
  7740. MAGIC_CMD=:
  7741. fi
  7742. fi
  7743. fi
  7744. ;;
  7745. esac
  7746. # Use C for the default configuration in the libtool script
  7747. lt_save_CC="$CC"
  7748. ac_ext=c
  7749. ac_cpp='$CPP $CPPFLAGS'
  7750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7753. # Source file extension for C test sources.
  7754. ac_ext=c
  7755. # Object file extension for compiled C test sources.
  7756. objext=o
  7757. objext=$objext
  7758. # Code to be used in simple compile tests
  7759. lt_simple_compile_test_code="int some_variable = 0;"
  7760. # Code to be used in simple link tests
  7761. lt_simple_link_test_code='int main(){return(0);}'
  7762. # If no C compiler was specified, use CC.
  7763. LTCC=${LTCC-"$CC"}
  7764. # If no C compiler flags were specified, use CFLAGS.
  7765. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7766. # Allow CC to be a program name with arguments.
  7767. compiler=$CC
  7768. # Save the default compiler, since it gets overwritten when the other
  7769. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7770. compiler_DEFAULT=$CC
  7771. # save warnings/boilerplate of simple test code
  7772. ac_outfile=conftest.$ac_objext
  7773. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7774. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7775. _lt_compiler_boilerplate=`cat conftest.err`
  7776. $RM conftest*
  7777. ac_outfile=conftest.$ac_objext
  7778. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7779. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7780. _lt_linker_boilerplate=`cat conftest.err`
  7781. $RM -r conftest*
  7782. ## CAVEAT EMPTOR:
  7783. ## There is no encapsulation within the following macros, do not change
  7784. ## the running order or otherwise move them around unless you know exactly
  7785. ## what you are doing...
  7786. if test -n "$compiler"; then
  7787. lt_prog_compiler_no_builtin_flag=
  7788. if test "$GCC" = yes; then
  7789. case $cc_basename in
  7790. nvcc*)
  7791. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7792. *)
  7793. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7794. esac
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7796. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7797. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7798. $as_echo_n "(cached) " >&6
  7799. else
  7800. lt_cv_prog_compiler_rtti_exceptions=no
  7801. ac_outfile=conftest.$ac_objext
  7802. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7803. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7804. # Insert the option either (1) after the last *FLAGS variable, or
  7805. # (2) before a word containing "conftest.", or (3) at the end.
  7806. # Note that $ac_compile itself does not contain backslashes and begins
  7807. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7808. # The option is referenced via a variable to avoid confusing sed.
  7809. lt_compile=`echo "$ac_compile" | $SED \
  7810. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7811. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7812. -e 's:$: $lt_compiler_flag:'`
  7813. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7814. (eval "$lt_compile" 2>conftest.err)
  7815. ac_status=$?
  7816. cat conftest.err >&5
  7817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7818. if (exit $ac_status) && test -s "$ac_outfile"; then
  7819. # The compiler can only warn and ignore the option if not recognized
  7820. # So say no if there are warnings other than the usual output.
  7821. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7822. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7823. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7824. lt_cv_prog_compiler_rtti_exceptions=yes
  7825. fi
  7826. fi
  7827. $RM conftest*
  7828. fi
  7829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7830. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7831. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7832. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7833. else
  7834. :
  7835. fi
  7836. fi
  7837. lt_prog_compiler_wl=
  7838. lt_prog_compiler_pic=
  7839. lt_prog_compiler_static=
  7840. if test "$GCC" = yes; then
  7841. lt_prog_compiler_wl='-Wl,'
  7842. lt_prog_compiler_static='-static'
  7843. case $host_os in
  7844. aix*)
  7845. # All AIX code is PIC.
  7846. if test "$host_cpu" = ia64; then
  7847. # AIX 5 now supports IA64 processor
  7848. lt_prog_compiler_static='-Bstatic'
  7849. fi
  7850. ;;
  7851. amigaos*)
  7852. case $host_cpu in
  7853. powerpc)
  7854. # see comment about AmigaOS4 .so support
  7855. lt_prog_compiler_pic='-fPIC'
  7856. ;;
  7857. m68k)
  7858. # FIXME: we need at least 68020 code to build shared libraries, but
  7859. # adding the `-m68020' flag to GCC prevents building anything better,
  7860. # like `-m68040'.
  7861. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7862. ;;
  7863. esac
  7864. ;;
  7865. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7866. # PIC is the default for these OSes.
  7867. ;;
  7868. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7869. # This hack is so that the source file can tell whether it is being
  7870. # built for inclusion in a dll (and should export symbols for example).
  7871. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7872. # (--disable-auto-import) libraries
  7873. lt_prog_compiler_pic='-DDLL_EXPORT'
  7874. ;;
  7875. darwin* | rhapsody*)
  7876. # PIC is the default on this platform
  7877. # Common symbols not allowed in MH_DYLIB files
  7878. lt_prog_compiler_pic='-fno-common'
  7879. ;;
  7880. haiku*)
  7881. # PIC is the default for Haiku.
  7882. # The "-static" flag exists, but is broken.
  7883. lt_prog_compiler_static=
  7884. ;;
  7885. hpux*)
  7886. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7887. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7888. # sets the default TLS model and affects inlining.
  7889. case $host_cpu in
  7890. hppa*64*)
  7891. # +Z the default
  7892. ;;
  7893. *)
  7894. lt_prog_compiler_pic='-fPIC'
  7895. ;;
  7896. esac
  7897. ;;
  7898. interix[3-9]*)
  7899. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7900. # Instead, we relocate shared libraries at runtime.
  7901. ;;
  7902. msdosdjgpp*)
  7903. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7904. # on systems that don't support them.
  7905. lt_prog_compiler_can_build_shared=no
  7906. enable_shared=no
  7907. ;;
  7908. *nto* | *qnx*)
  7909. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7910. # it will coredump.
  7911. lt_prog_compiler_pic='-fPIC -shared'
  7912. ;;
  7913. sysv4*MP*)
  7914. if test -d /usr/nec; then
  7915. lt_prog_compiler_pic=-Kconform_pic
  7916. fi
  7917. ;;
  7918. *)
  7919. lt_prog_compiler_pic='-fPIC'
  7920. ;;
  7921. esac
  7922. case $cc_basename in
  7923. nvcc*) # Cuda Compiler Driver 2.2
  7924. lt_prog_compiler_wl='-Xlinker '
  7925. if test -n "$lt_prog_compiler_pic"; then
  7926. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7927. fi
  7928. ;;
  7929. esac
  7930. else
  7931. # PORTME Check for flag to pass linker flags through the system compiler.
  7932. case $host_os in
  7933. aix*)
  7934. lt_prog_compiler_wl='-Wl,'
  7935. if test "$host_cpu" = ia64; then
  7936. # AIX 5 now supports IA64 processor
  7937. lt_prog_compiler_static='-Bstatic'
  7938. else
  7939. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7940. fi
  7941. ;;
  7942. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7943. # This hack is so that the source file can tell whether it is being
  7944. # built for inclusion in a dll (and should export symbols for example).
  7945. lt_prog_compiler_pic='-DDLL_EXPORT'
  7946. ;;
  7947. hpux9* | hpux10* | hpux11*)
  7948. lt_prog_compiler_wl='-Wl,'
  7949. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7950. # not for PA HP-UX.
  7951. case $host_cpu in
  7952. hppa*64*|ia64*)
  7953. # +Z the default
  7954. ;;
  7955. *)
  7956. lt_prog_compiler_pic='+Z'
  7957. ;;
  7958. esac
  7959. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7960. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7961. ;;
  7962. irix5* | irix6* | nonstopux*)
  7963. lt_prog_compiler_wl='-Wl,'
  7964. # PIC (with -KPIC) is the default.
  7965. lt_prog_compiler_static='-non_shared'
  7966. ;;
  7967. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7968. case $cc_basename in
  7969. # old Intel for x86_64 which still supported -KPIC.
  7970. ecc*)
  7971. lt_prog_compiler_wl='-Wl,'
  7972. lt_prog_compiler_pic='-KPIC'
  7973. lt_prog_compiler_static='-static'
  7974. ;;
  7975. # icc used to be incompatible with GCC.
  7976. # ICC 10 doesn't accept -KPIC any more.
  7977. icc* | ifort*)
  7978. lt_prog_compiler_wl='-Wl,'
  7979. lt_prog_compiler_pic='-fPIC'
  7980. lt_prog_compiler_static='-static'
  7981. ;;
  7982. # Lahey Fortran 8.1.
  7983. lf95*)
  7984. lt_prog_compiler_wl='-Wl,'
  7985. lt_prog_compiler_pic='--shared'
  7986. lt_prog_compiler_static='--static'
  7987. ;;
  7988. nagfor*)
  7989. # NAG Fortran compiler
  7990. lt_prog_compiler_wl='-Wl,-Wl,,'
  7991. lt_prog_compiler_pic='-PIC'
  7992. lt_prog_compiler_static='-Bstatic'
  7993. ;;
  7994. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7995. # Portland Group compilers (*not* the Pentium gcc compiler,
  7996. # which looks to be a dead project)
  7997. lt_prog_compiler_wl='-Wl,'
  7998. lt_prog_compiler_pic='-fpic'
  7999. lt_prog_compiler_static='-Bstatic'
  8000. ;;
  8001. ccc*)
  8002. lt_prog_compiler_wl='-Wl,'
  8003. # All Alpha code is PIC.
  8004. lt_prog_compiler_static='-non_shared'
  8005. ;;
  8006. xl* | bgxl* | bgf* | mpixl*)
  8007. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8008. lt_prog_compiler_wl='-Wl,'
  8009. lt_prog_compiler_pic='-qpic'
  8010. lt_prog_compiler_static='-qstaticlink'
  8011. ;;
  8012. *)
  8013. case `$CC -V 2>&1 | sed 5q` in
  8014. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8015. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8016. lt_prog_compiler_pic='-KPIC'
  8017. lt_prog_compiler_static='-Bstatic'
  8018. lt_prog_compiler_wl=''
  8019. ;;
  8020. *Sun\ F* | *Sun*Fortran*)
  8021. lt_prog_compiler_pic='-KPIC'
  8022. lt_prog_compiler_static='-Bstatic'
  8023. lt_prog_compiler_wl='-Qoption ld '
  8024. ;;
  8025. *Sun\ C*)
  8026. # Sun C 5.9
  8027. lt_prog_compiler_pic='-KPIC'
  8028. lt_prog_compiler_static='-Bstatic'
  8029. lt_prog_compiler_wl='-Wl,'
  8030. ;;
  8031. *Intel*\ [CF]*Compiler*)
  8032. lt_prog_compiler_wl='-Wl,'
  8033. lt_prog_compiler_pic='-fPIC'
  8034. lt_prog_compiler_static='-static'
  8035. ;;
  8036. *Portland\ Group*)
  8037. lt_prog_compiler_wl='-Wl,'
  8038. lt_prog_compiler_pic='-fpic'
  8039. lt_prog_compiler_static='-Bstatic'
  8040. ;;
  8041. esac
  8042. ;;
  8043. esac
  8044. ;;
  8045. newsos6)
  8046. lt_prog_compiler_pic='-KPIC'
  8047. lt_prog_compiler_static='-Bstatic'
  8048. ;;
  8049. *nto* | *qnx*)
  8050. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8051. # it will coredump.
  8052. lt_prog_compiler_pic='-fPIC -shared'
  8053. ;;
  8054. osf3* | osf4* | osf5*)
  8055. lt_prog_compiler_wl='-Wl,'
  8056. # All OSF/1 code is PIC.
  8057. lt_prog_compiler_static='-non_shared'
  8058. ;;
  8059. rdos*)
  8060. lt_prog_compiler_static='-non_shared'
  8061. ;;
  8062. solaris*)
  8063. lt_prog_compiler_pic='-KPIC'
  8064. lt_prog_compiler_static='-Bstatic'
  8065. case $cc_basename in
  8066. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8067. lt_prog_compiler_wl='-Qoption ld ';;
  8068. *)
  8069. lt_prog_compiler_wl='-Wl,';;
  8070. esac
  8071. ;;
  8072. sunos4*)
  8073. lt_prog_compiler_wl='-Qoption ld '
  8074. lt_prog_compiler_pic='-PIC'
  8075. lt_prog_compiler_static='-Bstatic'
  8076. ;;
  8077. sysv4 | sysv4.2uw2* | sysv4.3*)
  8078. lt_prog_compiler_wl='-Wl,'
  8079. lt_prog_compiler_pic='-KPIC'
  8080. lt_prog_compiler_static='-Bstatic'
  8081. ;;
  8082. sysv4*MP*)
  8083. if test -d /usr/nec ;then
  8084. lt_prog_compiler_pic='-Kconform_pic'
  8085. lt_prog_compiler_static='-Bstatic'
  8086. fi
  8087. ;;
  8088. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8089. lt_prog_compiler_wl='-Wl,'
  8090. lt_prog_compiler_pic='-KPIC'
  8091. lt_prog_compiler_static='-Bstatic'
  8092. ;;
  8093. unicos*)
  8094. lt_prog_compiler_wl='-Wl,'
  8095. lt_prog_compiler_can_build_shared=no
  8096. ;;
  8097. uts4*)
  8098. lt_prog_compiler_pic='-pic'
  8099. lt_prog_compiler_static='-Bstatic'
  8100. ;;
  8101. *)
  8102. lt_prog_compiler_can_build_shared=no
  8103. ;;
  8104. esac
  8105. fi
  8106. case $host_os in
  8107. # For platforms which do not support PIC, -DPIC is meaningless:
  8108. *djgpp*)
  8109. lt_prog_compiler_pic=
  8110. ;;
  8111. *)
  8112. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8113. ;;
  8114. esac
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8116. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8117. if ${lt_cv_prog_compiler_pic+:} false; then :
  8118. $as_echo_n "(cached) " >&6
  8119. else
  8120. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8121. fi
  8122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8123. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8124. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8125. #
  8126. # Check to make sure the PIC flag actually works.
  8127. #
  8128. if test -n "$lt_prog_compiler_pic"; then
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8130. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8131. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8132. $as_echo_n "(cached) " >&6
  8133. else
  8134. lt_cv_prog_compiler_pic_works=no
  8135. ac_outfile=conftest.$ac_objext
  8136. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8137. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8138. # Insert the option either (1) after the last *FLAGS variable, or
  8139. # (2) before a word containing "conftest.", or (3) at the end.
  8140. # Note that $ac_compile itself does not contain backslashes and begins
  8141. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8142. # The option is referenced via a variable to avoid confusing sed.
  8143. lt_compile=`echo "$ac_compile" | $SED \
  8144. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8145. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8146. -e 's:$: $lt_compiler_flag:'`
  8147. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8148. (eval "$lt_compile" 2>conftest.err)
  8149. ac_status=$?
  8150. cat conftest.err >&5
  8151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8152. if (exit $ac_status) && test -s "$ac_outfile"; then
  8153. # The compiler can only warn and ignore the option if not recognized
  8154. # So say no if there are warnings other than the usual output.
  8155. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8156. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8157. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8158. lt_cv_prog_compiler_pic_works=yes
  8159. fi
  8160. fi
  8161. $RM conftest*
  8162. fi
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8164. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8165. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8166. case $lt_prog_compiler_pic in
  8167. "" | " "*) ;;
  8168. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8169. esac
  8170. else
  8171. lt_prog_compiler_pic=
  8172. lt_prog_compiler_can_build_shared=no
  8173. fi
  8174. fi
  8175. #
  8176. # Check to make sure the static flag actually works.
  8177. #
  8178. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8180. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8181. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8182. $as_echo_n "(cached) " >&6
  8183. else
  8184. lt_cv_prog_compiler_static_works=no
  8185. save_LDFLAGS="$LDFLAGS"
  8186. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8187. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8188. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8189. # The linker can only warn and ignore the option if not recognized
  8190. # So say no if there are warnings
  8191. if test -s conftest.err; then
  8192. # Append any errors to the config.log.
  8193. cat conftest.err 1>&5
  8194. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8195. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8196. if diff conftest.exp conftest.er2 >/dev/null; then
  8197. lt_cv_prog_compiler_static_works=yes
  8198. fi
  8199. else
  8200. lt_cv_prog_compiler_static_works=yes
  8201. fi
  8202. fi
  8203. $RM -r conftest*
  8204. LDFLAGS="$save_LDFLAGS"
  8205. fi
  8206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8207. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8208. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8209. :
  8210. else
  8211. lt_prog_compiler_static=
  8212. fi
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8214. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8215. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8216. $as_echo_n "(cached) " >&6
  8217. else
  8218. lt_cv_prog_compiler_c_o=no
  8219. $RM -r conftest 2>/dev/null
  8220. mkdir conftest
  8221. cd conftest
  8222. mkdir out
  8223. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8224. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8225. # Insert the option either (1) after the last *FLAGS variable, or
  8226. # (2) before a word containing "conftest.", or (3) at the end.
  8227. # Note that $ac_compile itself does not contain backslashes and begins
  8228. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8229. lt_compile=`echo "$ac_compile" | $SED \
  8230. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8231. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8232. -e 's:$: $lt_compiler_flag:'`
  8233. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8234. (eval "$lt_compile" 2>out/conftest.err)
  8235. ac_status=$?
  8236. cat out/conftest.err >&5
  8237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8238. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8239. then
  8240. # The compiler can only warn and ignore the option if not recognized
  8241. # So say no if there are warnings
  8242. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8243. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8244. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8245. lt_cv_prog_compiler_c_o=yes
  8246. fi
  8247. fi
  8248. chmod u+w . 2>&5
  8249. $RM conftest*
  8250. # SGI C++ compiler will create directory out/ii_files/ for
  8251. # template instantiation
  8252. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8253. $RM out/* && rmdir out
  8254. cd ..
  8255. $RM -r conftest
  8256. $RM conftest*
  8257. fi
  8258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8259. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8261. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8262. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8263. $as_echo_n "(cached) " >&6
  8264. else
  8265. lt_cv_prog_compiler_c_o=no
  8266. $RM -r conftest 2>/dev/null
  8267. mkdir conftest
  8268. cd conftest
  8269. mkdir out
  8270. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8271. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8272. # Insert the option either (1) after the last *FLAGS variable, or
  8273. # (2) before a word containing "conftest.", or (3) at the end.
  8274. # Note that $ac_compile itself does not contain backslashes and begins
  8275. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8276. lt_compile=`echo "$ac_compile" | $SED \
  8277. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8278. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8279. -e 's:$: $lt_compiler_flag:'`
  8280. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8281. (eval "$lt_compile" 2>out/conftest.err)
  8282. ac_status=$?
  8283. cat out/conftest.err >&5
  8284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8285. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8286. then
  8287. # The compiler can only warn and ignore the option if not recognized
  8288. # So say no if there are warnings
  8289. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8290. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8291. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8292. lt_cv_prog_compiler_c_o=yes
  8293. fi
  8294. fi
  8295. chmod u+w . 2>&5
  8296. $RM conftest*
  8297. # SGI C++ compiler will create directory out/ii_files/ for
  8298. # template instantiation
  8299. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8300. $RM out/* && rmdir out
  8301. cd ..
  8302. $RM -r conftest
  8303. $RM conftest*
  8304. fi
  8305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8306. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8307. hard_links="nottested"
  8308. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8309. # do not overwrite the value of need_locks provided by the user
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8311. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8312. hard_links=yes
  8313. $RM conftest*
  8314. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8315. touch conftest.a
  8316. ln conftest.a conftest.b 2>&5 || hard_links=no
  8317. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8319. $as_echo "$hard_links" >&6; }
  8320. if test "$hard_links" = no; then
  8321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8322. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8323. need_locks=warn
  8324. fi
  8325. else
  8326. need_locks=no
  8327. fi
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8329. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8330. runpath_var=
  8331. allow_undefined_flag=
  8332. always_export_symbols=no
  8333. archive_cmds=
  8334. archive_expsym_cmds=
  8335. compiler_needs_object=no
  8336. enable_shared_with_static_runtimes=no
  8337. export_dynamic_flag_spec=
  8338. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8339. hardcode_automatic=no
  8340. hardcode_direct=no
  8341. hardcode_direct_absolute=no
  8342. hardcode_libdir_flag_spec=
  8343. hardcode_libdir_separator=
  8344. hardcode_minus_L=no
  8345. hardcode_shlibpath_var=unsupported
  8346. inherit_rpath=no
  8347. link_all_deplibs=unknown
  8348. module_cmds=
  8349. module_expsym_cmds=
  8350. old_archive_from_new_cmds=
  8351. old_archive_from_expsyms_cmds=
  8352. thread_safe_flag_spec=
  8353. whole_archive_flag_spec=
  8354. # include_expsyms should be a list of space-separated symbols to be *always*
  8355. # included in the symbol list
  8356. include_expsyms=
  8357. # exclude_expsyms can be an extended regexp of symbols to exclude
  8358. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8359. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8360. # as well as any symbol that contains `d'.
  8361. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8362. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8363. # platforms (ab)use it in PIC code, but their linkers get confused if
  8364. # the symbol is explicitly referenced. Since portable code cannot
  8365. # rely on this symbol name, it's probably fine to never include it in
  8366. # preloaded symbol tables.
  8367. # Exclude shared library initialization/finalization symbols.
  8368. extract_expsyms_cmds=
  8369. case $host_os in
  8370. cygwin* | mingw* | pw32* | cegcc*)
  8371. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8372. # When not using gcc, we currently assume that we are using
  8373. # Microsoft Visual C++.
  8374. if test "$GCC" != yes; then
  8375. with_gnu_ld=no
  8376. fi
  8377. ;;
  8378. interix*)
  8379. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8380. with_gnu_ld=yes
  8381. ;;
  8382. openbsd*)
  8383. with_gnu_ld=no
  8384. ;;
  8385. linux* | k*bsd*-gnu | gnu*)
  8386. link_all_deplibs=no
  8387. ;;
  8388. esac
  8389. ld_shlibs=yes
  8390. # On some targets, GNU ld is compatible enough with the native linker
  8391. # that we're better off using the native interface for both.
  8392. lt_use_gnu_ld_interface=no
  8393. if test "$with_gnu_ld" = yes; then
  8394. case $host_os in
  8395. aix*)
  8396. # The AIX port of GNU ld has always aspired to compatibility
  8397. # with the native linker. However, as the warning in the GNU ld
  8398. # block says, versions before 2.19.5* couldn't really create working
  8399. # shared libraries, regardless of the interface used.
  8400. case `$LD -v 2>&1` in
  8401. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8402. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8403. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8404. *)
  8405. lt_use_gnu_ld_interface=yes
  8406. ;;
  8407. esac
  8408. ;;
  8409. *)
  8410. lt_use_gnu_ld_interface=yes
  8411. ;;
  8412. esac
  8413. fi
  8414. if test "$lt_use_gnu_ld_interface" = yes; then
  8415. # If archive_cmds runs LD, not CC, wlarc should be empty
  8416. wlarc='${wl}'
  8417. # Set some defaults for GNU ld with shared library support. These
  8418. # are reset later if shared libraries are not supported. Putting them
  8419. # here allows them to be overridden if necessary.
  8420. runpath_var=LD_RUN_PATH
  8421. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8422. export_dynamic_flag_spec='${wl}--export-dynamic'
  8423. # ancient GNU ld didn't support --whole-archive et. al.
  8424. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8425. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8426. else
  8427. whole_archive_flag_spec=
  8428. fi
  8429. supports_anon_versioning=no
  8430. case `$LD -v 2>&1` in
  8431. *GNU\ gold*) supports_anon_versioning=yes ;;
  8432. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8433. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8434. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8435. *\ 2.11.*) ;; # other 2.11 versions
  8436. *) supports_anon_versioning=yes ;;
  8437. esac
  8438. # See if GNU ld supports shared libraries.
  8439. case $host_os in
  8440. aix[3-9]*)
  8441. # On AIX/PPC, the GNU linker is very broken
  8442. if test "$host_cpu" != ia64; then
  8443. ld_shlibs=no
  8444. cat <<_LT_EOF 1>&2
  8445. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8446. *** to be unable to reliably create shared libraries on AIX.
  8447. *** Therefore, libtool is disabling shared libraries support. If you
  8448. *** really care for shared libraries, you may want to install binutils
  8449. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8450. *** You will then need to restart the configuration process.
  8451. _LT_EOF
  8452. fi
  8453. ;;
  8454. amigaos*)
  8455. case $host_cpu in
  8456. powerpc)
  8457. # see comment about AmigaOS4 .so support
  8458. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8459. archive_expsym_cmds=''
  8460. ;;
  8461. m68k)
  8462. 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)'
  8463. hardcode_libdir_flag_spec='-L$libdir'
  8464. hardcode_minus_L=yes
  8465. ;;
  8466. esac
  8467. ;;
  8468. beos*)
  8469. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8470. allow_undefined_flag=unsupported
  8471. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8472. # support --undefined. This deserves some investigation. FIXME
  8473. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8474. else
  8475. ld_shlibs=no
  8476. fi
  8477. ;;
  8478. cygwin* | mingw* | pw32* | cegcc*)
  8479. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8480. # as there is no search path for DLLs.
  8481. hardcode_libdir_flag_spec='-L$libdir'
  8482. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8483. allow_undefined_flag=unsupported
  8484. always_export_symbols=no
  8485. enable_shared_with_static_runtimes=yes
  8486. 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'
  8487. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8488. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8489. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8490. # If the export-symbols file already is a .def file (1st line
  8491. # is EXPORTS), use it as is; otherwise, prepend...
  8492. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8493. cp $export_symbols $output_objdir/$soname.def;
  8494. else
  8495. echo EXPORTS > $output_objdir/$soname.def;
  8496. cat $export_symbols >> $output_objdir/$soname.def;
  8497. fi~
  8498. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8499. else
  8500. ld_shlibs=no
  8501. fi
  8502. ;;
  8503. haiku*)
  8504. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8505. link_all_deplibs=yes
  8506. ;;
  8507. interix[3-9]*)
  8508. hardcode_direct=no
  8509. hardcode_shlibpath_var=no
  8510. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8511. export_dynamic_flag_spec='${wl}-E'
  8512. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8513. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8514. # default) and relocated if they conflict, which is a slow very memory
  8515. # consuming and fragmenting process. To avoid this, we pick a random,
  8516. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8517. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8518. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8519. 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'
  8520. ;;
  8521. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8522. tmp_diet=no
  8523. if test "$host_os" = linux-dietlibc; then
  8524. case $cc_basename in
  8525. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8526. esac
  8527. fi
  8528. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8529. && test "$tmp_diet" = no
  8530. then
  8531. tmp_addflag=' $pic_flag'
  8532. tmp_sharedflag='-shared'
  8533. case $cc_basename,$host_cpu in
  8534. pgcc*) # Portland Group C compiler
  8535. 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'
  8536. tmp_addflag=' $pic_flag'
  8537. ;;
  8538. pgf77* | pgf90* | pgf95* | pgfortran*)
  8539. # Portland Group f77 and f90 compilers
  8540. 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'
  8541. tmp_addflag=' $pic_flag -Mnomain' ;;
  8542. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8543. tmp_addflag=' -i_dynamic' ;;
  8544. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8545. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8546. ifc* | ifort*) # Intel Fortran compiler
  8547. tmp_addflag=' -nofor_main' ;;
  8548. lf95*) # Lahey Fortran 8.1
  8549. whole_archive_flag_spec=
  8550. tmp_sharedflag='--shared' ;;
  8551. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8552. tmp_sharedflag='-qmkshrobj'
  8553. tmp_addflag= ;;
  8554. nvcc*) # Cuda Compiler Driver 2.2
  8555. 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'
  8556. compiler_needs_object=yes
  8557. ;;
  8558. esac
  8559. case `$CC -V 2>&1 | sed 5q` in
  8560. *Sun\ C*) # Sun C 5.9
  8561. 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'
  8562. compiler_needs_object=yes
  8563. tmp_sharedflag='-G' ;;
  8564. *Sun\ F*) # Sun Fortran 8.3
  8565. tmp_sharedflag='-G' ;;
  8566. esac
  8567. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8568. if test "x$supports_anon_versioning" = xyes; then
  8569. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8570. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8571. echo "local: *; };" >> $output_objdir/$libname.ver~
  8572. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8573. fi
  8574. case $cc_basename in
  8575. xlf* | bgf* | bgxlf* | mpixlf*)
  8576. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8577. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8578. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8579. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8580. if test "x$supports_anon_versioning" = xyes; then
  8581. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8582. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8583. echo "local: *; };" >> $output_objdir/$libname.ver~
  8584. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8585. fi
  8586. ;;
  8587. esac
  8588. else
  8589. ld_shlibs=no
  8590. fi
  8591. ;;
  8592. netbsd* | netbsdelf*-gnu)
  8593. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8594. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8595. wlarc=
  8596. else
  8597. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8598. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8599. fi
  8600. ;;
  8601. solaris*)
  8602. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8603. ld_shlibs=no
  8604. cat <<_LT_EOF 1>&2
  8605. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8606. *** create shared libraries on Solaris systems. Therefore, libtool
  8607. *** is disabling shared libraries support. We urge you to upgrade GNU
  8608. *** binutils to release 2.9.1 or newer. Another option is to modify
  8609. *** your PATH or compiler configuration so that the native linker is
  8610. *** used, and then restart.
  8611. _LT_EOF
  8612. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8613. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8614. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8615. else
  8616. ld_shlibs=no
  8617. fi
  8618. ;;
  8619. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8620. case `$LD -v 2>&1` in
  8621. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8622. ld_shlibs=no
  8623. cat <<_LT_EOF 1>&2
  8624. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8625. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8626. *** is disabling shared libraries support. We urge you to upgrade GNU
  8627. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8628. *** your PATH or compiler configuration so that the native linker is
  8629. *** used, and then restart.
  8630. _LT_EOF
  8631. ;;
  8632. *)
  8633. # For security reasons, it is highly recommended that you always
  8634. # use absolute paths for naming shared libraries, and exclude the
  8635. # DT_RUNPATH tag from executables and libraries. But doing so
  8636. # requires that you compile everything twice, which is a pain.
  8637. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8638. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8639. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8640. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8641. else
  8642. ld_shlibs=no
  8643. fi
  8644. ;;
  8645. esac
  8646. ;;
  8647. sunos4*)
  8648. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8649. wlarc=
  8650. hardcode_direct=yes
  8651. hardcode_shlibpath_var=no
  8652. ;;
  8653. *)
  8654. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8655. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8656. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8657. else
  8658. ld_shlibs=no
  8659. fi
  8660. ;;
  8661. esac
  8662. if test "$ld_shlibs" = no; then
  8663. runpath_var=
  8664. hardcode_libdir_flag_spec=
  8665. export_dynamic_flag_spec=
  8666. whole_archive_flag_spec=
  8667. fi
  8668. else
  8669. # PORTME fill in a description of your system's linker (not GNU ld)
  8670. case $host_os in
  8671. aix3*)
  8672. allow_undefined_flag=unsupported
  8673. always_export_symbols=yes
  8674. 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'
  8675. # Note: this linker hardcodes the directories in LIBPATH if there
  8676. # are no directories specified by -L.
  8677. hardcode_minus_L=yes
  8678. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8679. # Neither direct hardcoding nor static linking is supported with a
  8680. # broken collect2.
  8681. hardcode_direct=unsupported
  8682. fi
  8683. ;;
  8684. aix[4-9]*)
  8685. if test "$host_cpu" = ia64; then
  8686. # On IA64, the linker does run time linking by default, so we don't
  8687. # have to do anything special.
  8688. aix_use_runtimelinking=no
  8689. exp_sym_flag='-Bexport'
  8690. no_entry_flag=""
  8691. else
  8692. # If we're using GNU nm, then we don't want the "-C" option.
  8693. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8694. # Also, AIX nm treats weak defined symbols like other global
  8695. # defined symbols, whereas GNU nm marks them as "W".
  8696. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8697. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8698. else
  8699. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8700. fi
  8701. aix_use_runtimelinking=no
  8702. # Test if we are trying to use run time linking or normal
  8703. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8704. # need to do runtime linking.
  8705. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8706. for ld_flag in $LDFLAGS; do
  8707. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8708. aix_use_runtimelinking=yes
  8709. break
  8710. fi
  8711. done
  8712. ;;
  8713. esac
  8714. exp_sym_flag='-bexport'
  8715. no_entry_flag='-bnoentry'
  8716. fi
  8717. # When large executables or shared objects are built, AIX ld can
  8718. # have problems creating the table of contents. If linking a library
  8719. # or program results in "error TOC overflow" add -mminimal-toc to
  8720. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8721. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8722. archive_cmds=''
  8723. hardcode_direct=yes
  8724. hardcode_direct_absolute=yes
  8725. hardcode_libdir_separator=':'
  8726. link_all_deplibs=yes
  8727. file_list_spec='${wl}-f,'
  8728. if test "$GCC" = yes; then
  8729. case $host_os in aix4.[012]|aix4.[012].*)
  8730. # We only want to do this on AIX 4.2 and lower, the check
  8731. # below for broken collect2 doesn't work under 4.3+
  8732. collect2name=`${CC} -print-prog-name=collect2`
  8733. if test -f "$collect2name" &&
  8734. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8735. then
  8736. # We have reworked collect2
  8737. :
  8738. else
  8739. # We have old collect2
  8740. hardcode_direct=unsupported
  8741. # It fails to find uninstalled libraries when the uninstalled
  8742. # path is not listed in the libpath. Setting hardcode_minus_L
  8743. # to unsupported forces relinking
  8744. hardcode_minus_L=yes
  8745. hardcode_libdir_flag_spec='-L$libdir'
  8746. hardcode_libdir_separator=
  8747. fi
  8748. ;;
  8749. esac
  8750. shared_flag='-shared'
  8751. if test "$aix_use_runtimelinking" = yes; then
  8752. shared_flag="$shared_flag "'${wl}-G'
  8753. fi
  8754. link_all_deplibs=no
  8755. else
  8756. # not using gcc
  8757. if test "$host_cpu" = ia64; then
  8758. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8759. # chokes on -Wl,-G. The following line is correct:
  8760. shared_flag='-G'
  8761. else
  8762. if test "$aix_use_runtimelinking" = yes; then
  8763. shared_flag='${wl}-G'
  8764. else
  8765. shared_flag='${wl}-bM:SRE'
  8766. fi
  8767. fi
  8768. fi
  8769. export_dynamic_flag_spec='${wl}-bexpall'
  8770. # It seems that -bexpall does not export symbols beginning with
  8771. # underscore (_), so it is better to generate a list of symbols to export.
  8772. always_export_symbols=yes
  8773. if test "$aix_use_runtimelinking" = yes; then
  8774. # Warning - without using the other runtime loading flags (-brtl),
  8775. # -berok will link without error, but may produce a broken library.
  8776. allow_undefined_flag='-berok'
  8777. # Determine the default libpath from the value encoded in an
  8778. # empty executable.
  8779. if test "${lt_cv_aix_libpath+set}" = set; then
  8780. aix_libpath=$lt_cv_aix_libpath
  8781. else
  8782. if ${lt_cv_aix_libpath_+:} false; then :
  8783. $as_echo_n "(cached) " >&6
  8784. else
  8785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8786. /* end confdefs.h. */
  8787. int
  8788. main ()
  8789. {
  8790. ;
  8791. return 0;
  8792. }
  8793. _ACEOF
  8794. if ac_fn_c_try_link "$LINENO"; then :
  8795. lt_aix_libpath_sed='
  8796. /Import File Strings/,/^$/ {
  8797. /^0/ {
  8798. s/^0 *\([^ ]*\) *$/\1/
  8799. p
  8800. }
  8801. }'
  8802. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8803. # Check for a 64-bit object if we didn't find anything.
  8804. if test -z "$lt_cv_aix_libpath_"; then
  8805. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8806. fi
  8807. fi
  8808. rm -f core conftest.err conftest.$ac_objext \
  8809. conftest$ac_exeext conftest.$ac_ext
  8810. if test -z "$lt_cv_aix_libpath_"; then
  8811. lt_cv_aix_libpath_="/usr/lib:/lib"
  8812. fi
  8813. fi
  8814. aix_libpath=$lt_cv_aix_libpath_
  8815. fi
  8816. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8817. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8818. else
  8819. if test "$host_cpu" = ia64; then
  8820. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8821. allow_undefined_flag="-z nodefs"
  8822. 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"
  8823. else
  8824. # Determine the default libpath from the value encoded in an
  8825. # empty executable.
  8826. if test "${lt_cv_aix_libpath+set}" = set; then
  8827. aix_libpath=$lt_cv_aix_libpath
  8828. else
  8829. if ${lt_cv_aix_libpath_+:} false; then :
  8830. $as_echo_n "(cached) " >&6
  8831. else
  8832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8833. /* end confdefs.h. */
  8834. int
  8835. main ()
  8836. {
  8837. ;
  8838. return 0;
  8839. }
  8840. _ACEOF
  8841. if ac_fn_c_try_link "$LINENO"; then :
  8842. lt_aix_libpath_sed='
  8843. /Import File Strings/,/^$/ {
  8844. /^0/ {
  8845. s/^0 *\([^ ]*\) *$/\1/
  8846. p
  8847. }
  8848. }'
  8849. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8850. # Check for a 64-bit object if we didn't find anything.
  8851. if test -z "$lt_cv_aix_libpath_"; then
  8852. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8853. fi
  8854. fi
  8855. rm -f core conftest.err conftest.$ac_objext \
  8856. conftest$ac_exeext conftest.$ac_ext
  8857. if test -z "$lt_cv_aix_libpath_"; then
  8858. lt_cv_aix_libpath_="/usr/lib:/lib"
  8859. fi
  8860. fi
  8861. aix_libpath=$lt_cv_aix_libpath_
  8862. fi
  8863. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8864. # Warning - without using the other run time loading flags,
  8865. # -berok will link without error, but may produce a broken library.
  8866. no_undefined_flag=' ${wl}-bernotok'
  8867. allow_undefined_flag=' ${wl}-berok'
  8868. if test "$with_gnu_ld" = yes; then
  8869. # We only use this code for GNU lds that support --whole-archive.
  8870. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8871. else
  8872. # Exported symbols can be pulled into shared objects from archives
  8873. whole_archive_flag_spec='$convenience'
  8874. fi
  8875. archive_cmds_need_lc=yes
  8876. # This is similar to how AIX traditionally builds its shared libraries.
  8877. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8878. fi
  8879. fi
  8880. ;;
  8881. amigaos*)
  8882. case $host_cpu in
  8883. powerpc)
  8884. # see comment about AmigaOS4 .so support
  8885. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8886. archive_expsym_cmds=''
  8887. ;;
  8888. m68k)
  8889. 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)'
  8890. hardcode_libdir_flag_spec='-L$libdir'
  8891. hardcode_minus_L=yes
  8892. ;;
  8893. esac
  8894. ;;
  8895. bsdi[45]*)
  8896. export_dynamic_flag_spec=-rdynamic
  8897. ;;
  8898. cygwin* | mingw* | pw32* | cegcc*)
  8899. # When not using gcc, we currently assume that we are using
  8900. # Microsoft Visual C++.
  8901. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8902. # no search path for DLLs.
  8903. case $cc_basename in
  8904. cl*)
  8905. # Native MSVC
  8906. hardcode_libdir_flag_spec=' '
  8907. allow_undefined_flag=unsupported
  8908. always_export_symbols=yes
  8909. file_list_spec='@'
  8910. # Tell ltmain to make .lib files, not .a files.
  8911. libext=lib
  8912. # Tell ltmain to make .dll files, not .so files.
  8913. shrext_cmds=".dll"
  8914. # FIXME: Setting linknames here is a bad hack.
  8915. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8916. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8917. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8918. else
  8919. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8920. fi~
  8921. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8922. linknames='
  8923. # The linker will not automatically build a static lib if we build a DLL.
  8924. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8925. enable_shared_with_static_runtimes=yes
  8926. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8927. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8928. # Don't use ranlib
  8929. old_postinstall_cmds='chmod 644 $oldlib'
  8930. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8931. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8932. case $lt_outputfile in
  8933. *.exe|*.EXE) ;;
  8934. *)
  8935. lt_outputfile="$lt_outputfile.exe"
  8936. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8937. ;;
  8938. esac~
  8939. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8940. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8941. $RM "$lt_outputfile.manifest";
  8942. fi'
  8943. ;;
  8944. *)
  8945. # Assume MSVC wrapper
  8946. hardcode_libdir_flag_spec=' '
  8947. allow_undefined_flag=unsupported
  8948. # Tell ltmain to make .lib files, not .a files.
  8949. libext=lib
  8950. # Tell ltmain to make .dll files, not .so files.
  8951. shrext_cmds=".dll"
  8952. # FIXME: Setting linknames here is a bad hack.
  8953. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8954. # The linker will automatically build a .lib file if we build a DLL.
  8955. old_archive_from_new_cmds='true'
  8956. # FIXME: Should let the user specify the lib program.
  8957. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8958. enable_shared_with_static_runtimes=yes
  8959. ;;
  8960. esac
  8961. ;;
  8962. darwin* | rhapsody*)
  8963. archive_cmds_need_lc=no
  8964. hardcode_direct=no
  8965. hardcode_automatic=yes
  8966. hardcode_shlibpath_var=unsupported
  8967. if test "$lt_cv_ld_force_load" = "yes"; then
  8968. 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\"`'
  8969. else
  8970. whole_archive_flag_spec=''
  8971. fi
  8972. link_all_deplibs=yes
  8973. allow_undefined_flag="$_lt_dar_allow_undefined"
  8974. case $cc_basename in
  8975. ifort*) _lt_dar_can_shared=yes ;;
  8976. *) _lt_dar_can_shared=$GCC ;;
  8977. esac
  8978. if test "$_lt_dar_can_shared" = "yes"; then
  8979. output_verbose_link_cmd=func_echo_all
  8980. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8981. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8982. 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}"
  8983. 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}"
  8984. else
  8985. ld_shlibs=no
  8986. fi
  8987. ;;
  8988. dgux*)
  8989. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8990. hardcode_libdir_flag_spec='-L$libdir'
  8991. hardcode_shlibpath_var=no
  8992. ;;
  8993. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8994. # support. Future versions do this automatically, but an explicit c++rt0.o
  8995. # does not break anything, and helps significantly (at the cost of a little
  8996. # extra space).
  8997. freebsd2.2*)
  8998. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8999. hardcode_libdir_flag_spec='-R$libdir'
  9000. hardcode_direct=yes
  9001. hardcode_shlibpath_var=no
  9002. ;;
  9003. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9004. freebsd2.*)
  9005. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9006. hardcode_direct=yes
  9007. hardcode_minus_L=yes
  9008. hardcode_shlibpath_var=no
  9009. ;;
  9010. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9011. freebsd* | dragonfly*)
  9012. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9013. hardcode_libdir_flag_spec='-R$libdir'
  9014. hardcode_direct=yes
  9015. hardcode_shlibpath_var=no
  9016. ;;
  9017. hpux9*)
  9018. if test "$GCC" = yes; then
  9019. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9020. else
  9021. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9022. fi
  9023. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9024. hardcode_libdir_separator=:
  9025. hardcode_direct=yes
  9026. # hardcode_minus_L: Not really in the search PATH,
  9027. # but as the default location of the library.
  9028. hardcode_minus_L=yes
  9029. export_dynamic_flag_spec='${wl}-E'
  9030. ;;
  9031. hpux10*)
  9032. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9033. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9034. else
  9035. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9036. fi
  9037. if test "$with_gnu_ld" = no; then
  9038. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9039. hardcode_libdir_separator=:
  9040. hardcode_direct=yes
  9041. hardcode_direct_absolute=yes
  9042. export_dynamic_flag_spec='${wl}-E'
  9043. # hardcode_minus_L: Not really in the search PATH,
  9044. # but as the default location of the library.
  9045. hardcode_minus_L=yes
  9046. fi
  9047. ;;
  9048. hpux11*)
  9049. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9050. case $host_cpu in
  9051. hppa*64*)
  9052. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9053. ;;
  9054. ia64*)
  9055. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9056. ;;
  9057. *)
  9058. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9059. ;;
  9060. esac
  9061. else
  9062. case $host_cpu in
  9063. hppa*64*)
  9064. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9065. ;;
  9066. ia64*)
  9067. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9068. ;;
  9069. *)
  9070. # Older versions of the 11.00 compiler do not understand -b yet
  9071. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9073. $as_echo_n "checking if $CC understands -b... " >&6; }
  9074. if ${lt_cv_prog_compiler__b+:} false; then :
  9075. $as_echo_n "(cached) " >&6
  9076. else
  9077. lt_cv_prog_compiler__b=no
  9078. save_LDFLAGS="$LDFLAGS"
  9079. LDFLAGS="$LDFLAGS -b"
  9080. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9081. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9082. # The linker can only warn and ignore the option if not recognized
  9083. # So say no if there are warnings
  9084. if test -s conftest.err; then
  9085. # Append any errors to the config.log.
  9086. cat conftest.err 1>&5
  9087. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9088. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9089. if diff conftest.exp conftest.er2 >/dev/null; then
  9090. lt_cv_prog_compiler__b=yes
  9091. fi
  9092. else
  9093. lt_cv_prog_compiler__b=yes
  9094. fi
  9095. fi
  9096. $RM -r conftest*
  9097. LDFLAGS="$save_LDFLAGS"
  9098. fi
  9099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9100. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9101. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9102. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9103. else
  9104. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9105. fi
  9106. ;;
  9107. esac
  9108. fi
  9109. if test "$with_gnu_ld" = no; then
  9110. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9111. hardcode_libdir_separator=:
  9112. case $host_cpu in
  9113. hppa*64*|ia64*)
  9114. hardcode_direct=no
  9115. hardcode_shlibpath_var=no
  9116. ;;
  9117. *)
  9118. hardcode_direct=yes
  9119. hardcode_direct_absolute=yes
  9120. export_dynamic_flag_spec='${wl}-E'
  9121. # hardcode_minus_L: Not really in the search PATH,
  9122. # but as the default location of the library.
  9123. hardcode_minus_L=yes
  9124. ;;
  9125. esac
  9126. fi
  9127. ;;
  9128. irix5* | irix6* | nonstopux*)
  9129. if test "$GCC" = yes; then
  9130. 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'
  9131. # Try to use the -exported_symbol ld option, if it does not
  9132. # work, assume that -exports_file does not work either and
  9133. # implicitly export all symbols.
  9134. # This should be the same for all languages, so no per-tag cache variable.
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9136. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9137. if ${lt_cv_irix_exported_symbol+:} false; then :
  9138. $as_echo_n "(cached) " >&6
  9139. else
  9140. save_LDFLAGS="$LDFLAGS"
  9141. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9143. /* end confdefs.h. */
  9144. int foo (void) { return 0; }
  9145. _ACEOF
  9146. if ac_fn_c_try_link "$LINENO"; then :
  9147. lt_cv_irix_exported_symbol=yes
  9148. else
  9149. lt_cv_irix_exported_symbol=no
  9150. fi
  9151. rm -f core conftest.err conftest.$ac_objext \
  9152. conftest$ac_exeext conftest.$ac_ext
  9153. LDFLAGS="$save_LDFLAGS"
  9154. fi
  9155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9156. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9157. if test "$lt_cv_irix_exported_symbol" = yes; then
  9158. 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'
  9159. fi
  9160. else
  9161. 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'
  9162. 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'
  9163. fi
  9164. archive_cmds_need_lc='no'
  9165. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9166. hardcode_libdir_separator=:
  9167. inherit_rpath=yes
  9168. link_all_deplibs=yes
  9169. ;;
  9170. netbsd* | netbsdelf*-gnu)
  9171. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9172. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9173. else
  9174. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9175. fi
  9176. hardcode_libdir_flag_spec='-R$libdir'
  9177. hardcode_direct=yes
  9178. hardcode_shlibpath_var=no
  9179. ;;
  9180. newsos6)
  9181. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9182. hardcode_direct=yes
  9183. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9184. hardcode_libdir_separator=:
  9185. hardcode_shlibpath_var=no
  9186. ;;
  9187. *nto* | *qnx*)
  9188. ;;
  9189. openbsd*)
  9190. if test -f /usr/libexec/ld.so; then
  9191. hardcode_direct=yes
  9192. hardcode_shlibpath_var=no
  9193. hardcode_direct_absolute=yes
  9194. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9195. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9196. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9197. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9198. export_dynamic_flag_spec='${wl}-E'
  9199. else
  9200. case $host_os in
  9201. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9202. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9203. hardcode_libdir_flag_spec='-R$libdir'
  9204. ;;
  9205. *)
  9206. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9207. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9208. ;;
  9209. esac
  9210. fi
  9211. else
  9212. ld_shlibs=no
  9213. fi
  9214. ;;
  9215. os2*)
  9216. hardcode_libdir_flag_spec='-L$libdir'
  9217. hardcode_minus_L=yes
  9218. allow_undefined_flag=unsupported
  9219. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9220. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9221. ;;
  9222. osf3*)
  9223. if test "$GCC" = yes; then
  9224. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9225. 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'
  9226. else
  9227. allow_undefined_flag=' -expect_unresolved \*'
  9228. 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'
  9229. fi
  9230. archive_cmds_need_lc='no'
  9231. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9232. hardcode_libdir_separator=:
  9233. ;;
  9234. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9235. if test "$GCC" = yes; then
  9236. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9237. 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'
  9238. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9239. else
  9240. allow_undefined_flag=' -expect_unresolved \*'
  9241. 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'
  9242. 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~
  9243. $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'
  9244. # Both c and cxx compiler support -rpath directly
  9245. hardcode_libdir_flag_spec='-rpath $libdir'
  9246. fi
  9247. archive_cmds_need_lc='no'
  9248. hardcode_libdir_separator=:
  9249. ;;
  9250. solaris*)
  9251. no_undefined_flag=' -z defs'
  9252. if test "$GCC" = yes; then
  9253. wlarc='${wl}'
  9254. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9255. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9256. $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'
  9257. else
  9258. case `$CC -V 2>&1` in
  9259. *"Compilers 5.0"*)
  9260. wlarc=''
  9261. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9262. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9263. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9264. ;;
  9265. *)
  9266. wlarc='${wl}'
  9267. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9268. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9269. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9270. ;;
  9271. esac
  9272. fi
  9273. hardcode_libdir_flag_spec='-R$libdir'
  9274. hardcode_shlibpath_var=no
  9275. case $host_os in
  9276. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9277. *)
  9278. # The compiler driver will combine and reorder linker options,
  9279. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9280. # but is careful enough not to reorder.
  9281. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9282. if test "$GCC" = yes; then
  9283. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9284. else
  9285. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9286. fi
  9287. ;;
  9288. esac
  9289. link_all_deplibs=yes
  9290. ;;
  9291. sunos4*)
  9292. if test "x$host_vendor" = xsequent; then
  9293. # Use $CC to link under sequent, because it throws in some extra .o
  9294. # files that make .init and .fini sections work.
  9295. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9296. else
  9297. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9298. fi
  9299. hardcode_libdir_flag_spec='-L$libdir'
  9300. hardcode_direct=yes
  9301. hardcode_minus_L=yes
  9302. hardcode_shlibpath_var=no
  9303. ;;
  9304. sysv4)
  9305. case $host_vendor in
  9306. sni)
  9307. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9308. hardcode_direct=yes # is this really true???
  9309. ;;
  9310. siemens)
  9311. ## LD is ld it makes a PLAMLIB
  9312. ## CC just makes a GrossModule.
  9313. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9314. reload_cmds='$CC -r -o $output$reload_objs'
  9315. hardcode_direct=no
  9316. ;;
  9317. motorola)
  9318. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9319. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9320. ;;
  9321. esac
  9322. runpath_var='LD_RUN_PATH'
  9323. hardcode_shlibpath_var=no
  9324. ;;
  9325. sysv4.3*)
  9326. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9327. hardcode_shlibpath_var=no
  9328. export_dynamic_flag_spec='-Bexport'
  9329. ;;
  9330. sysv4*MP*)
  9331. if test -d /usr/nec; then
  9332. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9333. hardcode_shlibpath_var=no
  9334. runpath_var=LD_RUN_PATH
  9335. hardcode_runpath_var=yes
  9336. ld_shlibs=yes
  9337. fi
  9338. ;;
  9339. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9340. no_undefined_flag='${wl}-z,text'
  9341. archive_cmds_need_lc=no
  9342. hardcode_shlibpath_var=no
  9343. runpath_var='LD_RUN_PATH'
  9344. if test "$GCC" = yes; then
  9345. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9346. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9347. else
  9348. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9349. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9350. fi
  9351. ;;
  9352. sysv5* | sco3.2v5* | sco5v6*)
  9353. # Note: We can NOT use -z defs as we might desire, because we do not
  9354. # link with -lc, and that would cause any symbols used from libc to
  9355. # always be unresolved, which means just about no library would
  9356. # ever link correctly. If we're not using GNU ld we use -z text
  9357. # though, which does catch some bad symbols but isn't as heavy-handed
  9358. # as -z defs.
  9359. no_undefined_flag='${wl}-z,text'
  9360. allow_undefined_flag='${wl}-z,nodefs'
  9361. archive_cmds_need_lc=no
  9362. hardcode_shlibpath_var=no
  9363. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9364. hardcode_libdir_separator=':'
  9365. link_all_deplibs=yes
  9366. export_dynamic_flag_spec='${wl}-Bexport'
  9367. runpath_var='LD_RUN_PATH'
  9368. if test "$GCC" = yes; then
  9369. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9370. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9371. else
  9372. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9373. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9374. fi
  9375. ;;
  9376. uts4*)
  9377. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9378. hardcode_libdir_flag_spec='-L$libdir'
  9379. hardcode_shlibpath_var=no
  9380. ;;
  9381. *)
  9382. ld_shlibs=no
  9383. ;;
  9384. esac
  9385. if test x$host_vendor = xsni; then
  9386. case $host in
  9387. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9388. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9389. ;;
  9390. esac
  9391. fi
  9392. fi
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9394. $as_echo "$ld_shlibs" >&6; }
  9395. test "$ld_shlibs" = no && can_build_shared=no
  9396. with_gnu_ld=$with_gnu_ld
  9397. #
  9398. # Do we need to explicitly link libc?
  9399. #
  9400. case "x$archive_cmds_need_lc" in
  9401. x|xyes)
  9402. # Assume -lc should be added
  9403. archive_cmds_need_lc=yes
  9404. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9405. case $archive_cmds in
  9406. *'~'*)
  9407. # FIXME: we may have to deal with multi-command sequences.
  9408. ;;
  9409. '$CC '*)
  9410. # Test whether the compiler implicitly links with -lc since on some
  9411. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9412. # to ld, don't add -lc before -lgcc.
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9414. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9415. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9416. $as_echo_n "(cached) " >&6
  9417. else
  9418. $RM conftest*
  9419. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9420. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9421. (eval $ac_compile) 2>&5
  9422. ac_status=$?
  9423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9424. test $ac_status = 0; } 2>conftest.err; then
  9425. soname=conftest
  9426. lib=conftest
  9427. libobjs=conftest.$ac_objext
  9428. deplibs=
  9429. wl=$lt_prog_compiler_wl
  9430. pic_flag=$lt_prog_compiler_pic
  9431. compiler_flags=-v
  9432. linker_flags=-v
  9433. verstring=
  9434. output_objdir=.
  9435. libname=conftest
  9436. lt_save_allow_undefined_flag=$allow_undefined_flag
  9437. allow_undefined_flag=
  9438. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9439. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9440. ac_status=$?
  9441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9442. test $ac_status = 0; }
  9443. then
  9444. lt_cv_archive_cmds_need_lc=no
  9445. else
  9446. lt_cv_archive_cmds_need_lc=yes
  9447. fi
  9448. allow_undefined_flag=$lt_save_allow_undefined_flag
  9449. else
  9450. cat conftest.err 1>&5
  9451. fi
  9452. $RM conftest*
  9453. fi
  9454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9455. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9456. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9457. ;;
  9458. esac
  9459. fi
  9460. ;;
  9461. esac
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9463. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9464. if test "$GCC" = yes; then
  9465. case $host_os in
  9466. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9467. *) lt_awk_arg="/^libraries:/" ;;
  9468. esac
  9469. case $host_os in
  9470. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9471. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9472. esac
  9473. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9474. case $lt_search_path_spec in
  9475. *\;*)
  9476. # if the path contains ";" then we assume it to be the separator
  9477. # otherwise default to the standard path separator (i.e. ":") - it is
  9478. # assumed that no part of a normal pathname contains ";" but that should
  9479. # okay in the real world where ";" in dirpaths is itself problematic.
  9480. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9481. ;;
  9482. *)
  9483. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9484. ;;
  9485. esac
  9486. # Ok, now we have the path, separated by spaces, we can step through it
  9487. # and add multilib dir if necessary.
  9488. lt_tmp_lt_search_path_spec=
  9489. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9490. for lt_sys_path in $lt_search_path_spec; do
  9491. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9492. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9493. else
  9494. test -d "$lt_sys_path" && \
  9495. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9496. fi
  9497. done
  9498. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9499. BEGIN {RS=" "; FS="/|\n";} {
  9500. lt_foo="";
  9501. lt_count=0;
  9502. for (lt_i = NF; lt_i > 0; lt_i--) {
  9503. if ($lt_i != "" && $lt_i != ".") {
  9504. if ($lt_i == "..") {
  9505. lt_count++;
  9506. } else {
  9507. if (lt_count == 0) {
  9508. lt_foo="/" $lt_i lt_foo;
  9509. } else {
  9510. lt_count--;
  9511. }
  9512. }
  9513. }
  9514. }
  9515. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9516. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9517. }'`
  9518. # AWK program above erroneously prepends '/' to C:/dos/paths
  9519. # for these hosts.
  9520. case $host_os in
  9521. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9522. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9523. esac
  9524. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9525. else
  9526. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9527. fi
  9528. library_names_spec=
  9529. libname_spec='lib$name'
  9530. soname_spec=
  9531. shrext_cmds=".so"
  9532. postinstall_cmds=
  9533. postuninstall_cmds=
  9534. finish_cmds=
  9535. finish_eval=
  9536. shlibpath_var=
  9537. shlibpath_overrides_runpath=unknown
  9538. version_type=none
  9539. dynamic_linker="$host_os ld.so"
  9540. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9541. need_lib_prefix=unknown
  9542. hardcode_into_libs=no
  9543. # when you set need_version to no, make sure it does not cause -set_version
  9544. # flags to be left without arguments
  9545. need_version=unknown
  9546. case $host_os in
  9547. aix3*)
  9548. version_type=linux # correct to gnu/linux during the next big refactor
  9549. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9550. shlibpath_var=LIBPATH
  9551. # AIX 3 has no versioning support, so we append a major version to the name.
  9552. soname_spec='${libname}${release}${shared_ext}$major'
  9553. ;;
  9554. aix[4-9]*)
  9555. version_type=linux # correct to gnu/linux during the next big refactor
  9556. need_lib_prefix=no
  9557. need_version=no
  9558. hardcode_into_libs=yes
  9559. if test "$host_cpu" = ia64; then
  9560. # AIX 5 supports IA64
  9561. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9562. shlibpath_var=LD_LIBRARY_PATH
  9563. else
  9564. # With GCC up to 2.95.x, collect2 would create an import file
  9565. # for dependence libraries. The import file would start with
  9566. # the line `#! .'. This would cause the generated library to
  9567. # depend on `.', always an invalid library. This was fixed in
  9568. # development snapshots of GCC prior to 3.0.
  9569. case $host_os in
  9570. aix4 | aix4.[01] | aix4.[01].*)
  9571. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9572. echo ' yes '
  9573. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9574. :
  9575. else
  9576. can_build_shared=no
  9577. fi
  9578. ;;
  9579. esac
  9580. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9581. # soname into executable. Probably we can add versioning support to
  9582. # collect2, so additional links can be useful in future.
  9583. if test "$aix_use_runtimelinking" = yes; then
  9584. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9585. # instead of lib<name>.a to let people know that these are not
  9586. # typical AIX shared libraries.
  9587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9588. else
  9589. # We preserve .a as extension for shared libraries through AIX4.2
  9590. # and later when we are not doing run time linking.
  9591. library_names_spec='${libname}${release}.a $libname.a'
  9592. soname_spec='${libname}${release}${shared_ext}$major'
  9593. fi
  9594. shlibpath_var=LIBPATH
  9595. fi
  9596. ;;
  9597. amigaos*)
  9598. case $host_cpu in
  9599. powerpc)
  9600. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9601. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9602. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9603. ;;
  9604. m68k)
  9605. library_names_spec='$libname.ixlibrary $libname.a'
  9606. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9607. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9608. ;;
  9609. esac
  9610. ;;
  9611. beos*)
  9612. library_names_spec='${libname}${shared_ext}'
  9613. dynamic_linker="$host_os ld.so"
  9614. shlibpath_var=LIBRARY_PATH
  9615. ;;
  9616. bsdi[45]*)
  9617. version_type=linux # correct to gnu/linux during the next big refactor
  9618. need_version=no
  9619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9620. soname_spec='${libname}${release}${shared_ext}$major'
  9621. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9622. shlibpath_var=LD_LIBRARY_PATH
  9623. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9624. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9625. # the default ld.so.conf also contains /usr/contrib/lib and
  9626. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9627. # libtool to hard-code these into programs
  9628. ;;
  9629. cygwin* | mingw* | pw32* | cegcc*)
  9630. version_type=windows
  9631. shrext_cmds=".dll"
  9632. need_version=no
  9633. need_lib_prefix=no
  9634. case $GCC,$cc_basename in
  9635. yes,*)
  9636. # gcc
  9637. library_names_spec='$libname.dll.a'
  9638. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9639. postinstall_cmds='base_file=`basename \${file}`~
  9640. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9641. dldir=$destdir/`dirname \$dlpath`~
  9642. test -d \$dldir || mkdir -p \$dldir~
  9643. $install_prog $dir/$dlname \$dldir/$dlname~
  9644. chmod a+x \$dldir/$dlname~
  9645. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9646. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9647. fi'
  9648. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9649. dlpath=$dir/\$dldll~
  9650. $RM \$dlpath'
  9651. shlibpath_overrides_runpath=yes
  9652. case $host_os in
  9653. cygwin*)
  9654. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9655. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9656. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9657. ;;
  9658. mingw* | cegcc*)
  9659. # MinGW DLLs use traditional 'lib' prefix
  9660. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9661. ;;
  9662. pw32*)
  9663. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9664. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9665. ;;
  9666. esac
  9667. dynamic_linker='Win32 ld.exe'
  9668. ;;
  9669. *,cl*)
  9670. # Native MSVC
  9671. libname_spec='$name'
  9672. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9673. library_names_spec='${libname}.dll.lib'
  9674. case $build_os in
  9675. mingw*)
  9676. sys_lib_search_path_spec=
  9677. lt_save_ifs=$IFS
  9678. IFS=';'
  9679. for lt_path in $LIB
  9680. do
  9681. IFS=$lt_save_ifs
  9682. # Let DOS variable expansion print the short 8.3 style file name.
  9683. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9684. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9685. done
  9686. IFS=$lt_save_ifs
  9687. # Convert to MSYS style.
  9688. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9689. ;;
  9690. cygwin*)
  9691. # Convert to unix form, then to dos form, then back to unix form
  9692. # but this time dos style (no spaces!) so that the unix form looks
  9693. # like /cygdrive/c/PROGRA~1:/cygdr...
  9694. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9695. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9696. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9697. ;;
  9698. *)
  9699. sys_lib_search_path_spec="$LIB"
  9700. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9701. # It is most probably a Windows format PATH.
  9702. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9703. else
  9704. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9705. fi
  9706. # FIXME: find the short name or the path components, as spaces are
  9707. # common. (e.g. "Program Files" -> "PROGRA~1")
  9708. ;;
  9709. esac
  9710. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9711. postinstall_cmds='base_file=`basename \${file}`~
  9712. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9713. dldir=$destdir/`dirname \$dlpath`~
  9714. test -d \$dldir || mkdir -p \$dldir~
  9715. $install_prog $dir/$dlname \$dldir/$dlname'
  9716. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9717. dlpath=$dir/\$dldll~
  9718. $RM \$dlpath'
  9719. shlibpath_overrides_runpath=yes
  9720. dynamic_linker='Win32 link.exe'
  9721. ;;
  9722. *)
  9723. # Assume MSVC wrapper
  9724. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9725. dynamic_linker='Win32 ld.exe'
  9726. ;;
  9727. esac
  9728. # FIXME: first we should search . and the directory the executable is in
  9729. shlibpath_var=PATH
  9730. ;;
  9731. darwin* | rhapsody*)
  9732. dynamic_linker="$host_os dyld"
  9733. version_type=darwin
  9734. need_lib_prefix=no
  9735. need_version=no
  9736. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9737. soname_spec='${libname}${release}${major}$shared_ext'
  9738. shlibpath_overrides_runpath=yes
  9739. shlibpath_var=DYLD_LIBRARY_PATH
  9740. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9741. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9742. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9743. ;;
  9744. dgux*)
  9745. version_type=linux # correct to gnu/linux during the next big refactor
  9746. need_lib_prefix=no
  9747. need_version=no
  9748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9749. soname_spec='${libname}${release}${shared_ext}$major'
  9750. shlibpath_var=LD_LIBRARY_PATH
  9751. ;;
  9752. freebsd* | dragonfly*)
  9753. # DragonFly does not have aout. When/if they implement a new
  9754. # versioning mechanism, adjust this.
  9755. if test -x /usr/bin/objformat; then
  9756. objformat=`/usr/bin/objformat`
  9757. else
  9758. case $host_os in
  9759. freebsd[23].*) objformat=aout ;;
  9760. *) objformat=elf ;;
  9761. esac
  9762. fi
  9763. version_type=freebsd-$objformat
  9764. case $version_type in
  9765. freebsd-elf*)
  9766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9767. need_version=no
  9768. need_lib_prefix=no
  9769. ;;
  9770. freebsd-*)
  9771. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9772. need_version=yes
  9773. ;;
  9774. esac
  9775. shlibpath_var=LD_LIBRARY_PATH
  9776. case $host_os in
  9777. freebsd2.*)
  9778. shlibpath_overrides_runpath=yes
  9779. ;;
  9780. freebsd3.[01]* | freebsdelf3.[01]*)
  9781. shlibpath_overrides_runpath=yes
  9782. hardcode_into_libs=yes
  9783. ;;
  9784. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9785. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9786. shlibpath_overrides_runpath=no
  9787. hardcode_into_libs=yes
  9788. ;;
  9789. *) # from 4.6 on, and DragonFly
  9790. shlibpath_overrides_runpath=yes
  9791. hardcode_into_libs=yes
  9792. ;;
  9793. esac
  9794. ;;
  9795. haiku*)
  9796. version_type=linux # correct to gnu/linux during the next big refactor
  9797. need_lib_prefix=no
  9798. need_version=no
  9799. dynamic_linker="$host_os runtime_loader"
  9800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9801. soname_spec='${libname}${release}${shared_ext}$major'
  9802. shlibpath_var=LIBRARY_PATH
  9803. shlibpath_overrides_runpath=yes
  9804. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9805. hardcode_into_libs=yes
  9806. ;;
  9807. hpux9* | hpux10* | hpux11*)
  9808. # Give a soname corresponding to the major version so that dld.sl refuses to
  9809. # link against other versions.
  9810. version_type=sunos
  9811. need_lib_prefix=no
  9812. need_version=no
  9813. case $host_cpu in
  9814. ia64*)
  9815. shrext_cmds='.so'
  9816. hardcode_into_libs=yes
  9817. dynamic_linker="$host_os dld.so"
  9818. shlibpath_var=LD_LIBRARY_PATH
  9819. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9821. soname_spec='${libname}${release}${shared_ext}$major'
  9822. if test "X$HPUX_IA64_MODE" = X32; then
  9823. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9824. else
  9825. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9826. fi
  9827. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9828. ;;
  9829. hppa*64*)
  9830. shrext_cmds='.sl'
  9831. hardcode_into_libs=yes
  9832. dynamic_linker="$host_os dld.sl"
  9833. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9834. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9836. soname_spec='${libname}${release}${shared_ext}$major'
  9837. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9838. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9839. ;;
  9840. *)
  9841. shrext_cmds='.sl'
  9842. dynamic_linker="$host_os dld.sl"
  9843. shlibpath_var=SHLIB_PATH
  9844. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9845. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9846. soname_spec='${libname}${release}${shared_ext}$major'
  9847. ;;
  9848. esac
  9849. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9850. postinstall_cmds='chmod 555 $lib'
  9851. # or fails outright, so override atomically:
  9852. install_override_mode=555
  9853. ;;
  9854. interix[3-9]*)
  9855. version_type=linux # correct to gnu/linux during the next big refactor
  9856. need_lib_prefix=no
  9857. need_version=no
  9858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9859. soname_spec='${libname}${release}${shared_ext}$major'
  9860. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9861. shlibpath_var=LD_LIBRARY_PATH
  9862. shlibpath_overrides_runpath=no
  9863. hardcode_into_libs=yes
  9864. ;;
  9865. irix5* | irix6* | nonstopux*)
  9866. case $host_os in
  9867. nonstopux*) version_type=nonstopux ;;
  9868. *)
  9869. if test "$lt_cv_prog_gnu_ld" = yes; then
  9870. version_type=linux # correct to gnu/linux during the next big refactor
  9871. else
  9872. version_type=irix
  9873. fi ;;
  9874. esac
  9875. need_lib_prefix=no
  9876. need_version=no
  9877. soname_spec='${libname}${release}${shared_ext}$major'
  9878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9879. case $host_os in
  9880. irix5* | nonstopux*)
  9881. libsuff= shlibsuff=
  9882. ;;
  9883. *)
  9884. case $LD in # libtool.m4 will add one of these switches to LD
  9885. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9886. libsuff= shlibsuff= libmagic=32-bit;;
  9887. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9888. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9889. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9890. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9891. *) libsuff= shlibsuff= libmagic=never-match;;
  9892. esac
  9893. ;;
  9894. esac
  9895. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9896. shlibpath_overrides_runpath=no
  9897. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9898. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9899. hardcode_into_libs=yes
  9900. ;;
  9901. # No shared lib support for Linux oldld, aout, or coff.
  9902. linux*oldld* | linux*aout* | linux*coff*)
  9903. dynamic_linker=no
  9904. ;;
  9905. # This must be glibc/ELF.
  9906. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9907. version_type=linux # correct to gnu/linux during the next big refactor
  9908. need_lib_prefix=no
  9909. need_version=no
  9910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9911. soname_spec='${libname}${release}${shared_ext}$major'
  9912. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9913. shlibpath_var=LD_LIBRARY_PATH
  9914. shlibpath_overrides_runpath=no
  9915. # Some binutils ld are patched to set DT_RUNPATH
  9916. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9917. $as_echo_n "(cached) " >&6
  9918. else
  9919. lt_cv_shlibpath_overrides_runpath=no
  9920. save_LDFLAGS=$LDFLAGS
  9921. save_libdir=$libdir
  9922. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9923. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9925. /* end confdefs.h. */
  9926. int
  9927. main ()
  9928. {
  9929. ;
  9930. return 0;
  9931. }
  9932. _ACEOF
  9933. if ac_fn_c_try_link "$LINENO"; then :
  9934. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9935. lt_cv_shlibpath_overrides_runpath=yes
  9936. fi
  9937. fi
  9938. rm -f core conftest.err conftest.$ac_objext \
  9939. conftest$ac_exeext conftest.$ac_ext
  9940. LDFLAGS=$save_LDFLAGS
  9941. libdir=$save_libdir
  9942. fi
  9943. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9944. # This implies no fast_install, which is unacceptable.
  9945. # Some rework will be needed to allow for fast_install
  9946. # before this can be enabled.
  9947. hardcode_into_libs=yes
  9948. # Append ld.so.conf contents to the search path
  9949. if test -f /etc/ld.so.conf; then
  9950. 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' ' '`
  9951. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9952. fi
  9953. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9954. # powerpc, because MkLinux only supported shared libraries with the
  9955. # GNU dynamic linker. Since this was broken with cross compilers,
  9956. # most powerpc-linux boxes support dynamic linking these days and
  9957. # people can always --disable-shared, the test was removed, and we
  9958. # assume the GNU/Linux dynamic linker is in use.
  9959. dynamic_linker='GNU/Linux ld.so'
  9960. ;;
  9961. netbsdelf*-gnu)
  9962. version_type=linux
  9963. need_lib_prefix=no
  9964. need_version=no
  9965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9966. soname_spec='${libname}${release}${shared_ext}$major'
  9967. shlibpath_var=LD_LIBRARY_PATH
  9968. shlibpath_overrides_runpath=no
  9969. hardcode_into_libs=yes
  9970. dynamic_linker='NetBSD ld.elf_so'
  9971. ;;
  9972. netbsd*)
  9973. version_type=sunos
  9974. need_lib_prefix=no
  9975. need_version=no
  9976. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9978. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9979. dynamic_linker='NetBSD (a.out) ld.so'
  9980. else
  9981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9982. soname_spec='${libname}${release}${shared_ext}$major'
  9983. dynamic_linker='NetBSD ld.elf_so'
  9984. fi
  9985. shlibpath_var=LD_LIBRARY_PATH
  9986. shlibpath_overrides_runpath=yes
  9987. hardcode_into_libs=yes
  9988. ;;
  9989. newsos6)
  9990. version_type=linux # correct to gnu/linux during the next big refactor
  9991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9992. shlibpath_var=LD_LIBRARY_PATH
  9993. shlibpath_overrides_runpath=yes
  9994. ;;
  9995. *nto* | *qnx*)
  9996. version_type=qnx
  9997. need_lib_prefix=no
  9998. need_version=no
  9999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10000. soname_spec='${libname}${release}${shared_ext}$major'
  10001. shlibpath_var=LD_LIBRARY_PATH
  10002. shlibpath_overrides_runpath=no
  10003. hardcode_into_libs=yes
  10004. dynamic_linker='ldqnx.so'
  10005. ;;
  10006. openbsd*)
  10007. version_type=sunos
  10008. sys_lib_dlsearch_path_spec="/usr/lib"
  10009. need_lib_prefix=no
  10010. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10011. case $host_os in
  10012. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10013. *) need_version=no ;;
  10014. esac
  10015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10016. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10017. shlibpath_var=LD_LIBRARY_PATH
  10018. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10019. case $host_os in
  10020. openbsd2.[89] | openbsd2.[89].*)
  10021. shlibpath_overrides_runpath=no
  10022. ;;
  10023. *)
  10024. shlibpath_overrides_runpath=yes
  10025. ;;
  10026. esac
  10027. else
  10028. shlibpath_overrides_runpath=yes
  10029. fi
  10030. ;;
  10031. os2*)
  10032. libname_spec='$name'
  10033. shrext_cmds=".dll"
  10034. need_lib_prefix=no
  10035. library_names_spec='$libname${shared_ext} $libname.a'
  10036. dynamic_linker='OS/2 ld.exe'
  10037. shlibpath_var=LIBPATH
  10038. ;;
  10039. osf3* | osf4* | osf5*)
  10040. version_type=osf
  10041. need_lib_prefix=no
  10042. need_version=no
  10043. soname_spec='${libname}${release}${shared_ext}$major'
  10044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10045. shlibpath_var=LD_LIBRARY_PATH
  10046. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10047. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10048. ;;
  10049. rdos*)
  10050. dynamic_linker=no
  10051. ;;
  10052. solaris*)
  10053. version_type=linux # correct to gnu/linux during the next big refactor
  10054. need_lib_prefix=no
  10055. need_version=no
  10056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10057. soname_spec='${libname}${release}${shared_ext}$major'
  10058. shlibpath_var=LD_LIBRARY_PATH
  10059. shlibpath_overrides_runpath=yes
  10060. hardcode_into_libs=yes
  10061. # ldd complains unless libraries are executable
  10062. postinstall_cmds='chmod +x $lib'
  10063. ;;
  10064. sunos4*)
  10065. version_type=sunos
  10066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10067. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10068. shlibpath_var=LD_LIBRARY_PATH
  10069. shlibpath_overrides_runpath=yes
  10070. if test "$with_gnu_ld" = yes; then
  10071. need_lib_prefix=no
  10072. fi
  10073. need_version=yes
  10074. ;;
  10075. sysv4 | sysv4.3*)
  10076. version_type=linux # correct to gnu/linux during the next big refactor
  10077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10078. soname_spec='${libname}${release}${shared_ext}$major'
  10079. shlibpath_var=LD_LIBRARY_PATH
  10080. case $host_vendor in
  10081. sni)
  10082. shlibpath_overrides_runpath=no
  10083. need_lib_prefix=no
  10084. runpath_var=LD_RUN_PATH
  10085. ;;
  10086. siemens)
  10087. need_lib_prefix=no
  10088. ;;
  10089. motorola)
  10090. need_lib_prefix=no
  10091. need_version=no
  10092. shlibpath_overrides_runpath=no
  10093. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10094. ;;
  10095. esac
  10096. ;;
  10097. sysv4*MP*)
  10098. if test -d /usr/nec ;then
  10099. version_type=linux # correct to gnu/linux during the next big refactor
  10100. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10101. soname_spec='$libname${shared_ext}.$major'
  10102. shlibpath_var=LD_LIBRARY_PATH
  10103. fi
  10104. ;;
  10105. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10106. version_type=freebsd-elf
  10107. need_lib_prefix=no
  10108. need_version=no
  10109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10110. soname_spec='${libname}${release}${shared_ext}$major'
  10111. shlibpath_var=LD_LIBRARY_PATH
  10112. shlibpath_overrides_runpath=yes
  10113. hardcode_into_libs=yes
  10114. if test "$with_gnu_ld" = yes; then
  10115. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10116. else
  10117. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10118. case $host_os in
  10119. sco3.2v5*)
  10120. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10121. ;;
  10122. esac
  10123. fi
  10124. sys_lib_dlsearch_path_spec='/usr/lib'
  10125. ;;
  10126. tpf*)
  10127. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10128. version_type=linux # correct to gnu/linux during the next big refactor
  10129. need_lib_prefix=no
  10130. need_version=no
  10131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10132. shlibpath_var=LD_LIBRARY_PATH
  10133. shlibpath_overrides_runpath=no
  10134. hardcode_into_libs=yes
  10135. ;;
  10136. uts4*)
  10137. version_type=linux # correct to gnu/linux during the next big refactor
  10138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10139. soname_spec='${libname}${release}${shared_ext}$major'
  10140. shlibpath_var=LD_LIBRARY_PATH
  10141. ;;
  10142. *)
  10143. dynamic_linker=no
  10144. ;;
  10145. esac
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10147. $as_echo "$dynamic_linker" >&6; }
  10148. test "$dynamic_linker" = no && can_build_shared=no
  10149. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10150. if test "$GCC" = yes; then
  10151. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10152. fi
  10153. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10154. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10155. fi
  10156. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10157. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10158. fi
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10160. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10161. hardcode_action=
  10162. if test -n "$hardcode_libdir_flag_spec" ||
  10163. test -n "$runpath_var" ||
  10164. test "X$hardcode_automatic" = "Xyes" ; then
  10165. # We can hardcode non-existent directories.
  10166. if test "$hardcode_direct" != no &&
  10167. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10168. # have to relink, otherwise we might link with an installed library
  10169. # when we should be linking with a yet-to-be-installed one
  10170. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10171. test "$hardcode_minus_L" != no; then
  10172. # Linking always hardcodes the temporary library directory.
  10173. hardcode_action=relink
  10174. else
  10175. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10176. hardcode_action=immediate
  10177. fi
  10178. else
  10179. # We cannot hardcode anything, or else we can only hardcode existing
  10180. # directories.
  10181. hardcode_action=unsupported
  10182. fi
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10184. $as_echo "$hardcode_action" >&6; }
  10185. if test "$hardcode_action" = relink ||
  10186. test "$inherit_rpath" = yes; then
  10187. # Fast installation is not supported
  10188. enable_fast_install=no
  10189. elif test "$shlibpath_overrides_runpath" = yes ||
  10190. test "$enable_shared" = no; then
  10191. # Fast installation is not necessary
  10192. enable_fast_install=needless
  10193. fi
  10194. if test "x$enable_dlopen" != xyes; then
  10195. enable_dlopen=unknown
  10196. enable_dlopen_self=unknown
  10197. enable_dlopen_self_static=unknown
  10198. else
  10199. lt_cv_dlopen=no
  10200. lt_cv_dlopen_libs=
  10201. case $host_os in
  10202. beos*)
  10203. lt_cv_dlopen="load_add_on"
  10204. lt_cv_dlopen_libs=
  10205. lt_cv_dlopen_self=yes
  10206. ;;
  10207. mingw* | pw32* | cegcc*)
  10208. lt_cv_dlopen="LoadLibrary"
  10209. lt_cv_dlopen_libs=
  10210. ;;
  10211. cygwin*)
  10212. lt_cv_dlopen="dlopen"
  10213. lt_cv_dlopen_libs=
  10214. ;;
  10215. darwin*)
  10216. # if libdl is installed we need to link against it
  10217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10218. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10219. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10220. $as_echo_n "(cached) " >&6
  10221. else
  10222. ac_check_lib_save_LIBS=$LIBS
  10223. LIBS="-ldl $LIBS"
  10224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10225. /* end confdefs.h. */
  10226. /* Override any GCC internal prototype to avoid an error.
  10227. Use char because int might match the return type of a GCC
  10228. builtin and then its argument prototype would still apply. */
  10229. #ifdef __cplusplus
  10230. extern "C"
  10231. #endif
  10232. char dlopen ();
  10233. int
  10234. main ()
  10235. {
  10236. return dlopen ();
  10237. ;
  10238. return 0;
  10239. }
  10240. _ACEOF
  10241. if ac_fn_c_try_link "$LINENO"; then :
  10242. ac_cv_lib_dl_dlopen=yes
  10243. else
  10244. ac_cv_lib_dl_dlopen=no
  10245. fi
  10246. rm -f core conftest.err conftest.$ac_objext \
  10247. conftest$ac_exeext conftest.$ac_ext
  10248. LIBS=$ac_check_lib_save_LIBS
  10249. fi
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10251. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10252. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10253. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10254. else
  10255. lt_cv_dlopen="dyld"
  10256. lt_cv_dlopen_libs=
  10257. lt_cv_dlopen_self=yes
  10258. fi
  10259. ;;
  10260. *)
  10261. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10262. if test "x$ac_cv_func_shl_load" = xyes; then :
  10263. lt_cv_dlopen="shl_load"
  10264. else
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10266. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10267. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10268. $as_echo_n "(cached) " >&6
  10269. else
  10270. ac_check_lib_save_LIBS=$LIBS
  10271. LIBS="-ldld $LIBS"
  10272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10273. /* end confdefs.h. */
  10274. /* Override any GCC internal prototype to avoid an error.
  10275. Use char because int might match the return type of a GCC
  10276. builtin and then its argument prototype would still apply. */
  10277. #ifdef __cplusplus
  10278. extern "C"
  10279. #endif
  10280. char shl_load ();
  10281. int
  10282. main ()
  10283. {
  10284. return shl_load ();
  10285. ;
  10286. return 0;
  10287. }
  10288. _ACEOF
  10289. if ac_fn_c_try_link "$LINENO"; then :
  10290. ac_cv_lib_dld_shl_load=yes
  10291. else
  10292. ac_cv_lib_dld_shl_load=no
  10293. fi
  10294. rm -f core conftest.err conftest.$ac_objext \
  10295. conftest$ac_exeext conftest.$ac_ext
  10296. LIBS=$ac_check_lib_save_LIBS
  10297. fi
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10299. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10300. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10301. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10302. else
  10303. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10304. if test "x$ac_cv_func_dlopen" = xyes; then :
  10305. lt_cv_dlopen="dlopen"
  10306. else
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10308. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10309. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10310. $as_echo_n "(cached) " >&6
  10311. else
  10312. ac_check_lib_save_LIBS=$LIBS
  10313. LIBS="-ldl $LIBS"
  10314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10315. /* end confdefs.h. */
  10316. /* Override any GCC internal prototype to avoid an error.
  10317. Use char because int might match the return type of a GCC
  10318. builtin and then its argument prototype would still apply. */
  10319. #ifdef __cplusplus
  10320. extern "C"
  10321. #endif
  10322. char dlopen ();
  10323. int
  10324. main ()
  10325. {
  10326. return dlopen ();
  10327. ;
  10328. return 0;
  10329. }
  10330. _ACEOF
  10331. if ac_fn_c_try_link "$LINENO"; then :
  10332. ac_cv_lib_dl_dlopen=yes
  10333. else
  10334. ac_cv_lib_dl_dlopen=no
  10335. fi
  10336. rm -f core conftest.err conftest.$ac_objext \
  10337. conftest$ac_exeext conftest.$ac_ext
  10338. LIBS=$ac_check_lib_save_LIBS
  10339. fi
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10341. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10342. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10343. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10344. else
  10345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10346. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10347. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10348. $as_echo_n "(cached) " >&6
  10349. else
  10350. ac_check_lib_save_LIBS=$LIBS
  10351. LIBS="-lsvld $LIBS"
  10352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10353. /* end confdefs.h. */
  10354. /* Override any GCC internal prototype to avoid an error.
  10355. Use char because int might match the return type of a GCC
  10356. builtin and then its argument prototype would still apply. */
  10357. #ifdef __cplusplus
  10358. extern "C"
  10359. #endif
  10360. char dlopen ();
  10361. int
  10362. main ()
  10363. {
  10364. return dlopen ();
  10365. ;
  10366. return 0;
  10367. }
  10368. _ACEOF
  10369. if ac_fn_c_try_link "$LINENO"; then :
  10370. ac_cv_lib_svld_dlopen=yes
  10371. else
  10372. ac_cv_lib_svld_dlopen=no
  10373. fi
  10374. rm -f core conftest.err conftest.$ac_objext \
  10375. conftest$ac_exeext conftest.$ac_ext
  10376. LIBS=$ac_check_lib_save_LIBS
  10377. fi
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10379. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10380. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10381. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10382. else
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10384. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10385. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10386. $as_echo_n "(cached) " >&6
  10387. else
  10388. ac_check_lib_save_LIBS=$LIBS
  10389. LIBS="-ldld $LIBS"
  10390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10391. /* end confdefs.h. */
  10392. /* Override any GCC internal prototype to avoid an error.
  10393. Use char because int might match the return type of a GCC
  10394. builtin and then its argument prototype would still apply. */
  10395. #ifdef __cplusplus
  10396. extern "C"
  10397. #endif
  10398. char dld_link ();
  10399. int
  10400. main ()
  10401. {
  10402. return dld_link ();
  10403. ;
  10404. return 0;
  10405. }
  10406. _ACEOF
  10407. if ac_fn_c_try_link "$LINENO"; then :
  10408. ac_cv_lib_dld_dld_link=yes
  10409. else
  10410. ac_cv_lib_dld_dld_link=no
  10411. fi
  10412. rm -f core conftest.err conftest.$ac_objext \
  10413. conftest$ac_exeext conftest.$ac_ext
  10414. LIBS=$ac_check_lib_save_LIBS
  10415. fi
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10417. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10418. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10419. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10420. fi
  10421. fi
  10422. fi
  10423. fi
  10424. fi
  10425. fi
  10426. ;;
  10427. esac
  10428. if test "x$lt_cv_dlopen" != xno; then
  10429. enable_dlopen=yes
  10430. else
  10431. enable_dlopen=no
  10432. fi
  10433. case $lt_cv_dlopen in
  10434. dlopen)
  10435. save_CPPFLAGS="$CPPFLAGS"
  10436. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10437. save_LDFLAGS="$LDFLAGS"
  10438. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10439. save_LIBS="$LIBS"
  10440. LIBS="$lt_cv_dlopen_libs $LIBS"
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10442. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10443. if ${lt_cv_dlopen_self+:} false; then :
  10444. $as_echo_n "(cached) " >&6
  10445. else
  10446. if test "$cross_compiling" = yes; then :
  10447. lt_cv_dlopen_self=cross
  10448. else
  10449. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10450. lt_status=$lt_dlunknown
  10451. cat > conftest.$ac_ext <<_LT_EOF
  10452. #line $LINENO "configure"
  10453. #include "confdefs.h"
  10454. #if HAVE_DLFCN_H
  10455. #include <dlfcn.h>
  10456. #endif
  10457. #include <stdio.h>
  10458. #ifdef RTLD_GLOBAL
  10459. # define LT_DLGLOBAL RTLD_GLOBAL
  10460. #else
  10461. # ifdef DL_GLOBAL
  10462. # define LT_DLGLOBAL DL_GLOBAL
  10463. # else
  10464. # define LT_DLGLOBAL 0
  10465. # endif
  10466. #endif
  10467. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10468. find out it does not work in some platform. */
  10469. #ifndef LT_DLLAZY_OR_NOW
  10470. # ifdef RTLD_LAZY
  10471. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10472. # else
  10473. # ifdef DL_LAZY
  10474. # define LT_DLLAZY_OR_NOW DL_LAZY
  10475. # else
  10476. # ifdef RTLD_NOW
  10477. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10478. # else
  10479. # ifdef DL_NOW
  10480. # define LT_DLLAZY_OR_NOW DL_NOW
  10481. # else
  10482. # define LT_DLLAZY_OR_NOW 0
  10483. # endif
  10484. # endif
  10485. # endif
  10486. # endif
  10487. #endif
  10488. /* When -fvisbility=hidden is used, assume the code has been annotated
  10489. correspondingly for the symbols needed. */
  10490. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10491. int fnord () __attribute__((visibility("default")));
  10492. #endif
  10493. int fnord () { return 42; }
  10494. int main ()
  10495. {
  10496. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10497. int status = $lt_dlunknown;
  10498. if (self)
  10499. {
  10500. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10501. else
  10502. {
  10503. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10504. else puts (dlerror ());
  10505. }
  10506. /* dlclose (self); */
  10507. }
  10508. else
  10509. puts (dlerror ());
  10510. return status;
  10511. }
  10512. _LT_EOF
  10513. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10514. (eval $ac_link) 2>&5
  10515. ac_status=$?
  10516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10517. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10518. (./conftest; exit; ) >&5 2>/dev/null
  10519. lt_status=$?
  10520. case x$lt_status in
  10521. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10522. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10523. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10524. esac
  10525. else :
  10526. # compilation failed
  10527. lt_cv_dlopen_self=no
  10528. fi
  10529. fi
  10530. rm -fr conftest*
  10531. fi
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10533. $as_echo "$lt_cv_dlopen_self" >&6; }
  10534. if test "x$lt_cv_dlopen_self" = xyes; then
  10535. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10537. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10538. if ${lt_cv_dlopen_self_static+:} false; then :
  10539. $as_echo_n "(cached) " >&6
  10540. else
  10541. if test "$cross_compiling" = yes; then :
  10542. lt_cv_dlopen_self_static=cross
  10543. else
  10544. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10545. lt_status=$lt_dlunknown
  10546. cat > conftest.$ac_ext <<_LT_EOF
  10547. #line $LINENO "configure"
  10548. #include "confdefs.h"
  10549. #if HAVE_DLFCN_H
  10550. #include <dlfcn.h>
  10551. #endif
  10552. #include <stdio.h>
  10553. #ifdef RTLD_GLOBAL
  10554. # define LT_DLGLOBAL RTLD_GLOBAL
  10555. #else
  10556. # ifdef DL_GLOBAL
  10557. # define LT_DLGLOBAL DL_GLOBAL
  10558. # else
  10559. # define LT_DLGLOBAL 0
  10560. # endif
  10561. #endif
  10562. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10563. find out it does not work in some platform. */
  10564. #ifndef LT_DLLAZY_OR_NOW
  10565. # ifdef RTLD_LAZY
  10566. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10567. # else
  10568. # ifdef DL_LAZY
  10569. # define LT_DLLAZY_OR_NOW DL_LAZY
  10570. # else
  10571. # ifdef RTLD_NOW
  10572. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10573. # else
  10574. # ifdef DL_NOW
  10575. # define LT_DLLAZY_OR_NOW DL_NOW
  10576. # else
  10577. # define LT_DLLAZY_OR_NOW 0
  10578. # endif
  10579. # endif
  10580. # endif
  10581. # endif
  10582. #endif
  10583. /* When -fvisbility=hidden is used, assume the code has been annotated
  10584. correspondingly for the symbols needed. */
  10585. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10586. int fnord () __attribute__((visibility("default")));
  10587. #endif
  10588. int fnord () { return 42; }
  10589. int main ()
  10590. {
  10591. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10592. int status = $lt_dlunknown;
  10593. if (self)
  10594. {
  10595. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10596. else
  10597. {
  10598. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10599. else puts (dlerror ());
  10600. }
  10601. /* dlclose (self); */
  10602. }
  10603. else
  10604. puts (dlerror ());
  10605. return status;
  10606. }
  10607. _LT_EOF
  10608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10609. (eval $ac_link) 2>&5
  10610. ac_status=$?
  10611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10612. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10613. (./conftest; exit; ) >&5 2>/dev/null
  10614. lt_status=$?
  10615. case x$lt_status in
  10616. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10617. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10618. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10619. esac
  10620. else :
  10621. # compilation failed
  10622. lt_cv_dlopen_self_static=no
  10623. fi
  10624. fi
  10625. rm -fr conftest*
  10626. fi
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10628. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10629. fi
  10630. CPPFLAGS="$save_CPPFLAGS"
  10631. LDFLAGS="$save_LDFLAGS"
  10632. LIBS="$save_LIBS"
  10633. ;;
  10634. esac
  10635. case $lt_cv_dlopen_self in
  10636. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10637. *) enable_dlopen_self=unknown ;;
  10638. esac
  10639. case $lt_cv_dlopen_self_static in
  10640. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10641. *) enable_dlopen_self_static=unknown ;;
  10642. esac
  10643. fi
  10644. striplib=
  10645. old_striplib=
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10647. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10648. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10649. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10650. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10652. $as_echo "yes" >&6; }
  10653. else
  10654. # FIXME - insert some real tests, host_os isn't really good enough
  10655. case $host_os in
  10656. darwin*)
  10657. if test -n "$STRIP" ; then
  10658. striplib="$STRIP -x"
  10659. old_striplib="$STRIP -S"
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10661. $as_echo "yes" >&6; }
  10662. else
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10664. $as_echo "no" >&6; }
  10665. fi
  10666. ;;
  10667. *)
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10669. $as_echo "no" >&6; }
  10670. ;;
  10671. esac
  10672. fi
  10673. # Report which library types will actually be built
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10675. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10677. $as_echo "$can_build_shared" >&6; }
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10679. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10680. test "$can_build_shared" = "no" && enable_shared=no
  10681. # On AIX, shared libraries and static libraries use the same namespace, and
  10682. # are all built from PIC.
  10683. case $host_os in
  10684. aix3*)
  10685. test "$enable_shared" = yes && enable_static=no
  10686. if test -n "$RANLIB"; then
  10687. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10688. postinstall_cmds='$RANLIB $lib'
  10689. fi
  10690. ;;
  10691. aix[4-9]*)
  10692. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10693. test "$enable_shared" = yes && enable_static=no
  10694. fi
  10695. ;;
  10696. esac
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10698. $as_echo "$enable_shared" >&6; }
  10699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10700. $as_echo_n "checking whether to build static libraries... " >&6; }
  10701. # Make sure either enable_shared or enable_static is yes.
  10702. test "$enable_shared" = yes || enable_static=yes
  10703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10704. $as_echo "$enable_static" >&6; }
  10705. fi
  10706. ac_ext=c
  10707. ac_cpp='$CPP $CPPFLAGS'
  10708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10711. CC="$lt_save_CC"
  10712. ac_config_commands="$ac_config_commands libtool"
  10713. # Only expand once:
  10714. CPPFLAGS="${CPPFLAGS} -D_REENTRANT -D__EXTENSIONS__"
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10716. $as_echo_n "checking for ANSI C header files... " >&6; }
  10717. if ${ac_cv_header_stdc+:} false; then :
  10718. $as_echo_n "(cached) " >&6
  10719. else
  10720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10721. /* end confdefs.h. */
  10722. #include <stdlib.h>
  10723. #include <stdarg.h>
  10724. #include <string.h>
  10725. #include <float.h>
  10726. int
  10727. main ()
  10728. {
  10729. ;
  10730. return 0;
  10731. }
  10732. _ACEOF
  10733. if ac_fn_c_try_compile "$LINENO"; then :
  10734. ac_cv_header_stdc=yes
  10735. else
  10736. ac_cv_header_stdc=no
  10737. fi
  10738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10739. if test $ac_cv_header_stdc = yes; then
  10740. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10742. /* end confdefs.h. */
  10743. #include <string.h>
  10744. _ACEOF
  10745. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10746. $EGREP "memchr" >/dev/null 2>&1; then :
  10747. else
  10748. ac_cv_header_stdc=no
  10749. fi
  10750. rm -f conftest*
  10751. fi
  10752. if test $ac_cv_header_stdc = yes; then
  10753. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10755. /* end confdefs.h. */
  10756. #include <stdlib.h>
  10757. _ACEOF
  10758. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10759. $EGREP "free" >/dev/null 2>&1; then :
  10760. else
  10761. ac_cv_header_stdc=no
  10762. fi
  10763. rm -f conftest*
  10764. fi
  10765. if test $ac_cv_header_stdc = yes; then
  10766. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10767. if test "$cross_compiling" = yes; then :
  10768. :
  10769. else
  10770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10771. /* end confdefs.h. */
  10772. #include <ctype.h>
  10773. #include <stdlib.h>
  10774. #if ((' ' & 0x0FF) == 0x020)
  10775. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10776. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10777. #else
  10778. # define ISLOWER(c) \
  10779. (('a' <= (c) && (c) <= 'i') \
  10780. || ('j' <= (c) && (c) <= 'r') \
  10781. || ('s' <= (c) && (c) <= 'z'))
  10782. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10783. #endif
  10784. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10785. int
  10786. main ()
  10787. {
  10788. int i;
  10789. for (i = 0; i < 256; i++)
  10790. if (XOR (islower (i), ISLOWER (i))
  10791. || toupper (i) != TOUPPER (i))
  10792. return 2;
  10793. return 0;
  10794. }
  10795. _ACEOF
  10796. if ac_fn_c_try_run "$LINENO"; then :
  10797. else
  10798. ac_cv_header_stdc=no
  10799. fi
  10800. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10801. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10802. fi
  10803. fi
  10804. fi
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10806. $as_echo "$ac_cv_header_stdc" >&6; }
  10807. if test $ac_cv_header_stdc = yes; then
  10808. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10809. fi
  10810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10811. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10812. if ${ac_cv_header_sys_wait_h+:} false; then :
  10813. $as_echo_n "(cached) " >&6
  10814. else
  10815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10816. /* end confdefs.h. */
  10817. #include <sys/types.h>
  10818. #include <sys/wait.h>
  10819. #ifndef WEXITSTATUS
  10820. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10821. #endif
  10822. #ifndef WIFEXITED
  10823. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10824. #endif
  10825. int
  10826. main ()
  10827. {
  10828. int s;
  10829. wait (&s);
  10830. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10831. ;
  10832. return 0;
  10833. }
  10834. _ACEOF
  10835. if ac_fn_c_try_compile "$LINENO"; then :
  10836. ac_cv_header_sys_wait_h=yes
  10837. else
  10838. ac_cv_header_sys_wait_h=no
  10839. fi
  10840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10841. fi
  10842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10843. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10844. if test $ac_cv_header_sys_wait_h = yes; then
  10845. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10846. fi
  10847. for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \
  10848. sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \
  10849. getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \
  10850. sys/mman.h sys/event.h port.h pwd.h \
  10851. sys/resource.h sys/un.h syslog.h sys/prctl.h uuid/uuid.h
  10852. do :
  10853. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10854. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10855. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10856. cat >>confdefs.h <<_ACEOF
  10857. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10858. _ACEOF
  10859. fi
  10860. done
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10862. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10863. if ${ac_cv_c_const+:} false; then :
  10864. $as_echo_n "(cached) " >&6
  10865. else
  10866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10867. /* end confdefs.h. */
  10868. int
  10869. main ()
  10870. {
  10871. #ifndef __cplusplus
  10872. /* Ultrix mips cc rejects this sort of thing. */
  10873. typedef int charset[2];
  10874. const charset cs = { 0, 0 };
  10875. /* SunOS 4.1.1 cc rejects this. */
  10876. char const *const *pcpcc;
  10877. char **ppc;
  10878. /* NEC SVR4.0.2 mips cc rejects this. */
  10879. struct point {int x, y;};
  10880. static struct point const zero = {0,0};
  10881. /* AIX XL C 1.02.0.0 rejects this.
  10882. It does not let you subtract one const X* pointer from another in
  10883. an arm of an if-expression whose if-part is not a constant
  10884. expression */
  10885. const char *g = "string";
  10886. pcpcc = &g + (g ? g-g : 0);
  10887. /* HPUX 7.0 cc rejects these. */
  10888. ++pcpcc;
  10889. ppc = (char**) pcpcc;
  10890. pcpcc = (char const *const *) ppc;
  10891. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10892. char tx;
  10893. char *t = &tx;
  10894. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10895. *t++ = 0;
  10896. if (s) return 0;
  10897. }
  10898. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10899. int x[] = {25, 17};
  10900. const int *foo = &x[0];
  10901. ++foo;
  10902. }
  10903. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10904. typedef const int *iptr;
  10905. iptr p = 0;
  10906. ++p;
  10907. }
  10908. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10909. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10910. struct s { int j; const int *ap[3]; } bx;
  10911. struct s *b = &bx; b->j = 5;
  10912. }
  10913. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10914. const int foo = 10;
  10915. if (!foo) return 0;
  10916. }
  10917. return !cs[0] && !zero.x;
  10918. #endif
  10919. ;
  10920. return 0;
  10921. }
  10922. _ACEOF
  10923. if ac_fn_c_try_compile "$LINENO"; then :
  10924. ac_cv_c_const=yes
  10925. else
  10926. ac_cv_c_const=no
  10927. fi
  10928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10929. fi
  10930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10931. $as_echo "$ac_cv_c_const" >&6; }
  10932. if test $ac_cv_c_const = no; then
  10933. $as_echo "#define const /**/" >>confdefs.h
  10934. fi
  10935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10936. $as_echo_n "checking for inline... " >&6; }
  10937. if ${ac_cv_c_inline+:} false; then :
  10938. $as_echo_n "(cached) " >&6
  10939. else
  10940. ac_cv_c_inline=no
  10941. for ac_kw in inline __inline__ __inline; do
  10942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10943. /* end confdefs.h. */
  10944. #ifndef __cplusplus
  10945. typedef int foo_t;
  10946. static $ac_kw foo_t static_foo () {return 0; }
  10947. $ac_kw foo_t foo () {return 0; }
  10948. #endif
  10949. _ACEOF
  10950. if ac_fn_c_try_compile "$LINENO"; then :
  10951. ac_cv_c_inline=$ac_kw
  10952. fi
  10953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10954. test "$ac_cv_c_inline" != no && break
  10955. done
  10956. fi
  10957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10958. $as_echo "$ac_cv_c_inline" >&6; }
  10959. case $ac_cv_c_inline in
  10960. inline | yes) ;;
  10961. *)
  10962. case $ac_cv_c_inline in
  10963. no) ac_val=;;
  10964. *) ac_val=$ac_cv_c_inline;;
  10965. esac
  10966. cat >>confdefs.h <<_ACEOF
  10967. #ifndef __cplusplus
  10968. #define inline $ac_val
  10969. #endif
  10970. _ACEOF
  10971. ;;
  10972. esac
  10973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  10974. $as_echo_n "checking whether char is unsigned... " >&6; }
  10975. if ${ac_cv_c_char_unsigned+:} false; then :
  10976. $as_echo_n "(cached) " >&6
  10977. else
  10978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10979. /* end confdefs.h. */
  10980. $ac_includes_default
  10981. int
  10982. main ()
  10983. {
  10984. static int test_array [1 - 2 * !(((char) -1) < 0)];
  10985. test_array [0] = 0;
  10986. return test_array [0];
  10987. ;
  10988. return 0;
  10989. }
  10990. _ACEOF
  10991. if ac_fn_c_try_compile "$LINENO"; then :
  10992. ac_cv_c_char_unsigned=no
  10993. else
  10994. ac_cv_c_char_unsigned=yes
  10995. fi
  10996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10997. fi
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  10999. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  11000. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  11001. $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
  11002. fi
  11003. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11004. if test "x$ac_cv_type_off_t" = xyes; then :
  11005. else
  11006. cat >>confdefs.h <<_ACEOF
  11007. #define off_t long int
  11008. _ACEOF
  11009. fi
  11010. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11011. if test "x$ac_cv_type_pid_t" = xyes; then :
  11012. else
  11013. cat >>confdefs.h <<_ACEOF
  11014. #define pid_t int
  11015. _ACEOF
  11016. fi
  11017. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11018. if test "x$ac_cv_type_size_t" = xyes; then :
  11019. else
  11020. cat >>confdefs.h <<_ACEOF
  11021. #define size_t unsigned int
  11022. _ACEOF
  11023. fi
  11024. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  11025. "
  11026. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  11027. $as_echo "#define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h
  11028. fi
  11029. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
  11030. "
  11031. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
  11032. cat >>confdefs.h <<_ACEOF
  11033. #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  11034. _ACEOF
  11035. fi
  11036. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  11037. #include <sys/socket.h>
  11038. "
  11039. if test "x$ac_cv_type_socklen_t" = xyes; then :
  11040. cat >>confdefs.h <<_ACEOF
  11041. #define HAVE_SOCKLEN_T 1
  11042. _ACEOF
  11043. fi
  11044. for ac_header in vfork.h
  11045. do :
  11046. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11047. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11048. cat >>confdefs.h <<_ACEOF
  11049. #define HAVE_VFORK_H 1
  11050. _ACEOF
  11051. fi
  11052. done
  11053. for ac_func in fork vfork
  11054. do :
  11055. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11056. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11057. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11058. cat >>confdefs.h <<_ACEOF
  11059. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11060. _ACEOF
  11061. fi
  11062. done
  11063. if test "x$ac_cv_func_fork" = xyes; then
  11064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11065. $as_echo_n "checking for working fork... " >&6; }
  11066. if ${ac_cv_func_fork_works+:} false; then :
  11067. $as_echo_n "(cached) " >&6
  11068. else
  11069. if test "$cross_compiling" = yes; then :
  11070. ac_cv_func_fork_works=cross
  11071. else
  11072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11073. /* end confdefs.h. */
  11074. $ac_includes_default
  11075. int
  11076. main ()
  11077. {
  11078. /* By Ruediger Kuhlmann. */
  11079. return fork () < 0;
  11080. ;
  11081. return 0;
  11082. }
  11083. _ACEOF
  11084. if ac_fn_c_try_run "$LINENO"; then :
  11085. ac_cv_func_fork_works=yes
  11086. else
  11087. ac_cv_func_fork_works=no
  11088. fi
  11089. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11090. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11091. fi
  11092. fi
  11093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11094. $as_echo "$ac_cv_func_fork_works" >&6; }
  11095. else
  11096. ac_cv_func_fork_works=$ac_cv_func_fork
  11097. fi
  11098. if test "x$ac_cv_func_fork_works" = xcross; then
  11099. case $host in
  11100. *-*-amigaos* | *-*-msdosdjgpp*)
  11101. # Override, as these systems have only a dummy fork() stub
  11102. ac_cv_func_fork_works=no
  11103. ;;
  11104. *)
  11105. ac_cv_func_fork_works=yes
  11106. ;;
  11107. esac
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11109. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11110. fi
  11111. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11112. if test "x$ac_cv_func_vfork" = xyes; then
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11114. $as_echo_n "checking for working vfork... " >&6; }
  11115. if ${ac_cv_func_vfork_works+:} false; then :
  11116. $as_echo_n "(cached) " >&6
  11117. else
  11118. if test "$cross_compiling" = yes; then :
  11119. ac_cv_func_vfork_works=cross
  11120. else
  11121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11122. /* end confdefs.h. */
  11123. /* Thanks to Paul Eggert for this test. */
  11124. $ac_includes_default
  11125. #include <sys/wait.h>
  11126. #ifdef HAVE_VFORK_H
  11127. # include <vfork.h>
  11128. #endif
  11129. /* On some sparc systems, changes by the child to local and incoming
  11130. argument registers are propagated back to the parent. The compiler
  11131. is told about this with #include <vfork.h>, but some compilers
  11132. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11133. static variable whose address is put into a register that is
  11134. clobbered by the vfork. */
  11135. static void
  11136. #ifdef __cplusplus
  11137. sparc_address_test (int arg)
  11138. # else
  11139. sparc_address_test (arg) int arg;
  11140. #endif
  11141. {
  11142. static pid_t child;
  11143. if (!child) {
  11144. child = vfork ();
  11145. if (child < 0) {
  11146. perror ("vfork");
  11147. _exit(2);
  11148. }
  11149. if (!child) {
  11150. arg = getpid();
  11151. write(-1, "", 0);
  11152. _exit (arg);
  11153. }
  11154. }
  11155. }
  11156. int
  11157. main ()
  11158. {
  11159. pid_t parent = getpid ();
  11160. pid_t child;
  11161. sparc_address_test (0);
  11162. child = vfork ();
  11163. if (child == 0) {
  11164. /* Here is another test for sparc vfork register problems. This
  11165. test uses lots of local variables, at least as many local
  11166. variables as main has allocated so far including compiler
  11167. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11168. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11169. reuse the register of parent for one of the local variables,
  11170. since it will think that parent can't possibly be used any more
  11171. in this routine. Assigning to the local variable will thus
  11172. munge parent in the parent process. */
  11173. pid_t
  11174. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11175. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11176. /* Convince the compiler that p..p7 are live; otherwise, it might
  11177. use the same hardware register for all 8 local variables. */
  11178. if (p != p1 || p != p2 || p != p3 || p != p4
  11179. || p != p5 || p != p6 || p != p7)
  11180. _exit(1);
  11181. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11182. from child file descriptors. If the child closes a descriptor
  11183. before it execs or exits, this munges the parent's descriptor
  11184. as well. Test for this by closing stdout in the child. */
  11185. _exit(close(fileno(stdout)) != 0);
  11186. } else {
  11187. int status;
  11188. struct stat st;
  11189. while (wait(&status) != child)
  11190. ;
  11191. return (
  11192. /* Was there some problem with vforking? */
  11193. child < 0
  11194. /* Did the child fail? (This shouldn't happen.) */
  11195. || status
  11196. /* Did the vfork/compiler bug occur? */
  11197. || parent != getpid()
  11198. /* Did the file descriptor bug occur? */
  11199. || fstat(fileno(stdout), &st) != 0
  11200. );
  11201. }
  11202. }
  11203. _ACEOF
  11204. if ac_fn_c_try_run "$LINENO"; then :
  11205. ac_cv_func_vfork_works=yes
  11206. else
  11207. ac_cv_func_vfork_works=no
  11208. fi
  11209. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11210. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11211. fi
  11212. fi
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  11214. $as_echo "$ac_cv_func_vfork_works" >&6; }
  11215. fi;
  11216. if test "x$ac_cv_func_fork_works" = xcross; then
  11217. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  11219. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  11220. fi
  11221. if test "x$ac_cv_func_vfork_works" = xyes; then
  11222. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  11223. else
  11224. $as_echo "#define vfork fork" >>confdefs.h
  11225. fi
  11226. if test "x$ac_cv_func_fork_works" = xyes; then
  11227. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  11228. fi
  11229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  11230. $as_echo_n "checking return type of signal handlers... " >&6; }
  11231. if ${ac_cv_type_signal+:} false; then :
  11232. $as_echo_n "(cached) " >&6
  11233. else
  11234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11235. /* end confdefs.h. */
  11236. #include <sys/types.h>
  11237. #include <signal.h>
  11238. int
  11239. main ()
  11240. {
  11241. return *(signal (0, 0)) (0) == 1;
  11242. ;
  11243. return 0;
  11244. }
  11245. _ACEOF
  11246. if ac_fn_c_try_compile "$LINENO"; then :
  11247. ac_cv_type_signal=int
  11248. else
  11249. ac_cv_type_signal=void
  11250. fi
  11251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11252. fi
  11253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  11254. $as_echo "$ac_cv_type_signal" >&6; }
  11255. cat >>confdefs.h <<_ACEOF
  11256. #define RETSIGTYPE $ac_cv_type_signal
  11257. _ACEOF
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  11259. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  11260. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  11261. $as_echo_n "(cached) " >&6
  11262. else
  11263. rm -f conftest.sym conftest.file
  11264. echo >conftest.file
  11265. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  11266. if test "$cross_compiling" = yes; then :
  11267. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11268. else
  11269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11270. /* end confdefs.h. */
  11271. $ac_includes_default
  11272. int
  11273. main ()
  11274. {
  11275. struct stat sbuf;
  11276. /* Linux will dereference the symlink and fail, as required by POSIX.
  11277. That is better in the sense that it means we will not
  11278. have to compile and use the lstat wrapper. */
  11279. return lstat ("conftest.sym/", &sbuf) == 0;
  11280. ;
  11281. return 0;
  11282. }
  11283. _ACEOF
  11284. if ac_fn_c_try_run "$LINENO"; then :
  11285. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  11286. else
  11287. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11288. fi
  11289. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11290. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11291. fi
  11292. else
  11293. # If the `ln -s' command failed, then we probably don't even
  11294. # have an lstat function.
  11295. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11296. fi
  11297. rm -f conftest.sym conftest.file
  11298. fi
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  11300. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  11301. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  11302. cat >>confdefs.h <<_ACEOF
  11303. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  11304. _ACEOF
  11305. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  11306. case " $LIBOBJS " in
  11307. *" lstat.$ac_objext "* ) ;;
  11308. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  11309. ;;
  11310. esac
  11311. fi
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  11313. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11314. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  11315. $as_echo_n "(cached) " >&6
  11316. else
  11317. if test "$cross_compiling" = yes; then :
  11318. ac_cv_func_stat_empty_string_bug=yes
  11319. else
  11320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11321. /* end confdefs.h. */
  11322. $ac_includes_default
  11323. int
  11324. main ()
  11325. {
  11326. struct stat sbuf;
  11327. return stat ("", &sbuf) == 0;
  11328. ;
  11329. return 0;
  11330. }
  11331. _ACEOF
  11332. if ac_fn_c_try_run "$LINENO"; then :
  11333. ac_cv_func_stat_empty_string_bug=no
  11334. else
  11335. ac_cv_func_stat_empty_string_bug=yes
  11336. fi
  11337. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11338. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11339. fi
  11340. fi
  11341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  11342. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11343. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11344. case " $LIBOBJS " in
  11345. *" stat.$ac_objext "* ) ;;
  11346. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11347. ;;
  11348. esac
  11349. cat >>confdefs.h <<_ACEOF
  11350. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11351. _ACEOF
  11352. fi
  11353. for ac_func in strftime
  11354. do :
  11355. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  11356. if test "x$ac_cv_func_strftime" = xyes; then :
  11357. cat >>confdefs.h <<_ACEOF
  11358. #define HAVE_STRFTIME 1
  11359. _ACEOF
  11360. else
  11361. # strftime is in -lintl on SCO UNIX.
  11362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  11363. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11364. if ${ac_cv_lib_intl_strftime+:} false; then :
  11365. $as_echo_n "(cached) " >&6
  11366. else
  11367. ac_check_lib_save_LIBS=$LIBS
  11368. LIBS="-lintl $LIBS"
  11369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11370. /* end confdefs.h. */
  11371. /* Override any GCC internal prototype to avoid an error.
  11372. Use char because int might match the return type of a GCC
  11373. builtin and then its argument prototype would still apply. */
  11374. #ifdef __cplusplus
  11375. extern "C"
  11376. #endif
  11377. char strftime ();
  11378. int
  11379. main ()
  11380. {
  11381. return strftime ();
  11382. ;
  11383. return 0;
  11384. }
  11385. _ACEOF
  11386. if ac_fn_c_try_link "$LINENO"; then :
  11387. ac_cv_lib_intl_strftime=yes
  11388. else
  11389. ac_cv_lib_intl_strftime=no
  11390. fi
  11391. rm -f core conftest.err conftest.$ac_objext \
  11392. conftest$ac_exeext conftest.$ac_ext
  11393. LIBS=$ac_check_lib_save_LIBS
  11394. fi
  11395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  11396. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11397. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  11398. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  11399. LIBS="-lintl $LIBS"
  11400. fi
  11401. fi
  11402. done
  11403. for ac_func in issetugid inet_pton
  11404. do :
  11405. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11406. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11407. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11408. cat >>confdefs.h <<_ACEOF
  11409. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11410. _ACEOF
  11411. fi
  11412. done
  11413. if test -z "$PKG_CONFIG"; then
  11414. # Extract the first word of "pkg-config", so it can be a program name with args.
  11415. set dummy pkg-config; ac_word=$2
  11416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11417. $as_echo_n "checking for $ac_word... " >&6; }
  11418. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11419. $as_echo_n "(cached) " >&6
  11420. else
  11421. case $PKG_CONFIG in
  11422. [\\/]* | ?:[\\/]*)
  11423. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11424. ;;
  11425. *)
  11426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11427. for as_dir in $PATH
  11428. do
  11429. IFS=$as_save_IFS
  11430. test -z "$as_dir" && as_dir=.
  11431. for ac_exec_ext in '' $ac_executable_extensions; do
  11432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11433. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11435. break 2
  11436. fi
  11437. done
  11438. done
  11439. IFS=$as_save_IFS
  11440. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11441. ;;
  11442. esac
  11443. fi
  11444. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11445. if test -n "$PKG_CONFIG"; then
  11446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11447. $as_echo "$PKG_CONFIG" >&6; }
  11448. else
  11449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11450. $as_echo "no" >&6; }
  11451. fi
  11452. fi
  11453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev support" >&5
  11454. $as_echo_n "checking for libev support... " >&6; }
  11455. # Check whether --with-libev was given.
  11456. if test "${with_libev+set}" = set; then :
  11457. withval=$with_libev; WITH_LIBEV=$withval
  11458. else
  11459. WITH_LIBEV=no
  11460. fi
  11461. LIBEV_CFLAGS=""
  11462. LIBEV_LIBS=""
  11463. if test "$WITH_LIBEV" != "no"; then
  11464. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  11465. if test -n "$ac_tool_prefix"; then
  11466. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  11467. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  11468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11469. $as_echo_n "checking for $ac_word... " >&6; }
  11470. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11471. $as_echo_n "(cached) " >&6
  11472. else
  11473. case $PKG_CONFIG in
  11474. [\\/]* | ?:[\\/]*)
  11475. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11476. ;;
  11477. *)
  11478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11479. for as_dir in $PATH
  11480. do
  11481. IFS=$as_save_IFS
  11482. test -z "$as_dir" && as_dir=.
  11483. for ac_exec_ext in '' $ac_executable_extensions; do
  11484. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11485. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11487. break 2
  11488. fi
  11489. done
  11490. done
  11491. IFS=$as_save_IFS
  11492. ;;
  11493. esac
  11494. fi
  11495. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11496. if test -n "$PKG_CONFIG"; then
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11498. $as_echo "$PKG_CONFIG" >&6; }
  11499. else
  11500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11501. $as_echo "no" >&6; }
  11502. fi
  11503. fi
  11504. if test -z "$ac_cv_path_PKG_CONFIG"; then
  11505. ac_pt_PKG_CONFIG=$PKG_CONFIG
  11506. # Extract the first word of "pkg-config", so it can be a program name with args.
  11507. set dummy pkg-config; ac_word=$2
  11508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11509. $as_echo_n "checking for $ac_word... " >&6; }
  11510. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  11511. $as_echo_n "(cached) " >&6
  11512. else
  11513. case $ac_pt_PKG_CONFIG in
  11514. [\\/]* | ?:[\\/]*)
  11515. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  11516. ;;
  11517. *)
  11518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11519. for as_dir in $PATH
  11520. do
  11521. IFS=$as_save_IFS
  11522. test -z "$as_dir" && as_dir=.
  11523. for ac_exec_ext in '' $ac_executable_extensions; do
  11524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11525. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11527. break 2
  11528. fi
  11529. done
  11530. done
  11531. IFS=$as_save_IFS
  11532. ;;
  11533. esac
  11534. fi
  11535. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  11536. if test -n "$ac_pt_PKG_CONFIG"; then
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  11538. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  11539. else
  11540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11541. $as_echo "no" >&6; }
  11542. fi
  11543. if test "x$ac_pt_PKG_CONFIG" = x; then
  11544. PKG_CONFIG=""
  11545. else
  11546. case $cross_compiling:$ac_tool_warned in
  11547. yes:)
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11549. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11550. ac_tool_warned=yes ;;
  11551. esac
  11552. PKG_CONFIG=$ac_pt_PKG_CONFIG
  11553. fi
  11554. else
  11555. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  11556. fi
  11557. fi
  11558. if test -n "$PKG_CONFIG"; then
  11559. _pkg_min_version=0.9.0
  11560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  11561. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  11562. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11564. $as_echo "yes" >&6; }
  11565. else
  11566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11567. $as_echo "no" >&6; }
  11568. PKG_CONFIG=""
  11569. fi
  11570. fi
  11571. pkg_failed=no
  11572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5
  11573. $as_echo_n "checking for LIBEV... " >&6; }
  11574. if test -n "$LIBEV_CFLAGS"; then
  11575. pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS"
  11576. elif test -n "$PKG_CONFIG"; then
  11577. if test -n "$PKG_CONFIG" && \
  11578. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
  11579. ($PKG_CONFIG --exists --print-errors "libev") 2>&5
  11580. ac_status=$?
  11581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11582. test $ac_status = 0; }; then
  11583. pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null`
  11584. test "x$?" != "x0" && pkg_failed=yes
  11585. else
  11586. pkg_failed=yes
  11587. fi
  11588. else
  11589. pkg_failed=untried
  11590. fi
  11591. if test -n "$LIBEV_LIBS"; then
  11592. pkg_cv_LIBEV_LIBS="$LIBEV_LIBS"
  11593. elif test -n "$PKG_CONFIG"; then
  11594. if test -n "$PKG_CONFIG" && \
  11595. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
  11596. ($PKG_CONFIG --exists --print-errors "libev") 2>&5
  11597. ac_status=$?
  11598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11599. test $ac_status = 0; }; then
  11600. pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null`
  11601. test "x$?" != "x0" && pkg_failed=yes
  11602. else
  11603. pkg_failed=yes
  11604. fi
  11605. else
  11606. pkg_failed=untried
  11607. fi
  11608. if test $pkg_failed = yes; then
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11610. $as_echo "no" >&6; }
  11611. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11612. _pkg_short_errors_supported=yes
  11613. else
  11614. _pkg_short_errors_supported=no
  11615. fi
  11616. if test $_pkg_short_errors_supported = yes; then
  11617. LIBEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libev" 2>&1`
  11618. else
  11619. LIBEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libev" 2>&1`
  11620. fi
  11621. # Put the nasty error message in config.log where it belongs
  11622. echo "$LIBEV_PKG_ERRORS" >&5
  11623. if test "$WITH_LIBEV" != "yes"; then
  11624. LIBEV_CFLAGS="-I$WITH_LIBEV/include"
  11625. LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
  11626. else
  11627. for ac_header in ev.h
  11628. do :
  11629. ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
  11630. if test "x$ac_cv_header_ev_h" = xyes; then :
  11631. cat >>confdefs.h <<_ACEOF
  11632. #define HAVE_EV_H 1
  11633. _ACEOF
  11634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
  11635. $as_echo_n "checking for ev_time in -lev... " >&6; }
  11636. if ${ac_cv_lib_ev_ev_time+:} false; then :
  11637. $as_echo_n "(cached) " >&6
  11638. else
  11639. ac_check_lib_save_LIBS=$LIBS
  11640. LIBS="-lev $LIBS"
  11641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11642. /* end confdefs.h. */
  11643. /* Override any GCC internal prototype to avoid an error.
  11644. Use char because int might match the return type of a GCC
  11645. builtin and then its argument prototype would still apply. */
  11646. #ifdef __cplusplus
  11647. extern "C"
  11648. #endif
  11649. char ev_time ();
  11650. int
  11651. main ()
  11652. {
  11653. return ev_time ();
  11654. ;
  11655. return 0;
  11656. }
  11657. _ACEOF
  11658. if ac_fn_c_try_link "$LINENO"; then :
  11659. ac_cv_lib_ev_ev_time=yes
  11660. else
  11661. ac_cv_lib_ev_ev_time=no
  11662. fi
  11663. rm -f core conftest.err conftest.$ac_objext \
  11664. conftest$ac_exeext conftest.$ac_ext
  11665. LIBS=$ac_check_lib_save_LIBS
  11666. fi
  11667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
  11668. $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
  11669. if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
  11670. LIBEV_CFLAGS=""
  11671. LIBEV_LIBS="-lev"
  11672. else
  11673. as_fn_error $? "libev not found" "$LINENO" 5
  11674. fi
  11675. else
  11676. as_fn_error $? "libev not found" "$LINENO" 5
  11677. fi
  11678. done
  11679. fi
  11680. elif test $pkg_failed = untried; then
  11681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11682. $as_echo "no" >&6; }
  11683. if test "$WITH_LIBEV" != "yes"; then
  11684. LIBEV_CFLAGS="-I$WITH_LIBEV/include"
  11685. LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
  11686. else
  11687. for ac_header in ev.h
  11688. do :
  11689. ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
  11690. if test "x$ac_cv_header_ev_h" = xyes; then :
  11691. cat >>confdefs.h <<_ACEOF
  11692. #define HAVE_EV_H 1
  11693. _ACEOF
  11694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
  11695. $as_echo_n "checking for ev_time in -lev... " >&6; }
  11696. if ${ac_cv_lib_ev_ev_time+:} false; then :
  11697. $as_echo_n "(cached) " >&6
  11698. else
  11699. ac_check_lib_save_LIBS=$LIBS
  11700. LIBS="-lev $LIBS"
  11701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11702. /* end confdefs.h. */
  11703. /* Override any GCC internal prototype to avoid an error.
  11704. Use char because int might match the return type of a GCC
  11705. builtin and then its argument prototype would still apply. */
  11706. #ifdef __cplusplus
  11707. extern "C"
  11708. #endif
  11709. char ev_time ();
  11710. int
  11711. main ()
  11712. {
  11713. return ev_time ();
  11714. ;
  11715. return 0;
  11716. }
  11717. _ACEOF
  11718. if ac_fn_c_try_link "$LINENO"; then :
  11719. ac_cv_lib_ev_ev_time=yes
  11720. else
  11721. ac_cv_lib_ev_ev_time=no
  11722. fi
  11723. rm -f core conftest.err conftest.$ac_objext \
  11724. conftest$ac_exeext conftest.$ac_ext
  11725. LIBS=$ac_check_lib_save_LIBS
  11726. fi
  11727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
  11728. $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
  11729. if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
  11730. LIBEV_CFLAGS=""
  11731. LIBEV_LIBS="-lev"
  11732. else
  11733. as_fn_error $? "libev not found" "$LINENO" 5
  11734. fi
  11735. else
  11736. as_fn_error $? "libev not found" "$LINENO" 5
  11737. fi
  11738. done
  11739. fi
  11740. else
  11741. LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS
  11742. LIBEV_LIBS=$pkg_cv_LIBEV_LIBS
  11743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11744. $as_echo "yes" >&6; }
  11745. fi
  11746. $as_echo "#define HAVE_LIBEV 1" >>confdefs.h
  11747. fi
  11748. MYSQL_INCLUDE=""
  11749. MYSQL_LIBS=""
  11750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
  11751. $as_echo_n "checking for MySQL support... " >&6; }
  11752. # Check whether --with-mysql was given.
  11753. if test "${with_mysql+set}" = set; then :
  11754. withval=$with_mysql; WITH_MYSQL=$withval
  11755. else
  11756. WITH_MYSQL=no
  11757. fi
  11758. if test "$WITH_MYSQL" != "no"; then
  11759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11760. $as_echo "yes" >&6; }
  11761. if test "$WITH_MYSQL" = "yes"; then
  11762. # Extract the first word of "mysql_config", so it can be a program name with args.
  11763. set dummy mysql_config; ac_word=$2
  11764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11765. $as_echo_n "checking for $ac_word... " >&6; }
  11766. if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
  11767. $as_echo_n "(cached) " >&6
  11768. else
  11769. case $MYSQL_CONFIG in
  11770. [\\/]* | ?:[\\/]*)
  11771. ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
  11772. ;;
  11773. *)
  11774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11775. for as_dir in $PATH
  11776. do
  11777. IFS=$as_save_IFS
  11778. test -z "$as_dir" && as_dir=.
  11779. for ac_exec_ext in '' $ac_executable_extensions; do
  11780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11781. ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11783. break 2
  11784. fi
  11785. done
  11786. done
  11787. IFS=$as_save_IFS
  11788. ;;
  11789. esac
  11790. fi
  11791. MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
  11792. if test -n "$MYSQL_CONFIG"; then
  11793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
  11794. $as_echo "$MYSQL_CONFIG" >&6; }
  11795. else
  11796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11797. $as_echo "no" >&6; }
  11798. fi
  11799. else
  11800. MYSQL_CONFIG=$WITH_MYSQL
  11801. fi
  11802. if test "$MYSQL_CONFIG" = ""; then
  11803. as_fn_error $? "mysql_config is not found" "$LINENO" 5
  11804. fi
  11805. if test \! -x $MYSQL_CONFIG; then
  11806. as_fn_error use --with-mysql=path-to-mysql_config "mysql_config not exists or not executable" "$LINENO" 5
  11807. fi
  11808. if $MYSQL_CONFIG | grep -- '--include' > /dev/null ; then
  11809. MYSQL_INCLUDE="`$MYSQL_CONFIG --include | sed s/\'//g`"
  11810. else
  11811. MYSQL_INCLUDE="`$MYSQL_CONFIG --cflags | sed s/\'//g`"
  11812. fi
  11813. MYSQL_LIBS="`$MYSQL_CONFIG --libs | sed s/\'//g`"
  11814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes at" >&5
  11815. $as_echo_n "checking for MySQL includes at... " >&6; }
  11816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDE" >&5
  11817. $as_echo "$MYSQL_INCLUDE" >&6; }
  11818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries at" >&5
  11819. $as_echo_n "checking for MySQL libraries at... " >&6; }
  11820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
  11821. $as_echo "$MYSQL_LIBS" >&6; }
  11822. old_CPPFLAGS="$CPPFLAGS"
  11823. CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE"
  11824. for ac_header in errmsg.h mysql.h
  11825. do :
  11826. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11827. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11828. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11829. cat >>confdefs.h <<_ACEOF
  11830. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11831. _ACEOF
  11832. fi
  11833. done
  11834. CPPFLAGS="$old_CPPFLAGS"
  11835. $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
  11836. else
  11837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11838. $as_echo "no" >&6; }
  11839. fi
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
  11841. $as_echo_n "checking for LDAP support... " >&6; }
  11842. # Check whether --with-ldap was given.
  11843. if test "${with_ldap+set}" = set; then :
  11844. withval=$with_ldap; WITH_LDAP=$withval
  11845. else
  11846. WITH_LDAP=no
  11847. fi
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  11849. $as_echo "$withval" >&6; }
  11850. if test "$WITH_LDAP" != "no"; then
  11851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
  11852. $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
  11853. if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
  11854. $as_echo_n "(cached) " >&6
  11855. else
  11856. ac_check_lib_save_LIBS=$LIBS
  11857. LIBS="-lldap $LIBS"
  11858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11859. /* end confdefs.h. */
  11860. /* Override any GCC internal prototype to avoid an error.
  11861. Use char because int might match the return type of a GCC
  11862. builtin and then its argument prototype would still apply. */
  11863. #ifdef __cplusplus
  11864. extern "C"
  11865. #endif
  11866. char ldap_bind ();
  11867. int
  11868. main ()
  11869. {
  11870. return ldap_bind ();
  11871. ;
  11872. return 0;
  11873. }
  11874. _ACEOF
  11875. if ac_fn_c_try_link "$LINENO"; then :
  11876. ac_cv_lib_ldap_ldap_bind=yes
  11877. else
  11878. ac_cv_lib_ldap_ldap_bind=no
  11879. fi
  11880. rm -f core conftest.err conftest.$ac_objext \
  11881. conftest$ac_exeext conftest.$ac_ext
  11882. LIBS=$ac_check_lib_save_LIBS
  11883. fi
  11884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
  11885. $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
  11886. if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
  11887. for ac_header in ldap.h
  11888. do :
  11889. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  11890. if test "x$ac_cv_header_ldap_h" = xyes; then :
  11891. cat >>confdefs.h <<_ACEOF
  11892. #define HAVE_LDAP_H 1
  11893. _ACEOF
  11894. LDAP_LIB=-lldap
  11895. $as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h
  11896. $as_echo "#define HAVE_LDAP_H 1" >>confdefs.h
  11897. $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
  11898. fi
  11899. done
  11900. fi
  11901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_printf in -llber" >&5
  11902. $as_echo_n "checking for ber_printf in -llber... " >&6; }
  11903. if ${ac_cv_lib_lber_ber_printf+:} false; then :
  11904. $as_echo_n "(cached) " >&6
  11905. else
  11906. ac_check_lib_save_LIBS=$LIBS
  11907. LIBS="-llber $LIBS"
  11908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11909. /* end confdefs.h. */
  11910. /* Override any GCC internal prototype to avoid an error.
  11911. Use char because int might match the return type of a GCC
  11912. builtin and then its argument prototype would still apply. */
  11913. #ifdef __cplusplus
  11914. extern "C"
  11915. #endif
  11916. char ber_printf ();
  11917. int
  11918. main ()
  11919. {
  11920. return ber_printf ();
  11921. ;
  11922. return 0;
  11923. }
  11924. _ACEOF
  11925. if ac_fn_c_try_link "$LINENO"; then :
  11926. ac_cv_lib_lber_ber_printf=yes
  11927. else
  11928. ac_cv_lib_lber_ber_printf=no
  11929. fi
  11930. rm -f core conftest.err conftest.$ac_objext \
  11931. conftest$ac_exeext conftest.$ac_ext
  11932. LIBS=$ac_check_lib_save_LIBS
  11933. fi
  11934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_printf" >&5
  11935. $as_echo "$ac_cv_lib_lber_ber_printf" >&6; }
  11936. if test "x$ac_cv_lib_lber_ber_printf" = xyes; then :
  11937. for ac_header in lber.h
  11938. do :
  11939. ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
  11940. if test "x$ac_cv_header_lber_h" = xyes; then :
  11941. cat >>confdefs.h <<_ACEOF
  11942. #define HAVE_LBER_H 1
  11943. _ACEOF
  11944. LBER_LIB=-llber
  11945. $as_echo "#define HAVE_LIBLBER 1" >>confdefs.h
  11946. $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
  11947. fi
  11948. done
  11949. fi
  11950. fi
  11951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
  11952. $as_echo_n "checking for extended attributes support... " >&6; }
  11953. # Check whether --with-attr was given.
  11954. if test "${with_attr+set}" = set; then :
  11955. withval=$with_attr; WITH_ATTR=$withval
  11956. else
  11957. WITH_ATTR=no
  11958. fi
  11959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  11960. $as_echo "$withval" >&6; }
  11961. if test "$WITH_ATTR" != "no"; then
  11962. # libattr (linux only?)
  11963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for attr_get in -lattr" >&5
  11964. $as_echo_n "checking for attr_get in -lattr... " >&6; }
  11965. if ${ac_cv_lib_attr_attr_get+:} false; then :
  11966. $as_echo_n "(cached) " >&6
  11967. else
  11968. ac_check_lib_save_LIBS=$LIBS
  11969. LIBS="-lattr $LIBS"
  11970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11971. /* end confdefs.h. */
  11972. /* Override any GCC internal prototype to avoid an error.
  11973. Use char because int might match the return type of a GCC
  11974. builtin and then its argument prototype would still apply. */
  11975. #ifdef __cplusplus
  11976. extern "C"
  11977. #endif
  11978. char attr_get ();
  11979. int
  11980. main ()
  11981. {
  11982. return attr_get ();
  11983. ;
  11984. return 0;
  11985. }
  11986. _ACEOF
  11987. if ac_fn_c_try_link "$LINENO"; then :
  11988. ac_cv_lib_attr_attr_get=yes
  11989. else
  11990. ac_cv_lib_attr_attr_get=no
  11991. fi
  11992. rm -f core conftest.err conftest.$ac_objext \
  11993. conftest$ac_exeext conftest.$ac_ext
  11994. LIBS=$ac_check_lib_save_LIBS
  11995. fi
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_attr_get" >&5
  11997. $as_echo "$ac_cv_lib_attr_attr_get" >&6; }
  11998. if test "x$ac_cv_lib_attr_attr_get" = xyes; then :
  11999. for ac_header in attr/attributes.h
  12000. do :
  12001. ac_fn_c_check_header_mongrel "$LINENO" "attr/attributes.h" "ac_cv_header_attr_attributes_h" "$ac_includes_default"
  12002. if test "x$ac_cv_header_attr_attributes_h" = xyes; then :
  12003. cat >>confdefs.h <<_ACEOF
  12004. #define HAVE_ATTR_ATTRIBUTES_H 1
  12005. _ACEOF
  12006. ATTR_LIB=-lattr
  12007. $as_echo "#define HAVE_XATTR 1" >>confdefs.h
  12008. $as_echo "#define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h
  12009. fi
  12010. done
  12011. fi
  12012. # (Free)BSD extattr
  12013. ac_fn_c_check_func "$LINENO" "extattr_get_file" "ac_cv_func_extattr_get_file"
  12014. if test "x$ac_cv_func_extattr_get_file" = xyes; then :
  12015. for ac_header in sys/extattr.h
  12016. do :
  12017. ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
  12018. if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
  12019. cat >>confdefs.h <<_ACEOF
  12020. #define HAVE_SYS_EXTATTR_H 1
  12021. _ACEOF
  12022. $as_echo "#define HAVE_EXTATTR 1" >>confdefs.h
  12023. $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
  12024. fi
  12025. done
  12026. fi
  12027. fi
  12028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  12029. $as_echo_n "checking for library containing socket... " >&6; }
  12030. if ${ac_cv_search_socket+:} false; then :
  12031. $as_echo_n "(cached) " >&6
  12032. else
  12033. ac_func_search_save_LIBS=$LIBS
  12034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12035. /* end confdefs.h. */
  12036. /* Override any GCC internal prototype to avoid an error.
  12037. Use char because int might match the return type of a GCC
  12038. builtin and then its argument prototype would still apply. */
  12039. #ifdef __cplusplus
  12040. extern "C"
  12041. #endif
  12042. char socket ();
  12043. int
  12044. main ()
  12045. {
  12046. return socket ();
  12047. ;
  12048. return 0;
  12049. }
  12050. _ACEOF
  12051. for ac_lib in '' socket; do
  12052. if test -z "$ac_lib"; then
  12053. ac_res="none required"
  12054. else
  12055. ac_res=-l$ac_lib
  12056. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12057. fi
  12058. if ac_fn_c_try_link "$LINENO"; then :
  12059. ac_cv_search_socket=$ac_res
  12060. fi
  12061. rm -f core conftest.err conftest.$ac_objext \
  12062. conftest$ac_exeext
  12063. if ${ac_cv_search_socket+:} false; then :
  12064. break
  12065. fi
  12066. done
  12067. if ${ac_cv_search_socket+:} false; then :
  12068. else
  12069. ac_cv_search_socket=no
  12070. fi
  12071. rm conftest.$ac_ext
  12072. LIBS=$ac_func_search_save_LIBS
  12073. fi
  12074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  12075. $as_echo "$ac_cv_search_socket" >&6; }
  12076. ac_res=$ac_cv_search_socket
  12077. if test "$ac_res" != no; then :
  12078. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12079. fi
  12080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  12081. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  12082. if ${ac_cv_search_gethostbyname+:} false; then :
  12083. $as_echo_n "(cached) " >&6
  12084. else
  12085. ac_func_search_save_LIBS=$LIBS
  12086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12087. /* end confdefs.h. */
  12088. /* Override any GCC internal prototype to avoid an error.
  12089. Use char because int might match the return type of a GCC
  12090. builtin and then its argument prototype would still apply. */
  12091. #ifdef __cplusplus
  12092. extern "C"
  12093. #endif
  12094. char gethostbyname ();
  12095. int
  12096. main ()
  12097. {
  12098. return gethostbyname ();
  12099. ;
  12100. return 0;
  12101. }
  12102. _ACEOF
  12103. for ac_lib in '' nsl socket; do
  12104. if test -z "$ac_lib"; then
  12105. ac_res="none required"
  12106. else
  12107. ac_res=-l$ac_lib
  12108. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12109. fi
  12110. if ac_fn_c_try_link "$LINENO"; then :
  12111. ac_cv_search_gethostbyname=$ac_res
  12112. fi
  12113. rm -f core conftest.err conftest.$ac_objext \
  12114. conftest$ac_exeext
  12115. if ${ac_cv_search_gethostbyname+:} false; then :
  12116. break
  12117. fi
  12118. done
  12119. if ${ac_cv_search_gethostbyname+:} false; then :
  12120. else
  12121. ac_cv_search_gethostbyname=no
  12122. fi
  12123. rm conftest.$ac_ext
  12124. LIBS=$ac_func_search_save_LIBS
  12125. fi
  12126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  12127. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  12128. ac_res=$ac_cv_search_gethostbyname
  12129. if test "$ac_res" != no; then :
  12130. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12131. fi
  12132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
  12133. $as_echo_n "checking for library containing hstrerror... " >&6; }
  12134. if ${ac_cv_search_hstrerror+:} false; then :
  12135. $as_echo_n "(cached) " >&6
  12136. else
  12137. ac_func_search_save_LIBS=$LIBS
  12138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12139. /* end confdefs.h. */
  12140. /* Override any GCC internal prototype to avoid an error.
  12141. Use char because int might match the return type of a GCC
  12142. builtin and then its argument prototype would still apply. */
  12143. #ifdef __cplusplus
  12144. extern "C"
  12145. #endif
  12146. char hstrerror ();
  12147. int
  12148. main ()
  12149. {
  12150. return hstrerror ();
  12151. ;
  12152. return 0;
  12153. }
  12154. _ACEOF
  12155. for ac_lib in '' resolv; do
  12156. if test -z "$ac_lib"; then
  12157. ac_res="none required"
  12158. else
  12159. ac_res=-l$ac_lib
  12160. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12161. fi
  12162. if ac_fn_c_try_link "$LINENO"; then :
  12163. ac_cv_search_hstrerror=$ac_res
  12164. fi
  12165. rm -f core conftest.err conftest.$ac_objext \
  12166. conftest$ac_exeext
  12167. if ${ac_cv_search_hstrerror+:} false; then :
  12168. break
  12169. fi
  12170. done
  12171. if ${ac_cv_search_hstrerror+:} false; then :
  12172. else
  12173. ac_cv_search_hstrerror=no
  12174. fi
  12175. rm conftest.$ac_ext
  12176. LIBS=$ac_func_search_save_LIBS
  12177. fi
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
  12179. $as_echo "$ac_cv_search_hstrerror" >&6; }
  12180. ac_res=$ac_cv_search_hstrerror
  12181. if test "$ac_res" != no; then :
  12182. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12183. fi
  12184. save_LIBS=$LIBS
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  12186. $as_echo_n "checking for library containing dlopen... " >&6; }
  12187. if ${ac_cv_search_dlopen+:} false; then :
  12188. $as_echo_n "(cached) " >&6
  12189. else
  12190. ac_func_search_save_LIBS=$LIBS
  12191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12192. /* end confdefs.h. */
  12193. /* Override any GCC internal prototype to avoid an error.
  12194. Use char because int might match the return type of a GCC
  12195. builtin and then its argument prototype would still apply. */
  12196. #ifdef __cplusplus
  12197. extern "C"
  12198. #endif
  12199. char dlopen ();
  12200. int
  12201. main ()
  12202. {
  12203. return dlopen ();
  12204. ;
  12205. return 0;
  12206. }
  12207. _ACEOF
  12208. for ac_lib in '' dl; do
  12209. if test -z "$ac_lib"; then
  12210. ac_res="none required"
  12211. else
  12212. ac_res=-l$ac_lib
  12213. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12214. fi
  12215. if ac_fn_c_try_link "$LINENO"; then :
  12216. ac_cv_search_dlopen=$ac_res
  12217. fi
  12218. rm -f core conftest.err conftest.$ac_objext \
  12219. conftest$ac_exeext
  12220. if ${ac_cv_search_dlopen+:} false; then :
  12221. break
  12222. fi
  12223. done
  12224. if ${ac_cv_search_dlopen+:} false; then :
  12225. else
  12226. ac_cv_search_dlopen=no
  12227. fi
  12228. rm conftest.$ac_ext
  12229. LIBS=$ac_func_search_save_LIBS
  12230. fi
  12231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  12232. $as_echo "$ac_cv_search_dlopen" >&6; }
  12233. ac_res=$ac_cv_search_dlopen
  12234. if test "$ac_res" != no; then :
  12235. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12236. for ac_header in dlfcn.h
  12237. do :
  12238. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  12239. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  12240. cat >>confdefs.h <<_ACEOF
  12241. #define HAVE_DLFCN_H 1
  12242. _ACEOF
  12243. if test "$ac_cv_search_dlopen" != no; then
  12244. test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen"
  12245. fi
  12246. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  12247. $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
  12248. fi
  12249. done
  12250. fi
  12251. LIBS=$save_LIBS
  12252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
  12253. $as_echo_n "checking for valgrind... " >&6; }
  12254. # Check whether --with-valgrind was given.
  12255. if test "${with_valgrind+set}" = set; then :
  12256. withval=$with_valgrind; WITH_VALGRIND=$withval
  12257. else
  12258. WITH_VALGRIND=no
  12259. fi
  12260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_VALGRIND" >&5
  12261. $as_echo "$WITH_VALGRIND" >&6; }
  12262. if test "$WITH_VALGRIND" != "no"; then
  12263. for ac_header in valgrind/valgrind.h
  12264. do :
  12265. ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
  12266. if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
  12267. cat >>confdefs.h <<_ACEOF
  12268. #define HAVE_VALGRIND_VALGRIND_H 1
  12269. _ACEOF
  12270. fi
  12271. done
  12272. fi
  12273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5
  12274. $as_echo_n "checking for libunwind... " >&6; }
  12275. # Check whether --with-libunwind was given.
  12276. if test "${with_libunwind+set}" = set; then :
  12277. withval=$with_libunwind; WITH_LIBUNWIND=$withval
  12278. else
  12279. WITH_LIBUNWIND=no
  12280. fi
  12281. if test "$WITH_LIBUNWIND" != "no"; then
  12282. pkg_failed=no
  12283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5
  12284. $as_echo_n "checking for LIBUNWIND... " >&6; }
  12285. if test -n "$LIBUNWIND_CFLAGS"; then
  12286. pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
  12287. elif test -n "$PKG_CONFIG"; then
  12288. if test -n "$PKG_CONFIG" && \
  12289. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
  12290. ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
  12291. ac_status=$?
  12292. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12293. test $ac_status = 0; }; then
  12294. pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
  12295. test "x$?" != "x0" && pkg_failed=yes
  12296. else
  12297. pkg_failed=yes
  12298. fi
  12299. else
  12300. pkg_failed=untried
  12301. fi
  12302. if test -n "$LIBUNWIND_LIBS"; then
  12303. pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
  12304. elif test -n "$PKG_CONFIG"; then
  12305. if test -n "$PKG_CONFIG" && \
  12306. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
  12307. ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
  12308. ac_status=$?
  12309. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12310. test $ac_status = 0; }; then
  12311. pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
  12312. test "x$?" != "x0" && pkg_failed=yes
  12313. else
  12314. pkg_failed=yes
  12315. fi
  12316. else
  12317. pkg_failed=untried
  12318. fi
  12319. if test $pkg_failed = yes; then
  12320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12321. $as_echo "no" >&6; }
  12322. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12323. _pkg_short_errors_supported=yes
  12324. else
  12325. _pkg_short_errors_supported=no
  12326. fi
  12327. if test $_pkg_short_errors_supported = yes; then
  12328. LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1`
  12329. else
  12330. LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1`
  12331. fi
  12332. # Put the nasty error message in config.log where it belongs
  12333. echo "$LIBUNWIND_PKG_ERRORS" >&5
  12334. as_fn_error $? "Package requirements (libunwind) were not met:
  12335. $LIBUNWIND_PKG_ERRORS
  12336. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12337. installed software in a non-standard prefix.
  12338. Alternatively, you may set the environment variables LIBUNWIND_CFLAGS
  12339. and LIBUNWIND_LIBS to avoid the need to call pkg-config.
  12340. See the pkg-config man page for more details." "$LINENO" 5
  12341. elif test $pkg_failed = untried; then
  12342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12343. $as_echo "no" >&6; }
  12344. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12345. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12346. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  12347. is in your PATH or set the PKG_CONFIG environment variable to the full
  12348. path to pkg-config.
  12349. Alternatively, you may set the environment variables LIBUNWIND_CFLAGS
  12350. and LIBUNWIND_LIBS to avoid the need to call pkg-config.
  12351. See the pkg-config man page for more details.
  12352. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12353. See \`config.log' for more details" "$LINENO" 5; }
  12354. else
  12355. LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
  12356. LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12358. $as_echo "yes" >&6; }
  12359. fi
  12360. $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
  12361. fi
  12362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
  12363. $as_echo_n "checking for OpenSSL... " >&6; }
  12364. # Check whether --with-openssl was given.
  12365. if test "${with_openssl+set}" = set; then :
  12366. withval=$with_openssl; WITH_OPENSSL=$withval
  12367. else
  12368. WITH_OPENSSL=no
  12369. fi
  12370. if test "$WITH_OPENSSL" != "no"; then
  12371. use_openssl=yes
  12372. if test "$WITH_OPENSSL" != "yes"; then
  12373. CPPFLAGS="$CPPFLAGS -I$WITH_OPENSSL/include"
  12374. LDFLAGS="$LDFLAGS -L$WITH_OPENSSL/lib"
  12375. fi
  12376. else
  12377. use_openssl=no
  12378. fi
  12379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openssl" >&5
  12380. $as_echo "$use_openssl" >&6; }
  12381. # Check whether --with-openssl-includes was given.
  12382. if test "${with_openssl_includes+set}" = set; then :
  12383. withval=$with_openssl_includes; use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval"
  12384. fi
  12385. # Check whether --with-openssl-libs was given.
  12386. if test "${with_openssl_libs+set}" = set; then :
  12387. withval=$with_openssl_libs; use_openssl=yes LDFLAGS="$LDFLAGS -L$withval"
  12388. fi
  12389. # Check whether --with-kerberos5 was given.
  12390. if test "${with_kerberos5+set}" = set; then :
  12391. withval=$with_kerberos5; use_kerberos=yes
  12392. else
  12393. use_kerberos=no
  12394. fi
  12395. if test "x$use_openssl" = "xyes"; then
  12396. if test "x$use_kerberos" != "xyes"; then
  12397. CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
  12398. fi
  12399. for ac_header in openssl/ssl.h
  12400. do :
  12401. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  12402. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  12403. cat >>confdefs.h <<_ACEOF
  12404. #define HAVE_OPENSSL_SSL_H 1
  12405. _ACEOF
  12406. fi
  12407. done
  12408. OLDLIBS="$LIBS"
  12409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_f_base64 in -lcrypto" >&5
  12410. $as_echo_n "checking for BIO_f_base64 in -lcrypto... " >&6; }
  12411. if ${ac_cv_lib_crypto_BIO_f_base64+:} false; then :
  12412. $as_echo_n "(cached) " >&6
  12413. else
  12414. ac_check_lib_save_LIBS=$LIBS
  12415. LIBS="-lcrypto $LIBS"
  12416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12417. /* end confdefs.h. */
  12418. /* Override any GCC internal prototype to avoid an error.
  12419. Use char because int might match the return type of a GCC
  12420. builtin and then its argument prototype would still apply. */
  12421. #ifdef __cplusplus
  12422. extern "C"
  12423. #endif
  12424. char BIO_f_base64 ();
  12425. int
  12426. main ()
  12427. {
  12428. return BIO_f_base64 ();
  12429. ;
  12430. return 0;
  12431. }
  12432. _ACEOF
  12433. if ac_fn_c_try_link "$LINENO"; then :
  12434. ac_cv_lib_crypto_BIO_f_base64=yes
  12435. else
  12436. ac_cv_lib_crypto_BIO_f_base64=no
  12437. fi
  12438. rm -f core conftest.err conftest.$ac_objext \
  12439. conftest$ac_exeext conftest.$ac_ext
  12440. LIBS=$ac_check_lib_save_LIBS
  12441. fi
  12442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_f_base64" >&5
  12443. $as_echo "$ac_cv_lib_crypto_BIO_f_base64" >&6; }
  12444. if test "x$ac_cv_lib_crypto_BIO_f_base64" = xyes; then :
  12445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
  12446. $as_echo_n "checking for SSL_new in -lssl... " >&6; }
  12447. if ${ac_cv_lib_ssl_SSL_new+:} false; then :
  12448. $as_echo_n "(cached) " >&6
  12449. else
  12450. ac_check_lib_save_LIBS=$LIBS
  12451. LIBS="-lssl -lcrypto "$DL_LIB" $LIBS"
  12452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12453. /* end confdefs.h. */
  12454. /* Override any GCC internal prototype to avoid an error.
  12455. Use char because int might match the return type of a GCC
  12456. builtin and then its argument prototype would still apply. */
  12457. #ifdef __cplusplus
  12458. extern "C"
  12459. #endif
  12460. char SSL_new ();
  12461. int
  12462. main ()
  12463. {
  12464. return SSL_new ();
  12465. ;
  12466. return 0;
  12467. }
  12468. _ACEOF
  12469. if ac_fn_c_try_link "$LINENO"; then :
  12470. ac_cv_lib_ssl_SSL_new=yes
  12471. else
  12472. ac_cv_lib_ssl_SSL_new=no
  12473. fi
  12474. rm -f core conftest.err conftest.$ac_objext \
  12475. conftest$ac_exeext conftest.$ac_ext
  12476. LIBS=$ac_check_lib_save_LIBS
  12477. fi
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
  12479. $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
  12480. if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
  12481. SSL_LIB="-lssl -lcrypto"
  12482. $as_echo "#define HAVE_LIBSSL /**/" >>confdefs.h
  12483. fi
  12484. fi
  12485. LIBS="$OLDLIBS"
  12486. fi
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5
  12488. $as_echo_n "checking for perl regular expressions support... " >&6; }
  12489. # Check whether --with-pcre was given.
  12490. if test "${with_pcre+set}" = set; then :
  12491. withval=$with_pcre; WITH_PCRE=$withval
  12492. else
  12493. WITH_PCRE=yes
  12494. fi
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5
  12496. $as_echo "$WITH_PCRE" >&6; }
  12497. if test "$WITH_PCRE" != "no"; then
  12498. # Extract the first word of "pcre-config", so it can be a program name with args.
  12499. set dummy pcre-config; ac_word=$2
  12500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12501. $as_echo_n "checking for $ac_word... " >&6; }
  12502. if ${ac_cv_path_PCRECONFIG+:} false; then :
  12503. $as_echo_n "(cached) " >&6
  12504. else
  12505. case $PCRECONFIG in
  12506. [\\/]* | ?:[\\/]*)
  12507. ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path.
  12508. ;;
  12509. *)
  12510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12511. for as_dir in $PATH
  12512. do
  12513. IFS=$as_save_IFS
  12514. test -z "$as_dir" && as_dir=.
  12515. for ac_exec_ext in '' $ac_executable_extensions; do
  12516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12517. ac_cv_path_PCRECONFIG="$as_dir/$ac_word$ac_exec_ext"
  12518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12519. break 2
  12520. fi
  12521. done
  12522. done
  12523. IFS=$as_save_IFS
  12524. ;;
  12525. esac
  12526. fi
  12527. PCRECONFIG=$ac_cv_path_PCRECONFIG
  12528. if test -n "$PCRECONFIG"; then
  12529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONFIG" >&5
  12530. $as_echo "$PCRECONFIG" >&6; }
  12531. else
  12532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12533. $as_echo "no" >&6; }
  12534. fi
  12535. if test x"$PCRECONFIG" != x; then
  12536. PCRE_LIB=`$PCRECONFIG --libs`
  12537. CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
  12538. $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
  12539. $as_echo "#define HAVE_PCRE_H 1" >>confdefs.h
  12540. else
  12541. as_fn_error $? "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5
  12542. fi
  12543. fi
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  12545. $as_echo_n "checking for zlib support... " >&6; }
  12546. # Check whether --with-zlib was given.
  12547. if test "${with_zlib+set}" = set; then :
  12548. withval=$with_zlib; WITH_ZLIB=$withval
  12549. else
  12550. WITH_ZLIB=yes
  12551. fi
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5
  12553. $as_echo "$WITH_ZLIB" >&6; }
  12554. if test "$WITH_ZLIB" != "no"; then
  12555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  12556. $as_echo_n "checking for deflate in -lz... " >&6; }
  12557. if ${ac_cv_lib_z_deflate+:} false; then :
  12558. $as_echo_n "(cached) " >&6
  12559. else
  12560. ac_check_lib_save_LIBS=$LIBS
  12561. LIBS="-lz $LIBS"
  12562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12563. /* end confdefs.h. */
  12564. /* Override any GCC internal prototype to avoid an error.
  12565. Use char because int might match the return type of a GCC
  12566. builtin and then its argument prototype would still apply. */
  12567. #ifdef __cplusplus
  12568. extern "C"
  12569. #endif
  12570. char deflate ();
  12571. int
  12572. main ()
  12573. {
  12574. return deflate ();
  12575. ;
  12576. return 0;
  12577. }
  12578. _ACEOF
  12579. if ac_fn_c_try_link "$LINENO"; then :
  12580. ac_cv_lib_z_deflate=yes
  12581. else
  12582. ac_cv_lib_z_deflate=no
  12583. fi
  12584. rm -f core conftest.err conftest.$ac_objext \
  12585. conftest$ac_exeext conftest.$ac_ext
  12586. LIBS=$ac_check_lib_save_LIBS
  12587. fi
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  12589. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  12590. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  12591. for ac_header in zlib.h
  12592. do :
  12593. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  12594. if test "x$ac_cv_header_zlib_h" = xyes; then :
  12595. cat >>confdefs.h <<_ACEOF
  12596. #define HAVE_ZLIB_H 1
  12597. _ACEOF
  12598. Z_LIB=-lz
  12599. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  12600. $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
  12601. fi
  12602. done
  12603. fi
  12604. if test x$Z_LIB = x; then
  12605. as_fn_error $? "zlib-headers and/or libs where not found, install them or build with --without-zlib" "$LINENO" 5
  12606. fi
  12607. fi
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5
  12609. $as_echo_n "checking for bzip2 support... " >&6; }
  12610. # Check whether --with-bzip2 was given.
  12611. if test "${with_bzip2+set}" = set; then :
  12612. withval=$with_bzip2; WITH_BZIP2=$withval
  12613. else
  12614. WITH_BZIP2=yes
  12615. fi
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5
  12617. $as_echo "$WITH_BZIP2" >&6; }
  12618. if test "$WITH_BZIP2" != "no"; then
  12619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
  12620. $as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
  12621. if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
  12622. $as_echo_n "(cached) " >&6
  12623. else
  12624. ac_check_lib_save_LIBS=$LIBS
  12625. LIBS="-lbz2 $LIBS"
  12626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12627. /* end confdefs.h. */
  12628. /* Override any GCC internal prototype to avoid an error.
  12629. Use char because int might match the return type of a GCC
  12630. builtin and then its argument prototype would still apply. */
  12631. #ifdef __cplusplus
  12632. extern "C"
  12633. #endif
  12634. char BZ2_bzCompress ();
  12635. int
  12636. main ()
  12637. {
  12638. return BZ2_bzCompress ();
  12639. ;
  12640. return 0;
  12641. }
  12642. _ACEOF
  12643. if ac_fn_c_try_link "$LINENO"; then :
  12644. ac_cv_lib_bz2_BZ2_bzCompress=yes
  12645. else
  12646. ac_cv_lib_bz2_BZ2_bzCompress=no
  12647. fi
  12648. rm -f core conftest.err conftest.$ac_objext \
  12649. conftest$ac_exeext conftest.$ac_ext
  12650. LIBS=$ac_check_lib_save_LIBS
  12651. fi
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
  12653. $as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
  12654. if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
  12655. for ac_header in bzlib.h
  12656. do :
  12657. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  12658. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  12659. cat >>confdefs.h <<_ACEOF
  12660. #define HAVE_BZLIB_H 1
  12661. _ACEOF
  12662. BZ_LIB=-lbz2
  12663. $as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
  12664. $as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
  12665. fi
  12666. done
  12667. fi
  12668. if test x$BZ_LIB = x; then
  12669. as_fn_error $? "bzip2-headers and/or libs where not found, install them or build with --without-bzip2" "$LINENO" 5
  12670. fi
  12671. fi
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
  12673. $as_echo_n "checking for FAM... " >&6; }
  12674. # Check whether --with-fam was given.
  12675. if test "${with_fam+set}" = set; then :
  12676. withval=$with_fam; WITH_FAM=$withval
  12677. else
  12678. WITH_FAM=no
  12679. fi
  12680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5
  12681. $as_echo "$WITH_FAM" >&6; }
  12682. if test "$WITH_FAM" != "no"; then
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen2 in -lfam" >&5
  12684. $as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
  12685. if ${ac_cv_lib_fam_FAMOpen2+:} false; then :
  12686. $as_echo_n "(cached) " >&6
  12687. else
  12688. ac_check_lib_save_LIBS=$LIBS
  12689. LIBS="-lfam $LIBS"
  12690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12691. /* end confdefs.h. */
  12692. /* Override any GCC internal prototype to avoid an error.
  12693. Use char because int might match the return type of a GCC
  12694. builtin and then its argument prototype would still apply. */
  12695. #ifdef __cplusplus
  12696. extern "C"
  12697. #endif
  12698. char FAMOpen2 ();
  12699. int
  12700. main ()
  12701. {
  12702. return FAMOpen2 ();
  12703. ;
  12704. return 0;
  12705. }
  12706. _ACEOF
  12707. if ac_fn_c_try_link "$LINENO"; then :
  12708. ac_cv_lib_fam_FAMOpen2=yes
  12709. else
  12710. ac_cv_lib_fam_FAMOpen2=no
  12711. fi
  12712. rm -f core conftest.err conftest.$ac_objext \
  12713. conftest$ac_exeext conftest.$ac_ext
  12714. LIBS=$ac_check_lib_save_LIBS
  12715. fi
  12716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen2" >&5
  12717. $as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; }
  12718. if test "x$ac_cv_lib_fam_FAMOpen2" = xyes; then :
  12719. for ac_header in fam.h
  12720. do :
  12721. ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
  12722. if test "x$ac_cv_header_fam_h" = xyes; then :
  12723. cat >>confdefs.h <<_ACEOF
  12724. #define HAVE_FAM_H 1
  12725. _ACEOF
  12726. FAM_LIBS=-lfam
  12727. $as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
  12728. $as_echo "#define HAVE_FAM_H 1" >>confdefs.h
  12729. fi
  12730. done
  12731. fi
  12732. if test "x$FAM_LIBS" = x; then
  12733. pkg_failed=no
  12734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
  12735. $as_echo_n "checking for FAM... " >&6; }
  12736. if test -n "$FAM_CFLAGS"; then
  12737. pkg_cv_FAM_CFLAGS="$FAM_CFLAGS"
  12738. elif test -n "$PKG_CONFIG"; then
  12739. if test -n "$PKG_CONFIG" && \
  12740. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
  12741. ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
  12742. ac_status=$?
  12743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12744. test $ac_status = 0; }; then
  12745. pkg_cv_FAM_CFLAGS=`$PKG_CONFIG --cflags "gamin >= 0.1.0" 2>/dev/null`
  12746. test "x$?" != "x0" && pkg_failed=yes
  12747. else
  12748. pkg_failed=yes
  12749. fi
  12750. else
  12751. pkg_failed=untried
  12752. fi
  12753. if test -n "$FAM_LIBS"; then
  12754. pkg_cv_FAM_LIBS="$FAM_LIBS"
  12755. elif test -n "$PKG_CONFIG"; then
  12756. if test -n "$PKG_CONFIG" && \
  12757. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
  12758. ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
  12759. ac_status=$?
  12760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12761. test $ac_status = 0; }; then
  12762. pkg_cv_FAM_LIBS=`$PKG_CONFIG --libs "gamin >= 0.1.0" 2>/dev/null`
  12763. test "x$?" != "x0" && pkg_failed=yes
  12764. else
  12765. pkg_failed=yes
  12766. fi
  12767. else
  12768. pkg_failed=untried
  12769. fi
  12770. if test $pkg_failed = yes; then
  12771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12772. $as_echo "no" >&6; }
  12773. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12774. _pkg_short_errors_supported=yes
  12775. else
  12776. _pkg_short_errors_supported=no
  12777. fi
  12778. if test $_pkg_short_errors_supported = yes; then
  12779. FAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
  12780. else
  12781. FAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
  12782. fi
  12783. # Put the nasty error message in config.log where it belongs
  12784. echo "$FAM_PKG_ERRORS" >&5
  12785. as_fn_error $? "Package requirements (gamin >= 0.1.0) were not met:
  12786. $FAM_PKG_ERRORS
  12787. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12788. installed software in a non-standard prefix.
  12789. Alternatively, you may set the environment variables FAM_CFLAGS
  12790. and FAM_LIBS to avoid the need to call pkg-config.
  12791. See the pkg-config man page for more details." "$LINENO" 5
  12792. elif test $pkg_failed = untried; then
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12794. $as_echo "no" >&6; }
  12795. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12796. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12797. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  12798. is in your PATH or set the PKG_CONFIG environment variable to the full
  12799. path to pkg-config.
  12800. Alternatively, you may set the environment variables FAM_CFLAGS
  12801. and FAM_LIBS to avoid the need to call pkg-config.
  12802. See the pkg-config man page for more details.
  12803. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12804. See \`config.log' for more details" "$LINENO" 5; }
  12805. else
  12806. FAM_CFLAGS=$pkg_cv_FAM_CFLAGS
  12807. FAM_LIBS=$pkg_cv_FAM_LIBS
  12808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12809. $as_echo "yes" >&6; }
  12810. $as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
  12811. $as_echo "#define HAVE_FAM_H 1" >>confdefs.h
  12812. fi
  12813. fi
  12814. OLD_LIBS=$LIBS
  12815. LIBS=$FAM_LIBS
  12816. for ac_func in FAMNoExists
  12817. do :
  12818. ac_fn_c_check_func "$LINENO" "FAMNoExists" "ac_cv_func_FAMNoExists"
  12819. if test "x$ac_cv_func_FAMNoExists" = xyes; then :
  12820. cat >>confdefs.h <<_ACEOF
  12821. #define HAVE_FAMNOEXISTS 1
  12822. _ACEOF
  12823. fi
  12824. done
  12825. LIBS=$OLD_LIBS
  12826. if test x$FAM_LIBS = x; then
  12827. as_fn_error $? "fam/gamin-headers and/or libs where not found, install them or build with --without-fam" "$LINENO" 5
  12828. fi
  12829. fi
  12830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_webdav" >&5
  12831. $as_echo_n "checking for properties in mod_webdav... " >&6; }
  12832. # Check whether --with-webdav-props was given.
  12833. if test "${with_webdav_props+set}" = set; then :
  12834. withval=$with_webdav_props; WITH_WEBDAV_PROPS=$withval
  12835. else
  12836. WITH_WEBDAV_PROPS=no
  12837. fi
  12838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5
  12839. $as_echo "$WITH_WEBDAV_PROPS" >&6; }
  12840. if test "$WITH_WEBDAV_PROPS" != "no"; then
  12841. pkg_failed=no
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
  12843. $as_echo_n "checking for XML... " >&6; }
  12844. if test -n "$XML_CFLAGS"; then
  12845. pkg_cv_XML_CFLAGS="$XML_CFLAGS"
  12846. elif test -n "$PKG_CONFIG"; then
  12847. if test -n "$PKG_CONFIG" && \
  12848. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  12849. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  12850. ac_status=$?
  12851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12852. test $ac_status = 0; }; then
  12853. pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
  12854. test "x$?" != "x0" && pkg_failed=yes
  12855. else
  12856. pkg_failed=yes
  12857. fi
  12858. else
  12859. pkg_failed=untried
  12860. fi
  12861. if test -n "$XML_LIBS"; then
  12862. pkg_cv_XML_LIBS="$XML_LIBS"
  12863. elif test -n "$PKG_CONFIG"; then
  12864. if test -n "$PKG_CONFIG" && \
  12865. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  12866. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  12867. ac_status=$?
  12868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12869. test $ac_status = 0; }; then
  12870. pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
  12871. test "x$?" != "x0" && pkg_failed=yes
  12872. else
  12873. pkg_failed=yes
  12874. fi
  12875. else
  12876. pkg_failed=untried
  12877. fi
  12878. if test $pkg_failed = yes; then
  12879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12880. $as_echo "no" >&6; }
  12881. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12882. _pkg_short_errors_supported=yes
  12883. else
  12884. _pkg_short_errors_supported=no
  12885. fi
  12886. if test $_pkg_short_errors_supported = yes; then
  12887. XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
  12888. else
  12889. XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
  12890. fi
  12891. # Put the nasty error message in config.log where it belongs
  12892. echo "$XML_PKG_ERRORS" >&5
  12893. as_fn_error $? "Package requirements (libxml-2.0) were not met:
  12894. $XML_PKG_ERRORS
  12895. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12896. installed software in a non-standard prefix.
  12897. Alternatively, you may set the environment variables XML_CFLAGS
  12898. and XML_LIBS to avoid the need to call pkg-config.
  12899. See the pkg-config man page for more details." "$LINENO" 5
  12900. elif test $pkg_failed = untried; then
  12901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12902. $as_echo "no" >&6; }
  12903. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12904. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12905. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  12906. is in your PATH or set the PKG_CONFIG environment variable to the full
  12907. path to pkg-config.
  12908. Alternatively, you may set the environment variables XML_CFLAGS
  12909. and XML_LIBS to avoid the need to call pkg-config.
  12910. See the pkg-config man page for more details.
  12911. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12912. See \`config.log' for more details" "$LINENO" 5; }
  12913. else
  12914. XML_CFLAGS=$pkg_cv_XML_CFLAGS
  12915. XML_LIBS=$pkg_cv_XML_LIBS
  12916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12917. $as_echo "yes" >&6; }
  12918. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  12919. $as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h
  12920. fi
  12921. pkg_failed=no
  12922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
  12923. $as_echo_n "checking for SQLITE... " >&6; }
  12924. if test -n "$SQLITE_CFLAGS"; then
  12925. pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
  12926. elif test -n "$PKG_CONFIG"; then
  12927. if test -n "$PKG_CONFIG" && \
  12928. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  12929. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  12930. ac_status=$?
  12931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12932. test $ac_status = 0; }; then
  12933. pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  12934. test "x$?" != "x0" && pkg_failed=yes
  12935. else
  12936. pkg_failed=yes
  12937. fi
  12938. else
  12939. pkg_failed=untried
  12940. fi
  12941. if test -n "$SQLITE_LIBS"; then
  12942. pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
  12943. elif test -n "$PKG_CONFIG"; then
  12944. if test -n "$PKG_CONFIG" && \
  12945. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  12946. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  12947. ac_status=$?
  12948. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12949. test $ac_status = 0; }; then
  12950. pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  12951. test "x$?" != "x0" && pkg_failed=yes
  12952. else
  12953. pkg_failed=yes
  12954. fi
  12955. else
  12956. pkg_failed=untried
  12957. fi
  12958. if test $pkg_failed = yes; then
  12959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12960. $as_echo "no" >&6; }
  12961. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12962. _pkg_short_errors_supported=yes
  12963. else
  12964. _pkg_short_errors_supported=no
  12965. fi
  12966. if test $_pkg_short_errors_supported = yes; then
  12967. SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
  12968. else
  12969. SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
  12970. fi
  12971. # Put the nasty error message in config.log where it belongs
  12972. echo "$SQLITE_PKG_ERRORS" >&5
  12973. as_fn_error $? "Package requirements (sqlite3) were not met:
  12974. $SQLITE_PKG_ERRORS
  12975. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12976. installed software in a non-standard prefix.
  12977. Alternatively, you may set the environment variables SQLITE_CFLAGS
  12978. and SQLITE_LIBS to avoid the need to call pkg-config.
  12979. See the pkg-config man page for more details." "$LINENO" 5
  12980. elif test $pkg_failed = untried; then
  12981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12982. $as_echo "no" >&6; }
  12983. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12984. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12985. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  12986. is in your PATH or set the PKG_CONFIG environment variable to the full
  12987. path to pkg-config.
  12988. Alternatively, you may set the environment variables SQLITE_CFLAGS
  12989. and SQLITE_LIBS to avoid the need to call pkg-config.
  12990. See the pkg-config man page for more details.
  12991. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12992. See \`config.log' for more details" "$LINENO" 5; }
  12993. else
  12994. SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
  12995. SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
  12996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12997. $as_echo "yes" >&6; }
  12998. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  12999. $as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h
  13000. fi
  13001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_webdav" >&5
  13002. $as_echo_n "checking for locks in mod_webdav... " >&6; }
  13003. # Check whether --with-webdav-locks was given.
  13004. if test "${with_webdav_locks+set}" = set; then :
  13005. withval=$with_webdav_locks; WITH_WEBDAV_LOCKS=$withval
  13006. else
  13007. WITH_WEBDAV_LOCKS=no
  13008. fi
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5
  13010. $as_echo "$WITH_WEBDAV_LOCKS" >&6; }
  13011. if test "$WITH_WEBDAV_LOCKS" != "no"; then
  13012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5
  13013. $as_echo_n "checking for uuid_unparse in -luuid... " >&6; }
  13014. if ${ac_cv_lib_uuid_uuid_unparse+:} false; then :
  13015. $as_echo_n "(cached) " >&6
  13016. else
  13017. ac_check_lib_save_LIBS=$LIBS
  13018. LIBS="-luuid $LIBS"
  13019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13020. /* end confdefs.h. */
  13021. /* Override any GCC internal prototype to avoid an error.
  13022. Use char because int might match the return type of a GCC
  13023. builtin and then its argument prototype would still apply. */
  13024. #ifdef __cplusplus
  13025. extern "C"
  13026. #endif
  13027. char uuid_unparse ();
  13028. int
  13029. main ()
  13030. {
  13031. return uuid_unparse ();
  13032. ;
  13033. return 0;
  13034. }
  13035. _ACEOF
  13036. if ac_fn_c_try_link "$LINENO"; then :
  13037. ac_cv_lib_uuid_uuid_unparse=yes
  13038. else
  13039. ac_cv_lib_uuid_uuid_unparse=no
  13040. fi
  13041. rm -f core conftest.err conftest.$ac_objext \
  13042. conftest$ac_exeext conftest.$ac_ext
  13043. LIBS=$ac_check_lib_save_LIBS
  13044. fi
  13045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5
  13046. $as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; }
  13047. if test "x$ac_cv_lib_uuid_uuid_unparse" = xyes; then :
  13048. for ac_header in uuid/uuid.h
  13049. do :
  13050. ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  13051. if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
  13052. cat >>confdefs.h <<_ACEOF
  13053. #define HAVE_UUID_UUID_H 1
  13054. _ACEOF
  13055. UUID_LIBS=-luuid
  13056. $as_echo "#define HAVE_UUID 1" >>confdefs.h
  13057. $as_echo "#define HAVE_UUID_H 1" >>confdefs.h
  13058. fi
  13059. done
  13060. fi
  13061. fi
  13062. fi
  13063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm" >&5
  13064. $as_echo_n "checking for gdbm... " >&6; }
  13065. # Check whether --with-gdbm was given.
  13066. if test "${with_gdbm+set}" = set; then :
  13067. withval=$with_gdbm; WITH_GDBM=$withval
  13068. else
  13069. WITH_GDBM=no
  13070. fi
  13071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_GDBM" >&5
  13072. $as_echo "$WITH_GDBM" >&6; }
  13073. if test "$WITH_GDBM" != "no"; then
  13074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
  13075. $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
  13076. if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
  13077. $as_echo_n "(cached) " >&6
  13078. else
  13079. ac_check_lib_save_LIBS=$LIBS
  13080. LIBS="-lgdbm $LIBS"
  13081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13082. /* end confdefs.h. */
  13083. /* Override any GCC internal prototype to avoid an error.
  13084. Use char because int might match the return type of a GCC
  13085. builtin and then its argument prototype would still apply. */
  13086. #ifdef __cplusplus
  13087. extern "C"
  13088. #endif
  13089. char gdbm_open ();
  13090. int
  13091. main ()
  13092. {
  13093. return gdbm_open ();
  13094. ;
  13095. return 0;
  13096. }
  13097. _ACEOF
  13098. if ac_fn_c_try_link "$LINENO"; then :
  13099. ac_cv_lib_gdbm_gdbm_open=yes
  13100. else
  13101. ac_cv_lib_gdbm_gdbm_open=no
  13102. fi
  13103. rm -f core conftest.err conftest.$ac_objext \
  13104. conftest$ac_exeext conftest.$ac_ext
  13105. LIBS=$ac_check_lib_save_LIBS
  13106. fi
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
  13108. $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
  13109. if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
  13110. for ac_header in gdbm.h
  13111. do :
  13112. ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
  13113. if test "x$ac_cv_header_gdbm_h" = xyes; then :
  13114. cat >>confdefs.h <<_ACEOF
  13115. #define HAVE_GDBM_H 1
  13116. _ACEOF
  13117. GDBM_LIB=-lgdbm
  13118. $as_echo "#define HAVE_GDBM 1" >>confdefs.h
  13119. $as_echo "#define HAVE_GDBM_H 1" >>confdefs.h
  13120. fi
  13121. done
  13122. fi
  13123. fi
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcache" >&5
  13125. $as_echo_n "checking for memcache... " >&6; }
  13126. # Check whether --with-memcache was given.
  13127. if test "${with_memcache+set}" = set; then :
  13128. withval=$with_memcache; WITH_MEMCACHE=$withval
  13129. else
  13130. WITH_MEMCACHE=no
  13131. fi
  13132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MEMCACHE" >&5
  13133. $as_echo "$WITH_MEMCACHE" >&6; }
  13134. if test "$WITH_MEMCACHE" != "no"; then
  13135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mc_new in -lmemcache" >&5
  13136. $as_echo_n "checking for mc_new in -lmemcache... " >&6; }
  13137. if ${ac_cv_lib_memcache_mc_new+:} false; then :
  13138. $as_echo_n "(cached) " >&6
  13139. else
  13140. ac_check_lib_save_LIBS=$LIBS
  13141. LIBS="-lmemcache $LIBS"
  13142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13143. /* end confdefs.h. */
  13144. /* Override any GCC internal prototype to avoid an error.
  13145. Use char because int might match the return type of a GCC
  13146. builtin and then its argument prototype would still apply. */
  13147. #ifdef __cplusplus
  13148. extern "C"
  13149. #endif
  13150. char mc_new ();
  13151. int
  13152. main ()
  13153. {
  13154. return mc_new ();
  13155. ;
  13156. return 0;
  13157. }
  13158. _ACEOF
  13159. if ac_fn_c_try_link "$LINENO"; then :
  13160. ac_cv_lib_memcache_mc_new=yes
  13161. else
  13162. ac_cv_lib_memcache_mc_new=no
  13163. fi
  13164. rm -f core conftest.err conftest.$ac_objext \
  13165. conftest$ac_exeext conftest.$ac_ext
  13166. LIBS=$ac_check_lib_save_LIBS
  13167. fi
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcache_mc_new" >&5
  13169. $as_echo "$ac_cv_lib_memcache_mc_new" >&6; }
  13170. if test "x$ac_cv_lib_memcache_mc_new" = xyes; then :
  13171. for ac_header in memcache.h
  13172. do :
  13173. ac_fn_c_check_header_mongrel "$LINENO" "memcache.h" "ac_cv_header_memcache_h" "$ac_includes_default"
  13174. if test "x$ac_cv_header_memcache_h" = xyes; then :
  13175. cat >>confdefs.h <<_ACEOF
  13176. #define HAVE_MEMCACHE_H 1
  13177. _ACEOF
  13178. MEMCACHE_LIB=-lmemcache
  13179. $as_echo "#define HAVE_MEMCACHE 1" >>confdefs.h
  13180. $as_echo "#define HAVE_MEMCACHE_H 1" >>confdefs.h
  13181. fi
  13182. done
  13183. fi
  13184. fi
  13185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua-support is requested" >&5
  13186. $as_echo_n "checking if lua-support is requested... " >&6; }
  13187. # Check whether --with-lua was given.
  13188. if test "${with_lua+set}" = set; then :
  13189. withval=$with_lua; WITH_LUA=$withval
  13190. else
  13191. WITH_LUA=no
  13192. fi
  13193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LUA" >&5
  13194. $as_echo "$WITH_LUA" >&6; }
  13195. if test "$WITH_LUA" != "no"; then
  13196. if test "$WITH_LUA" = "yes"; then
  13197. WITH_LUA=lua
  13198. fi
  13199. pkg_failed=no
  13200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13201. $as_echo_n "checking for LUA... " >&6; }
  13202. if test -n "$LUA_CFLAGS"; then
  13203. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13204. elif test -n "$PKG_CONFIG"; then
  13205. if test -n "$PKG_CONFIG" && \
  13206. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
  13207. ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
  13208. ac_status=$?
  13209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13210. test $ac_status = 0; }; then
  13211. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
  13212. test "x$?" != "x0" && pkg_failed=yes
  13213. else
  13214. pkg_failed=yes
  13215. fi
  13216. else
  13217. pkg_failed=untried
  13218. fi
  13219. if test -n "$LUA_LIBS"; then
  13220. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13221. elif test -n "$PKG_CONFIG"; then
  13222. if test -n "$PKG_CONFIG" && \
  13223. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
  13224. ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
  13225. ac_status=$?
  13226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13227. test $ac_status = 0; }; then
  13228. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
  13229. test "x$?" != "x0" && pkg_failed=yes
  13230. else
  13231. pkg_failed=yes
  13232. fi
  13233. else
  13234. pkg_failed=untried
  13235. fi
  13236. if test $pkg_failed = yes; then
  13237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13238. $as_echo "no" >&6; }
  13239. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13240. _pkg_short_errors_supported=yes
  13241. else
  13242. _pkg_short_errors_supported=no
  13243. fi
  13244. if test $_pkg_short_errors_supported = yes; then
  13245. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
  13246. else
  13247. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
  13248. fi
  13249. # Put the nasty error message in config.log where it belongs
  13250. echo "$LUA_PKG_ERRORS" >&5
  13251. pkg_failed=no
  13252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13253. $as_echo_n "checking for LUA... " >&6; }
  13254. if test -n "$LUA_CFLAGS"; then
  13255. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13256. elif test -n "$PKG_CONFIG"; then
  13257. if test -n "$PKG_CONFIG" && \
  13258. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
  13259. ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
  13260. ac_status=$?
  13261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13262. test $ac_status = 0; }; then
  13263. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
  13264. test "x$?" != "x0" && pkg_failed=yes
  13265. else
  13266. pkg_failed=yes
  13267. fi
  13268. else
  13269. pkg_failed=untried
  13270. fi
  13271. if test -n "$LUA_LIBS"; then
  13272. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13273. elif test -n "$PKG_CONFIG"; then
  13274. if test -n "$PKG_CONFIG" && \
  13275. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
  13276. ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
  13277. ac_status=$?
  13278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13279. test $ac_status = 0; }; then
  13280. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
  13281. test "x$?" != "x0" && pkg_failed=yes
  13282. else
  13283. pkg_failed=yes
  13284. fi
  13285. else
  13286. pkg_failed=untried
  13287. fi
  13288. if test $pkg_failed = yes; then
  13289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13290. $as_echo "no" >&6; }
  13291. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13292. _pkg_short_errors_supported=yes
  13293. else
  13294. _pkg_short_errors_supported=no
  13295. fi
  13296. if test $_pkg_short_errors_supported = yes; then
  13297. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
  13298. else
  13299. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
  13300. fi
  13301. # Put the nasty error message in config.log where it belongs
  13302. echo "$LUA_PKG_ERRORS" >&5
  13303. pkg_failed=no
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13305. $as_echo_n "checking for LUA... " >&6; }
  13306. if test -n "$LUA_CFLAGS"; then
  13307. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13308. elif test -n "$PKG_CONFIG"; then
  13309. if test -n "$PKG_CONFIG" && \
  13310. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13311. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13312. ac_status=$?
  13313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13314. test $ac_status = 0; }; then
  13315. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
  13316. test "x$?" != "x0" && pkg_failed=yes
  13317. else
  13318. pkg_failed=yes
  13319. fi
  13320. else
  13321. pkg_failed=untried
  13322. fi
  13323. if test -n "$LUA_LIBS"; then
  13324. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13325. elif test -n "$PKG_CONFIG"; then
  13326. if test -n "$PKG_CONFIG" && \
  13327. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13328. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13329. ac_status=$?
  13330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13331. test $ac_status = 0; }; then
  13332. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
  13333. test "x$?" != "x0" && pkg_failed=yes
  13334. else
  13335. pkg_failed=yes
  13336. fi
  13337. else
  13338. pkg_failed=untried
  13339. fi
  13340. if test $pkg_failed = yes; then
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13342. $as_echo "no" >&6; }
  13343. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13344. _pkg_short_errors_supported=yes
  13345. else
  13346. _pkg_short_errors_supported=no
  13347. fi
  13348. if test $_pkg_short_errors_supported = yes; then
  13349. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13350. else
  13351. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13352. fi
  13353. # Put the nasty error message in config.log where it belongs
  13354. echo "$LUA_PKG_ERRORS" >&5
  13355. as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
  13356. $LUA_PKG_ERRORS
  13357. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13358. installed software in a non-standard prefix.
  13359. Alternatively, you may set the environment variables LUA_CFLAGS
  13360. and LUA_LIBS to avoid the need to call pkg-config.
  13361. See the pkg-config man page for more details." "$LINENO" 5
  13362. elif test $pkg_failed = untried; then
  13363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13364. $as_echo "no" >&6; }
  13365. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13366. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13367. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13368. is in your PATH or set the PKG_CONFIG environment variable to the full
  13369. path to pkg-config.
  13370. Alternatively, you may set the environment variables LUA_CFLAGS
  13371. and LUA_LIBS to avoid the need to call pkg-config.
  13372. See the pkg-config man page for more details.
  13373. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13374. See \`config.log' for more details" "$LINENO" 5; }
  13375. else
  13376. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13377. LUA_LIBS=$pkg_cv_LUA_LIBS
  13378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13379. $as_echo "yes" >&6; }
  13380. $as_echo "#define HAVE_LUA 1" >>confdefs.h
  13381. $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
  13382. fi
  13383. elif test $pkg_failed = untried; then
  13384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13385. $as_echo "no" >&6; }
  13386. pkg_failed=no
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13388. $as_echo_n "checking for LUA... " >&6; }
  13389. if test -n "$LUA_CFLAGS"; then
  13390. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13391. elif test -n "$PKG_CONFIG"; then
  13392. if test -n "$PKG_CONFIG" && \
  13393. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13394. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13395. ac_status=$?
  13396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13397. test $ac_status = 0; }; then
  13398. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
  13399. test "x$?" != "x0" && pkg_failed=yes
  13400. else
  13401. pkg_failed=yes
  13402. fi
  13403. else
  13404. pkg_failed=untried
  13405. fi
  13406. if test -n "$LUA_LIBS"; then
  13407. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13408. elif test -n "$PKG_CONFIG"; then
  13409. if test -n "$PKG_CONFIG" && \
  13410. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13411. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13412. ac_status=$?
  13413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13414. test $ac_status = 0; }; then
  13415. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
  13416. test "x$?" != "x0" && pkg_failed=yes
  13417. else
  13418. pkg_failed=yes
  13419. fi
  13420. else
  13421. pkg_failed=untried
  13422. fi
  13423. if test $pkg_failed = yes; then
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13425. $as_echo "no" >&6; }
  13426. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13427. _pkg_short_errors_supported=yes
  13428. else
  13429. _pkg_short_errors_supported=no
  13430. fi
  13431. if test $_pkg_short_errors_supported = yes; then
  13432. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13433. else
  13434. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13435. fi
  13436. # Put the nasty error message in config.log where it belongs
  13437. echo "$LUA_PKG_ERRORS" >&5
  13438. as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
  13439. $LUA_PKG_ERRORS
  13440. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13441. installed software in a non-standard prefix.
  13442. Alternatively, you may set the environment variables LUA_CFLAGS
  13443. and LUA_LIBS to avoid the need to call pkg-config.
  13444. See the pkg-config man page for more details." "$LINENO" 5
  13445. elif test $pkg_failed = untried; then
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13447. $as_echo "no" >&6; }
  13448. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13449. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13450. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13451. is in your PATH or set the PKG_CONFIG environment variable to the full
  13452. path to pkg-config.
  13453. Alternatively, you may set the environment variables LUA_CFLAGS
  13454. and LUA_LIBS to avoid the need to call pkg-config.
  13455. See the pkg-config man page for more details.
  13456. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13457. See \`config.log' for more details" "$LINENO" 5; }
  13458. else
  13459. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13460. LUA_LIBS=$pkg_cv_LUA_LIBS
  13461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13462. $as_echo "yes" >&6; }
  13463. $as_echo "#define HAVE_LUA 1" >>confdefs.h
  13464. $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
  13465. fi
  13466. else
  13467. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13468. LUA_LIBS=$pkg_cv_LUA_LIBS
  13469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13470. $as_echo "yes" >&6; }
  13471. $as_echo "#define HAVE_LUA 1" >>confdefs.h
  13472. $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
  13473. fi
  13474. elif test $pkg_failed = untried; then
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13476. $as_echo "no" >&6; }
  13477. pkg_failed=no
  13478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13479. $as_echo_n "checking for LUA... " >&6; }
  13480. if test -n "$LUA_CFLAGS"; then
  13481. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13482. elif test -n "$PKG_CONFIG"; then
  13483. if test -n "$PKG_CONFIG" && \
  13484. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
  13485. ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
  13486. ac_status=$?
  13487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13488. test $ac_status = 0; }; then
  13489. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
  13490. test "x$?" != "x0" && pkg_failed=yes
  13491. else
  13492. pkg_failed=yes
  13493. fi
  13494. else
  13495. pkg_failed=untried
  13496. fi
  13497. if test -n "$LUA_LIBS"; then
  13498. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13499. elif test -n "$PKG_CONFIG"; then
  13500. if test -n "$PKG_CONFIG" && \
  13501. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
  13502. ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
  13503. ac_status=$?
  13504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13505. test $ac_status = 0; }; then
  13506. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
  13507. test "x$?" != "x0" && pkg_failed=yes
  13508. else
  13509. pkg_failed=yes
  13510. fi
  13511. else
  13512. pkg_failed=untried
  13513. fi
  13514. if test $pkg_failed = yes; then
  13515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13516. $as_echo "no" >&6; }
  13517. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13518. _pkg_short_errors_supported=yes
  13519. else
  13520. _pkg_short_errors_supported=no
  13521. fi
  13522. if test $_pkg_short_errors_supported = yes; then
  13523. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
  13524. else
  13525. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
  13526. fi
  13527. # Put the nasty error message in config.log where it belongs
  13528. echo "$LUA_PKG_ERRORS" >&5
  13529. pkg_failed=no
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13531. $as_echo_n "checking for LUA... " >&6; }
  13532. if test -n "$LUA_CFLAGS"; then
  13533. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13534. elif test -n "$PKG_CONFIG"; then
  13535. if test -n "$PKG_CONFIG" && \
  13536. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13537. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13538. ac_status=$?
  13539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13540. test $ac_status = 0; }; then
  13541. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
  13542. test "x$?" != "x0" && pkg_failed=yes
  13543. else
  13544. pkg_failed=yes
  13545. fi
  13546. else
  13547. pkg_failed=untried
  13548. fi
  13549. if test -n "$LUA_LIBS"; then
  13550. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13551. elif test -n "$PKG_CONFIG"; then
  13552. if test -n "$PKG_CONFIG" && \
  13553. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13554. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13555. ac_status=$?
  13556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13557. test $ac_status = 0; }; then
  13558. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
  13559. test "x$?" != "x0" && pkg_failed=yes
  13560. else
  13561. pkg_failed=yes
  13562. fi
  13563. else
  13564. pkg_failed=untried
  13565. fi
  13566. if test $pkg_failed = yes; then
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13568. $as_echo "no" >&6; }
  13569. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13570. _pkg_short_errors_supported=yes
  13571. else
  13572. _pkg_short_errors_supported=no
  13573. fi
  13574. if test $_pkg_short_errors_supported = yes; then
  13575. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13576. else
  13577. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13578. fi
  13579. # Put the nasty error message in config.log where it belongs
  13580. echo "$LUA_PKG_ERRORS" >&5
  13581. as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
  13582. $LUA_PKG_ERRORS
  13583. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13584. installed software in a non-standard prefix.
  13585. Alternatively, you may set the environment variables LUA_CFLAGS
  13586. and LUA_LIBS to avoid the need to call pkg-config.
  13587. See the pkg-config man page for more details." "$LINENO" 5
  13588. elif test $pkg_failed = untried; then
  13589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13590. $as_echo "no" >&6; }
  13591. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13592. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13593. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13594. is in your PATH or set the PKG_CONFIG environment variable to the full
  13595. path to pkg-config.
  13596. Alternatively, you may set the environment variables LUA_CFLAGS
  13597. and LUA_LIBS to avoid the need to call pkg-config.
  13598. See the pkg-config man page for more details.
  13599. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13600. See \`config.log' for more details" "$LINENO" 5; }
  13601. else
  13602. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13603. LUA_LIBS=$pkg_cv_LUA_LIBS
  13604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13605. $as_echo "yes" >&6; }
  13606. $as_echo "#define HAVE_LUA 1" >>confdefs.h
  13607. $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
  13608. fi
  13609. elif test $pkg_failed = untried; then
  13610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13611. $as_echo "no" >&6; }
  13612. pkg_failed=no
  13613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
  13614. $as_echo_n "checking for LUA... " >&6; }
  13615. if test -n "$LUA_CFLAGS"; then
  13616. pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
  13617. elif test -n "$PKG_CONFIG"; then
  13618. if test -n "$PKG_CONFIG" && \
  13619. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13620. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13621. ac_status=$?
  13622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13623. test $ac_status = 0; }; then
  13624. pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
  13625. test "x$?" != "x0" && pkg_failed=yes
  13626. else
  13627. pkg_failed=yes
  13628. fi
  13629. else
  13630. pkg_failed=untried
  13631. fi
  13632. if test -n "$LUA_LIBS"; then
  13633. pkg_cv_LUA_LIBS="$LUA_LIBS"
  13634. elif test -n "$PKG_CONFIG"; then
  13635. if test -n "$PKG_CONFIG" && \
  13636. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
  13637. ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
  13638. ac_status=$?
  13639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13640. test $ac_status = 0; }; then
  13641. pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
  13642. test "x$?" != "x0" && pkg_failed=yes
  13643. else
  13644. pkg_failed=yes
  13645. fi
  13646. else
  13647. pkg_failed=untried
  13648. fi
  13649. if test $pkg_failed = yes; then
  13650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13651. $as_echo "no" >&6; }
  13652. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13653. _pkg_short_errors_supported=yes
  13654. else
  13655. _pkg_short_errors_supported=no
  13656. fi
  13657. if test $_pkg_short_errors_supported = yes; then
  13658. LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13659. else
  13660. LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
  13661. fi
  13662. # Put the nasty error message in config.log where it belongs
  13663. echo "$LUA_PKG_ERRORS" >&5
  13664. as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
  13665. $LUA_PKG_ERRORS
  13666. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13667. installed software in a non-standard prefix.
  13668. Alternatively, you may set the environment variables LUA_CFLAGS
  13669. and LUA_LIBS to avoid the need to call pkg-config.
  13670. See the pkg-config man page for more details." "$LINENO" 5
  13671. elif test $pkg_failed = untried; then
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13673. $as_echo "no" >&6; }
  13674. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13675. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13676. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13677. is in your PATH or set the PKG_CONFIG environment variable to the full
  13678. path to pkg-config.
  13679. Alternatively, you may set the environment variables LUA_CFLAGS
  13680. and LUA_LIBS to avoid the need to call pkg-config.
  13681. See the pkg-config man page for more details.
  13682. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13683. See \`config.log' for more details" "$LINENO" 5; }
  13684. else
  13685. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13686. LUA_LIBS=$pkg_cv_LUA_LIBS
  13687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13688. $as_echo "yes" >&6; }
  13689. $as_echo "#define HAVE_LUA 1" >>confdefs.h
  13690. $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
  13691. fi
  13692. else
  13693. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13694. LUA_LIBS=$pkg_cv_LUA_LIBS
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13696. $as_echo "yes" >&6; }
  13697. $as_echo "#define HAVE_LUA 1" >>confdefs.h
  13698. $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
  13699. fi
  13700. else
  13701. LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
  13702. LUA_LIBS=$pkg_cv_LUA_LIBS
  13703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13704. $as_echo "yes" >&6; }
  13705. $as_echo "#define HAVE_LUA 1" >>confdefs.h
  13706. $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
  13707. fi
  13708. fi
  13709. save_LIBS=$LIBS
  13710. LIBS=
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
  13712. $as_echo_n "checking for library containing crypt_r... " >&6; }
  13713. if ${ac_cv_search_crypt_r+:} false; then :
  13714. $as_echo_n "(cached) " >&6
  13715. else
  13716. ac_func_search_save_LIBS=$LIBS
  13717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13718. /* end confdefs.h. */
  13719. /* Override any GCC internal prototype to avoid an error.
  13720. Use char because int might match the return type of a GCC
  13721. builtin and then its argument prototype would still apply. */
  13722. #ifdef __cplusplus
  13723. extern "C"
  13724. #endif
  13725. char crypt_r ();
  13726. int
  13727. main ()
  13728. {
  13729. return crypt_r ();
  13730. ;
  13731. return 0;
  13732. }
  13733. _ACEOF
  13734. for ac_lib in '' crypt; do
  13735. if test -z "$ac_lib"; then
  13736. ac_res="none required"
  13737. else
  13738. ac_res=-l$ac_lib
  13739. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13740. fi
  13741. if ac_fn_c_try_link "$LINENO"; then :
  13742. ac_cv_search_crypt_r=$ac_res
  13743. fi
  13744. rm -f core conftest.err conftest.$ac_objext \
  13745. conftest$ac_exeext
  13746. if ${ac_cv_search_crypt_r+:} false; then :
  13747. break
  13748. fi
  13749. done
  13750. if ${ac_cv_search_crypt_r+:} false; then :
  13751. else
  13752. ac_cv_search_crypt_r=no
  13753. fi
  13754. rm conftest.$ac_ext
  13755. LIBS=$ac_func_search_save_LIBS
  13756. fi
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
  13758. $as_echo "$ac_cv_search_crypt_r" >&6; }
  13759. ac_res=$ac_cv_search_crypt_r
  13760. if test "$ac_res" != no; then :
  13761. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13762. $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
  13763. for ac_header in crypt.h
  13764. do :
  13765. ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
  13766. if test "x$ac_cv_header_crypt_h" = xyes; then :
  13767. cat >>confdefs.h <<_ACEOF
  13768. #define HAVE_CRYPT_H 1
  13769. _ACEOF
  13770. $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
  13771. fi
  13772. done
  13773. CRYPT_LIB=$LIBS
  13774. else
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
  13776. $as_echo_n "checking for library containing crypt... " >&6; }
  13777. if ${ac_cv_search_crypt+:} false; then :
  13778. $as_echo_n "(cached) " >&6
  13779. else
  13780. ac_func_search_save_LIBS=$LIBS
  13781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13782. /* end confdefs.h. */
  13783. /* Override any GCC internal prototype to avoid an error.
  13784. Use char because int might match the return type of a GCC
  13785. builtin and then its argument prototype would still apply. */
  13786. #ifdef __cplusplus
  13787. extern "C"
  13788. #endif
  13789. char crypt ();
  13790. int
  13791. main ()
  13792. {
  13793. return crypt ();
  13794. ;
  13795. return 0;
  13796. }
  13797. _ACEOF
  13798. for ac_lib in '' crypt; do
  13799. if test -z "$ac_lib"; then
  13800. ac_res="none required"
  13801. else
  13802. ac_res=-l$ac_lib
  13803. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13804. fi
  13805. if ac_fn_c_try_link "$LINENO"; then :
  13806. ac_cv_search_crypt=$ac_res
  13807. fi
  13808. rm -f core conftest.err conftest.$ac_objext \
  13809. conftest$ac_exeext
  13810. if ${ac_cv_search_crypt+:} false; then :
  13811. break
  13812. fi
  13813. done
  13814. if ${ac_cv_search_crypt+:} false; then :
  13815. else
  13816. ac_cv_search_crypt=no
  13817. fi
  13818. rm conftest.$ac_ext
  13819. LIBS=$ac_func_search_save_LIBS
  13820. fi
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
  13822. $as_echo "$ac_cv_search_crypt" >&6; }
  13823. ac_res=$ac_cv_search_crypt
  13824. if test "$ac_res" != no; then :
  13825. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13826. $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
  13827. for ac_header in crypt.h
  13828. do :
  13829. ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
  13830. if test "x$ac_cv_header_crypt_h" = xyes; then :
  13831. cat >>confdefs.h <<_ACEOF
  13832. #define HAVE_CRYPT_H 1
  13833. _ACEOF
  13834. $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
  13835. fi
  13836. done
  13837. CRYPT_LIB=$LIBS
  13838. fi
  13839. fi
  13840. LIBS=$save_LIBS
  13841. save_LIBS=$LIBS
  13842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfilev" >&5
  13843. $as_echo_n "checking for library containing sendfilev... " >&6; }
  13844. if ${ac_cv_search_sendfilev+:} false; then :
  13845. $as_echo_n "(cached) " >&6
  13846. else
  13847. ac_func_search_save_LIBS=$LIBS
  13848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13849. /* end confdefs.h. */
  13850. /* Override any GCC internal prototype to avoid an error.
  13851. Use char because int might match the return type of a GCC
  13852. builtin and then its argument prototype would still apply. */
  13853. #ifdef __cplusplus
  13854. extern "C"
  13855. #endif
  13856. char sendfilev ();
  13857. int
  13858. main ()
  13859. {
  13860. return sendfilev ();
  13861. ;
  13862. return 0;
  13863. }
  13864. _ACEOF
  13865. for ac_lib in '' sendfile; do
  13866. if test -z "$ac_lib"; then
  13867. ac_res="none required"
  13868. else
  13869. ac_res=-l$ac_lib
  13870. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13871. fi
  13872. if ac_fn_c_try_link "$LINENO"; then :
  13873. ac_cv_search_sendfilev=$ac_res
  13874. fi
  13875. rm -f core conftest.err conftest.$ac_objext \
  13876. conftest$ac_exeext
  13877. if ${ac_cv_search_sendfilev+:} false; then :
  13878. break
  13879. fi
  13880. done
  13881. if ${ac_cv_search_sendfilev+:} false; then :
  13882. else
  13883. ac_cv_search_sendfilev=no
  13884. fi
  13885. rm conftest.$ac_ext
  13886. LIBS=$ac_func_search_save_LIBS
  13887. fi
  13888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfilev" >&5
  13889. $as_echo "$ac_cv_search_sendfilev" >&6; }
  13890. ac_res=$ac_cv_search_sendfilev
  13891. if test "$ac_res" != no; then :
  13892. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13893. if test "$ac_cv_search_sendfilev" != no; then
  13894. test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev"
  13895. $as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h
  13896. fi
  13897. fi
  13898. LIBS=$save_LIBS
  13899. case $host_os in
  13900. *mingw* ) LIBS="$LIBS -lwsock32";;
  13901. * ) ;;
  13902. esac
  13903. for ac_func in dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
  13904. strdup strerror strstr strtol sendfile getopt socket lstat \
  13905. gethostbyname poll epoll_ctl getrlimit chroot \
  13906. getuid select signal pathconf madvise posix_fadvise posix_madvise \
  13907. writev sigaction sendfile64 send_file kqueue port_create localtime_r gmtime_r \
  13908. memset_s explicit_bzero
  13909. do :
  13910. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13911. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13912. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13913. cat >>confdefs.h <<_ACEOF
  13914. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13915. _ACEOF
  13916. fi
  13917. done
  13918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
  13919. $as_echo_n "checking if weak symbols are supported... " >&6; }
  13920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13921. /* end confdefs.h. */
  13922. __attribute__((weak)) void __dummy(void *x) { }
  13923. void f(void *x) { __dummy(x); }
  13924. int
  13925. main ()
  13926. {
  13927. ;
  13928. return 0;
  13929. }
  13930. _ACEOF
  13931. if ac_fn_c_try_link "$LINENO"; then :
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13933. $as_echo "yes" >&6; }
  13934. $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
  13935. else
  13936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13937. $as_echo "no" >&6; }
  13938. fi
  13939. rm -f core conftest.err conftest.$ac_objext \
  13940. conftest$ac_exeext conftest.$ac_ext
  13941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Large File System support" >&5
  13942. $as_echo_n "checking for Large File System support... " >&6; }
  13943. # Check whether --enable-lfs was given.
  13944. if test "${enable_lfs+set}" = set; then :
  13945. enableval=$enable_lfs; case "${enableval}" in
  13946. yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;;
  13947. no) ;;
  13948. *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;;
  13949. esac
  13950. else
  13951. CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
  13952. enable_lfs=yes
  13953. fi
  13954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  13955. $as_echo "$enableval" >&6; }
  13956. # The cast to long int works around a bug in the HP C Compiler
  13957. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13958. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13959. # This bug is HP SR number 8606223364.
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13961. $as_echo_n "checking size of long... " >&6; }
  13962. if ${ac_cv_sizeof_long+:} false; then :
  13963. $as_echo_n "(cached) " >&6
  13964. else
  13965. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13966. else
  13967. if test "$ac_cv_type_long" = yes; then
  13968. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13969. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13970. as_fn_error 77 "cannot compute sizeof (long)
  13971. See \`config.log' for more details" "$LINENO" 5; }
  13972. else
  13973. ac_cv_sizeof_long=0
  13974. fi
  13975. fi
  13976. fi
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13978. $as_echo "$ac_cv_sizeof_long" >&6; }
  13979. cat >>confdefs.h <<_ACEOF
  13980. #define SIZEOF_LONG $ac_cv_sizeof_long
  13981. _ACEOF
  13982. # The cast to long int works around a bug in the HP C Compiler
  13983. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13984. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13985. # This bug is HP SR number 8606223364.
  13986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  13987. $as_echo_n "checking size of off_t... " >&6; }
  13988. if ${ac_cv_sizeof_off_t+:} false; then :
  13989. $as_echo_n "(cached) " >&6
  13990. else
  13991. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  13992. else
  13993. if test "$ac_cv_type_off_t" = yes; then
  13994. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13995. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13996. as_fn_error 77 "cannot compute sizeof (off_t)
  13997. See \`config.log' for more details" "$LINENO" 5; }
  13998. else
  13999. ac_cv_sizeof_off_t=0
  14000. fi
  14001. fi
  14002. fi
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  14004. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  14005. cat >>confdefs.h <<_ACEOF
  14006. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  14007. _ACEOF
  14008. if test "x$ac_cv_func_sendfile" = xyes; then
  14009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sendfile works" >&5
  14010. $as_echo_n "checking if sendfile works... " >&6; }
  14011. if test "x$cross_compiling" = xno; then
  14012. if test "$cross_compiling" = yes; then :
  14013. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14015. as_fn_error $? "cannot run test program while cross compiling
  14016. See \`config.log' for more details" "$LINENO" 5; }
  14017. else
  14018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14019. /* end confdefs.h. */
  14020. #ifdef HAVE_SYS_SENDFILE_H
  14021. #include <sys/sendfile.h>
  14022. #endif /* HAVE_SYS_SENDFILE_H */
  14023. #include <errno.h>
  14024. int main() {
  14025. int o = 0;
  14026. if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1;
  14027. return 0;
  14028. }
  14029. _ACEOF
  14030. if ac_fn_c_try_run "$LINENO"; then :
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14032. $as_echo "yes" >&6; }
  14033. else
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14035. $as_echo "no" >&6; }
  14036. $as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
  14037. fi
  14038. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14039. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14040. fi
  14041. else
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14043. $as_echo "no" >&6; }
  14044. $as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
  14045. fi
  14046. fi
  14047. # Check whether --enable-ipv6 was given.
  14048. if test "${enable_ipv6+set}" = set; then :
  14049. enableval=$enable_ipv6; case "${enableval}" in
  14050. yes) ipv6=true ;;
  14051. no) ipv6=false ;;
  14052. *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
  14053. esac
  14054. else
  14055. ipv6=true
  14056. fi
  14057. if test x$ipv6 = xtrue; then
  14058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
  14059. $as_echo_n "checking for IPv6 support... " >&6; }
  14060. if ${ac_cv_ipv6_support+:} false; then :
  14061. $as_echo_n "(cached) " >&6
  14062. else
  14063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14064. /* end confdefs.h. */
  14065. #include <sys/types.h>
  14066. #include <sys/socket.h>
  14067. #include <netinet/in.h>
  14068. int
  14069. main ()
  14070. {
  14071. struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
  14072. ;
  14073. return 0;
  14074. }
  14075. _ACEOF
  14076. if ac_fn_c_try_link "$LINENO"; then :
  14077. ac_cv_ipv6_support=yes
  14078. else
  14079. ac_cv_ipv6_support=no
  14080. fi
  14081. rm -f core conftest.err conftest.$ac_objext \
  14082. conftest$ac_exeext conftest.$ac_ext
  14083. fi
  14084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
  14085. $as_echo "$ac_cv_ipv6_support" >&6; }
  14086. if test "$ac_cv_ipv6_support" = yes; then
  14087. $as_echo "#define HAVE_IPV6 1" >>confdefs.h
  14088. fi
  14089. fi
  14090. # disable mmap by default; if a mmapped file gets truncated, the process gets a SIGBUS signal
  14091. # on reading the truncated area which we can't handle (yet).
  14092. # lighttpd may always use mmap with files it owns (created tmp files)
  14093. # Check whether --enable-mmap was given.
  14094. if test "${enable_mmap+set}" = set; then :
  14095. enableval=$enable_mmap; case "${enableval}" in
  14096. yes) mmap=true ;;
  14097. no) mmap=false ;;
  14098. *) as_fn_error $? "bad value ${enableval} for --enable-mmap" "$LINENO" 5 ;;
  14099. esac
  14100. else
  14101. mmap=false
  14102. fi
  14103. if test x$mmap = xtrue; then
  14104. $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
  14105. fi
  14106. if test "x$cross_compiling" = xyes; then
  14107. CROSS_COMPILING_TRUE=
  14108. CROSS_COMPILING_FALSE='#'
  14109. else
  14110. CROSS_COMPILING_TRUE='#'
  14111. CROSS_COMPILING_FALSE=
  14112. fi
  14113. fastcgi_found=no
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGI_Accept in -lfcgi" >&5
  14115. $as_echo_n "checking for FCGI_Accept in -lfcgi... " >&6; }
  14116. if ${ac_cv_lib_fcgi_FCGI_Accept+:} false; then :
  14117. $as_echo_n "(cached) " >&6
  14118. else
  14119. ac_check_lib_save_LIBS=$LIBS
  14120. LIBS="-lfcgi $LIBS"
  14121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14122. /* end confdefs.h. */
  14123. /* Override any GCC internal prototype to avoid an error.
  14124. Use char because int might match the return type of a GCC
  14125. builtin and then its argument prototype would still apply. */
  14126. #ifdef __cplusplus
  14127. extern "C"
  14128. #endif
  14129. char FCGI_Accept ();
  14130. int
  14131. main ()
  14132. {
  14133. return FCGI_Accept ();
  14134. ;
  14135. return 0;
  14136. }
  14137. _ACEOF
  14138. if ac_fn_c_try_link "$LINENO"; then :
  14139. ac_cv_lib_fcgi_FCGI_Accept=yes
  14140. else
  14141. ac_cv_lib_fcgi_FCGI_Accept=no
  14142. fi
  14143. rm -f core conftest.err conftest.$ac_objext \
  14144. conftest$ac_exeext conftest.$ac_ext
  14145. LIBS=$ac_check_lib_save_LIBS
  14146. fi
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcgi_FCGI_Accept" >&5
  14148. $as_echo "$ac_cv_lib_fcgi_FCGI_Accept" >&6; }
  14149. if test "x$ac_cv_lib_fcgi_FCGI_Accept" = xyes; then :
  14150. for ac_header in fastcgi.h fastcgi/fastcgi.h
  14151. do :
  14152. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14153. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14154. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14155. cat >>confdefs.h <<_ACEOF
  14156. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14157. _ACEOF
  14158. fastcgi_found=yes
  14159. fi
  14160. done
  14161. fi
  14162. if test "x$fastcgi_found" = xyes; then
  14163. CHECK_WITH_FASTCGI_TRUE=
  14164. CHECK_WITH_FASTCGI_FALSE='#'
  14165. else
  14166. CHECK_WITH_FASTCGI_TRUE='#'
  14167. CHECK_WITH_FASTCGI_FALSE=
  14168. fi
  14169. if test "${GCC}" = "yes"; then
  14170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall -W -Wshadow -pedantic" >&5
  14171. $as_echo_n "checking if $CC supports -Wall -W -Wshadow -pedantic... " >&6; }
  14172. ac_ext=c
  14173. ac_cpp='$CPP $CPPFLAGS'
  14174. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14175. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14176. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14177. ac_try_cflags_saved_cflags="${CFLAGS}"
  14178. CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic"
  14179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14180. /* end confdefs.h. */
  14181. int
  14182. main ()
  14183. {
  14184. ;
  14185. return 0;
  14186. }
  14187. _ACEOF
  14188. if ac_fn_c_try_compile "$LINENO"; then :
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14190. $as_echo "yes" >&6; }
  14191. else
  14192. as_fn_error $? "no" "$LINENO" 5
  14193. CFLAGS="${ac_try_cflags_saved_cflags}"
  14194. fi
  14195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14196. ac_ext=c
  14197. ac_cpp='$CPP $CPPFLAGS'
  14198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -std=gnu99" >&5
  14202. $as_echo_n "checking if $CC supports -std=gnu99... " >&6; }
  14203. ac_ext=c
  14204. ac_cpp='$CPP $CPPFLAGS'
  14205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14208. ac_try_cflags_saved_cflags="${CFLAGS}"
  14209. CFLAGS="${CFLAGS} -std=gnu99"
  14210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14211. /* end confdefs.h. */
  14212. int
  14213. main ()
  14214. {
  14215. ;
  14216. return 0;
  14217. }
  14218. _ACEOF
  14219. if ac_fn_c_try_compile "$LINENO"; then :
  14220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14221. $as_echo "yes" >&6; }
  14222. else
  14223. as_fn_error $? "no" "$LINENO" 5
  14224. CFLAGS="${ac_try_cflags_saved_cflags}"
  14225. fi
  14226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14227. ac_ext=c
  14228. ac_cpp='$CPP $CPPFLAGS'
  14229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14232. fi
  14233. # Check whether --enable-extra-warnings was given.
  14234. if test "${enable_extra_warnings+set}" = set; then :
  14235. enableval=$enable_extra_warnings; case "${enableval}" in
  14236. yes) extrawarnings=true ;;
  14237. no) extrawarnings=false ;;
  14238. *) as_fn_error $? "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5 ;;
  14239. esac
  14240. else
  14241. extrawarnings=false
  14242. fi
  14243. if test x$extrawarnings = xtrue; then
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security" >&5
  14245. $as_echo_n "checking if $CC supports -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security... " >&6; }
  14246. ac_ext=c
  14247. ac_cpp='$CPP $CPPFLAGS'
  14248. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14249. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14250. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14251. ac_try_cflags_saved_cflags="${CFLAGS}"
  14252. CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security"
  14253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14254. /* end confdefs.h. */
  14255. int
  14256. main ()
  14257. {
  14258. ;
  14259. return 0;
  14260. }
  14261. _ACEOF
  14262. if ac_fn_c_try_compile "$LINENO"; then :
  14263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14264. $as_echo "yes" >&6; }
  14265. else
  14266. as_fn_error $? "no" "$LINENO" 5
  14267. CFLAGS="${ac_try_cflags_saved_cflags}"
  14268. fi
  14269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14270. ac_ext=c
  14271. ac_cpp='$CPP $CPPFLAGS'
  14272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports -Wl,--as-needed" >&5
  14276. $as_echo_n "checking if $LD supports -Wl,--as-needed... " >&6; }
  14277. ac_ext=c
  14278. ac_cpp='$CPP $CPPFLAGS'
  14279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14282. ac_try_ldflags_saved_ldflags="${LDFLAGS}"
  14283. LDFLAGS="${LDFLAGS} -Wl,--as-needed"
  14284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14285. /* end confdefs.h. */
  14286. int
  14287. main ()
  14288. {
  14289. ;
  14290. return 0;
  14291. }
  14292. _ACEOF
  14293. if ac_fn_c_try_link "$LINENO"; then :
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14295. $as_echo "yes" >&6; }
  14296. else
  14297. as_fn_error $? "no" "$LINENO" 5
  14298. LDFLAGS="${ac_try_ldflags_saved_cflags}"
  14299. fi
  14300. rm -f core conftest.err conftest.$ac_objext \
  14301. conftest$ac_exeext conftest.$ac_ext
  14302. ac_ext=c
  14303. ac_cpp='$CPP $CPPFLAGS'
  14304. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14305. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14306. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14307. fi
  14308. LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
  14309. cat >>confdefs.h <<_ACEOF
  14310. #define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
  14311. _ACEOF
  14312. ac_config_files="$ac_config_files Makefile src/Makefile doc/config/conf.d/Makefile doc/config/vhosts.d/Makefile doc/config/Makefile doc/scripts/Makefile doc/initscripts/Makefile doc/systemd/Makefile doc/outdated/Makefile doc/Makefile tests/Makefile tests/docroot/Makefile tests/docroot/123/Makefile tests/docroot/www/Makefile tests/docroot/www/go/Makefile tests/docroot/www/indexfile/Makefile tests/docroot/www/expire/Makefile distribute.sh"
  14313. cat >confcache <<\_ACEOF
  14314. # This file is a shell script that caches the results of configure
  14315. # tests run on this system so they can be shared between configure
  14316. # scripts and configure runs, see configure's option --config-cache.
  14317. # It is not useful on other systems. If it contains results you don't
  14318. # want to keep, you may remove or edit it.
  14319. #
  14320. # config.status only pays attention to the cache file if you give it
  14321. # the --recheck option to rerun configure.
  14322. #
  14323. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14324. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14325. # following values.
  14326. _ACEOF
  14327. # The following way of writing the cache mishandles newlines in values,
  14328. # but we know of no workaround that is simple, portable, and efficient.
  14329. # So, we kill variables containing newlines.
  14330. # Ultrix sh set writes to stderr and can't be redirected directly,
  14331. # and sets the high bit in the cache file unless we assign to the vars.
  14332. (
  14333. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14334. eval ac_val=\$$ac_var
  14335. case $ac_val in #(
  14336. *${as_nl}*)
  14337. case $ac_var in #(
  14338. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14339. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14340. esac
  14341. case $ac_var in #(
  14342. _ | IFS | as_nl) ;; #(
  14343. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14344. *) { eval $ac_var=; unset $ac_var;} ;;
  14345. esac ;;
  14346. esac
  14347. done
  14348. (set) 2>&1 |
  14349. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14350. *${as_nl}ac_space=\ *)
  14351. # `set' does not quote correctly, so add quotes: double-quote
  14352. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14353. sed -n \
  14354. "s/'/'\\\\''/g;
  14355. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14356. ;; #(
  14357. *)
  14358. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14359. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14360. ;;
  14361. esac |
  14362. sort
  14363. ) |
  14364. sed '
  14365. /^ac_cv_env_/b end
  14366. t clear
  14367. :clear
  14368. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14369. t end
  14370. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14371. :end' >>confcache
  14372. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14373. if test -w "$cache_file"; then
  14374. if test "x$cache_file" != "x/dev/null"; then
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14376. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14377. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14378. cat confcache >"$cache_file"
  14379. else
  14380. case $cache_file in #(
  14381. */* | ?:*)
  14382. mv -f confcache "$cache_file"$$ &&
  14383. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14384. *)
  14385. mv -f confcache "$cache_file" ;;
  14386. esac
  14387. fi
  14388. fi
  14389. else
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14391. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14392. fi
  14393. fi
  14394. rm -f confcache
  14395. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14396. # Let make expand exec_prefix.
  14397. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14398. DEFS=-DHAVE_CONFIG_H
  14399. ac_libobjs=
  14400. ac_ltlibobjs=
  14401. U=
  14402. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14403. # 1. Remove the extension, and $U if already installed.
  14404. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14405. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14406. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14407. # will be set to the directory where LIBOBJS objects are built.
  14408. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14409. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14410. done
  14411. LIBOBJS=$ac_libobjs
  14412. LTLIBOBJS=$ac_ltlibobjs
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14414. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14415. if test -n "$am_sleep_pid"; then
  14416. # Hide warnings about reused PIDs.
  14417. wait $am_sleep_pid 2>/dev/null
  14418. fi
  14419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14420. $as_echo "done" >&6; }
  14421. if test -n "$EXEEXT"; then
  14422. am__EXEEXT_TRUE=
  14423. am__EXEEXT_FALSE='#'
  14424. else
  14425. am__EXEEXT_TRUE='#'
  14426. am__EXEEXT_FALSE=
  14427. fi
  14428. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14429. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14430. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14431. fi
  14432. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14433. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14434. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14435. fi
  14436. if test -z "${NO_RDYNAMIC_TRUE}" && test -z "${NO_RDYNAMIC_FALSE}"; then
  14437. as_fn_error $? "conditional \"NO_RDYNAMIC\" was never defined.
  14438. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14439. fi
  14440. if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
  14441. as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
  14442. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14443. fi
  14444. if test -z "${CHECK_WITH_FASTCGI_TRUE}" && test -z "${CHECK_WITH_FASTCGI_FALSE}"; then
  14445. as_fn_error $? "conditional \"CHECK_WITH_FASTCGI\" was never defined.
  14446. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14447. fi
  14448. : "${CONFIG_STATUS=./config.status}"
  14449. ac_write_fail=0
  14450. ac_clean_files_save=$ac_clean_files
  14451. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14452. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14453. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14454. as_write_fail=0
  14455. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14456. #! $SHELL
  14457. # Generated by $as_me.
  14458. # Run this file to recreate the current configuration.
  14459. # Compiler output produced by configure, useful for debugging
  14460. # configure, is in config.log if it exists.
  14461. debug=false
  14462. ac_cs_recheck=false
  14463. ac_cs_silent=false
  14464. SHELL=\${CONFIG_SHELL-$SHELL}
  14465. export SHELL
  14466. _ASEOF
  14467. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14468. ## -------------------- ##
  14469. ## M4sh Initialization. ##
  14470. ## -------------------- ##
  14471. # Be more Bourne compatible
  14472. DUALCASE=1; export DUALCASE # for MKS sh
  14473. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14474. emulate sh
  14475. NULLCMD=:
  14476. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14477. # is contrary to our usage. Disable this feature.
  14478. alias -g '${1+"$@"}'='"$@"'
  14479. setopt NO_GLOB_SUBST
  14480. else
  14481. case `(set -o) 2>/dev/null` in #(
  14482. *posix*) :
  14483. set -o posix ;; #(
  14484. *) :
  14485. ;;
  14486. esac
  14487. fi
  14488. as_nl='
  14489. '
  14490. export as_nl
  14491. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14492. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14493. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14494. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14495. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14496. # but without wasting forks for bash or zsh.
  14497. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14498. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14499. as_echo='print -r --'
  14500. as_echo_n='print -rn --'
  14501. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14502. as_echo='printf %s\n'
  14503. as_echo_n='printf %s'
  14504. else
  14505. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14506. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14507. as_echo_n='/usr/ucb/echo -n'
  14508. else
  14509. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14510. as_echo_n_body='eval
  14511. arg=$1;
  14512. case $arg in #(
  14513. *"$as_nl"*)
  14514. expr "X$arg" : "X\\(.*\\)$as_nl";
  14515. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14516. esac;
  14517. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14518. '
  14519. export as_echo_n_body
  14520. as_echo_n='sh -c $as_echo_n_body as_echo'
  14521. fi
  14522. export as_echo_body
  14523. as_echo='sh -c $as_echo_body as_echo'
  14524. fi
  14525. # The user is always right.
  14526. if test "${PATH_SEPARATOR+set}" != set; then
  14527. PATH_SEPARATOR=:
  14528. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14529. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14530. PATH_SEPARATOR=';'
  14531. }
  14532. fi
  14533. # IFS
  14534. # We need space, tab and new line, in precisely that order. Quoting is
  14535. # there to prevent editors from complaining about space-tab.
  14536. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14537. # splitting by setting IFS to empty value.)
  14538. IFS=" "" $as_nl"
  14539. # Find who we are. Look in the path if we contain no directory separator.
  14540. as_myself=
  14541. case $0 in #((
  14542. *[\\/]* ) as_myself=$0 ;;
  14543. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14544. for as_dir in $PATH
  14545. do
  14546. IFS=$as_save_IFS
  14547. test -z "$as_dir" && as_dir=.
  14548. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14549. done
  14550. IFS=$as_save_IFS
  14551. ;;
  14552. esac
  14553. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14554. # in which case we are not to be found in the path.
  14555. if test "x$as_myself" = x; then
  14556. as_myself=$0
  14557. fi
  14558. if test ! -f "$as_myself"; then
  14559. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14560. exit 1
  14561. fi
  14562. # Unset variables that we do not need and which cause bugs (e.g. in
  14563. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14564. # suppresses any "Segmentation fault" message there. '((' could
  14565. # trigger a bug in pdksh 5.2.14.
  14566. for as_var in BASH_ENV ENV MAIL MAILPATH
  14567. do eval test x\${$as_var+set} = xset \
  14568. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14569. done
  14570. PS1='$ '
  14571. PS2='> '
  14572. PS4='+ '
  14573. # NLS nuisances.
  14574. LC_ALL=C
  14575. export LC_ALL
  14576. LANGUAGE=C
  14577. export LANGUAGE
  14578. # CDPATH.
  14579. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14580. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14581. # ----------------------------------------
  14582. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14583. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14584. # script with STATUS, using 1 if that was 0.
  14585. as_fn_error ()
  14586. {
  14587. as_status=$1; test $as_status -eq 0 && as_status=1
  14588. if test "$4"; then
  14589. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14590. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14591. fi
  14592. $as_echo "$as_me: error: $2" >&2
  14593. as_fn_exit $as_status
  14594. } # as_fn_error
  14595. # as_fn_set_status STATUS
  14596. # -----------------------
  14597. # Set $? to STATUS, without forking.
  14598. as_fn_set_status ()
  14599. {
  14600. return $1
  14601. } # as_fn_set_status
  14602. # as_fn_exit STATUS
  14603. # -----------------
  14604. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14605. as_fn_exit ()
  14606. {
  14607. set +e
  14608. as_fn_set_status $1
  14609. exit $1
  14610. } # as_fn_exit
  14611. # as_fn_unset VAR
  14612. # ---------------
  14613. # Portably unset VAR.
  14614. as_fn_unset ()
  14615. {
  14616. { eval $1=; unset $1;}
  14617. }
  14618. as_unset=as_fn_unset
  14619. # as_fn_append VAR VALUE
  14620. # ----------------------
  14621. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14622. # advantage of any shell optimizations that allow amortized linear growth over
  14623. # repeated appends, instead of the typical quadratic growth present in naive
  14624. # implementations.
  14625. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14626. eval 'as_fn_append ()
  14627. {
  14628. eval $1+=\$2
  14629. }'
  14630. else
  14631. as_fn_append ()
  14632. {
  14633. eval $1=\$$1\$2
  14634. }
  14635. fi # as_fn_append
  14636. # as_fn_arith ARG...
  14637. # ------------------
  14638. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14639. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14640. # must be portable across $(()) and expr.
  14641. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14642. eval 'as_fn_arith ()
  14643. {
  14644. as_val=$(( $* ))
  14645. }'
  14646. else
  14647. as_fn_arith ()
  14648. {
  14649. as_val=`expr "$@" || test $? -eq 1`
  14650. }
  14651. fi # as_fn_arith
  14652. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14653. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14654. as_expr=expr
  14655. else
  14656. as_expr=false
  14657. fi
  14658. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14659. as_basename=basename
  14660. else
  14661. as_basename=false
  14662. fi
  14663. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14664. as_dirname=dirname
  14665. else
  14666. as_dirname=false
  14667. fi
  14668. as_me=`$as_basename -- "$0" ||
  14669. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14670. X"$0" : 'X\(//\)$' \| \
  14671. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14672. $as_echo X/"$0" |
  14673. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14674. s//\1/
  14675. q
  14676. }
  14677. /^X\/\(\/\/\)$/{
  14678. s//\1/
  14679. q
  14680. }
  14681. /^X\/\(\/\).*/{
  14682. s//\1/
  14683. q
  14684. }
  14685. s/.*/./; q'`
  14686. # Avoid depending upon Character Ranges.
  14687. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14688. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14689. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14690. as_cr_digits='0123456789'
  14691. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14692. ECHO_C= ECHO_N= ECHO_T=
  14693. case `echo -n x` in #(((((
  14694. -n*)
  14695. case `echo 'xy\c'` in
  14696. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14697. xy) ECHO_C='\c';;
  14698. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14699. ECHO_T=' ';;
  14700. esac;;
  14701. *)
  14702. ECHO_N='-n';;
  14703. esac
  14704. rm -f conf$$ conf$$.exe conf$$.file
  14705. if test -d conf$$.dir; then
  14706. rm -f conf$$.dir/conf$$.file
  14707. else
  14708. rm -f conf$$.dir
  14709. mkdir conf$$.dir 2>/dev/null
  14710. fi
  14711. if (echo >conf$$.file) 2>/dev/null; then
  14712. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14713. as_ln_s='ln -s'
  14714. # ... but there are two gotchas:
  14715. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14716. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14717. # In both cases, we have to default to `cp -pR'.
  14718. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14719. as_ln_s='cp -pR'
  14720. elif ln conf$$.file conf$$ 2>/dev/null; then
  14721. as_ln_s=ln
  14722. else
  14723. as_ln_s='cp -pR'
  14724. fi
  14725. else
  14726. as_ln_s='cp -pR'
  14727. fi
  14728. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14729. rmdir conf$$.dir 2>/dev/null
  14730. # as_fn_mkdir_p
  14731. # -------------
  14732. # Create "$as_dir" as a directory, including parents if necessary.
  14733. as_fn_mkdir_p ()
  14734. {
  14735. case $as_dir in #(
  14736. -*) as_dir=./$as_dir;;
  14737. esac
  14738. test -d "$as_dir" || eval $as_mkdir_p || {
  14739. as_dirs=
  14740. while :; do
  14741. case $as_dir in #(
  14742. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14743. *) as_qdir=$as_dir;;
  14744. esac
  14745. as_dirs="'$as_qdir' $as_dirs"
  14746. as_dir=`$as_dirname -- "$as_dir" ||
  14747. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14748. X"$as_dir" : 'X\(//\)[^/]' \| \
  14749. X"$as_dir" : 'X\(//\)$' \| \
  14750. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14751. $as_echo X"$as_dir" |
  14752. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14753. s//\1/
  14754. q
  14755. }
  14756. /^X\(\/\/\)[^/].*/{
  14757. s//\1/
  14758. q
  14759. }
  14760. /^X\(\/\/\)$/{
  14761. s//\1/
  14762. q
  14763. }
  14764. /^X\(\/\).*/{
  14765. s//\1/
  14766. q
  14767. }
  14768. s/.*/./; q'`
  14769. test -d "$as_dir" && break
  14770. done
  14771. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14772. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14773. } # as_fn_mkdir_p
  14774. if mkdir -p . 2>/dev/null; then
  14775. as_mkdir_p='mkdir -p "$as_dir"'
  14776. else
  14777. test -d ./-p && rmdir ./-p
  14778. as_mkdir_p=false
  14779. fi
  14780. # as_fn_executable_p FILE
  14781. # -----------------------
  14782. # Test if FILE is an executable regular file.
  14783. as_fn_executable_p ()
  14784. {
  14785. test -f "$1" && test -x "$1"
  14786. } # as_fn_executable_p
  14787. as_test_x='test -x'
  14788. as_executable_p=as_fn_executable_p
  14789. # Sed expression to map a string onto a valid CPP name.
  14790. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14791. # Sed expression to map a string onto a valid variable name.
  14792. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14793. exec 6>&1
  14794. ## ----------------------------------- ##
  14795. ## Main body of $CONFIG_STATUS script. ##
  14796. ## ----------------------------------- ##
  14797. _ASEOF
  14798. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14800. # Save the log message, to keep $0 and so on meaningful, and to
  14801. # report actual input values of CONFIG_FILES etc. instead of their
  14802. # values after options handling.
  14803. ac_log="
  14804. This file was extended by lighttpd $as_me 1.4.39, which was
  14805. generated by GNU Autoconf 2.69. Invocation command line was
  14806. CONFIG_FILES = $CONFIG_FILES
  14807. CONFIG_HEADERS = $CONFIG_HEADERS
  14808. CONFIG_LINKS = $CONFIG_LINKS
  14809. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14810. $ $0 $@
  14811. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14812. "
  14813. _ACEOF
  14814. case $ac_config_files in *"
  14815. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14816. esac
  14817. case $ac_config_headers in *"
  14818. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14819. esac
  14820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14821. # Files that config.status was made for.
  14822. config_files="$ac_config_files"
  14823. config_headers="$ac_config_headers"
  14824. config_commands="$ac_config_commands"
  14825. _ACEOF
  14826. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14827. ac_cs_usage="\
  14828. \`$as_me' instantiates files and other configuration actions
  14829. from templates according to the current configuration. Unless the files
  14830. and actions are specified as TAGs, all are instantiated by default.
  14831. Usage: $0 [OPTION]... [TAG]...
  14832. -h, --help print this help, then exit
  14833. -V, --version print version number and configuration settings, then exit
  14834. --config print configuration, then exit
  14835. -q, --quiet, --silent
  14836. do not print progress messages
  14837. -d, --debug don't remove temporary files
  14838. --recheck update $as_me by reconfiguring in the same conditions
  14839. --file=FILE[:TEMPLATE]
  14840. instantiate the configuration file FILE
  14841. --header=FILE[:TEMPLATE]
  14842. instantiate the configuration header FILE
  14843. Configuration files:
  14844. $config_files
  14845. Configuration headers:
  14846. $config_headers
  14847. Configuration commands:
  14848. $config_commands
  14849. Report bugs to <contact@lighttpd.net>."
  14850. _ACEOF
  14851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14852. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14853. ac_cs_version="\\
  14854. lighttpd config.status 1.4.39
  14855. configured by $0, generated by GNU Autoconf 2.69,
  14856. with options \\"\$ac_cs_config\\"
  14857. Copyright (C) 2012 Free Software Foundation, Inc.
  14858. This config.status script is free software; the Free Software Foundation
  14859. gives unlimited permission to copy, distribute and modify it."
  14860. ac_pwd='$ac_pwd'
  14861. srcdir='$srcdir'
  14862. INSTALL='$INSTALL'
  14863. MKDIR_P='$MKDIR_P'
  14864. AWK='$AWK'
  14865. test -n "\$AWK" || AWK=awk
  14866. _ACEOF
  14867. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14868. # The default lists apply if the user does not specify any file.
  14869. ac_need_defaults=:
  14870. while test $# != 0
  14871. do
  14872. case $1 in
  14873. --*=?*)
  14874. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14875. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14876. ac_shift=:
  14877. ;;
  14878. --*=)
  14879. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14880. ac_optarg=
  14881. ac_shift=:
  14882. ;;
  14883. *)
  14884. ac_option=$1
  14885. ac_optarg=$2
  14886. ac_shift=shift
  14887. ;;
  14888. esac
  14889. case $ac_option in
  14890. # Handling of the options.
  14891. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14892. ac_cs_recheck=: ;;
  14893. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14894. $as_echo "$ac_cs_version"; exit ;;
  14895. --config | --confi | --conf | --con | --co | --c )
  14896. $as_echo "$ac_cs_config"; exit ;;
  14897. --debug | --debu | --deb | --de | --d | -d )
  14898. debug=: ;;
  14899. --file | --fil | --fi | --f )
  14900. $ac_shift
  14901. case $ac_optarg in
  14902. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14903. '') as_fn_error $? "missing file argument" ;;
  14904. esac
  14905. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14906. ac_need_defaults=false;;
  14907. --header | --heade | --head | --hea )
  14908. $ac_shift
  14909. case $ac_optarg in
  14910. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14911. esac
  14912. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14913. ac_need_defaults=false;;
  14914. --he | --h)
  14915. # Conflict between --help and --header
  14916. as_fn_error $? "ambiguous option: \`$1'
  14917. Try \`$0 --help' for more information.";;
  14918. --help | --hel | -h )
  14919. $as_echo "$ac_cs_usage"; exit ;;
  14920. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14921. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14922. ac_cs_silent=: ;;
  14923. # This is an error.
  14924. -*) as_fn_error $? "unrecognized option: \`$1'
  14925. Try \`$0 --help' for more information." ;;
  14926. *) as_fn_append ac_config_targets " $1"
  14927. ac_need_defaults=false ;;
  14928. esac
  14929. shift
  14930. done
  14931. ac_configure_extra_args=
  14932. if $ac_cs_silent; then
  14933. exec 6>/dev/null
  14934. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14935. fi
  14936. _ACEOF
  14937. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14938. if \$ac_cs_recheck; then
  14939. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14940. shift
  14941. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14942. CONFIG_SHELL='$SHELL'
  14943. export CONFIG_SHELL
  14944. exec "\$@"
  14945. fi
  14946. _ACEOF
  14947. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14948. exec 5>>config.log
  14949. {
  14950. echo
  14951. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14952. ## Running $as_me. ##
  14953. _ASBOX
  14954. $as_echo "$ac_log"
  14955. } >&5
  14956. _ACEOF
  14957. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14958. #
  14959. # INIT-COMMANDS
  14960. #
  14961. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14962. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14963. # if CDPATH is set.
  14964. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14965. sed_quote_subst='$sed_quote_subst'
  14966. double_quote_subst='$double_quote_subst'
  14967. delay_variable_subst='$delay_variable_subst'
  14968. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14969. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14970. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14971. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14972. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14973. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14974. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14975. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14976. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14977. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14978. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14979. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14980. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14981. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14982. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14983. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14984. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14985. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14986. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14987. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14988. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14989. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14990. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14991. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14992. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14993. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14994. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14995. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14996. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14997. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14998. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14999. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15000. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15001. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15002. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15003. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15004. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15005. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15006. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15007. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15008. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15009. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15010. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15011. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15012. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15013. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15014. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15015. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15016. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15017. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15018. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15019. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15020. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15021. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15022. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15023. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15024. 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"`'
  15025. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15026. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15027. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15028. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15029. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15030. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15031. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15032. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15033. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15034. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15035. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15036. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15037. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15038. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15039. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15040. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15041. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15042. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15043. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15044. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15045. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15046. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15047. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15048. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15049. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15050. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15051. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15052. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15053. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15054. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15055. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15056. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15057. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15058. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15059. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15060. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15061. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15062. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15063. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15064. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15065. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15066. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15067. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15068. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15069. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15070. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15071. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15072. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15073. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15074. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15075. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15076. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15077. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15078. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15079. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15080. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15081. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15082. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15083. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15084. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15085. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15086. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15087. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15088. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15089. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15090. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15091. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15092. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15093. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15094. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15095. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15096. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15097. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15098. LTCC='$LTCC'
  15099. LTCFLAGS='$LTCFLAGS'
  15100. compiler='$compiler_DEFAULT'
  15101. # A function that is used when there is no print builtin or printf.
  15102. func_fallback_echo ()
  15103. {
  15104. eval 'cat <<_LTECHO_EOF
  15105. \$1
  15106. _LTECHO_EOF'
  15107. }
  15108. # Quote evaled strings.
  15109. for var in SED \
  15110. GREP \
  15111. EGREP \
  15112. FGREP \
  15113. SHELL \
  15114. ECHO \
  15115. LD \
  15116. PATH_SEPARATOR \
  15117. NM \
  15118. LN_S \
  15119. lt_SP2NL \
  15120. lt_NL2SP \
  15121. reload_flag \
  15122. OBJDUMP \
  15123. deplibs_check_method \
  15124. file_magic_cmd \
  15125. file_magic_glob \
  15126. want_nocaseglob \
  15127. DLLTOOL \
  15128. sharedlib_from_linklib_cmd \
  15129. AR \
  15130. AR_FLAGS \
  15131. archiver_list_spec \
  15132. STRIP \
  15133. RANLIB \
  15134. CC \
  15135. CFLAGS \
  15136. compiler \
  15137. lt_cv_sys_global_symbol_pipe \
  15138. lt_cv_sys_global_symbol_to_cdecl \
  15139. lt_cv_sys_global_symbol_to_c_name_address \
  15140. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15141. nm_file_list_spec \
  15142. lt_prog_compiler_no_builtin_flag \
  15143. lt_prog_compiler_pic \
  15144. lt_prog_compiler_wl \
  15145. lt_prog_compiler_static \
  15146. lt_cv_prog_compiler_c_o \
  15147. need_locks \
  15148. MANIFEST_TOOL \
  15149. DSYMUTIL \
  15150. NMEDIT \
  15151. LIPO \
  15152. OTOOL \
  15153. OTOOL64 \
  15154. shrext_cmds \
  15155. export_dynamic_flag_spec \
  15156. whole_archive_flag_spec \
  15157. compiler_needs_object \
  15158. with_gnu_ld \
  15159. allow_undefined_flag \
  15160. no_undefined_flag \
  15161. hardcode_libdir_flag_spec \
  15162. hardcode_libdir_separator \
  15163. exclude_expsyms \
  15164. include_expsyms \
  15165. file_list_spec \
  15166. variables_saved_for_relink \
  15167. libname_spec \
  15168. library_names_spec \
  15169. soname_spec \
  15170. install_override_mode \
  15171. finish_eval \
  15172. old_striplib \
  15173. striplib; do
  15174. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15175. *[\\\\\\\`\\"\\\$]*)
  15176. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15177. ;;
  15178. *)
  15179. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15180. ;;
  15181. esac
  15182. done
  15183. # Double-quote double-evaled strings.
  15184. for var in reload_cmds \
  15185. old_postinstall_cmds \
  15186. old_postuninstall_cmds \
  15187. old_archive_cmds \
  15188. extract_expsyms_cmds \
  15189. old_archive_from_new_cmds \
  15190. old_archive_from_expsyms_cmds \
  15191. archive_cmds \
  15192. archive_expsym_cmds \
  15193. module_cmds \
  15194. module_expsym_cmds \
  15195. export_symbols_cmds \
  15196. prelink_cmds \
  15197. postlink_cmds \
  15198. postinstall_cmds \
  15199. postuninstall_cmds \
  15200. finish_cmds \
  15201. sys_lib_search_path_spec \
  15202. sys_lib_dlsearch_path_spec; do
  15203. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15204. *[\\\\\\\`\\"\\\$]*)
  15205. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15206. ;;
  15207. *)
  15208. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15209. ;;
  15210. esac
  15211. done
  15212. ac_aux_dir='$ac_aux_dir'
  15213. xsi_shell='$xsi_shell'
  15214. lt_shell_append='$lt_shell_append'
  15215. # See if we are running on zsh, and set the options which allow our
  15216. # commands through without removal of \ escapes INIT.
  15217. if test -n "\${ZSH_VERSION+set}" ; then
  15218. setopt NO_GLOB_SUBST
  15219. fi
  15220. PACKAGE='$PACKAGE'
  15221. VERSION='$VERSION'
  15222. TIMESTAMP='$TIMESTAMP'
  15223. RM='$RM'
  15224. ofile='$ofile'
  15225. _ACEOF
  15226. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15227. # Handling of arguments.
  15228. for ac_config_target in $ac_config_targets
  15229. do
  15230. case $ac_config_target in
  15231. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15232. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15233. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15234. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15235. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15236. "doc/config/conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/conf.d/Makefile" ;;
  15237. "doc/config/vhosts.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/vhosts.d/Makefile" ;;
  15238. "doc/config/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/Makefile" ;;
  15239. "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
  15240. "doc/initscripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/initscripts/Makefile" ;;
  15241. "doc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES doc/systemd/Makefile" ;;
  15242. "doc/outdated/Makefile") CONFIG_FILES="$CONFIG_FILES doc/outdated/Makefile" ;;
  15243. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  15244. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  15245. "tests/docroot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/Makefile" ;;
  15246. "tests/docroot/123/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/123/Makefile" ;;
  15247. "tests/docroot/www/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/Makefile" ;;
  15248. "tests/docroot/www/go/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/go/Makefile" ;;
  15249. "tests/docroot/www/indexfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/indexfile/Makefile" ;;
  15250. "tests/docroot/www/expire/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/expire/Makefile" ;;
  15251. "distribute.sh") CONFIG_FILES="$CONFIG_FILES distribute.sh" ;;
  15252. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15253. esac
  15254. done
  15255. # If the user did not use the arguments to specify the items to instantiate,
  15256. # then the envvar interface is used. Set only those that are not.
  15257. # We use the long form for the default assignment because of an extremely
  15258. # bizarre bug on SunOS 4.1.3.
  15259. if $ac_need_defaults; then
  15260. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15261. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15262. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15263. fi
  15264. # Have a temporary directory for convenience. Make it in the build tree
  15265. # simply because there is no reason against having it here, and in addition,
  15266. # creating and moving files from /tmp can sometimes cause problems.
  15267. # Hook for its removal unless debugging.
  15268. # Note that there is a small window in which the directory will not be cleaned:
  15269. # after its creation but before its name has been assigned to `$tmp'.
  15270. $debug ||
  15271. {
  15272. tmp= ac_tmp=
  15273. trap 'exit_status=$?
  15274. : "${ac_tmp:=$tmp}"
  15275. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15276. ' 0
  15277. trap 'as_fn_exit 1' 1 2 13 15
  15278. }
  15279. # Create a (secure) tmp directory for tmp files.
  15280. {
  15281. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15282. test -d "$tmp"
  15283. } ||
  15284. {
  15285. tmp=./conf$$-$RANDOM
  15286. (umask 077 && mkdir "$tmp")
  15287. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15288. ac_tmp=$tmp
  15289. # Set up the scripts for CONFIG_FILES section.
  15290. # No need to generate them if there are no CONFIG_FILES.
  15291. # This happens for instance with `./config.status config.h'.
  15292. if test -n "$CONFIG_FILES"; then
  15293. ac_cr=`echo X | tr X '\015'`
  15294. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15295. # But we know of no other shell where ac_cr would be empty at this
  15296. # point, so we can use a bashism as a fallback.
  15297. if test "x$ac_cr" = x; then
  15298. eval ac_cr=\$\'\\r\'
  15299. fi
  15300. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15301. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15302. ac_cs_awk_cr='\\r'
  15303. else
  15304. ac_cs_awk_cr=$ac_cr
  15305. fi
  15306. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15307. _ACEOF
  15308. {
  15309. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15310. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15311. echo "_ACEOF"
  15312. } >conf$$subs.sh ||
  15313. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15314. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15315. ac_delim='%!_!# '
  15316. for ac_last_try in false false false false false :; do
  15317. . ./conf$$subs.sh ||
  15318. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15319. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15320. if test $ac_delim_n = $ac_delim_num; then
  15321. break
  15322. elif $ac_last_try; then
  15323. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15324. else
  15325. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15326. fi
  15327. done
  15328. rm -f conf$$subs.sh
  15329. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15330. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15331. _ACEOF
  15332. sed -n '
  15333. h
  15334. s/^/S["/; s/!.*/"]=/
  15335. p
  15336. g
  15337. s/^[^!]*!//
  15338. :repl
  15339. t repl
  15340. s/'"$ac_delim"'$//
  15341. t delim
  15342. :nl
  15343. h
  15344. s/\(.\{148\}\)..*/\1/
  15345. t more1
  15346. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15347. p
  15348. n
  15349. b repl
  15350. :more1
  15351. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15352. p
  15353. g
  15354. s/.\{148\}//
  15355. t nl
  15356. :delim
  15357. h
  15358. s/\(.\{148\}\)..*/\1/
  15359. t more2
  15360. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15361. p
  15362. b
  15363. :more2
  15364. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15365. p
  15366. g
  15367. s/.\{148\}//
  15368. t delim
  15369. ' <conf$$subs.awk | sed '
  15370. /^[^""]/{
  15371. N
  15372. s/\n//
  15373. }
  15374. ' >>$CONFIG_STATUS || ac_write_fail=1
  15375. rm -f conf$$subs.awk
  15376. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15377. _ACAWK
  15378. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15379. for (key in S) S_is_set[key] = 1
  15380. FS = ""
  15381. }
  15382. {
  15383. line = $ 0
  15384. nfields = split(line, field, "@")
  15385. substed = 0
  15386. len = length(field[1])
  15387. for (i = 2; i < nfields; i++) {
  15388. key = field[i]
  15389. keylen = length(key)
  15390. if (S_is_set[key]) {
  15391. value = S[key]
  15392. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15393. len += length(value) + length(field[++i])
  15394. substed = 1
  15395. } else
  15396. len += 1 + keylen
  15397. }
  15398. print line
  15399. }
  15400. _ACAWK
  15401. _ACEOF
  15402. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15403. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15404. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15405. else
  15406. cat
  15407. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15408. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15409. _ACEOF
  15410. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15411. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15412. # trailing colons and then remove the whole line if VPATH becomes empty
  15413. # (actually we leave an empty line to preserve line numbers).
  15414. if test "x$srcdir" = x.; then
  15415. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15416. h
  15417. s///
  15418. s/^/:/
  15419. s/[ ]*$/:/
  15420. s/:\$(srcdir):/:/g
  15421. s/:\${srcdir}:/:/g
  15422. s/:@srcdir@:/:/g
  15423. s/^:*//
  15424. s/:*$//
  15425. x
  15426. s/\(=[ ]*\).*/\1/
  15427. G
  15428. s/\n//
  15429. s/^[^=]*=[ ]*$//
  15430. }'
  15431. fi
  15432. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15433. fi # test -n "$CONFIG_FILES"
  15434. # Set up the scripts for CONFIG_HEADERS section.
  15435. # No need to generate them if there are no CONFIG_HEADERS.
  15436. # This happens for instance with `./config.status Makefile'.
  15437. if test -n "$CONFIG_HEADERS"; then
  15438. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15439. BEGIN {
  15440. _ACEOF
  15441. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15442. # here-document in config.status, that substitutes the proper values into
  15443. # config.h.in to produce config.h.
  15444. # Create a delimiter string that does not exist in confdefs.h, to ease
  15445. # handling of long lines.
  15446. ac_delim='%!_!# '
  15447. for ac_last_try in false false :; do
  15448. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15449. if test -z "$ac_tt"; then
  15450. break
  15451. elif $ac_last_try; then
  15452. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15453. else
  15454. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15455. fi
  15456. done
  15457. # For the awk script, D is an array of macro values keyed by name,
  15458. # likewise P contains macro parameters if any. Preserve backslash
  15459. # newline sequences.
  15460. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15461. sed -n '
  15462. s/.\{148\}/&'"$ac_delim"'/g
  15463. t rset
  15464. :rset
  15465. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15466. t def
  15467. d
  15468. :def
  15469. s/\\$//
  15470. t bsnl
  15471. s/["\\]/\\&/g
  15472. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15473. D["\1"]=" \3"/p
  15474. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15475. d
  15476. :bsnl
  15477. s/["\\]/\\&/g
  15478. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15479. D["\1"]=" \3\\\\\\n"\\/p
  15480. t cont
  15481. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15482. t cont
  15483. d
  15484. :cont
  15485. n
  15486. s/.\{148\}/&'"$ac_delim"'/g
  15487. t clear
  15488. :clear
  15489. s/\\$//
  15490. t bsnlc
  15491. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15492. d
  15493. :bsnlc
  15494. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15495. b cont
  15496. ' <confdefs.h | sed '
  15497. s/'"$ac_delim"'/"\\\
  15498. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15499. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15500. for (key in D) D_is_set[key] = 1
  15501. FS = ""
  15502. }
  15503. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15504. line = \$ 0
  15505. split(line, arg, " ")
  15506. if (arg[1] == "#") {
  15507. defundef = arg[2]
  15508. mac1 = arg[3]
  15509. } else {
  15510. defundef = substr(arg[1], 2)
  15511. mac1 = arg[2]
  15512. }
  15513. split(mac1, mac2, "(") #)
  15514. macro = mac2[1]
  15515. prefix = substr(line, 1, index(line, defundef) - 1)
  15516. if (D_is_set[macro]) {
  15517. # Preserve the white space surrounding the "#".
  15518. print prefix "define", macro P[macro] D[macro]
  15519. next
  15520. } else {
  15521. # Replace #undef with comments. This is necessary, for example,
  15522. # in the case of _POSIX_SOURCE, which is predefined and required
  15523. # on some systems where configure will not decide to define it.
  15524. if (defundef == "undef") {
  15525. print "/*", prefix defundef, macro, "*/"
  15526. next
  15527. }
  15528. }
  15529. }
  15530. { print }
  15531. _ACAWK
  15532. _ACEOF
  15533. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15534. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15535. fi # test -n "$CONFIG_HEADERS"
  15536. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15537. shift
  15538. for ac_tag
  15539. do
  15540. case $ac_tag in
  15541. :[FHLC]) ac_mode=$ac_tag; continue;;
  15542. esac
  15543. case $ac_mode$ac_tag in
  15544. :[FHL]*:*);;
  15545. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15546. :[FH]-) ac_tag=-:-;;
  15547. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15548. esac
  15549. ac_save_IFS=$IFS
  15550. IFS=:
  15551. set x $ac_tag
  15552. IFS=$ac_save_IFS
  15553. shift
  15554. ac_file=$1
  15555. shift
  15556. case $ac_mode in
  15557. :L) ac_source=$1;;
  15558. :[FH])
  15559. ac_file_inputs=
  15560. for ac_f
  15561. do
  15562. case $ac_f in
  15563. -) ac_f="$ac_tmp/stdin";;
  15564. *) # Look for the file first in the build tree, then in the source tree
  15565. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15566. # because $ac_f cannot contain `:'.
  15567. test -f "$ac_f" ||
  15568. case $ac_f in
  15569. [\\/$]*) false;;
  15570. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15571. esac ||
  15572. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15573. esac
  15574. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15575. as_fn_append ac_file_inputs " '$ac_f'"
  15576. done
  15577. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15578. # use $as_me), people would be surprised to read:
  15579. # /* config.h. Generated by config.status. */
  15580. configure_input='Generated from '`
  15581. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15582. `' by configure.'
  15583. if test x"$ac_file" != x-; then
  15584. configure_input="$ac_file. $configure_input"
  15585. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15586. $as_echo "$as_me: creating $ac_file" >&6;}
  15587. fi
  15588. # Neutralize special characters interpreted by sed in replacement strings.
  15589. case $configure_input in #(
  15590. *\&* | *\|* | *\\* )
  15591. ac_sed_conf_input=`$as_echo "$configure_input" |
  15592. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15593. *) ac_sed_conf_input=$configure_input;;
  15594. esac
  15595. case $ac_tag in
  15596. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15597. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15598. esac
  15599. ;;
  15600. esac
  15601. ac_dir=`$as_dirname -- "$ac_file" ||
  15602. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15603. X"$ac_file" : 'X\(//\)[^/]' \| \
  15604. X"$ac_file" : 'X\(//\)$' \| \
  15605. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15606. $as_echo X"$ac_file" |
  15607. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15608. s//\1/
  15609. q
  15610. }
  15611. /^X\(\/\/\)[^/].*/{
  15612. s//\1/
  15613. q
  15614. }
  15615. /^X\(\/\/\)$/{
  15616. s//\1/
  15617. q
  15618. }
  15619. /^X\(\/\).*/{
  15620. s//\1/
  15621. q
  15622. }
  15623. s/.*/./; q'`
  15624. as_dir="$ac_dir"; as_fn_mkdir_p
  15625. ac_builddir=.
  15626. case "$ac_dir" in
  15627. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15628. *)
  15629. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15630. # A ".." for each directory in $ac_dir_suffix.
  15631. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15632. case $ac_top_builddir_sub in
  15633. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15634. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15635. esac ;;
  15636. esac
  15637. ac_abs_top_builddir=$ac_pwd
  15638. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15639. # for backward compatibility:
  15640. ac_top_builddir=$ac_top_build_prefix
  15641. case $srcdir in
  15642. .) # We are building in place.
  15643. ac_srcdir=.
  15644. ac_top_srcdir=$ac_top_builddir_sub
  15645. ac_abs_top_srcdir=$ac_pwd ;;
  15646. [\\/]* | ?:[\\/]* ) # Absolute name.
  15647. ac_srcdir=$srcdir$ac_dir_suffix;
  15648. ac_top_srcdir=$srcdir
  15649. ac_abs_top_srcdir=$srcdir ;;
  15650. *) # Relative name.
  15651. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15652. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15653. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15654. esac
  15655. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15656. case $ac_mode in
  15657. :F)
  15658. #
  15659. # CONFIG_FILE
  15660. #
  15661. case $INSTALL in
  15662. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15663. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15664. esac
  15665. ac_MKDIR_P=$MKDIR_P
  15666. case $MKDIR_P in
  15667. [\\/$]* | ?:[\\/]* ) ;;
  15668. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15669. esac
  15670. _ACEOF
  15671. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15672. # If the template does not know about datarootdir, expand it.
  15673. # FIXME: This hack should be removed a few years after 2.60.
  15674. ac_datarootdir_hack=; ac_datarootdir_seen=
  15675. ac_sed_dataroot='
  15676. /datarootdir/ {
  15677. p
  15678. q
  15679. }
  15680. /@datadir@/p
  15681. /@docdir@/p
  15682. /@infodir@/p
  15683. /@localedir@/p
  15684. /@mandir@/p'
  15685. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15686. *datarootdir*) ac_datarootdir_seen=yes;;
  15687. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15689. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15690. _ACEOF
  15691. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15692. ac_datarootdir_hack='
  15693. s&@datadir@&$datadir&g
  15694. s&@docdir@&$docdir&g
  15695. s&@infodir@&$infodir&g
  15696. s&@localedir@&$localedir&g
  15697. s&@mandir@&$mandir&g
  15698. s&\\\${datarootdir}&$datarootdir&g' ;;
  15699. esac
  15700. _ACEOF
  15701. # Neutralize VPATH when `$srcdir' = `.'.
  15702. # Shell code in configure.ac might set extrasub.
  15703. # FIXME: do we really want to maintain this feature?
  15704. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15705. ac_sed_extra="$ac_vpsub
  15706. $extrasub
  15707. _ACEOF
  15708. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15709. :t
  15710. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15711. s|@configure_input@|$ac_sed_conf_input|;t t
  15712. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15713. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15714. s&@srcdir@&$ac_srcdir&;t t
  15715. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15716. s&@top_srcdir@&$ac_top_srcdir&;t t
  15717. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15718. s&@builddir@&$ac_builddir&;t t
  15719. s&@abs_builddir@&$ac_abs_builddir&;t t
  15720. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15721. s&@INSTALL@&$ac_INSTALL&;t t
  15722. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15723. $ac_datarootdir_hack
  15724. "
  15725. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15726. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15727. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15728. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15729. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15730. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15732. which seems to be undefined. Please make sure it is defined" >&5
  15733. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15734. which seems to be undefined. Please make sure it is defined" >&2;}
  15735. rm -f "$ac_tmp/stdin"
  15736. case $ac_file in
  15737. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15738. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15739. esac \
  15740. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15741. ;;
  15742. :H)
  15743. #
  15744. # CONFIG_HEADER
  15745. #
  15746. if test x"$ac_file" != x-; then
  15747. {
  15748. $as_echo "/* $configure_input */" \
  15749. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15750. } >"$ac_tmp/config.h" \
  15751. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15752. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15754. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15755. else
  15756. rm -f "$ac_file"
  15757. mv "$ac_tmp/config.h" "$ac_file" \
  15758. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15759. fi
  15760. else
  15761. $as_echo "/* $configure_input */" \
  15762. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15763. || as_fn_error $? "could not create -" "$LINENO" 5
  15764. fi
  15765. # Compute "$ac_file"'s index in $config_headers.
  15766. _am_arg="$ac_file"
  15767. _am_stamp_count=1
  15768. for _am_header in $config_headers :; do
  15769. case $_am_header in
  15770. $_am_arg | $_am_arg:* )
  15771. break ;;
  15772. * )
  15773. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15774. esac
  15775. done
  15776. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15777. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15778. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15779. X"$_am_arg" : 'X\(//\)$' \| \
  15780. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15781. $as_echo X"$_am_arg" |
  15782. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15783. s//\1/
  15784. q
  15785. }
  15786. /^X\(\/\/\)[^/].*/{
  15787. s//\1/
  15788. q
  15789. }
  15790. /^X\(\/\/\)$/{
  15791. s//\1/
  15792. q
  15793. }
  15794. /^X\(\/\).*/{
  15795. s//\1/
  15796. q
  15797. }
  15798. s/.*/./; q'`/stamp-h$_am_stamp_count
  15799. ;;
  15800. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15801. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15802. ;;
  15803. esac
  15804. case $ac_file$ac_mode in
  15805. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15806. # Older Autoconf quotes --file arguments for eval, but not when files
  15807. # are listed without --file. Let's play safe and only enable the eval
  15808. # if we detect the quoting.
  15809. case $CONFIG_FILES in
  15810. *\'*) eval set x "$CONFIG_FILES" ;;
  15811. *) set x $CONFIG_FILES ;;
  15812. esac
  15813. shift
  15814. for mf
  15815. do
  15816. # Strip MF so we end up with the name of the file.
  15817. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15818. # Check whether this is an Automake generated Makefile or not.
  15819. # We used to match only the files named 'Makefile.in', but
  15820. # some people rename them; so instead we look at the file content.
  15821. # Grep'ing the first line is not enough: some people post-process
  15822. # each Makefile.in and add a new line on top of each file to say so.
  15823. # Grep'ing the whole file is not good either: AIX grep has a line
  15824. # limit of 2048, but all sed's we know have understand at least 4000.
  15825. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15826. dirpart=`$as_dirname -- "$mf" ||
  15827. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15828. X"$mf" : 'X\(//\)[^/]' \| \
  15829. X"$mf" : 'X\(//\)$' \| \
  15830. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15831. $as_echo X"$mf" |
  15832. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15833. s//\1/
  15834. q
  15835. }
  15836. /^X\(\/\/\)[^/].*/{
  15837. s//\1/
  15838. q
  15839. }
  15840. /^X\(\/\/\)$/{
  15841. s//\1/
  15842. q
  15843. }
  15844. /^X\(\/\).*/{
  15845. s//\1/
  15846. q
  15847. }
  15848. s/.*/./; q'`
  15849. else
  15850. continue
  15851. fi
  15852. # Extract the definition of DEPDIR, am__include, and am__quote
  15853. # from the Makefile without running 'make'.
  15854. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15855. test -z "$DEPDIR" && continue
  15856. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15857. test -z "$am__include" && continue
  15858. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15859. # Find all dependency output files, they are included files with
  15860. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15861. # simplest approach to changing $(DEPDIR) to its actual value in the
  15862. # expansion.
  15863. for file in `sed -n "
  15864. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15865. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15866. # Make sure the directory exists.
  15867. test -f "$dirpart/$file" && continue
  15868. fdir=`$as_dirname -- "$file" ||
  15869. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15870. X"$file" : 'X\(//\)[^/]' \| \
  15871. X"$file" : 'X\(//\)$' \| \
  15872. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15873. $as_echo X"$file" |
  15874. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15875. s//\1/
  15876. q
  15877. }
  15878. /^X\(\/\/\)[^/].*/{
  15879. s//\1/
  15880. q
  15881. }
  15882. /^X\(\/\/\)$/{
  15883. s//\1/
  15884. q
  15885. }
  15886. /^X\(\/\).*/{
  15887. s//\1/
  15888. q
  15889. }
  15890. s/.*/./; q'`
  15891. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15892. # echo "creating $dirpart/$file"
  15893. echo '# dummy' > "$dirpart/$file"
  15894. done
  15895. done
  15896. }
  15897. ;;
  15898. "libtool":C)
  15899. # See if we are running on zsh, and set the options which allow our
  15900. # commands through without removal of \ escapes.
  15901. if test -n "${ZSH_VERSION+set}" ; then
  15902. setopt NO_GLOB_SUBST
  15903. fi
  15904. cfgfile="${ofile}T"
  15905. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15906. $RM "$cfgfile"
  15907. cat <<_LT_EOF >> "$cfgfile"
  15908. #! $SHELL
  15909. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15910. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15911. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15912. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15913. #
  15914. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15915. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15916. # Foundation, Inc.
  15917. # Written by Gordon Matzigkeit, 1996
  15918. #
  15919. # This file is part of GNU Libtool.
  15920. #
  15921. # GNU Libtool is free software; you can redistribute it and/or
  15922. # modify it under the terms of the GNU General Public License as
  15923. # published by the Free Software Foundation; either version 2 of
  15924. # the License, or (at your option) any later version.
  15925. #
  15926. # As a special exception to the GNU General Public License,
  15927. # if you distribute this file as part of a program or library that
  15928. # is built using GNU Libtool, you may include this file under the
  15929. # same distribution terms that you use for the rest of that program.
  15930. #
  15931. # GNU Libtool is distributed in the hope that it will be useful,
  15932. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15933. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15934. # GNU General Public License for more details.
  15935. #
  15936. # You should have received a copy of the GNU General Public License
  15937. # along with GNU Libtool; see the file COPYING. If not, a copy
  15938. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15939. # obtained by writing to the Free Software Foundation, Inc.,
  15940. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15941. # The names of the tagged configurations supported by this script.
  15942. available_tags=""
  15943. # ### BEGIN LIBTOOL CONFIG
  15944. # A sed program that does not truncate output.
  15945. SED=$lt_SED
  15946. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15947. Xsed="\$SED -e 1s/^X//"
  15948. # A grep program that handles long lines.
  15949. GREP=$lt_GREP
  15950. # An ERE matcher.
  15951. EGREP=$lt_EGREP
  15952. # A literal string matcher.
  15953. FGREP=$lt_FGREP
  15954. # Shell to use when invoking shell scripts.
  15955. SHELL=$lt_SHELL
  15956. # An echo program that protects backslashes.
  15957. ECHO=$lt_ECHO
  15958. # Whether or not to build static libraries.
  15959. build_old_libs=$enable_static
  15960. # Whether or not to build shared libraries.
  15961. build_libtool_libs=$enable_shared
  15962. # Which release of libtool.m4 was used?
  15963. macro_version=$macro_version
  15964. macro_revision=$macro_revision
  15965. # What type of objects to build.
  15966. pic_mode=$pic_mode
  15967. # Whether or not to optimize for fast installation.
  15968. fast_install=$enable_fast_install
  15969. # The PATH separator for the build system.
  15970. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15971. # The host system.
  15972. host_alias=$host_alias
  15973. host=$host
  15974. host_os=$host_os
  15975. # The build system.
  15976. build_alias=$build_alias
  15977. build=$build
  15978. build_os=$build_os
  15979. # A BSD- or MS-compatible name lister.
  15980. NM=$lt_NM
  15981. # Whether we need soft or hard links.
  15982. LN_S=$lt_LN_S
  15983. # What is the maximum length of a command?
  15984. max_cmd_len=$max_cmd_len
  15985. # Object file suffix (normally "o").
  15986. objext=$ac_objext
  15987. # Executable file suffix (normally "").
  15988. exeext=$exeext
  15989. # whether the shell understands "unset".
  15990. lt_unset=$lt_unset
  15991. # turn spaces into newlines.
  15992. SP2NL=$lt_lt_SP2NL
  15993. # turn newlines into spaces.
  15994. NL2SP=$lt_lt_NL2SP
  15995. # convert \$build file names to \$host format.
  15996. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15997. # convert \$build files to toolchain format.
  15998. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15999. # An object symbol dumper.
  16000. OBJDUMP=$lt_OBJDUMP
  16001. # Method to check whether dependent libraries are shared objects.
  16002. deplibs_check_method=$lt_deplibs_check_method
  16003. # Command to use when deplibs_check_method = "file_magic".
  16004. file_magic_cmd=$lt_file_magic_cmd
  16005. # How to find potential files when deplibs_check_method = "file_magic".
  16006. file_magic_glob=$lt_file_magic_glob
  16007. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16008. want_nocaseglob=$lt_want_nocaseglob
  16009. # DLL creation program.
  16010. DLLTOOL=$lt_DLLTOOL
  16011. # Command to associate shared and link libraries.
  16012. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16013. # The archiver.
  16014. AR=$lt_AR
  16015. # Flags to create an archive.
  16016. AR_FLAGS=$lt_AR_FLAGS
  16017. # How to feed a file listing to the archiver.
  16018. archiver_list_spec=$lt_archiver_list_spec
  16019. # A symbol stripping program.
  16020. STRIP=$lt_STRIP
  16021. # Commands used to install an old-style archive.
  16022. RANLIB=$lt_RANLIB
  16023. old_postinstall_cmds=$lt_old_postinstall_cmds
  16024. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16025. # Whether to use a lock for old archive extraction.
  16026. lock_old_archive_extraction=$lock_old_archive_extraction
  16027. # A C compiler.
  16028. LTCC=$lt_CC
  16029. # LTCC compiler flags.
  16030. LTCFLAGS=$lt_CFLAGS
  16031. # Take the output of nm and produce a listing of raw symbols and C names.
  16032. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16033. # Transform the output of nm in a proper C declaration.
  16034. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16035. # Transform the output of nm in a C name address pair.
  16036. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16037. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16038. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16039. # Specify filename containing input files for \$NM.
  16040. nm_file_list_spec=$lt_nm_file_list_spec
  16041. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16042. lt_sysroot=$lt_sysroot
  16043. # The name of the directory that contains temporary libtool files.
  16044. objdir=$objdir
  16045. # Used to examine libraries when file_magic_cmd begins with "file".
  16046. MAGIC_CMD=$MAGIC_CMD
  16047. # Must we lock files when doing compilation?
  16048. need_locks=$lt_need_locks
  16049. # Manifest tool.
  16050. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16051. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16052. DSYMUTIL=$lt_DSYMUTIL
  16053. # Tool to change global to local symbols on Mac OS X.
  16054. NMEDIT=$lt_NMEDIT
  16055. # Tool to manipulate fat objects and archives on Mac OS X.
  16056. LIPO=$lt_LIPO
  16057. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16058. OTOOL=$lt_OTOOL
  16059. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16060. OTOOL64=$lt_OTOOL64
  16061. # Old archive suffix (normally "a").
  16062. libext=$libext
  16063. # Shared library suffix (normally ".so").
  16064. shrext_cmds=$lt_shrext_cmds
  16065. # The commands to extract the exported symbol list from a shared archive.
  16066. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16067. # Variables whose values should be saved in libtool wrapper scripts and
  16068. # restored at link time.
  16069. variables_saved_for_relink=$lt_variables_saved_for_relink
  16070. # Do we need the "lib" prefix for modules?
  16071. need_lib_prefix=$need_lib_prefix
  16072. # Do we need a version for libraries?
  16073. need_version=$need_version
  16074. # Library versioning type.
  16075. version_type=$version_type
  16076. # Shared library runtime path variable.
  16077. runpath_var=$runpath_var
  16078. # Shared library path variable.
  16079. shlibpath_var=$shlibpath_var
  16080. # Is shlibpath searched before the hard-coded library search path?
  16081. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16082. # Format of library name prefix.
  16083. libname_spec=$lt_libname_spec
  16084. # List of archive names. First name is the real one, the rest are links.
  16085. # The last name is the one that the linker finds with -lNAME
  16086. library_names_spec=$lt_library_names_spec
  16087. # The coded name of the library, if different from the real name.
  16088. soname_spec=$lt_soname_spec
  16089. # Permission mode override for installation of shared libraries.
  16090. install_override_mode=$lt_install_override_mode
  16091. # Command to use after installation of a shared archive.
  16092. postinstall_cmds=$lt_postinstall_cmds
  16093. # Command to use after uninstallation of a shared archive.
  16094. postuninstall_cmds=$lt_postuninstall_cmds
  16095. # Commands used to finish a libtool library installation in a directory.
  16096. finish_cmds=$lt_finish_cmds
  16097. # As "finish_cmds", except a single script fragment to be evaled but
  16098. # not shown.
  16099. finish_eval=$lt_finish_eval
  16100. # Whether we should hardcode library paths into libraries.
  16101. hardcode_into_libs=$hardcode_into_libs
  16102. # Compile-time system search path for libraries.
  16103. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16104. # Run-time system search path for libraries.
  16105. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16106. # Whether dlopen is supported.
  16107. dlopen_support=$enable_dlopen
  16108. # Whether dlopen of programs is supported.
  16109. dlopen_self=$enable_dlopen_self
  16110. # Whether dlopen of statically linked programs is supported.
  16111. dlopen_self_static=$enable_dlopen_self_static
  16112. # Commands to strip libraries.
  16113. old_striplib=$lt_old_striplib
  16114. striplib=$lt_striplib
  16115. # The linker used to build libraries.
  16116. LD=$lt_LD
  16117. # How to create reloadable object files.
  16118. reload_flag=$lt_reload_flag
  16119. reload_cmds=$lt_reload_cmds
  16120. # Commands used to build an old-style archive.
  16121. old_archive_cmds=$lt_old_archive_cmds
  16122. # A language specific compiler.
  16123. CC=$lt_compiler
  16124. # Is the compiler the GNU compiler?
  16125. with_gcc=$GCC
  16126. # Compiler flag to turn off builtin functions.
  16127. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16128. # Additional compiler flags for building library objects.
  16129. pic_flag=$lt_lt_prog_compiler_pic
  16130. # How to pass a linker flag through the compiler.
  16131. wl=$lt_lt_prog_compiler_wl
  16132. # Compiler flag to prevent dynamic linking.
  16133. link_static_flag=$lt_lt_prog_compiler_static
  16134. # Does compiler simultaneously support -c and -o options?
  16135. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16136. # Whether or not to add -lc for building shared libraries.
  16137. build_libtool_need_lc=$archive_cmds_need_lc
  16138. # Whether or not to disallow shared libs when runtime libs are static.
  16139. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16140. # Compiler flag to allow reflexive dlopens.
  16141. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16142. # Compiler flag to generate shared objects directly from archives.
  16143. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16144. # Whether the compiler copes with passing no objects directly.
  16145. compiler_needs_object=$lt_compiler_needs_object
  16146. # Create an old-style archive from a shared archive.
  16147. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16148. # Create a temporary old-style archive to link instead of a shared archive.
  16149. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16150. # Commands used to build a shared archive.
  16151. archive_cmds=$lt_archive_cmds
  16152. archive_expsym_cmds=$lt_archive_expsym_cmds
  16153. # Commands used to build a loadable module if different from building
  16154. # a shared archive.
  16155. module_cmds=$lt_module_cmds
  16156. module_expsym_cmds=$lt_module_expsym_cmds
  16157. # Whether we are building with GNU ld or not.
  16158. with_gnu_ld=$lt_with_gnu_ld
  16159. # Flag that allows shared libraries with undefined symbols to be built.
  16160. allow_undefined_flag=$lt_allow_undefined_flag
  16161. # Flag that enforces no undefined symbols.
  16162. no_undefined_flag=$lt_no_undefined_flag
  16163. # Flag to hardcode \$libdir into a binary during linking.
  16164. # This must work even if \$libdir does not exist
  16165. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16166. # Whether we need a single "-rpath" flag with a separated argument.
  16167. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16168. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16169. # DIR into the resulting binary.
  16170. hardcode_direct=$hardcode_direct
  16171. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16172. # DIR into the resulting binary and the resulting library dependency is
  16173. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16174. # library is relocated.
  16175. hardcode_direct_absolute=$hardcode_direct_absolute
  16176. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16177. # into the resulting binary.
  16178. hardcode_minus_L=$hardcode_minus_L
  16179. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16180. # into the resulting binary.
  16181. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16182. # Set to "yes" if building a shared library automatically hardcodes DIR
  16183. # into the library and all subsequent libraries and executables linked
  16184. # against it.
  16185. hardcode_automatic=$hardcode_automatic
  16186. # Set to yes if linker adds runtime paths of dependent libraries
  16187. # to runtime path list.
  16188. inherit_rpath=$inherit_rpath
  16189. # Whether libtool must link a program against all its dependency libraries.
  16190. link_all_deplibs=$link_all_deplibs
  16191. # Set to "yes" if exported symbols are required.
  16192. always_export_symbols=$always_export_symbols
  16193. # The commands to list exported symbols.
  16194. export_symbols_cmds=$lt_export_symbols_cmds
  16195. # Symbols that should not be listed in the preloaded symbols.
  16196. exclude_expsyms=$lt_exclude_expsyms
  16197. # Symbols that must always be exported.
  16198. include_expsyms=$lt_include_expsyms
  16199. # Commands necessary for linking programs (against libraries) with templates.
  16200. prelink_cmds=$lt_prelink_cmds
  16201. # Commands necessary for finishing linking programs.
  16202. postlink_cmds=$lt_postlink_cmds
  16203. # Specify filename containing input files.
  16204. file_list_spec=$lt_file_list_spec
  16205. # How to hardcode a shared library path into an executable.
  16206. hardcode_action=$hardcode_action
  16207. # ### END LIBTOOL CONFIG
  16208. _LT_EOF
  16209. case $host_os in
  16210. aix3*)
  16211. cat <<\_LT_EOF >> "$cfgfile"
  16212. # AIX sometimes has problems with the GCC collect2 program. For some
  16213. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16214. # vanish in a puff of smoke.
  16215. if test "X${COLLECT_NAMES+set}" != Xset; then
  16216. COLLECT_NAMES=
  16217. export COLLECT_NAMES
  16218. fi
  16219. _LT_EOF
  16220. ;;
  16221. esac
  16222. ltmain="$ac_aux_dir/ltmain.sh"
  16223. # We use sed instead of cat because bash on DJGPP gets confused if
  16224. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16225. # text mode, it properly converts lines to CR/LF. This bash problem
  16226. # is reportedly fixed, but why not run on old versions too?
  16227. sed '$q' "$ltmain" >> "$cfgfile" \
  16228. || (rm -f "$cfgfile"; exit 1)
  16229. if test x"$xsi_shell" = xyes; then
  16230. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16231. func_dirname ()\
  16232. {\
  16233. \ case ${1} in\
  16234. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16235. \ * ) func_dirname_result="${3}" ;;\
  16236. \ esac\
  16237. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16238. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16239. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16240. test 0 -eq $? || _lt_function_replace_fail=:
  16241. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16242. func_basename ()\
  16243. {\
  16244. \ func_basename_result="${1##*/}"\
  16245. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16246. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16247. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16248. test 0 -eq $? || _lt_function_replace_fail=:
  16249. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16250. func_dirname_and_basename ()\
  16251. {\
  16252. \ case ${1} in\
  16253. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16254. \ * ) func_dirname_result="${3}" ;;\
  16255. \ esac\
  16256. \ func_basename_result="${1##*/}"\
  16257. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16258. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16259. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16260. test 0 -eq $? || _lt_function_replace_fail=:
  16261. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16262. func_stripname ()\
  16263. {\
  16264. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16265. \ # positional parameters, so assign one to ordinary parameter first.\
  16266. \ func_stripname_result=${3}\
  16267. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16268. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16269. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16270. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16271. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16272. test 0 -eq $? || _lt_function_replace_fail=:
  16273. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16274. func_split_long_opt ()\
  16275. {\
  16276. \ func_split_long_opt_name=${1%%=*}\
  16277. \ func_split_long_opt_arg=${1#*=}\
  16278. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16279. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16280. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16281. test 0 -eq $? || _lt_function_replace_fail=:
  16282. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16283. func_split_short_opt ()\
  16284. {\
  16285. \ func_split_short_opt_arg=${1#??}\
  16286. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16287. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16288. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16289. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16290. test 0 -eq $? || _lt_function_replace_fail=:
  16291. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16292. func_lo2o ()\
  16293. {\
  16294. \ case ${1} in\
  16295. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16296. \ *) func_lo2o_result=${1} ;;\
  16297. \ esac\
  16298. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16299. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16300. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16301. test 0 -eq $? || _lt_function_replace_fail=:
  16302. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16303. func_xform ()\
  16304. {\
  16305. func_xform_result=${1%.*}.lo\
  16306. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16307. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16308. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16309. test 0 -eq $? || _lt_function_replace_fail=:
  16310. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16311. func_arith ()\
  16312. {\
  16313. func_arith_result=$(( $* ))\
  16314. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16315. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16316. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16317. test 0 -eq $? || _lt_function_replace_fail=:
  16318. sed -e '/^func_len ()$/,/^} # func_len /c\
  16319. func_len ()\
  16320. {\
  16321. func_len_result=${#1}\
  16322. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16323. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16324. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16325. test 0 -eq $? || _lt_function_replace_fail=:
  16326. fi
  16327. if test x"$lt_shell_append" = xyes; then
  16328. sed -e '/^func_append ()$/,/^} # func_append /c\
  16329. func_append ()\
  16330. {\
  16331. eval "${1}+=\\${2}"\
  16332. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16333. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16334. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16335. test 0 -eq $? || _lt_function_replace_fail=:
  16336. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16337. func_append_quoted ()\
  16338. {\
  16339. \ func_quote_for_eval "${2}"\
  16340. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16341. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16342. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16343. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16344. test 0 -eq $? || _lt_function_replace_fail=:
  16345. # Save a `func_append' function call where possible by direct use of '+='
  16346. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16347. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16348. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16349. test 0 -eq $? || _lt_function_replace_fail=:
  16350. else
  16351. # Save a `func_append' function call even when '+=' is not available
  16352. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16353. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16354. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16355. test 0 -eq $? || _lt_function_replace_fail=:
  16356. fi
  16357. if test x"$_lt_function_replace_fail" = x":"; then
  16358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16359. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16360. fi
  16361. mv -f "$cfgfile" "$ofile" ||
  16362. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16363. chmod +x "$ofile"
  16364. ;;
  16365. esac
  16366. done # for ac_tag
  16367. as_fn_exit 0
  16368. _ACEOF
  16369. ac_clean_files=$ac_clean_files_save
  16370. test $ac_write_fail = 0 ||
  16371. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16372. # configure is writing to config.log, and then calls config.status.
  16373. # config.status does its own redirection, appending to config.log.
  16374. # Unfortunately, on DOS this fails, as config.log is still kept open
  16375. # by configure, so config.status won't be able to write to it; its
  16376. # output is simply discarded. So we exec the FD to /dev/null,
  16377. # effectively closing config.log, so it can be properly (re)opened and
  16378. # appended to by config.status. When coming back to configure, we
  16379. # need to make the FD available again.
  16380. if test "$no_create" != yes; then
  16381. ac_cs_success=:
  16382. ac_config_status_args=
  16383. test "$silent" = yes &&
  16384. ac_config_status_args="$ac_config_status_args --quiet"
  16385. exec 5>/dev/null
  16386. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16387. exec 5>>config.log
  16388. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16389. # would make configure fail if this is the last instruction.
  16390. $ac_cs_success || as_fn_exit 1
  16391. fi
  16392. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16393. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16394. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16395. fi
  16396. do_build="mod_cgi mod_fastcgi mod_extforward mod_proxy mod_evhost mod_simple_vhost mod_access mod_alias mod_setenv mod_usertrack mod_auth mod_status mod_accesslog"
  16397. do_build="$do_build mod_rrdtool mod_secdownload mod_expire mod_compress mod_dirlisting mod_indexfile mod_userdir mod_webdav mod_staticfile mod_scgi mod_flv_streaming"
  16398. plugins="mod_rewrite mod_redirect mod_ssi mod_trigger_b4_dl"
  16399. features="regex-conditionals"
  16400. if test ! "x$PCRE_LIB" = x; then
  16401. do_build="$do_build $plugins"
  16402. enable_feature="$features"
  16403. else
  16404. no_build="$no_build $plugins"
  16405. disable_feature="$features"
  16406. fi
  16407. plugins="mod_mysql_vhost"
  16408. if test ! "x$MYSQL_LIBS" = x; then
  16409. do_build="$do_build $plugins"
  16410. else
  16411. no_build="$no_build $plugins"
  16412. fi
  16413. plugins="mod_cml mod_magnet"
  16414. if test ! "x$LUA_LIBS" = x; then
  16415. do_build="$do_build $plugins"
  16416. else
  16417. no_build="$no_build $plugins"
  16418. fi
  16419. features="storage-gdbm"
  16420. if test ! "x$GDBM_LIB" = x; then
  16421. enable_feature="$enable_feature $features"
  16422. else
  16423. disable_feature="$disable_feature $features"
  16424. fi
  16425. features="storage-memcache"
  16426. if test ! "x$MEMCACHE_LIB" = x; then
  16427. enable_feature="$enable_feature $features"
  16428. else
  16429. disable_feature="$disable_feature $features"
  16430. fi
  16431. features="compress-gzip compress-deflate"
  16432. if test ! "x$Z_LIB" = x; then
  16433. enable_feature="$enable_feature $features"
  16434. else
  16435. disable_feature="$disable_feature $features"
  16436. fi
  16437. features="compress-bzip2"
  16438. if test ! "x$BZ_LIB" = x; then
  16439. enable_feature="$enable_feature $features"
  16440. else
  16441. disable_feature="$disable_feature $features"
  16442. fi
  16443. features="auth-ldap"
  16444. if test ! "x$LDAP_LIB" = x; then
  16445. enable_feature="$enable_feature $features"
  16446. else
  16447. disable_feature="$disable_feature $features"
  16448. fi
  16449. features="network-openssl"
  16450. if test ! "x$SSL_LIB" = x; then
  16451. enable_feature="$enable_feature $features"
  16452. else
  16453. disable_feature="$disable_feature $features"
  16454. fi
  16455. features="auth-crypt"
  16456. if test "$ac_cv_search_crypt" = no; then
  16457. disable_feature="$disable_feature $features"
  16458. else
  16459. enable_feature="$enable_feature $features"
  16460. fi
  16461. features="network-ipv6"
  16462. if test "$ac_cv_ipv6_support" = yes; then
  16463. enable_feature="$enable_feature $features"
  16464. else
  16465. disable_feature="$disable_feature $features"
  16466. fi
  16467. features="large-files"
  16468. if test "$enable_lfs" = yes; then
  16469. enable_feature="$enable_feature $features"
  16470. else
  16471. disable_feature="$disable_feature $features"
  16472. fi
  16473. features="stat-cache-fam"
  16474. if test ! "x$FAM_LIBS" = x; then
  16475. enable_feature="$enable_feature $features"
  16476. else
  16477. disable_feature="$disable_feature $features"
  16478. fi
  16479. features="webdav-properties"
  16480. if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then
  16481. enable_feature="$enable_feature $features"
  16482. else
  16483. disable_feature="$disable_feature $features"
  16484. fi
  16485. features="webdav-locks"
  16486. if test "x$UUID_LIBS" \!= x; then
  16487. enable_feature="$enable_feature $features"
  16488. else
  16489. disable_feature="$disable_feature $features"
  16490. fi
  16491. $ECHO
  16492. $ECHO "Plugins:"
  16493. $ECHO
  16494. $ECHO "enabled: "
  16495. for p in $do_build; do
  16496. $ECHO " $p"
  16497. done | sort
  16498. $ECHO "disabled: "
  16499. for p in $no_build; do
  16500. $ECHO " $p"
  16501. done | sort
  16502. $ECHO
  16503. $ECHO "Features:"
  16504. $ECHO
  16505. $ECHO "enabled: "
  16506. for p in $enable_feature; do
  16507. $ECHO " $p"
  16508. done | sort
  16509. $ECHO "disabled: "
  16510. for p in $disable_feature; do
  16511. $ECHO " $p"
  16512. done | sort
  16513. $ECHO