configure 809 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # 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. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in #(
  135. *posix*) :
  136. set -o posix ;; #(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test \$(( 1 + 1 )) = 2 || exit 1
  162. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  163. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. PATH=/empty FPATH=/empty; export PATH FPATH
  167. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  168. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  169. if (eval "$as_required") 2>/dev/null; then :
  170. as_have_required=yes
  171. else
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  175. else
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. test -z "$as_dir" && as_dir=.
  182. as_found=:
  183. case $as_dir in #(
  184. /*)
  185. for as_base in sh bash ksh sh5; do
  186. # Try only shells that exist, to save several forks.
  187. as_shell=$as_dir/$as_base
  188. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  189. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  190. CONFIG_SHELL=$as_shell as_have_required=yes
  191. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. break 2
  193. fi
  194. fi
  195. done;;
  196. esac
  197. as_found=false
  198. done
  199. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  200. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  201. CONFIG_SHELL=$SHELL as_have_required=yes
  202. fi; }
  203. IFS=$as_save_IFS
  204. if test "x$CONFIG_SHELL" != x; then :
  205. # We cannot yet assume a decent shell, so we have to provide a
  206. # neutralization value for shells without unset; and this also
  207. # works around shells that cannot unset nonexistent variables.
  208. # Preserve -v and -x to the replacement shell.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. case $- in # ((((
  214. *v*x* | *x*v* ) as_opts=-vx ;;
  215. *v* ) as_opts=-v ;;
  216. *x* ) as_opts=-x ;;
  217. * ) as_opts= ;;
  218. esac
  219. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  220. fi
  221. if test x$as_have_required = xno; then :
  222. $as_echo "$0: This script requires a shell more modern than all"
  223. $as_echo "$0: the shells that I found on your system."
  224. if test x${ZSH_VERSION+set} = xset ; then
  225. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  226. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  227. else
  228. $as_echo "$0: Please tell [email protected] about your system,
  229. $0: including any error possibly output before this
  230. $0: message. Then install a modern shell, or manually run
  231. $0: the script under such a shell if you do have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. # as_fn_unset VAR
  246. # ---------------
  247. # Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. # as_fn_set_status STATUS
  254. # -----------------------
  255. # Set $? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } # as_fn_set_status
  260. # as_fn_exit STATUS
  261. # -----------------
  262. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } # as_fn_exit
  269. # as_fn_mkdir_p
  270. # -------------
  271. # Create "$as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } # as_fn_mkdir_p
  313. # as_fn_append VAR VALUE
  314. # ----------------------
  315. # Append the text in VALUE to the end of the definition contained in VAR. Take
  316. # advantage of any shell optimizations that allow amortized linear growth over
  317. # repeated appends, instead of the typical quadratic growth present in naive
  318. # implementations.
  319. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  320. eval 'as_fn_append ()
  321. {
  322. eval $1+=\$2
  323. }'
  324. else
  325. as_fn_append ()
  326. {
  327. eval $1=\$$1\$2
  328. }
  329. fi # as_fn_append
  330. # as_fn_arith ARG...
  331. # ------------------
  332. # Perform arithmetic evaluation on the ARGs, and store the result in the
  333. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  334. # must be portable across $(()) and expr.
  335. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  336. eval 'as_fn_arith ()
  337. {
  338. as_val=$(( $* ))
  339. }'
  340. else
  341. as_fn_arith ()
  342. {
  343. as_val=`expr "$@" || test $? -eq 1`
  344. }
  345. fi # as_fn_arith
  346. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  347. # ----------------------------------------
  348. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  349. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  350. # script with STATUS, using 1 if that was 0.
  351. as_fn_error ()
  352. {
  353. as_status=$1; test $as_status -eq 0 && as_status=1
  354. if test "$4"; then
  355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  357. fi
  358. $as_echo "$as_me: error: $2" >&2
  359. as_fn_exit $as_status
  360. } # as_fn_error
  361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  363. as_expr=expr
  364. else
  365. as_expr=false
  366. fi
  367. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  368. as_basename=basename
  369. else
  370. as_basename=false
  371. fi
  372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  373. as_dirname=dirname
  374. else
  375. as_dirname=false
  376. fi
  377. as_me=`$as_basename -- "$0" ||
  378. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  379. X"$0" : 'X\(//\)$' \| \
  380. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  381. $as_echo X/"$0" |
  382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\/\)$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\).*/{
  391. s//\1/
  392. q
  393. }
  394. s/.*/./; q'`
  395. # Avoid depending upon Character Ranges.
  396. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  397. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  398. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  399. as_cr_digits='0123456789'
  400. as_cr_alnum=$as_cr_Letters$as_cr_digits
  401. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  402. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  403. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  404. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  405. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  406. sed -n '
  407. p
  408. /[$]LINENO/=
  409. ' <$as_myself |
  410. sed '
  411. s/[$]LINENO.*/&-/
  412. t lineno
  413. b
  414. :lineno
  415. N
  416. :loop
  417. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  418. t loop
  419. s/-\n.*//
  420. ' >$as_me.lineno &&
  421. chmod +x "$as_me.lineno" ||
  422. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  423. # Don't try to exec as it changes $[0], causing all sort of problems
  424. # (the dirname of $[0] is not the place where we might find the
  425. # original and so on. Autoconf is especially sensitive to this).
  426. . "./$as_me.lineno"
  427. # Exit status is that of the last command.
  428. exit
  429. }
  430. ECHO_C= ECHO_N= ECHO_T=
  431. case `echo -n x` in #(((((
  432. -n*)
  433. case `echo 'xy\c'` in
  434. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  435. xy) ECHO_C='\c';;
  436. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  437. ECHO_T=' ';;
  438. esac;;
  439. *)
  440. ECHO_N='-n';;
  441. esac
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p='mkdir -p "$as_dir"'
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in #(
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. test -n "$DJDIR" || exec 7<&0 </dev/null
  502. exec 6>&1
  503. # Name of the host.
  504. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  505. # so uname gets run too.
  506. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  507. #
  508. # Initializations.
  509. #
  510. ac_default_prefix=/usr/local
  511. ac_clean_files=
  512. ac_config_libobj_dir=.
  513. LIBOBJS=
  514. cross_compiling=no
  515. subdirs=
  516. MFLAGS=
  517. MAKEFLAGS=
  518. # Identity of this package.
  519. PACKAGE_NAME=
  520. PACKAGE_TARNAME=
  521. PACKAGE_VERSION=
  522. PACKAGE_STRING=
  523. PACKAGE_BUGREPORT=
  524. PACKAGE_URL=
  525. ac_unique_file="build/apr_common.m4"
  526. # Factoring default headers for most tests.
  527. ac_includes_default="\
  528. #include <stdio.h>
  529. #ifdef HAVE_SYS_TYPES_H
  530. # include <sys/types.h>
  531. #endif
  532. #ifdef HAVE_SYS_STAT_H
  533. # include <sys/stat.h>
  534. #endif
  535. #ifdef STDC_HEADERS
  536. # include <stdlib.h>
  537. # include <stddef.h>
  538. #else
  539. # ifdef HAVE_STDLIB_H
  540. # include <stdlib.h>
  541. # endif
  542. #endif
  543. #ifdef HAVE_STRING_H
  544. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  545. # include <memory.h>
  546. # endif
  547. # include <string.h>
  548. #endif
  549. #ifdef HAVE_STRINGS_H
  550. # include <strings.h>
  551. #endif
  552. #ifdef HAVE_INTTYPES_H
  553. # include <inttypes.h>
  554. #endif
  555. #ifdef HAVE_STDINT_H
  556. # include <stdint.h>
  557. #endif
  558. #ifdef HAVE_UNISTD_H
  559. # include <unistd.h>
  560. #endif"
  561. ac_subst_vars='LTLIBOBJS
  562. LIBOBJS
  563. INCLUDE_OUTPUTS
  564. INCLUDE_RULES
  565. LT_NO_INSTALL
  566. LIBTOOL_LIBS
  567. DEFAULT_OSDIR
  568. OSDIR
  569. INCLUDES
  570. LDLIBS
  571. NOTEST_INCLUDES
  572. NOTEST_LIBS
  573. NOTEST_LDFLAGS
  574. NOTEST_CFLAGS
  575. NOTEST_CPPFLAGS
  576. EXTRA_INCLUDES
  577. EXTRA_LIBS
  578. EXTRA_LDFLAGS
  579. EXTRA_CFLAGS
  580. EXTRA_CPPFLAGS
  581. apr_has_user
  582. apr_thread_func
  583. apr_procattr_user_set_requires_password
  584. apr_has_xthread_files
  585. have_unicode_fs
  586. have_ipv6
  587. have_sa_storage
  588. have_sctp
  589. acceptfilter
  590. have_corkable_tcp
  591. apr_tcp_nopush_flag
  592. file_as_socket
  593. have_in_addr
  594. osuuid
  595. rand
  596. proclockglobal
  597. pthreadser
  598. procpthreadser
  599. fcntlser
  600. posixser
  601. sysvser
  602. flockser
  603. hasprocpthreadser
  604. hasfcntlser
  605. hasposixser
  606. hassysvser
  607. hasflockser
  608. have_union_semun
  609. struct_rlimit
  610. have_proc_invoked
  611. oc
  612. aprdso
  613. have_memchr
  614. have_strstr
  615. have_strdup
  616. have_strcasecmp
  617. have_stricmp
  618. have_strncasecmp
  619. have_strnicmp
  620. ino_t_value
  621. have_iovec
  622. aprlfs
  623. bigendian
  624. stdint
  625. uint64_literal
  626. int64_literal
  627. pid_t_fmt
  628. off_t_fmt
  629. size_t_fmt
  630. ssize_t_fmt
  631. uint64_t_hex_fmt
  632. uint64_t_fmt
  633. int64_t_fmt
  634. socklen_t_value
  635. ssize_t_value
  636. size_t_value
  637. off_t_value
  638. int64_value
  639. long_value
  640. int_value
  641. short_value
  642. voidp_size
  643. winsock2h
  644. windowsh
  645. semaphoreh
  646. pthreadh
  647. processh
  648. sys_waith
  649. signalh
  650. unistdh
  651. timeh
  652. sys_unh
  653. sys_uioh
  654. sys_timeh
  655. sys_typesh
  656. sys_sockioh
  657. sys_socketh
  658. sys_signalh
  659. sys_sendfileh
  660. sys_ioctlh
  661. stringsh
  662. stringh
  663. stdlibh
  664. stdioh
  665. stdargh
  666. netinet_tcph
  667. netinet_sctp_uioh
  668. netinet_sctph
  669. netinet_inh
  670. sys_syslimitsh
  671. netdbh
  672. limitsh
  673. ioh
  674. fcntlh
  675. direnth
  676. errnoh
  677. crypth
  678. ctypeh
  679. conioh
  680. arpa_ineth
  681. have_memmove
  682. mmap
  683. have_getrlimit
  684. have_setrlimit
  685. have_sigaction
  686. have_inet_network
  687. o_nonblock_inherited
  688. tcp_nodelay_inherited
  689. have_inet_addr
  690. fork
  691. apr_inaddr_none
  692. sendfile
  693. ALLOCA
  694. sharedmem
  695. havewin32shm
  696. haveos2shm
  697. havebeosarea
  698. haveshmget
  699. havemmapshm
  700. havemmaptmp
  701. usewin32shm
  702. useos2shm
  703. usebeosarea
  704. useshmget
  705. usemmapshm
  706. usemmaptmp
  707. havemmapanon
  708. havemmapzero
  709. haveshmgetanon
  710. usemmapanon
  711. usemmapzero
  712. useshmgetanon
  713. have_sigwait
  714. have_sigsuspend
  715. threads
  716. INSTALL_SUBDIRS
  717. eolstr
  718. proc_mutex_is_global
  719. OBJECTS_PLATFORM
  720. MKDEP
  721. LT_VERSION
  722. LT_LDFLAGS
  723. LTFLAGS
  724. shlibpath_var
  725. export_lib_target
  726. lib_target
  727. so_ext
  728. link
  729. lt_compile
  730. installbuilddir
  731. OTOOL64
  732. OTOOL
  733. LIPO
  734. NMEDIT
  735. DSYMUTIL
  736. MANIFEST_TOOL
  737. STRIP
  738. ac_ct_AR
  739. NM
  740. ac_ct_DUMPBIN
  741. DUMPBIN
  742. LD
  743. FGREP
  744. LIBTOOL
  745. OBJDUMP
  746. DLLTOOL
  747. APR_LIBNAME
  748. apr_charset_ebcdic
  749. EGREP
  750. GREP
  751. AR
  752. ASCPP
  753. AS
  754. RM
  755. INSTALL_DATA
  756. INSTALL_SCRIPT
  757. INSTALL_PROGRAM
  758. RANLIB
  759. LN_S
  760. AWK
  761. CPP
  762. SET_MAKE
  763. SED
  764. OBJEXT
  765. EXEEXT
  766. ac_ct_CC
  767. CPPFLAGS
  768. LDFLAGS
  769. CFLAGS
  770. CC
  771. APR_MAJOR_VERSION
  772. APR_DOTTED_VERSION
  773. apr_builders
  774. top_builddir
  775. APR_CONFIG_LOCATION
  776. apr_builddir
  777. apr_srcdir
  778. target_os
  779. target_vendor
  780. target_cpu
  781. target
  782. host_os
  783. host_vendor
  784. host_cpu
  785. host
  786. build_os
  787. build_vendor
  788. build_cpu
  789. build
  790. target_alias
  791. host_alias
  792. build_alias
  793. LIBS
  794. ECHO_T
  795. ECHO_N
  796. ECHO_C
  797. DEFS
  798. mandir
  799. localedir
  800. libdir
  801. psdir
  802. pdfdir
  803. dvidir
  804. htmldir
  805. infodir
  806. docdir
  807. oldincludedir
  808. includedir
  809. localstatedir
  810. sharedstatedir
  811. sysconfdir
  812. datadir
  813. datarootdir
  814. libexecdir
  815. sbindir
  816. bindir
  817. program_transform_name
  818. prefix
  819. exec_prefix
  820. PACKAGE_URL
  821. PACKAGE_BUGREPORT
  822. PACKAGE_STRING
  823. PACKAGE_VERSION
  824. PACKAGE_TARNAME
  825. PACKAGE_NAME
  826. PATH_SEPARATOR
  827. SHELL'
  828. ac_subst_files=''
  829. ac_user_opts='
  830. enable_option_checking
  831. enable_layout
  832. enable_experimental_libtool
  833. enable_shared
  834. enable_static
  835. with_pic
  836. enable_fast_install
  837. with_gnu_ld
  838. with_sysroot
  839. enable_libtool_lock
  840. with_installbuilddir
  841. with_libtool
  842. enable_debug
  843. enable_maintainer_mode
  844. enable_profile
  845. enable_pool_debug
  846. enable_malloc_debug
  847. enable_lfs
  848. enable_nonportable_atomics
  849. enable_threads
  850. with_efence
  851. with_sendfile
  852. enable_allocator_uses_mmap
  853. enable_dso
  854. enable_other_child
  855. with_egd
  856. with_devrandom
  857. enable_ipv6
  858. '
  859. ac_precious_vars='build_alias
  860. host_alias
  861. target_alias
  862. CC
  863. CFLAGS
  864. LDFLAGS
  865. LIBS
  866. CPPFLAGS
  867. CPP'
  868. # Initialize some variables set by options.
  869. ac_init_help=
  870. ac_init_version=false
  871. ac_unrecognized_opts=
  872. ac_unrecognized_sep=
  873. # The variables have the same names as the options, with
  874. # dashes changed to underlines.
  875. cache_file=/dev/null
  876. exec_prefix=NONE
  877. no_create=
  878. no_recursion=
  879. prefix=NONE
  880. program_prefix=NONE
  881. program_suffix=NONE
  882. program_transform_name=s,x,x,
  883. silent=
  884. site=
  885. srcdir=
  886. verbose=
  887. x_includes=NONE
  888. x_libraries=NONE
  889. # Installation directory options.
  890. # These are left unexpanded so users can "make install exec_prefix=/foo"
  891. # and all the variables that are supposed to be based on exec_prefix
  892. # by default will actually change.
  893. # Use braces instead of parens because sh, perl, etc. also accept them.
  894. # (The list follows the same order as the GNU Coding Standards.)
  895. bindir='${exec_prefix}/bin'
  896. sbindir='${exec_prefix}/sbin'
  897. libexecdir='${exec_prefix}/libexec'
  898. datarootdir='${prefix}/share'
  899. datadir='${datarootdir}'
  900. sysconfdir='${prefix}/etc'
  901. sharedstatedir='${prefix}/com'
  902. localstatedir='${prefix}/var'
  903. includedir='${prefix}/include'
  904. oldincludedir='/usr/include'
  905. docdir='${datarootdir}/doc/${PACKAGE}'
  906. infodir='${datarootdir}/info'
  907. htmldir='${docdir}'
  908. dvidir='${docdir}'
  909. pdfdir='${docdir}'
  910. psdir='${docdir}'
  911. libdir='${exec_prefix}/lib'
  912. localedir='${datarootdir}/locale'
  913. mandir='${datarootdir}/man'
  914. ac_prev=
  915. ac_dashdash=
  916. for ac_option
  917. do
  918. # If the previous option needs an argument, assign it.
  919. if test -n "$ac_prev"; then
  920. eval $ac_prev=\$ac_option
  921. ac_prev=
  922. continue
  923. fi
  924. case $ac_option in
  925. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  926. *=) ac_optarg= ;;
  927. *) ac_optarg=yes ;;
  928. esac
  929. # Accept the important Cygnus configure options, so we can diagnose typos.
  930. case $ac_dashdash$ac_option in
  931. --)
  932. ac_dashdash=yes ;;
  933. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  934. ac_prev=bindir ;;
  935. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  936. bindir=$ac_optarg ;;
  937. -build | --build | --buil | --bui | --bu)
  938. ac_prev=build_alias ;;
  939. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  940. build_alias=$ac_optarg ;;
  941. -cache-file | --cache-file | --cache-fil | --cache-fi \
  942. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  943. ac_prev=cache_file ;;
  944. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  945. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  946. cache_file=$ac_optarg ;;
  947. --config-cache | -C)
  948. cache_file=config.cache ;;
  949. -datadir | --datadir | --datadi | --datad)
  950. ac_prev=datadir ;;
  951. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  952. datadir=$ac_optarg ;;
  953. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  954. | --dataroo | --dataro | --datar)
  955. ac_prev=datarootdir ;;
  956. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  957. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  958. datarootdir=$ac_optarg ;;
  959. -disable-* | --disable-*)
  960. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  961. # Reject names that are not valid shell variable names.
  962. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  963. as_fn_error $? "invalid feature name: $ac_useropt"
  964. ac_useropt_orig=$ac_useropt
  965. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  966. case $ac_user_opts in
  967. *"
  968. "enable_$ac_useropt"
  969. "*) ;;
  970. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  971. ac_unrecognized_sep=', ';;
  972. esac
  973. eval enable_$ac_useropt=no ;;
  974. -docdir | --docdir | --docdi | --doc | --do)
  975. ac_prev=docdir ;;
  976. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  977. docdir=$ac_optarg ;;
  978. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  979. ac_prev=dvidir ;;
  980. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  981. dvidir=$ac_optarg ;;
  982. -enable-* | --enable-*)
  983. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  984. # Reject names that are not valid shell variable names.
  985. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  986. as_fn_error $? "invalid feature name: $ac_useropt"
  987. ac_useropt_orig=$ac_useropt
  988. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  989. case $ac_user_opts in
  990. *"
  991. "enable_$ac_useropt"
  992. "*) ;;
  993. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  994. ac_unrecognized_sep=', ';;
  995. esac
  996. eval enable_$ac_useropt=\$ac_optarg ;;
  997. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  998. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  999. | --exec | --exe | --ex)
  1000. ac_prev=exec_prefix ;;
  1001. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1002. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1003. | --exec=* | --exe=* | --ex=*)
  1004. exec_prefix=$ac_optarg ;;
  1005. -gas | --gas | --ga | --g)
  1006. # Obsolete; use --with-gas.
  1007. with_gas=yes ;;
  1008. -help | --help | --hel | --he | -h)
  1009. ac_init_help=long ;;
  1010. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1011. ac_init_help=recursive ;;
  1012. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1013. ac_init_help=short ;;
  1014. -host | --host | --hos | --ho)
  1015. ac_prev=host_alias ;;
  1016. -host=* | --host=* | --hos=* | --ho=*)
  1017. host_alias=$ac_optarg ;;
  1018. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1019. ac_prev=htmldir ;;
  1020. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1021. | --ht=*)
  1022. htmldir=$ac_optarg ;;
  1023. -includedir | --includedir | --includedi | --included | --include \
  1024. | --includ | --inclu | --incl | --inc)
  1025. ac_prev=includedir ;;
  1026. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1027. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1028. includedir=$ac_optarg ;;
  1029. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1030. ac_prev=infodir ;;
  1031. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1032. infodir=$ac_optarg ;;
  1033. -libdir | --libdir | --libdi | --libd)
  1034. ac_prev=libdir ;;
  1035. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1036. libdir=$ac_optarg ;;
  1037. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1038. | --libexe | --libex | --libe)
  1039. ac_prev=libexecdir ;;
  1040. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1041. | --libexe=* | --libex=* | --libe=*)
  1042. libexecdir=$ac_optarg ;;
  1043. -localedir | --localedir | --localedi | --localed | --locale)
  1044. ac_prev=localedir ;;
  1045. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1046. localedir=$ac_optarg ;;
  1047. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1048. | --localstate | --localstat | --localsta | --localst | --locals)
  1049. ac_prev=localstatedir ;;
  1050. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1051. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1052. localstatedir=$ac_optarg ;;
  1053. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1054. ac_prev=mandir ;;
  1055. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1056. mandir=$ac_optarg ;;
  1057. -nfp | --nfp | --nf)
  1058. # Obsolete; use --without-fp.
  1059. with_fp=no ;;
  1060. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1061. | --no-cr | --no-c | -n)
  1062. no_create=yes ;;
  1063. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1064. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1065. no_recursion=yes ;;
  1066. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1067. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1068. | --oldin | --oldi | --old | --ol | --o)
  1069. ac_prev=oldincludedir ;;
  1070. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1071. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1072. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1073. oldincludedir=$ac_optarg ;;
  1074. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1075. ac_prev=prefix ;;
  1076. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1077. prefix=$ac_optarg ;;
  1078. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1079. | --program-pre | --program-pr | --program-p)
  1080. ac_prev=program_prefix ;;
  1081. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1082. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1083. program_prefix=$ac_optarg ;;
  1084. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1085. | --program-suf | --program-su | --program-s)
  1086. ac_prev=program_suffix ;;
  1087. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1088. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1089. program_suffix=$ac_optarg ;;
  1090. -program-transform-name | --program-transform-name \
  1091. | --program-transform-nam | --program-transform-na \
  1092. | --program-transform-n | --program-transform- \
  1093. | --program-transform | --program-transfor \
  1094. | --program-transfo | --program-transf \
  1095. | --program-trans | --program-tran \
  1096. | --progr-tra | --program-tr | --program-t)
  1097. ac_prev=program_transform_name ;;
  1098. -program-transform-name=* | --program-transform-name=* \
  1099. | --program-transform-nam=* | --program-transform-na=* \
  1100. | --program-transform-n=* | --program-transform-=* \
  1101. | --program-transform=* | --program-transfor=* \
  1102. | --program-transfo=* | --program-transf=* \
  1103. | --program-trans=* | --program-tran=* \
  1104. | --progr-tra=* | --program-tr=* | --program-t=*)
  1105. program_transform_name=$ac_optarg ;;
  1106. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1107. ac_prev=pdfdir ;;
  1108. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1109. pdfdir=$ac_optarg ;;
  1110. -psdir | --psdir | --psdi | --psd | --ps)
  1111. ac_prev=psdir ;;
  1112. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1113. psdir=$ac_optarg ;;
  1114. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1115. | -silent | --silent | --silen | --sile | --sil)
  1116. silent=yes ;;
  1117. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1118. ac_prev=sbindir ;;
  1119. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1120. | --sbi=* | --sb=*)
  1121. sbindir=$ac_optarg ;;
  1122. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1123. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1124. | --sharedst | --shareds | --shared | --share | --shar \
  1125. | --sha | --sh)
  1126. ac_prev=sharedstatedir ;;
  1127. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1128. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1129. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1130. | --sha=* | --sh=*)
  1131. sharedstatedir=$ac_optarg ;;
  1132. -site | --site | --sit)
  1133. ac_prev=site ;;
  1134. -site=* | --site=* | --sit=*)
  1135. site=$ac_optarg ;;
  1136. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1137. ac_prev=srcdir ;;
  1138. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1139. srcdir=$ac_optarg ;;
  1140. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1141. | --syscon | --sysco | --sysc | --sys | --sy)
  1142. ac_prev=sysconfdir ;;
  1143. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1144. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1145. sysconfdir=$ac_optarg ;;
  1146. -target | --target | --targe | --targ | --tar | --ta | --t)
  1147. ac_prev=target_alias ;;
  1148. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1149. target_alias=$ac_optarg ;;
  1150. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1151. verbose=yes ;;
  1152. -version | --version | --versio | --versi | --vers | -V)
  1153. ac_init_version=: ;;
  1154. -with-* | --with-*)
  1155. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1156. # Reject names that are not valid shell variable names.
  1157. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1158. as_fn_error $? "invalid package name: $ac_useropt"
  1159. ac_useropt_orig=$ac_useropt
  1160. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1161. case $ac_user_opts in
  1162. *"
  1163. "with_$ac_useropt"
  1164. "*) ;;
  1165. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1166. ac_unrecognized_sep=', ';;
  1167. esac
  1168. eval with_$ac_useropt=\$ac_optarg ;;
  1169. -without-* | --without-*)
  1170. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1171. # Reject names that are not valid shell variable names.
  1172. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1173. as_fn_error $? "invalid package name: $ac_useropt"
  1174. ac_useropt_orig=$ac_useropt
  1175. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1176. case $ac_user_opts in
  1177. *"
  1178. "with_$ac_useropt"
  1179. "*) ;;
  1180. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1181. ac_unrecognized_sep=', ';;
  1182. esac
  1183. eval with_$ac_useropt=no ;;
  1184. --x)
  1185. # Obsolete; use --with-x.
  1186. with_x=yes ;;
  1187. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1188. | --x-incl | --x-inc | --x-in | --x-i)
  1189. ac_prev=x_includes ;;
  1190. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1191. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1192. x_includes=$ac_optarg ;;
  1193. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1194. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1195. ac_prev=x_libraries ;;
  1196. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1197. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1198. x_libraries=$ac_optarg ;;
  1199. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1200. Try \`$0 --help' for more information"
  1201. ;;
  1202. *=*)
  1203. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1204. # Reject names that are not valid shell variable names.
  1205. case $ac_envvar in #(
  1206. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1207. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1208. esac
  1209. eval $ac_envvar=\$ac_optarg
  1210. export $ac_envvar ;;
  1211. *)
  1212. # FIXME: should be removed in autoconf 3.0.
  1213. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1214. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1215. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1216. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1217. ;;
  1218. esac
  1219. done
  1220. if test -n "$ac_prev"; then
  1221. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1222. as_fn_error $? "missing argument to $ac_option"
  1223. fi
  1224. if test -n "$ac_unrecognized_opts"; then
  1225. case $enable_option_checking in
  1226. no) ;;
  1227. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1228. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1229. esac
  1230. fi
  1231. # Check all directory arguments for consistency.
  1232. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1233. datadir sysconfdir sharedstatedir localstatedir includedir \
  1234. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1235. libdir localedir mandir
  1236. do
  1237. eval ac_val=\$$ac_var
  1238. # Remove trailing slashes.
  1239. case $ac_val in
  1240. */ )
  1241. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1242. eval $ac_var=\$ac_val;;
  1243. esac
  1244. # Be sure to have absolute directory names.
  1245. case $ac_val in
  1246. [\\/$]* | ?:[\\/]* ) continue;;
  1247. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1248. esac
  1249. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1250. done
  1251. # There might be people who depend on the old broken behavior: `$host'
  1252. # used to hold the argument of --host etc.
  1253. # FIXME: To remove some day.
  1254. build=$build_alias
  1255. host=$host_alias
  1256. target=$target_alias
  1257. # FIXME: To remove some day.
  1258. if test "x$host_alias" != x; then
  1259. if test "x$build_alias" = x; then
  1260. cross_compiling=maybe
  1261. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1262. If a cross compiler is detected then cross compile mode will be used" >&2
  1263. elif test "x$build_alias" != "x$host_alias"; then
  1264. cross_compiling=yes
  1265. fi
  1266. fi
  1267. ac_tool_prefix=
  1268. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1269. test "$silent" = yes && exec 6>/dev/null
  1270. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1271. ac_ls_di=`ls -di .` &&
  1272. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1273. as_fn_error $? "working directory cannot be determined"
  1274. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1275. as_fn_error $? "pwd does not report name of working directory"
  1276. # Find the source files, if location was not specified.
  1277. if test -z "$srcdir"; then
  1278. ac_srcdir_defaulted=yes
  1279. # Try the directory containing this script, then the parent directory.
  1280. ac_confdir=`$as_dirname -- "$as_myself" ||
  1281. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1282. X"$as_myself" : 'X\(//\)[^/]' \| \
  1283. X"$as_myself" : 'X\(//\)$' \| \
  1284. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1285. $as_echo X"$as_myself" |
  1286. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1287. s//\1/
  1288. q
  1289. }
  1290. /^X\(\/\/\)[^/].*/{
  1291. s//\1/
  1292. q
  1293. }
  1294. /^X\(\/\/\)$/{
  1295. s//\1/
  1296. q
  1297. }
  1298. /^X\(\/\).*/{
  1299. s//\1/
  1300. q
  1301. }
  1302. s/.*/./; q'`
  1303. srcdir=$ac_confdir
  1304. if test ! -r "$srcdir/$ac_unique_file"; then
  1305. srcdir=..
  1306. fi
  1307. else
  1308. ac_srcdir_defaulted=no
  1309. fi
  1310. if test ! -r "$srcdir/$ac_unique_file"; then
  1311. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1312. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1313. fi
  1314. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1315. ac_abs_confdir=`(
  1316. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1317. pwd)`
  1318. # When building in place, set srcdir=.
  1319. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1320. srcdir=.
  1321. fi
  1322. # Remove unnecessary trailing slashes from srcdir.
  1323. # Double slashes in file names in object file debugging info
  1324. # mess up M-x gdb in Emacs.
  1325. case $srcdir in
  1326. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1327. esac
  1328. for ac_var in $ac_precious_vars; do
  1329. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1330. eval ac_env_${ac_var}_value=\$${ac_var}
  1331. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1332. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1333. done
  1334. #
  1335. # Report the --help message.
  1336. #
  1337. if test "$ac_init_help" = "long"; then
  1338. # Omit some internal or obsolete options to make the list less imposing.
  1339. # This message is too long to be a string in the A/UX 3.1 sh.
  1340. cat <<_ACEOF
  1341. \`configure' configures this package to adapt to many kinds of systems.
  1342. Usage: $0 [OPTION]... [VAR=VALUE]...
  1343. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1344. VAR=VALUE. See below for descriptions of some of the useful variables.
  1345. Defaults for the options are specified in brackets.
  1346. Configuration:
  1347. -h, --help display this help and exit
  1348. --help=short display options specific to this package
  1349. --help=recursive display the short help of all the included packages
  1350. -V, --version display version information and exit
  1351. -q, --quiet, --silent do not print \`checking ...' messages
  1352. --cache-file=FILE cache test results in FILE [disabled]
  1353. -C, --config-cache alias for \`--cache-file=config.cache'
  1354. -n, --no-create do not create output files
  1355. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1356. Installation directories:
  1357. --prefix=PREFIX install architecture-independent files in PREFIX
  1358. [$ac_default_prefix]
  1359. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1360. [PREFIX]
  1361. By default, \`make install' will install all the files in
  1362. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1363. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1364. for instance \`--prefix=\$HOME'.
  1365. For better control, use the options below.
  1366. Fine tuning of the installation directories:
  1367. --bindir=DIR user executables [EPREFIX/bin]
  1368. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1369. --libexecdir=DIR program executables [EPREFIX/libexec]
  1370. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1371. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1372. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1373. --libdir=DIR object code libraries [EPREFIX/lib]
  1374. --includedir=DIR C header files [PREFIX/include]
  1375. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1376. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1377. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1378. --infodir=DIR info documentation [DATAROOTDIR/info]
  1379. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1380. --mandir=DIR man documentation [DATAROOTDIR/man]
  1381. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1382. --htmldir=DIR html documentation [DOCDIR]
  1383. --dvidir=DIR dvi documentation [DOCDIR]
  1384. --pdfdir=DIR pdf documentation [DOCDIR]
  1385. --psdir=DIR ps documentation [DOCDIR]
  1386. _ACEOF
  1387. cat <<\_ACEOF
  1388. System types:
  1389. --build=BUILD configure for building on BUILD [guessed]
  1390. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1391. --target=TARGET configure for building compilers for TARGET [HOST]
  1392. _ACEOF
  1393. fi
  1394. if test -n "$ac_init_help"; then
  1395. cat <<\_ACEOF
  1396. Optional Features:
  1397. --disable-option-checking ignore unrecognized --enable/--with options
  1398. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1399. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1400. --enable-layout=LAYOUT
  1401. --enable-experimental-libtool Use experimental custom libtool
  1402. --enable-shared[=PKGS] build shared libraries [default=yes]
  1403. --enable-static[=PKGS] build static libraries [default=yes]
  1404. --enable-fast-install[=PKGS]
  1405. optimize for fast installation [default=yes]
  1406. --disable-libtool-lock avoid locking (might break parallel builds)
  1407. --enable-debug Turn on debugging and compile time warnings
  1408. --enable-maintainer-mode Turn on debugging and compile time warnings
  1409. --enable-profile Turn on profiling for the build (GCC)
  1410. --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] Turn on pools debugging
  1411. --enable-malloc-debug Switch on malloc_debug for BeOS
  1412. --disable-lfs Disable large file support on 32-bit platforms
  1413. --enable-nonportable-atomics Use optimized atomic code which may produce nonportable binaries
  1414. --enable-threads Enable threading support in APR.
  1415. --enable-allocator-uses-mmap Use mmap in apr_allocator instead of malloc (experimental)
  1416. --disable-dso Disable DSO support
  1417. --enable-other-child Enable reliable child processes
  1418. --disable-ipv6 Disable IPv6 support in APR.
  1419. Optional Packages:
  1420. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1421. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1422. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1423. both]
  1424. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1425. --with-sysroot=DIR Search for dependent libraries within DIR
  1426. (or the compiler's sysroot if not specified).
  1427. --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
  1428. --without-libtool avoid using libtool to link the library
  1429. --with-efence[=DIR] path to Electric Fence installation
  1430. --with-sendfile Override decision to use sendfile
  1431. --with-egd[=DIR] use EGD-compatible socket
  1432. --with-devrandom[=DEV] use /dev/random or compatible [searches by default]
  1433. Some influential environment variables:
  1434. CC C compiler command
  1435. CFLAGS C compiler flags
  1436. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1437. nonstandard directory <lib dir>
  1438. LIBS libraries to pass to the linker, e.g. -l<library>
  1439. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1440. you have headers in a nonstandard directory <include dir>
  1441. CPP C preprocessor
  1442. Use these variables to override the choices made by `configure' or to help
  1443. it to find libraries and programs with nonstandard names/locations.
  1444. Report bugs to the package provider.
  1445. _ACEOF
  1446. ac_status=$?
  1447. fi
  1448. if test "$ac_init_help" = "recursive"; then
  1449. # If there are subdirs, report their specific --help.
  1450. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1451. test -d "$ac_dir" ||
  1452. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1453. continue
  1454. ac_builddir=.
  1455. case "$ac_dir" in
  1456. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1457. *)
  1458. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1459. # A ".." for each directory in $ac_dir_suffix.
  1460. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1461. case $ac_top_builddir_sub in
  1462. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1463. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1464. esac ;;
  1465. esac
  1466. ac_abs_top_builddir=$ac_pwd
  1467. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1468. # for backward compatibility:
  1469. ac_top_builddir=$ac_top_build_prefix
  1470. case $srcdir in
  1471. .) # We are building in place.
  1472. ac_srcdir=.
  1473. ac_top_srcdir=$ac_top_builddir_sub
  1474. ac_abs_top_srcdir=$ac_pwd ;;
  1475. [\\/]* | ?:[\\/]* ) # Absolute name.
  1476. ac_srcdir=$srcdir$ac_dir_suffix;
  1477. ac_top_srcdir=$srcdir
  1478. ac_abs_top_srcdir=$srcdir ;;
  1479. *) # Relative name.
  1480. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1481. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1482. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1483. esac
  1484. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1485. cd "$ac_dir" || { ac_status=$?; continue; }
  1486. # Check for guested configure.
  1487. if test -f "$ac_srcdir/configure.gnu"; then
  1488. echo &&
  1489. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1490. elif test -f "$ac_srcdir/configure"; then
  1491. echo &&
  1492. $SHELL "$ac_srcdir/configure" --help=recursive
  1493. else
  1494. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1495. fi || ac_status=$?
  1496. cd "$ac_pwd" || { ac_status=$?; break; }
  1497. done
  1498. fi
  1499. test -n "$ac_init_help" && exit $ac_status
  1500. if $ac_init_version; then
  1501. cat <<\_ACEOF
  1502. configure
  1503. generated by GNU Autoconf 2.68
  1504. Copyright (C) 2010 Free Software Foundation, Inc.
  1505. This configure script is free software; the Free Software Foundation
  1506. gives unlimited permission to copy, distribute and modify it.
  1507. _ACEOF
  1508. exit
  1509. fi
  1510. ## ------------------------ ##
  1511. ## Autoconf initialization. ##
  1512. ## ------------------------ ##
  1513. # ac_fn_c_try_compile LINENO
  1514. # --------------------------
  1515. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1516. ac_fn_c_try_compile ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. rm -f conftest.$ac_objext
  1520. if { { ac_try="$ac_compile"
  1521. case "(($ac_try" in
  1522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1523. *) ac_try_echo=$ac_try;;
  1524. esac
  1525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1526. $as_echo "$ac_try_echo"; } >&5
  1527. (eval "$ac_compile") 2>conftest.err
  1528. ac_status=$?
  1529. if test -s conftest.err; then
  1530. grep -v '^ *+' conftest.err >conftest.er1
  1531. cat conftest.er1 >&5
  1532. mv -f conftest.er1 conftest.err
  1533. fi
  1534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1535. test $ac_status = 0; } && {
  1536. test -z "$ac_c_werror_flag" ||
  1537. test ! -s conftest.err
  1538. } && test -s conftest.$ac_objext; then :
  1539. ac_retval=0
  1540. else
  1541. $as_echo "$as_me: failed program was:" >&5
  1542. sed 's/^/| /' conftest.$ac_ext >&5
  1543. ac_retval=1
  1544. fi
  1545. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1546. as_fn_set_status $ac_retval
  1547. } # ac_fn_c_try_compile
  1548. # ac_fn_c_try_cpp LINENO
  1549. # ----------------------
  1550. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1551. ac_fn_c_try_cpp ()
  1552. {
  1553. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1554. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } > conftest.i && {
  1570. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. }; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: failed program was:" >&5
  1576. sed 's/^/| /' conftest.$ac_ext >&5
  1577. ac_retval=1
  1578. fi
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. as_fn_set_status $ac_retval
  1581. } # ac_fn_c_try_cpp
  1582. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1583. # -------------------------------------------------------
  1584. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1585. # the include files in INCLUDES and setting the cache variable VAR
  1586. # accordingly.
  1587. ac_fn_c_check_header_mongrel ()
  1588. {
  1589. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1590. if eval \${$3+:} false; then :
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1592. $as_echo_n "checking for $2... " >&6; }
  1593. if eval \${$3+:} false; then :
  1594. $as_echo_n "(cached) " >&6
  1595. fi
  1596. eval ac_res=\$$3
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1598. $as_echo "$ac_res" >&6; }
  1599. else
  1600. # Is the header compilable?
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1602. $as_echo_n "checking $2 usability... " >&6; }
  1603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1604. /* end confdefs.h. */
  1605. $4
  1606. #include <$2>
  1607. _ACEOF
  1608. if ac_fn_c_try_compile "$LINENO"; then :
  1609. ac_header_compiler=yes
  1610. else
  1611. ac_header_compiler=no
  1612. fi
  1613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1615. $as_echo "$ac_header_compiler" >&6; }
  1616. # Is the header present?
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1618. $as_echo_n "checking $2 presence... " >&6; }
  1619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1620. /* end confdefs.h. */
  1621. #include <$2>
  1622. _ACEOF
  1623. if ac_fn_c_try_cpp "$LINENO"; then :
  1624. ac_header_preproc=yes
  1625. else
  1626. ac_header_preproc=no
  1627. fi
  1628. rm -f conftest.err conftest.i conftest.$ac_ext
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1630. $as_echo "$ac_header_preproc" >&6; }
  1631. # So? What about this header?
  1632. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1633. yes:no: )
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1635. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1637. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1638. ;;
  1639. no:yes:* )
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1641. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1643. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1645. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1647. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1649. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1650. ;;
  1651. esac
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1653. $as_echo_n "checking for $2... " >&6; }
  1654. if eval \${$3+:} false; then :
  1655. $as_echo_n "(cached) " >&6
  1656. else
  1657. eval "$3=\$ac_header_compiler"
  1658. fi
  1659. eval ac_res=\$$3
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1661. $as_echo "$ac_res" >&6; }
  1662. fi
  1663. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1664. } # ac_fn_c_check_header_mongrel
  1665. # ac_fn_c_try_run LINENO
  1666. # ----------------------
  1667. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1668. # that executables *can* be run.
  1669. ac_fn_c_try_run ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. if { { ac_try="$ac_link"
  1673. case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_link") 2>&5
  1680. ac_status=$?
  1681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1682. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1683. { { case "(($ac_try" in
  1684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1685. *) ac_try_echo=$ac_try;;
  1686. esac
  1687. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1688. $as_echo "$ac_try_echo"; } >&5
  1689. (eval "$ac_try") 2>&5
  1690. ac_status=$?
  1691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1692. test $ac_status = 0; }; }; then :
  1693. ac_retval=0
  1694. else
  1695. $as_echo "$as_me: program exited with status $ac_status" >&5
  1696. $as_echo "$as_me: failed program was:" >&5
  1697. sed 's/^/| /' conftest.$ac_ext >&5
  1698. ac_retval=$ac_status
  1699. fi
  1700. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1701. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1702. as_fn_set_status $ac_retval
  1703. } # ac_fn_c_try_run
  1704. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1705. # -------------------------------------------------------
  1706. # Tests whether HEADER exists and can be compiled using the include files in
  1707. # INCLUDES, setting the cache variable VAR accordingly.
  1708. ac_fn_c_check_header_compile ()
  1709. {
  1710. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1712. $as_echo_n "checking for $2... " >&6; }
  1713. if eval \${$3+:} false; then :
  1714. $as_echo_n "(cached) " >&6
  1715. else
  1716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1717. /* end confdefs.h. */
  1718. $4
  1719. #include <$2>
  1720. _ACEOF
  1721. if ac_fn_c_try_compile "$LINENO"; then :
  1722. eval "$3=yes"
  1723. else
  1724. eval "$3=no"
  1725. fi
  1726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1727. fi
  1728. eval ac_res=\$$3
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1730. $as_echo "$ac_res" >&6; }
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. } # ac_fn_c_check_header_compile
  1733. # ac_fn_c_try_link LINENO
  1734. # -----------------------
  1735. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1736. ac_fn_c_try_link ()
  1737. {
  1738. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1739. rm -f conftest.$ac_objext conftest$ac_exeext
  1740. if { { ac_try="$ac_link"
  1741. case "(($ac_try" in
  1742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1743. *) ac_try_echo=$ac_try;;
  1744. esac
  1745. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1746. $as_echo "$ac_try_echo"; } >&5
  1747. (eval "$ac_link") 2>conftest.err
  1748. ac_status=$?
  1749. if test -s conftest.err; then
  1750. grep -v '^ *+' conftest.err >conftest.er1
  1751. cat conftest.er1 >&5
  1752. mv -f conftest.er1 conftest.err
  1753. fi
  1754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1755. test $ac_status = 0; } && {
  1756. test -z "$ac_c_werror_flag" ||
  1757. test ! -s conftest.err
  1758. } && test -s conftest$ac_exeext && {
  1759. test "$cross_compiling" = yes ||
  1760. $as_test_x conftest$ac_exeext
  1761. }; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1769. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1770. # interfere with the next link command; also delete a directory that is
  1771. # left behind by Apple's compiler. We do this before executing the actions.
  1772. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1773. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1774. as_fn_set_status $ac_retval
  1775. } # ac_fn_c_try_link
  1776. # ac_fn_c_check_func LINENO FUNC VAR
  1777. # ----------------------------------
  1778. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1779. ac_fn_c_check_func ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1783. $as_echo_n "checking for $2... " >&6; }
  1784. if eval \${$3+:} false; then :
  1785. $as_echo_n "(cached) " >&6
  1786. else
  1787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1788. /* end confdefs.h. */
  1789. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1790. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1791. #define $2 innocuous_$2
  1792. /* System header to define __stub macros and hopefully few prototypes,
  1793. which can conflict with char $2 (); below.
  1794. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1795. <limits.h> exists even on freestanding compilers. */
  1796. #ifdef __STDC__
  1797. # include <limits.h>
  1798. #else
  1799. # include <assert.h>
  1800. #endif
  1801. #undef $2
  1802. /* Override any GCC internal prototype to avoid an error.
  1803. Use char because int might match the return type of a GCC
  1804. builtin and then its argument prototype would still apply. */
  1805. #ifdef __cplusplus
  1806. extern "C"
  1807. #endif
  1808. char $2 ();
  1809. /* The GNU C library defines this for functions which it implements
  1810. to always fail with ENOSYS. Some functions are actually named
  1811. something starting with __ and the normal name is an alias. */
  1812. #if defined __stub_$2 || defined __stub___$2
  1813. choke me
  1814. #endif
  1815. int
  1816. main ()
  1817. {
  1818. return $2 ();
  1819. ;
  1820. return 0;
  1821. }
  1822. _ACEOF
  1823. if ac_fn_c_try_link "$LINENO"; then :
  1824. eval "$3=yes"
  1825. else
  1826. eval "$3=no"
  1827. fi
  1828. rm -f core conftest.err conftest.$ac_objext \
  1829. conftest$ac_exeext conftest.$ac_ext
  1830. fi
  1831. eval ac_res=\$$3
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1833. $as_echo "$ac_res" >&6; }
  1834. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1835. } # ac_fn_c_check_func
  1836. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1837. # -------------------------------------------
  1838. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1839. # variable VAR accordingly.
  1840. ac_fn_c_check_type ()
  1841. {
  1842. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1844. $as_echo_n "checking for $2... " >&6; }
  1845. if eval \${$3+:} false; then :
  1846. $as_echo_n "(cached) " >&6
  1847. else
  1848. eval "$3=no"
  1849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1850. /* end confdefs.h. */
  1851. $4
  1852. int
  1853. main ()
  1854. {
  1855. if (sizeof ($2))
  1856. return 0;
  1857. ;
  1858. return 0;
  1859. }
  1860. _ACEOF
  1861. if ac_fn_c_try_compile "$LINENO"; then :
  1862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1863. /* end confdefs.h. */
  1864. $4
  1865. int
  1866. main ()
  1867. {
  1868. if (sizeof (($2)))
  1869. return 0;
  1870. ;
  1871. return 0;
  1872. }
  1873. _ACEOF
  1874. if ac_fn_c_try_compile "$LINENO"; then :
  1875. else
  1876. eval "$3=yes"
  1877. fi
  1878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1879. fi
  1880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1881. fi
  1882. eval ac_res=\$$3
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1884. $as_echo "$ac_res" >&6; }
  1885. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886. } # ac_fn_c_check_type
  1887. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1888. # --------------------------------------------
  1889. # Tries to find the compile-time value of EXPR in a program that includes
  1890. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1891. # computed
  1892. ac_fn_c_compute_int ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. if test "$cross_compiling" = yes; then
  1896. # Depending upon the size, compute the lo and hi bounds.
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. $4
  1900. int
  1901. main ()
  1902. {
  1903. static int test_array [1 - 2 * !(($2) >= 0)];
  1904. test_array [0] = 0
  1905. ;
  1906. return 0;
  1907. }
  1908. _ACEOF
  1909. if ac_fn_c_try_compile "$LINENO"; then :
  1910. ac_lo=0 ac_mid=0
  1911. while :; do
  1912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1913. /* end confdefs.h. */
  1914. $4
  1915. int
  1916. main ()
  1917. {
  1918. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1919. test_array [0] = 0
  1920. ;
  1921. return 0;
  1922. }
  1923. _ACEOF
  1924. if ac_fn_c_try_compile "$LINENO"; then :
  1925. ac_hi=$ac_mid; break
  1926. else
  1927. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1928. if test $ac_lo -le $ac_mid; then
  1929. ac_lo= ac_hi=
  1930. break
  1931. fi
  1932. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1935. done
  1936. else
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. $4
  1940. int
  1941. main ()
  1942. {
  1943. static int test_array [1 - 2 * !(($2) < 0)];
  1944. test_array [0] = 0
  1945. ;
  1946. return 0;
  1947. }
  1948. _ACEOF
  1949. if ac_fn_c_try_compile "$LINENO"; then :
  1950. ac_hi=-1 ac_mid=-1
  1951. while :; do
  1952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1953. /* end confdefs.h. */
  1954. $4
  1955. int
  1956. main ()
  1957. {
  1958. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1959. test_array [0] = 0
  1960. ;
  1961. return 0;
  1962. }
  1963. _ACEOF
  1964. if ac_fn_c_try_compile "$LINENO"; then :
  1965. ac_lo=$ac_mid; break
  1966. else
  1967. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1968. if test $ac_mid -le $ac_hi; then
  1969. ac_lo= ac_hi=
  1970. break
  1971. fi
  1972. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1973. fi
  1974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1975. done
  1976. else
  1977. ac_lo= ac_hi=
  1978. fi
  1979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1980. fi
  1981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1982. # Binary search between lo and hi bounds.
  1983. while test "x$ac_lo" != "x$ac_hi"; do
  1984. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1986. /* end confdefs.h. */
  1987. $4
  1988. int
  1989. main ()
  1990. {
  1991. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1992. test_array [0] = 0
  1993. ;
  1994. return 0;
  1995. }
  1996. _ACEOF
  1997. if ac_fn_c_try_compile "$LINENO"; then :
  1998. ac_hi=$ac_mid
  1999. else
  2000. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2001. fi
  2002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2003. done
  2004. case $ac_lo in #((
  2005. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2006. '') ac_retval=1 ;;
  2007. esac
  2008. else
  2009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2010. /* end confdefs.h. */
  2011. $4
  2012. static long int longval () { return $2; }
  2013. static unsigned long int ulongval () { return $2; }
  2014. #include <stdio.h>
  2015. #include <stdlib.h>
  2016. int
  2017. main ()
  2018. {
  2019. FILE *f = fopen ("conftest.val", "w");
  2020. if (! f)
  2021. return 1;
  2022. if (($2) < 0)
  2023. {
  2024. long int i = longval ();
  2025. if (i != ($2))
  2026. return 1;
  2027. fprintf (f, "%ld", i);
  2028. }
  2029. else
  2030. {
  2031. unsigned long int i = ulongval ();
  2032. if (i != ($2))
  2033. return 1;
  2034. fprintf (f, "%lu", i);
  2035. }
  2036. /* Do not output a trailing newline, as this causes \r\n confusion
  2037. on some platforms. */
  2038. return ferror (f) || fclose (f) != 0;
  2039. ;
  2040. return 0;
  2041. }
  2042. _ACEOF
  2043. if ac_fn_c_try_run "$LINENO"; then :
  2044. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2045. else
  2046. ac_retval=1
  2047. fi
  2048. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2049. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2050. rm -f conftest.val
  2051. fi
  2052. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2053. as_fn_set_status $ac_retval
  2054. } # ac_fn_c_compute_int
  2055. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2056. # ---------------------------------------------
  2057. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2058. # accordingly.
  2059. ac_fn_c_check_decl ()
  2060. {
  2061. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2062. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2063. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2065. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2066. if eval \${$3+:} false; then :
  2067. $as_echo_n "(cached) " >&6
  2068. else
  2069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2070. /* end confdefs.h. */
  2071. $4
  2072. int
  2073. main ()
  2074. {
  2075. #ifndef $as_decl_name
  2076. #ifdef __cplusplus
  2077. (void) $as_decl_use;
  2078. #else
  2079. (void) $as_decl_name;
  2080. #endif
  2081. #endif
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_c_try_compile "$LINENO"; then :
  2087. eval "$3=yes"
  2088. else
  2089. eval "$3=no"
  2090. fi
  2091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2092. fi
  2093. eval ac_res=\$$3
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2095. $as_echo "$ac_res" >&6; }
  2096. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2097. } # ac_fn_c_check_decl
  2098. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2099. # ----------------------------------------------------
  2100. # Tries to find if the field MEMBER exists in type AGGR, after including
  2101. # INCLUDES, setting cache variable VAR accordingly.
  2102. ac_fn_c_check_member ()
  2103. {
  2104. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2106. $as_echo_n "checking for $2.$3... " >&6; }
  2107. if eval \${$4+:} false; then :
  2108. $as_echo_n "(cached) " >&6
  2109. else
  2110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2111. /* end confdefs.h. */
  2112. $5
  2113. int
  2114. main ()
  2115. {
  2116. static $2 ac_aggr;
  2117. if (ac_aggr.$3)
  2118. return 0;
  2119. ;
  2120. return 0;
  2121. }
  2122. _ACEOF
  2123. if ac_fn_c_try_compile "$LINENO"; then :
  2124. eval "$4=yes"
  2125. else
  2126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2127. /* end confdefs.h. */
  2128. $5
  2129. int
  2130. main ()
  2131. {
  2132. static $2 ac_aggr;
  2133. if (sizeof ac_aggr.$3)
  2134. return 0;
  2135. ;
  2136. return 0;
  2137. }
  2138. _ACEOF
  2139. if ac_fn_c_try_compile "$LINENO"; then :
  2140. eval "$4=yes"
  2141. else
  2142. eval "$4=no"
  2143. fi
  2144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2145. fi
  2146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2147. fi
  2148. eval ac_res=\$$4
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2150. $as_echo "$ac_res" >&6; }
  2151. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2152. } # ac_fn_c_check_member
  2153. cat >config.log <<_ACEOF
  2154. This file contains any messages produced by compilers while
  2155. running configure, to aid debugging if configure makes a mistake.
  2156. It was created by $as_me, which was
  2157. generated by GNU Autoconf 2.68. Invocation command line was
  2158. $ $0 $@
  2159. _ACEOF
  2160. exec 5>>config.log
  2161. {
  2162. cat <<_ASUNAME
  2163. ## --------- ##
  2164. ## Platform. ##
  2165. ## --------- ##
  2166. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2167. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2168. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2169. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2170. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2171. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2172. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2173. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2174. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2175. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2176. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2177. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2178. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2179. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2180. _ASUNAME
  2181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2182. for as_dir in $PATH
  2183. do
  2184. IFS=$as_save_IFS
  2185. test -z "$as_dir" && as_dir=.
  2186. $as_echo "PATH: $as_dir"
  2187. done
  2188. IFS=$as_save_IFS
  2189. } >&5
  2190. cat >&5 <<_ACEOF
  2191. ## ----------- ##
  2192. ## Core tests. ##
  2193. ## ----------- ##
  2194. _ACEOF
  2195. # Keep a trace of the command line.
  2196. # Strip out --no-create and --no-recursion so they do not pile up.
  2197. # Strip out --silent because we don't want to record it for future runs.
  2198. # Also quote any args containing shell meta-characters.
  2199. # Make two passes to allow for proper duplicate-argument suppression.
  2200. ac_configure_args=
  2201. ac_configure_args0=
  2202. ac_configure_args1=
  2203. ac_must_keep_next=false
  2204. for ac_pass in 1 2
  2205. do
  2206. for ac_arg
  2207. do
  2208. case $ac_arg in
  2209. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2210. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2211. | -silent | --silent | --silen | --sile | --sil)
  2212. continue ;;
  2213. *\'*)
  2214. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2215. esac
  2216. case $ac_pass in
  2217. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2218. 2)
  2219. as_fn_append ac_configure_args1 " '$ac_arg'"
  2220. if test $ac_must_keep_next = true; then
  2221. ac_must_keep_next=false # Got value, back to normal.
  2222. else
  2223. case $ac_arg in
  2224. *=* | --config-cache | -C | -disable-* | --disable-* \
  2225. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2226. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2227. | -with-* | --with-* | -without-* | --without-* | --x)
  2228. case "$ac_configure_args0 " in
  2229. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2230. esac
  2231. ;;
  2232. -* ) ac_must_keep_next=true ;;
  2233. esac
  2234. fi
  2235. as_fn_append ac_configure_args " '$ac_arg'"
  2236. ;;
  2237. esac
  2238. done
  2239. done
  2240. { ac_configure_args0=; unset ac_configure_args0;}
  2241. { ac_configure_args1=; unset ac_configure_args1;}
  2242. # When interrupted or exit'd, cleanup temporary files, and complete
  2243. # config.log. We remove comments because anyway the quotes in there
  2244. # would cause problems or look ugly.
  2245. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2246. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2247. trap 'exit_status=$?
  2248. # Save into config.log some information that might help in debugging.
  2249. {
  2250. echo
  2251. $as_echo "## ---------------- ##
  2252. ## Cache variables. ##
  2253. ## ---------------- ##"
  2254. echo
  2255. # The following way of writing the cache mishandles newlines in values,
  2256. (
  2257. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2258. eval ac_val=\$$ac_var
  2259. case $ac_val in #(
  2260. *${as_nl}*)
  2261. case $ac_var in #(
  2262. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2263. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2264. esac
  2265. case $ac_var in #(
  2266. _ | IFS | as_nl) ;; #(
  2267. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2268. *) { eval $ac_var=; unset $ac_var;} ;;
  2269. esac ;;
  2270. esac
  2271. done
  2272. (set) 2>&1 |
  2273. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2274. *${as_nl}ac_space=\ *)
  2275. sed -n \
  2276. "s/'\''/'\''\\\\'\'''\''/g;
  2277. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2278. ;; #(
  2279. *)
  2280. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2281. ;;
  2282. esac |
  2283. sort
  2284. )
  2285. echo
  2286. $as_echo "## ----------------- ##
  2287. ## Output variables. ##
  2288. ## ----------------- ##"
  2289. echo
  2290. for ac_var in $ac_subst_vars
  2291. do
  2292. eval ac_val=\$$ac_var
  2293. case $ac_val in
  2294. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2295. esac
  2296. $as_echo "$ac_var='\''$ac_val'\''"
  2297. done | sort
  2298. echo
  2299. if test -n "$ac_subst_files"; then
  2300. $as_echo "## ------------------- ##
  2301. ## File substitutions. ##
  2302. ## ------------------- ##"
  2303. echo
  2304. for ac_var in $ac_subst_files
  2305. do
  2306. eval ac_val=\$$ac_var
  2307. case $ac_val in
  2308. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2309. esac
  2310. $as_echo "$ac_var='\''$ac_val'\''"
  2311. done | sort
  2312. echo
  2313. fi
  2314. if test -s confdefs.h; then
  2315. $as_echo "## ----------- ##
  2316. ## confdefs.h. ##
  2317. ## ----------- ##"
  2318. echo
  2319. cat confdefs.h
  2320. echo
  2321. fi
  2322. test "$ac_signal" != 0 &&
  2323. $as_echo "$as_me: caught signal $ac_signal"
  2324. $as_echo "$as_me: exit $exit_status"
  2325. } >&5
  2326. rm -f core *.core core.conftest.* &&
  2327. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2328. exit $exit_status
  2329. ' 0
  2330. for ac_signal in 1 2 13 15; do
  2331. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2332. done
  2333. ac_signal=0
  2334. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2335. rm -f -r conftest* confdefs.h
  2336. $as_echo "/* confdefs.h */" > confdefs.h
  2337. # Predefined preprocessor variables.
  2338. cat >>confdefs.h <<_ACEOF
  2339. #define PACKAGE_NAME "$PACKAGE_NAME"
  2340. _ACEOF
  2341. cat >>confdefs.h <<_ACEOF
  2342. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2343. _ACEOF
  2344. cat >>confdefs.h <<_ACEOF
  2345. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2346. _ACEOF
  2347. cat >>confdefs.h <<_ACEOF
  2348. #define PACKAGE_STRING "$PACKAGE_STRING"
  2349. _ACEOF
  2350. cat >>confdefs.h <<_ACEOF
  2351. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2352. _ACEOF
  2353. cat >>confdefs.h <<_ACEOF
  2354. #define PACKAGE_URL "$PACKAGE_URL"
  2355. _ACEOF
  2356. # Let the site file select an alternate cache file if it wants to.
  2357. # Prefer an explicitly selected file to automatically selected ones.
  2358. ac_site_file1=NONE
  2359. ac_site_file2=NONE
  2360. if test -n "$CONFIG_SITE"; then
  2361. # We do not want a PATH search for config.site.
  2362. case $CONFIG_SITE in #((
  2363. -*) ac_site_file1=./$CONFIG_SITE;;
  2364. */*) ac_site_file1=$CONFIG_SITE;;
  2365. *) ac_site_file1=./$CONFIG_SITE;;
  2366. esac
  2367. elif test "x$prefix" != xNONE; then
  2368. ac_site_file1=$prefix/share/config.site
  2369. ac_site_file2=$prefix/etc/config.site
  2370. else
  2371. ac_site_file1=$ac_default_prefix/share/config.site
  2372. ac_site_file2=$ac_default_prefix/etc/config.site
  2373. fi
  2374. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2375. do
  2376. test "x$ac_site_file" = xNONE && continue
  2377. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2379. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2380. sed 's/^/| /' "$ac_site_file" >&5
  2381. . "$ac_site_file" \
  2382. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2383. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2384. as_fn_error $? "failed to load site script $ac_site_file
  2385. See \`config.log' for more details" "$LINENO" 5; }
  2386. fi
  2387. done
  2388. if test -r "$cache_file"; then
  2389. # Some versions of bash will fail to source /dev/null (special files
  2390. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2391. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2393. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2394. case $cache_file in
  2395. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2396. *) . "./$cache_file";;
  2397. esac
  2398. fi
  2399. else
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2401. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2402. >$cache_file
  2403. fi
  2404. # Check that the precious variables saved in the cache have kept the same
  2405. # value.
  2406. ac_cache_corrupted=false
  2407. for ac_var in $ac_precious_vars; do
  2408. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2409. eval ac_new_set=\$ac_env_${ac_var}_set
  2410. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2411. eval ac_new_val=\$ac_env_${ac_var}_value
  2412. case $ac_old_set,$ac_new_set in
  2413. set,)
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2415. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2416. ac_cache_corrupted=: ;;
  2417. ,set)
  2418. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2419. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2420. ac_cache_corrupted=: ;;
  2421. ,);;
  2422. *)
  2423. if test "x$ac_old_val" != "x$ac_new_val"; then
  2424. # differences in whitespace do not lead to failure.
  2425. ac_old_val_w=`echo x $ac_old_val`
  2426. ac_new_val_w=`echo x $ac_new_val`
  2427. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2429. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2430. ac_cache_corrupted=:
  2431. else
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2433. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2434. eval $ac_var=\$ac_old_val
  2435. fi
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2437. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2439. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2440. fi;;
  2441. esac
  2442. # Pass precious variables to config.status.
  2443. if test "$ac_new_set" = set; then
  2444. case $ac_new_val in
  2445. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2446. *) ac_arg=$ac_var=$ac_new_val ;;
  2447. esac
  2448. case " $ac_configure_args " in
  2449. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2450. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2451. esac
  2452. fi
  2453. done
  2454. if $ac_cache_corrupted; then
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2456. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2458. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2459. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2460. fi
  2461. ## -------------------- ##
  2462. ## Main body of script. ##
  2463. ## -------------------- ##
  2464. ac_ext=c
  2465. ac_cpp='$CPP $CPPFLAGS'
  2466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2469. ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
  2470. ac_aux_dir=
  2471. for ac_dir in build "$srcdir"/build; do
  2472. if test -f "$ac_dir/install-sh"; then
  2473. ac_aux_dir=$ac_dir
  2474. ac_install_sh="$ac_aux_dir/install-sh -c"
  2475. break
  2476. elif test -f "$ac_dir/install.sh"; then
  2477. ac_aux_dir=$ac_dir
  2478. ac_install_sh="$ac_aux_dir/install.sh -c"
  2479. break
  2480. elif test -f "$ac_dir/shtool"; then
  2481. ac_aux_dir=$ac_dir
  2482. ac_install_sh="$ac_aux_dir/shtool install -c"
  2483. break
  2484. fi
  2485. done
  2486. if test -z "$ac_aux_dir"; then
  2487. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
  2488. fi
  2489. # These three variables are undocumented and unsupported,
  2490. # and are intended to be withdrawn in a future Autoconf release.
  2491. # They can cause serious problems if a builder's source tree is in a directory
  2492. # whose full name contains unusual characters.
  2493. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2494. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2495. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2496. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2497. #
  2498. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2499. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  2500. # Foundation, Inc.
  2501. # Written by Gordon Matzigkeit, 1996
  2502. #
  2503. # This file is free software; the Free Software Foundation gives
  2504. # unlimited permission to copy and/or distribute it, with or without
  2505. # modifications, as long as this notice is preserved.
  2506. # serial 57 LT_INIT
  2507. # LT_PREREQ(VERSION)
  2508. # ------------------
  2509. # Complain and exit if this libtool version is less that VERSION.
  2510. # _LT_CHECK_BUILDDIR
  2511. # ------------------
  2512. # Complain if the absolute build directory name contains unusual characters
  2513. # LT_INIT([OPTIONS])
  2514. # ------------------
  2515. # LT_INIT
  2516. # Old names:
  2517. # This is what autoupdate's m4 run will expand. It fires
  2518. # the warning (with _au_warn_XXX), outputs it into the
  2519. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2520. # the replacement expansion.
  2521. # This is an auxiliary macro that is also run when
  2522. # autoupdate runs m4. It simply calls m4_warning, but
  2523. # we need a wrapper so that each warning is emitted only
  2524. # once. We break the quoting in m4_warning's argument in
  2525. # order to expand this macro's arguments, not AU_DEFUN's.
  2526. # Finally, this is the expansion that is picked up by
  2527. # autoconf. It tells the user to run autoupdate, and
  2528. # then outputs the replacement expansion. We do not care
  2529. # about autoupdate's warning because that contains
  2530. # information on what to do *after* running autoupdate.
  2531. # This is what autoupdate's m4 run will expand. It fires
  2532. # the warning (with _au_warn_XXX), outputs it into the
  2533. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2534. # the replacement expansion.
  2535. # This is an auxiliary macro that is also run when
  2536. # autoupdate runs m4. It simply calls m4_warning, but
  2537. # we need a wrapper so that each warning is emitted only
  2538. # once. We break the quoting in m4_warning's argument in
  2539. # order to expand this macro's arguments, not AU_DEFUN's.
  2540. # Finally, this is the expansion that is picked up by
  2541. # autoconf. It tells the user to run autoupdate, and
  2542. # then outputs the replacement expansion. We do not care
  2543. # about autoupdate's warning because that contains
  2544. # information on what to do *after* running autoupdate.
  2545. # _LT_CC_BASENAME(CC)
  2546. # -------------------
  2547. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2548. # _LT_FILEUTILS_DEFAULTS
  2549. # ----------------------
  2550. # It is okay to use these file commands and assume they have been set
  2551. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2552. # _LT_FILEUTILS_DEFAULTS
  2553. # _LT_SETUP
  2554. # ---------
  2555. # _LT_SETUP
  2556. # _LT_PREPARE_SED_QUOTE_VARS
  2557. # --------------------------
  2558. # Define a few sed substitution that help us do robust quoting.
  2559. # _LT_PROG_LTMAIN
  2560. # ---------------
  2561. # Note that this code is called both from `configure', and `config.status'
  2562. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2563. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2564. # so we pass a copy along to make sure it has a sensible value anyway.
  2565. # _LT_PROG_LTMAIN
  2566. ## ------------------------------------- ##
  2567. ## Accumulate code for creating libtool. ##
  2568. ## ------------------------------------- ##
  2569. # So that we can recreate a full libtool script including additional
  2570. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2571. # in macros and then make a single call at the end using the `libtool'
  2572. # label.
  2573. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2574. # ----------------------------------------
  2575. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2576. # Initialize.
  2577. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2578. # ------------------------------
  2579. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2580. # Initialize.
  2581. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2582. # -----------------------------------------------------
  2583. # _LT_FORMAT_COMMENT([COMMENT])
  2584. # -----------------------------
  2585. # Add leading comment marks to the start of each line, and a trailing
  2586. # full-stop to the whole comment if one is not present already.
  2587. ## ------------------------ ##
  2588. ## FIXME: Eliminate VARNAME ##
  2589. ## ------------------------ ##
  2590. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2591. # -------------------------------------------------------------------
  2592. # CONFIGNAME is the name given to the value in the libtool script.
  2593. # VARNAME is the (base) name used in the configure script.
  2594. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2595. # VARNAME. Any other value will be used directly.
  2596. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2597. # --------------------------------------------------------
  2598. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2599. # ------------------------------------------------
  2600. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2601. # ---------------------------------------------------------
  2602. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2603. # --------------------------------------------------
  2604. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2605. # ---------------------------------------------------
  2606. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2607. # ---------------------------------------------------
  2608. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2609. # ------------------------------------------------
  2610. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2611. # ------------------------------------
  2612. # Quote a variable value, and forward it to `config.status' so that its
  2613. # declaration there will have the same value as in `configure'. VARNAME
  2614. # must have a single quote delimited value for this to work.
  2615. # _LT_CONFIG_STATUS_DECLARATIONS
  2616. # ------------------------------
  2617. # We delimit libtool config variables with single quotes, so when
  2618. # we write them to config.status, we have to be sure to quote all
  2619. # embedded single quotes properly. In configure, this macro expands
  2620. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2621. #
  2622. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2623. # _LT_LIBTOOL_TAGS
  2624. # ----------------
  2625. # Output comment and list of tags supported by the script
  2626. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2627. # -----------------------------------
  2628. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2629. # expand to a commented shell variable setting:
  2630. #
  2631. # # Some comment about what VAR is for.
  2632. # visible_name=$lt_internal_name
  2633. # _LT_LIBTOOL_CONFIG_VARS
  2634. # -----------------------
  2635. # Produce commented declarations of non-tagged libtool config variables
  2636. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2637. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2638. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2639. # _LT_LIBTOOL_TAG_VARS(TAG)
  2640. # -------------------------
  2641. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2642. # ------------------------------
  2643. # _LT_CONFIG_COMMANDS
  2644. # -------------------
  2645. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2646. # variables for single and double quote escaping we saved from calls
  2647. # to _LT_DECL, we can put quote escaped variables declarations
  2648. # into `config.status', and then the shell code to quote escape them in
  2649. # for loops in `config.status'. Finally, any additional code accumulated
  2650. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2651. #_LT_CONFIG_COMMANDS
  2652. # Initialize.
  2653. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2654. # ------------------------------------
  2655. # Generate a child script FILE with all initialization necessary to
  2656. # reuse the environment learned by the parent script, and make the
  2657. # file executable. If COMMENT is supplied, it is inserted after the
  2658. # `#!' sequence but before initialization text begins. After this
  2659. # macro, additional text can be appended to FILE to form the body of
  2660. # the child script. The macro ends with non-zero status if the
  2661. # file could not be fully written (such as if the disk is full).
  2662. # _LT_GENERATED_FILE_INIT
  2663. # LT_OUTPUT
  2664. # ---------
  2665. # This macro allows early generation of the libtool script (before
  2666. # AC_OUTPUT is called), incase it is used in configure for compilation
  2667. # tests.
  2668. # LT_OUTPUT
  2669. # _LT_CONFIG(TAG)
  2670. # ---------------
  2671. # If TAG is the built-in tag, create an initial libtool script with a
  2672. # default configuration from the untagged config vars. Otherwise add code
  2673. # to config.status for appending the configuration named by TAG from the
  2674. # matching tagged config vars.
  2675. # _LT_CONFIG
  2676. # LT_SUPPORTED_TAG(TAG)
  2677. # ---------------------
  2678. # Trace this macro to discover what tags are supported by the libtool
  2679. # --tag option, using:
  2680. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2681. # C support is built-in for now
  2682. # LT_LANG(LANG)
  2683. # -------------
  2684. # Enable libtool support for the given language if not already enabled.
  2685. # LT_LANG
  2686. # _LT_LANG(LANGNAME)
  2687. # ------------------
  2688. # _LT_LANG
  2689. ############################################################
  2690. # NOTE: This macro has been submitted for inclusion into #
  2691. # GNU Autoconf as AC_PROG_GO. When it is available in #
  2692. # a released version of Autoconf we should remove this #
  2693. # macro and use it instead. #
  2694. ############################################################
  2695. #m4_defun
  2696. #m4_ifndef
  2697. # _LT_LANG_DEFAULT_CONFIG
  2698. # -----------------------
  2699. # _LT_LANG_DEFAULT_CONFIG
  2700. # Obsolete macros:
  2701. # This is what autoupdate's m4 run will expand. It fires
  2702. # the warning (with _au_warn_XXX), outputs it into the
  2703. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2704. # the replacement expansion.
  2705. # This is an auxiliary macro that is also run when
  2706. # autoupdate runs m4. It simply calls m4_warning, but
  2707. # we need a wrapper so that each warning is emitted only
  2708. # once. We break the quoting in m4_warning's argument in
  2709. # order to expand this macro's arguments, not AU_DEFUN's.
  2710. # Finally, this is the expansion that is picked up by
  2711. # autoconf. It tells the user to run autoupdate, and
  2712. # then outputs the replacement expansion. We do not care
  2713. # about autoupdate's warning because that contains
  2714. # information on what to do *after* running autoupdate.
  2715. # This is what autoupdate's m4 run will expand. It fires
  2716. # the warning (with _au_warn_XXX), outputs it into the
  2717. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2718. # the replacement expansion.
  2719. # This is an auxiliary macro that is also run when
  2720. # autoupdate runs m4. It simply calls m4_warning, but
  2721. # we need a wrapper so that each warning is emitted only
  2722. # once. We break the quoting in m4_warning's argument in
  2723. # order to expand this macro's arguments, not AU_DEFUN's.
  2724. # Finally, this is the expansion that is picked up by
  2725. # autoconf. It tells the user to run autoupdate, and
  2726. # then outputs the replacement expansion. We do not care
  2727. # about autoupdate's warning because that contains
  2728. # information on what to do *after* running autoupdate.
  2729. # This is what autoupdate's m4 run will expand. It fires
  2730. # the warning (with _au_warn_XXX), outputs it into the
  2731. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2732. # the replacement expansion.
  2733. # This is an auxiliary macro that is also run when
  2734. # autoupdate runs m4. It simply calls m4_warning, but
  2735. # we need a wrapper so that each warning is emitted only
  2736. # once. We break the quoting in m4_warning's argument in
  2737. # order to expand this macro's arguments, not AU_DEFUN's.
  2738. # Finally, this is the expansion that is picked up by
  2739. # autoconf. It tells the user to run autoupdate, and
  2740. # then outputs the replacement expansion. We do not care
  2741. # about autoupdate's warning because that contains
  2742. # information on what to do *after* running autoupdate.
  2743. # This is what autoupdate's m4 run will expand. It fires
  2744. # the warning (with _au_warn_XXX), outputs it into the
  2745. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2746. # the replacement expansion.
  2747. # This is an auxiliary macro that is also run when
  2748. # autoupdate runs m4. It simply calls m4_warning, but
  2749. # we need a wrapper so that each warning is emitted only
  2750. # once. We break the quoting in m4_warning's argument in
  2751. # order to expand this macro's arguments, not AU_DEFUN's.
  2752. # Finally, this is the expansion that is picked up by
  2753. # autoconf. It tells the user to run autoupdate, and
  2754. # then outputs the replacement expansion. We do not care
  2755. # about autoupdate's warning because that contains
  2756. # information on what to do *after* running autoupdate.
  2757. # This is what autoupdate's m4 run will expand. It fires
  2758. # the warning (with _au_warn_XXX), outputs it into the
  2759. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2760. # the replacement expansion.
  2761. # This is an auxiliary macro that is also run when
  2762. # autoupdate runs m4. It simply calls m4_warning, but
  2763. # we need a wrapper so that each warning is emitted only
  2764. # once. We break the quoting in m4_warning's argument in
  2765. # order to expand this macro's arguments, not AU_DEFUN's.
  2766. # Finally, this is the expansion that is picked up by
  2767. # autoconf. It tells the user to run autoupdate, and
  2768. # then outputs the replacement expansion. We do not care
  2769. # about autoupdate's warning because that contains
  2770. # information on what to do *after* running autoupdate.
  2771. # _LT_TAG_COMPILER
  2772. # ----------------
  2773. # _LT_TAG_COMPILER
  2774. # _LT_COMPILER_BOILERPLATE
  2775. # ------------------------
  2776. # Check for compiler boilerplate output or warnings with
  2777. # the simple compiler test code.
  2778. # _LT_COMPILER_BOILERPLATE
  2779. # _LT_LINKER_BOILERPLATE
  2780. # ----------------------
  2781. # Check for linker boilerplate output or warnings with
  2782. # the simple link test code.
  2783. # _LT_LINKER_BOILERPLATE
  2784. # _LT_REQUIRED_DARWIN_CHECKS
  2785. # -------------------------
  2786. # _LT_DARWIN_LINKER_FEATURES([TAG])
  2787. # ---------------------------------
  2788. # Checks for linker and compiler features on darwin
  2789. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  2790. # ----------------------------------
  2791. # Links a minimal program and checks the executable
  2792. # for the system default hardcoded library path. In most cases,
  2793. # this is /usr/lib:/lib, but when the MPI compilers are used
  2794. # the location of the communication and MPI libs are included too.
  2795. # If we don't find anything, use the default library path according
  2796. # to the aix ld manual.
  2797. # Store the results from the different compilers for each TAGNAME.
  2798. # Allow to override them for all tags through lt_cv_aix_libpath.
  2799. # _LT_SYS_MODULE_PATH_AIX
  2800. # _LT_SHELL_INIT(ARG)
  2801. # -------------------
  2802. # _LT_SHELL_INIT
  2803. # _LT_PROG_ECHO_BACKSLASH
  2804. # -----------------------
  2805. # Find how we can fake an echo command that does not interpret backslash.
  2806. # In particular, with Autoconf 2.60 or later we add some code to the start
  2807. # of the generated configure script which will find a shell with a builtin
  2808. # printf (which we can use as an echo command).
  2809. # _LT_PROG_ECHO_BACKSLASH
  2810. # _LT_WITH_SYSROOT
  2811. # ----------------
  2812. # _LT_ENABLE_LOCK
  2813. # ---------------
  2814. # _LT_ENABLE_LOCK
  2815. # _LT_PROG_AR
  2816. # -----------
  2817. # _LT_PROG_AR
  2818. # _LT_CMD_OLD_ARCHIVE
  2819. # -------------------
  2820. # _LT_CMD_OLD_ARCHIVE
  2821. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2822. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2823. # ----------------------------------------------------------------
  2824. # Check whether the given compiler option works
  2825. # _LT_COMPILER_OPTION
  2826. # Old name:
  2827. # This is what autoupdate's m4 run will expand. It fires
  2828. # the warning (with _au_warn_XXX), outputs it into the
  2829. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2830. # the replacement expansion.
  2831. # This is an auxiliary macro that is also run when
  2832. # autoupdate runs m4. It simply calls m4_warning, but
  2833. # we need a wrapper so that each warning is emitted only
  2834. # once. We break the quoting in m4_warning's argument in
  2835. # order to expand this macro's arguments, not AU_DEFUN's.
  2836. # Finally, this is the expansion that is picked up by
  2837. # autoconf. It tells the user to run autoupdate, and
  2838. # then outputs the replacement expansion. We do not care
  2839. # about autoupdate's warning because that contains
  2840. # information on what to do *after* running autoupdate.
  2841. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2842. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2843. # ----------------------------------------------------
  2844. # Check whether the given linker option works
  2845. # _LT_LINKER_OPTION
  2846. # Old name:
  2847. # This is what autoupdate's m4 run will expand. It fires
  2848. # the warning (with _au_warn_XXX), outputs it into the
  2849. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2850. # the replacement expansion.
  2851. # This is an auxiliary macro that is also run when
  2852. # autoupdate runs m4. It simply calls m4_warning, but
  2853. # we need a wrapper so that each warning is emitted only
  2854. # once. We break the quoting in m4_warning's argument in
  2855. # order to expand this macro's arguments, not AU_DEFUN's.
  2856. # Finally, this is the expansion that is picked up by
  2857. # autoconf. It tells the user to run autoupdate, and
  2858. # then outputs the replacement expansion. We do not care
  2859. # about autoupdate's warning because that contains
  2860. # information on what to do *after* running autoupdate.
  2861. # LT_CMD_MAX_LEN
  2862. #---------------
  2863. # LT_CMD_MAX_LEN
  2864. # Old name:
  2865. # This is what autoupdate's m4 run will expand. It fires
  2866. # the warning (with _au_warn_XXX), outputs it into the
  2867. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2868. # the replacement expansion.
  2869. # This is an auxiliary macro that is also run when
  2870. # autoupdate runs m4. It simply calls m4_warning, but
  2871. # we need a wrapper so that each warning is emitted only
  2872. # once. We break the quoting in m4_warning's argument in
  2873. # order to expand this macro's arguments, not AU_DEFUN's.
  2874. # Finally, this is the expansion that is picked up by
  2875. # autoconf. It tells the user to run autoupdate, and
  2876. # then outputs the replacement expansion. We do not care
  2877. # about autoupdate's warning because that contains
  2878. # information on what to do *after* running autoupdate.
  2879. # _LT_HEADER_DLFCN
  2880. # ----------------
  2881. # _LT_HEADER_DLFCN
  2882. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2883. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2884. # ----------------------------------------------------------------
  2885. # _LT_TRY_DLOPEN_SELF
  2886. # LT_SYS_DLOPEN_SELF
  2887. # ------------------
  2888. # LT_SYS_DLOPEN_SELF
  2889. # Old name:
  2890. # This is what autoupdate's m4 run will expand. It fires
  2891. # the warning (with _au_warn_XXX), outputs it into the
  2892. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2893. # the replacement expansion.
  2894. # This is an auxiliary macro that is also run when
  2895. # autoupdate runs m4. It simply calls m4_warning, but
  2896. # we need a wrapper so that each warning is emitted only
  2897. # once. We break the quoting in m4_warning's argument in
  2898. # order to expand this macro's arguments, not AU_DEFUN's.
  2899. # Finally, this is the expansion that is picked up by
  2900. # autoconf. It tells the user to run autoupdate, and
  2901. # then outputs the replacement expansion. We do not care
  2902. # about autoupdate's warning because that contains
  2903. # information on what to do *after* running autoupdate.
  2904. # _LT_COMPILER_C_O([TAGNAME])
  2905. # ---------------------------
  2906. # Check to see if options -c and -o are simultaneously supported by compiler.
  2907. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2908. # _LT_COMPILER_C_O
  2909. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2910. # ----------------------------------
  2911. # Check to see if we can do hard links to lock some files if needed
  2912. # _LT_COMPILER_FILE_LOCKS
  2913. # _LT_CHECK_OBJDIR
  2914. # ----------------
  2915. # _LT_CHECK_OBJDIR
  2916. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2917. # --------------------------------------
  2918. # Check hardcoding attributes.
  2919. # _LT_LINKER_HARDCODE_LIBPATH
  2920. # _LT_CMD_STRIPLIB
  2921. # ----------------
  2922. # _LT_CMD_STRIPLIB
  2923. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2924. # -----------------------------
  2925. # PORTME Fill in your ld.so characteristics
  2926. # _LT_SYS_DYNAMIC_LINKER
  2927. # _LT_PATH_TOOL_PREFIX(TOOL)
  2928. # --------------------------
  2929. # find a file program which can recognize shared library
  2930. # _LT_PATH_TOOL_PREFIX
  2931. # Old name:
  2932. # This is what autoupdate's m4 run will expand. It fires
  2933. # the warning (with _au_warn_XXX), outputs it into the
  2934. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2935. # the replacement expansion.
  2936. # This is an auxiliary macro that is also run when
  2937. # autoupdate runs m4. It simply calls m4_warning, but
  2938. # we need a wrapper so that each warning is emitted only
  2939. # once. We break the quoting in m4_warning's argument in
  2940. # order to expand this macro's arguments, not AU_DEFUN's.
  2941. # Finally, this is the expansion that is picked up by
  2942. # autoconf. It tells the user to run autoupdate, and
  2943. # then outputs the replacement expansion. We do not care
  2944. # about autoupdate's warning because that contains
  2945. # information on what to do *after* running autoupdate.
  2946. # _LT_PATH_MAGIC
  2947. # --------------
  2948. # find a file program which can recognize a shared library
  2949. # _LT_PATH_MAGIC
  2950. # LT_PATH_LD
  2951. # ----------
  2952. # find the pathname to the GNU or non-GNU linker
  2953. # LT_PATH_LD
  2954. # Old names:
  2955. # This is what autoupdate's m4 run will expand. It fires
  2956. # the warning (with _au_warn_XXX), outputs it into the
  2957. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2958. # the replacement expansion.
  2959. # This is an auxiliary macro that is also run when
  2960. # autoupdate runs m4. It simply calls m4_warning, but
  2961. # we need a wrapper so that each warning is emitted only
  2962. # once. We break the quoting in m4_warning's argument in
  2963. # order to expand this macro's arguments, not AU_DEFUN's.
  2964. # Finally, this is the expansion that is picked up by
  2965. # autoconf. It tells the user to run autoupdate, and
  2966. # then outputs the replacement expansion. We do not care
  2967. # about autoupdate's warning because that contains
  2968. # information on what to do *after* running autoupdate.
  2969. # This is what autoupdate's m4 run will expand. It fires
  2970. # the warning (with _au_warn_XXX), outputs it into the
  2971. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2972. # the replacement expansion.
  2973. # This is an auxiliary macro that is also run when
  2974. # autoupdate runs m4. It simply calls m4_warning, but
  2975. # we need a wrapper so that each warning is emitted only
  2976. # once. We break the quoting in m4_warning's argument in
  2977. # order to expand this macro's arguments, not AU_DEFUN's.
  2978. # Finally, this is the expansion that is picked up by
  2979. # autoconf. It tells the user to run autoupdate, and
  2980. # then outputs the replacement expansion. We do not care
  2981. # about autoupdate's warning because that contains
  2982. # information on what to do *after* running autoupdate.
  2983. # _LT_PATH_LD_GNU
  2984. #- --------------
  2985. # _LT_PATH_LD_GNU
  2986. # _LT_CMD_RELOAD
  2987. # --------------
  2988. # find reload flag for linker
  2989. # -- PORTME Some linkers may need a different reload flag.
  2990. # _LT_CMD_RELOAD
  2991. # _LT_CHECK_MAGIC_METHOD
  2992. # ----------------------
  2993. # how to check for library dependencies
  2994. # -- PORTME fill in with the dynamic library characteristics
  2995. # _LT_CHECK_MAGIC_METHOD
  2996. # LT_PATH_NM
  2997. # ----------
  2998. # find the pathname to a BSD- or MS-compatible name lister
  2999. # LT_PATH_NM
  3000. # Old names:
  3001. # This is what autoupdate's m4 run will expand. It fires
  3002. # the warning (with _au_warn_XXX), outputs it into the
  3003. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3004. # the replacement expansion.
  3005. # This is an auxiliary macro that is also run when
  3006. # autoupdate runs m4. It simply calls m4_warning, but
  3007. # we need a wrapper so that each warning is emitted only
  3008. # once. We break the quoting in m4_warning's argument in
  3009. # order to expand this macro's arguments, not AU_DEFUN's.
  3010. # Finally, this is the expansion that is picked up by
  3011. # autoconf. It tells the user to run autoupdate, and
  3012. # then outputs the replacement expansion. We do not care
  3013. # about autoupdate's warning because that contains
  3014. # information on what to do *after* running autoupdate.
  3015. # This is what autoupdate's m4 run will expand. It fires
  3016. # the warning (with _au_warn_XXX), outputs it into the
  3017. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3018. # the replacement expansion.
  3019. # This is an auxiliary macro that is also run when
  3020. # autoupdate runs m4. It simply calls m4_warning, but
  3021. # we need a wrapper so that each warning is emitted only
  3022. # once. We break the quoting in m4_warning's argument in
  3023. # order to expand this macro's arguments, not AU_DEFUN's.
  3024. # Finally, this is the expansion that is picked up by
  3025. # autoconf. It tells the user to run autoupdate, and
  3026. # then outputs the replacement expansion. We do not care
  3027. # about autoupdate's warning because that contains
  3028. # information on what to do *after* running autoupdate.
  3029. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3030. # --------------------------------
  3031. # how to determine the name of the shared library
  3032. # associated with a specific link library.
  3033. # -- PORTME fill in with the dynamic library characteristics
  3034. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3035. # _LT_PATH_MANIFEST_TOOL
  3036. # ----------------------
  3037. # locate the manifest tool
  3038. # _LT_PATH_MANIFEST_TOOL
  3039. # LT_LIB_M
  3040. # --------
  3041. # check for math library
  3042. # LT_LIB_M
  3043. # Old name:
  3044. # This is what autoupdate's m4 run will expand. It fires
  3045. # the warning (with _au_warn_XXX), outputs it into the
  3046. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3047. # the replacement expansion.
  3048. # This is an auxiliary macro that is also run when
  3049. # autoupdate runs m4. It simply calls m4_warning, but
  3050. # we need a wrapper so that each warning is emitted only
  3051. # once. We break the quoting in m4_warning's argument in
  3052. # order to expand this macro's arguments, not AU_DEFUN's.
  3053. # Finally, this is the expansion that is picked up by
  3054. # autoconf. It tells the user to run autoupdate, and
  3055. # then outputs the replacement expansion. We do not care
  3056. # about autoupdate's warning because that contains
  3057. # information on what to do *after* running autoupdate.
  3058. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3059. # -------------------------------
  3060. # _LT_COMPILER_NO_RTTI
  3061. # _LT_CMD_GLOBAL_SYMBOLS
  3062. # ----------------------
  3063. # _LT_CMD_GLOBAL_SYMBOLS
  3064. # _LT_COMPILER_PIC([TAGNAME])
  3065. # ---------------------------
  3066. # _LT_COMPILER_PIC
  3067. # _LT_LINKER_SHLIBS([TAGNAME])
  3068. # ----------------------------
  3069. # See if the linker supports building shared libraries.
  3070. # _LT_LINKER_SHLIBS
  3071. # _LT_LANG_C_CONFIG([TAG])
  3072. # ------------------------
  3073. # Ensure that the configuration variables for a C compiler are suitably
  3074. # defined. These variables are subsequently used by _LT_CONFIG to write
  3075. # the compiler configuration to `libtool'.
  3076. # _LT_LANG_C_CONFIG
  3077. # _LT_LANG_CXX_CONFIG([TAG])
  3078. # --------------------------
  3079. # Ensure that the configuration variables for a C++ compiler are suitably
  3080. # defined. These variables are subsequently used by _LT_CONFIG to write
  3081. # the compiler configuration to `libtool'.
  3082. # _LT_LANG_CXX_CONFIG
  3083. # _LT_FUNC_STRIPNAME_CNF
  3084. # ----------------------
  3085. # func_stripname_cnf prefix suffix name
  3086. # strip PREFIX and SUFFIX off of NAME.
  3087. # PREFIX and SUFFIX must not contain globbing or regex special
  3088. # characters, hashes, percent signs, but SUFFIX may contain a leading
  3089. # dot (in which case that matches only a dot).
  3090. #
  3091. # This function is identical to the (non-XSI) version of func_stripname,
  3092. # except this one can be used by m4 code that may be executed by configure,
  3093. # rather than the libtool script.
  3094. # _LT_FUNC_STRIPNAME_CNF
  3095. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  3096. # ---------------------------------
  3097. # Figure out "hidden" library dependencies from verbose
  3098. # compiler output when linking a shared library.
  3099. # Parse the compiler output and extract the necessary
  3100. # objects, libraries and library flags.
  3101. # _LT_SYS_HIDDEN_LIBDEPS
  3102. # _LT_LANG_F77_CONFIG([TAG])
  3103. # --------------------------
  3104. # Ensure that the configuration variables for a Fortran 77 compiler are
  3105. # suitably defined. These variables are subsequently used by _LT_CONFIG
  3106. # to write the compiler configuration to `libtool'.
  3107. # _LT_LANG_F77_CONFIG
  3108. # _LT_LANG_FC_CONFIG([TAG])
  3109. # -------------------------
  3110. # Ensure that the configuration variables for a Fortran compiler are
  3111. # suitably defined. These variables are subsequently used by _LT_CONFIG
  3112. # to write the compiler configuration to `libtool'.
  3113. # _LT_LANG_FC_CONFIG
  3114. # _LT_LANG_GCJ_CONFIG([TAG])
  3115. # --------------------------
  3116. # Ensure that the configuration variables for the GNU Java Compiler compiler
  3117. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  3118. # to write the compiler configuration to `libtool'.
  3119. # _LT_LANG_GCJ_CONFIG
  3120. # _LT_LANG_GO_CONFIG([TAG])
  3121. # --------------------------
  3122. # Ensure that the configuration variables for the GNU Go compiler
  3123. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  3124. # to write the compiler configuration to `libtool'.
  3125. # _LT_LANG_GO_CONFIG
  3126. # _LT_LANG_RC_CONFIG([TAG])
  3127. # -------------------------
  3128. # Ensure that the configuration variables for the Windows resource compiler
  3129. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  3130. # to write the compiler configuration to `libtool'.
  3131. # _LT_LANG_RC_CONFIG
  3132. # LT_PROG_GCJ
  3133. # -----------
  3134. # Old name:
  3135. # This is what autoupdate's m4 run will expand. It fires
  3136. # the warning (with _au_warn_XXX), outputs it into the
  3137. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3138. # the replacement expansion.
  3139. # This is an auxiliary macro that is also run when
  3140. # autoupdate runs m4. It simply calls m4_warning, but
  3141. # we need a wrapper so that each warning is emitted only
  3142. # once. We break the quoting in m4_warning's argument in
  3143. # order to expand this macro's arguments, not AU_DEFUN's.
  3144. # Finally, this is the expansion that is picked up by
  3145. # autoconf. It tells the user to run autoupdate, and
  3146. # then outputs the replacement expansion. We do not care
  3147. # about autoupdate's warning because that contains
  3148. # information on what to do *after* running autoupdate.
  3149. # LT_PROG_GO
  3150. # ----------
  3151. # LT_PROG_RC
  3152. # ----------
  3153. # Old name:
  3154. # This is what autoupdate's m4 run will expand. It fires
  3155. # the warning (with _au_warn_XXX), outputs it into the
  3156. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3157. # the replacement expansion.
  3158. # This is an auxiliary macro that is also run when
  3159. # autoupdate runs m4. It simply calls m4_warning, but
  3160. # we need a wrapper so that each warning is emitted only
  3161. # once. We break the quoting in m4_warning's argument in
  3162. # order to expand this macro's arguments, not AU_DEFUN's.
  3163. # Finally, this is the expansion that is picked up by
  3164. # autoconf. It tells the user to run autoupdate, and
  3165. # then outputs the replacement expansion. We do not care
  3166. # about autoupdate's warning because that contains
  3167. # information on what to do *after* running autoupdate.
  3168. # _LT_DECL_EGREP
  3169. # --------------
  3170. # If we don't have a new enough Autoconf to choose the best grep
  3171. # available, choose the one first in the user's PATH.
  3172. # _LT_DECL_OBJDUMP
  3173. # --------------
  3174. # If we don't have a new enough Autoconf to choose the best objdump
  3175. # available, choose the one first in the user's PATH.
  3176. # _LT_DECL_DLLTOOL
  3177. # ----------------
  3178. # Ensure DLLTOOL variable is set.
  3179. # _LT_DECL_SED
  3180. # ------------
  3181. # Check for a fully-functional sed program, that truncates
  3182. # as few characters as possible. Prefer GNU sed if found.
  3183. # _LT_DECL_SED
  3184. #m4_ifndef
  3185. # Old name:
  3186. # This is what autoupdate's m4 run will expand. It fires
  3187. # the warning (with _au_warn_XXX), outputs it into the
  3188. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3189. # the replacement expansion.
  3190. # This is an auxiliary macro that is also run when
  3191. # autoupdate runs m4. It simply calls m4_warning, but
  3192. # we need a wrapper so that each warning is emitted only
  3193. # once. We break the quoting in m4_warning's argument in
  3194. # order to expand this macro's arguments, not AU_DEFUN's.
  3195. # Finally, this is the expansion that is picked up by
  3196. # autoconf. It tells the user to run autoupdate, and
  3197. # then outputs the replacement expansion. We do not care
  3198. # about autoupdate's warning because that contains
  3199. # information on what to do *after* running autoupdate.
  3200. # _LT_CHECK_SHELL_FEATURES
  3201. # ------------------------
  3202. # Find out whether the shell is Bourne or XSI compatible,
  3203. # or has some other useful features.
  3204. # _LT_CHECK_SHELL_FEATURES
  3205. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  3206. # ------------------------------------------------------
  3207. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  3208. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  3209. # _LT_PROG_REPLACE_SHELLFNS
  3210. # -------------------------
  3211. # Replace existing portable implementations of several shell functions with
  3212. # equivalent extended shell implementations where those features are available..
  3213. # _LT_PATH_CONVERSION_FUNCTIONS
  3214. # -----------------------------
  3215. # Determine which file name conversion functions should be used by
  3216. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  3217. # for certain cross-compile configurations and native mingw.
  3218. # _LT_PATH_CONVERSION_FUNCTIONS
  3219. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  3220. #
  3221. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  3222. # Written by Gary V. Vaughan, 2004
  3223. #
  3224. # This file is free software; the Free Software Foundation gives
  3225. # unlimited permission to copy and/or distribute it, with or without
  3226. # modifications, as long as this notice is preserved.
  3227. # serial 6 ltsugar.m4
  3228. # This is to help aclocal find these macros, as it can't see m4_define.
  3229. # lt_join(SEP, ARG1, [ARG2...])
  3230. # -----------------------------
  3231. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  3232. # associated separator.
  3233. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  3234. # versions in m4sugar had bugs.
  3235. # lt_car(LIST)
  3236. # lt_cdr(LIST)
  3237. # ------------
  3238. # Manipulate m4 lists.
  3239. # These macros are necessary as long as will still need to support
  3240. # Autoconf-2.59 which quotes differently.
  3241. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  3242. # ------------------------------------------
  3243. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  3244. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  3245. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  3246. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  3247. # than defined and empty).
  3248. #
  3249. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  3250. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  3251. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  3252. # ----------------------------------------------------------
  3253. # Produce a SEP delimited list of all paired combinations of elements of
  3254. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  3255. # has the form PREFIXmINFIXSUFFIXn.
  3256. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  3257. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  3258. # -----------------------------------------------------------------------
  3259. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  3260. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  3261. # lt_dict_add(DICT, KEY, VALUE)
  3262. # -----------------------------
  3263. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  3264. # --------------------------------------------
  3265. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  3266. # ----------------------------------
  3267. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  3268. # -----------------------------------------------------------------
  3269. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  3270. # --------------------------------------------------------------
  3271. # Helper functions for option handling. -*- Autoconf -*-
  3272. #
  3273. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  3274. # Inc.
  3275. # Written by Gary V. Vaughan, 2004
  3276. #
  3277. # This file is free software; the Free Software Foundation gives
  3278. # unlimited permission to copy and/or distribute it, with or without
  3279. # modifications, as long as this notice is preserved.
  3280. # serial 7 ltoptions.m4
  3281. # This is to help aclocal find these macros, as it can't see m4_define.
  3282. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  3283. # ------------------------------------------
  3284. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  3285. # ---------------------------------------
  3286. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  3287. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  3288. # saved as a flag.
  3289. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  3290. # ------------------------------------------------------------
  3291. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  3292. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  3293. # -------------------------------------------------------
  3294. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  3295. # are set.
  3296. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  3297. # ----------------------------------------
  3298. # OPTION-LIST is a space-separated list of Libtool options associated
  3299. # with MACRO-NAME. If any OPTION has a matching handler declared with
  3300. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  3301. # the unknown option and exit.
  3302. # _LT_SET_OPTIONS
  3303. ## --------------------------------- ##
  3304. ## Macros to handle LT_INIT options. ##
  3305. ## --------------------------------- ##
  3306. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  3307. # -----------------------------------------
  3308. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  3309. # -----------------------------------------------
  3310. # LT_OPTION_DEFINE
  3311. # dlopen
  3312. # ------
  3313. # This is what autoupdate's m4 run will expand. It fires
  3314. # the warning (with _au_warn_XXX), outputs it into the
  3315. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3316. # the replacement expansion.
  3317. # This is an auxiliary macro that is also run when
  3318. # autoupdate runs m4. It simply calls m4_warning, but
  3319. # we need a wrapper so that each warning is emitted only
  3320. # once. We break the quoting in m4_warning's argument in
  3321. # order to expand this macro's arguments, not AU_DEFUN's.
  3322. # Finally, this is the expansion that is picked up by
  3323. # autoconf. It tells the user to run autoupdate, and
  3324. # then outputs the replacement expansion. We do not care
  3325. # about autoupdate's warning because that contains
  3326. # information on what to do *after* running autoupdate.
  3327. # win32-dll
  3328. # ---------
  3329. # Declare package support for building win32 dll's.
  3330. # win32-dll
  3331. # This is what autoupdate's m4 run will expand. It fires
  3332. # the warning (with _au_warn_XXX), outputs it into the
  3333. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3334. # the replacement expansion.
  3335. # This is an auxiliary macro that is also run when
  3336. # autoupdate runs m4. It simply calls m4_warning, but
  3337. # we need a wrapper so that each warning is emitted only
  3338. # once. We break the quoting in m4_warning's argument in
  3339. # order to expand this macro's arguments, not AU_DEFUN's.
  3340. # Finally, this is the expansion that is picked up by
  3341. # autoconf. It tells the user to run autoupdate, and
  3342. # then outputs the replacement expansion. We do not care
  3343. # about autoupdate's warning because that contains
  3344. # information on what to do *after* running autoupdate.
  3345. # _LT_ENABLE_SHARED([DEFAULT])
  3346. # ----------------------------
  3347. # implement the --enable-shared flag, and supports the `shared' and
  3348. # `disable-shared' LT_INIT options.
  3349. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3350. # _LT_ENABLE_SHARED
  3351. # Old names:
  3352. # This is what autoupdate's m4 run will expand. It fires
  3353. # the warning (with _au_warn_XXX), outputs it into the
  3354. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3355. # the replacement expansion.
  3356. # This is an auxiliary macro that is also run when
  3357. # autoupdate runs m4. It simply calls m4_warning, but
  3358. # we need a wrapper so that each warning is emitted only
  3359. # once. We break the quoting in m4_warning's argument in
  3360. # order to expand this macro's arguments, not AU_DEFUN's.
  3361. # Finally, this is the expansion that is picked up by
  3362. # autoconf. It tells the user to run autoupdate, and
  3363. # then outputs the replacement expansion. We do not care
  3364. # about autoupdate's warning because that contains
  3365. # information on what to do *after* running autoupdate.
  3366. # This is what autoupdate's m4 run will expand. It fires
  3367. # the warning (with _au_warn_XXX), outputs it into the
  3368. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3369. # the replacement expansion.
  3370. # This is an auxiliary macro that is also run when
  3371. # autoupdate runs m4. It simply calls m4_warning, but
  3372. # we need a wrapper so that each warning is emitted only
  3373. # once. We break the quoting in m4_warning's argument in
  3374. # order to expand this macro's arguments, not AU_DEFUN's.
  3375. # Finally, this is the expansion that is picked up by
  3376. # autoconf. It tells the user to run autoupdate, and
  3377. # then outputs the replacement expansion. We do not care
  3378. # about autoupdate's warning because that contains
  3379. # information on what to do *after* running autoupdate.
  3380. # _LT_ENABLE_STATIC([DEFAULT])
  3381. # ----------------------------
  3382. # implement the --enable-static flag, and support the `static' and
  3383. # `disable-static' LT_INIT options.
  3384. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3385. # _LT_ENABLE_STATIC
  3386. # Old names:
  3387. # This is what autoupdate's m4 run will expand. It fires
  3388. # the warning (with _au_warn_XXX), outputs it into the
  3389. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3390. # the replacement expansion.
  3391. # This is an auxiliary macro that is also run when
  3392. # autoupdate runs m4. It simply calls m4_warning, but
  3393. # we need a wrapper so that each warning is emitted only
  3394. # once. We break the quoting in m4_warning's argument in
  3395. # order to expand this macro's arguments, not AU_DEFUN's.
  3396. # Finally, this is the expansion that is picked up by
  3397. # autoconf. It tells the user to run autoupdate, and
  3398. # then outputs the replacement expansion. We do not care
  3399. # about autoupdate's warning because that contains
  3400. # information on what to do *after* running autoupdate.
  3401. # This is what autoupdate's m4 run will expand. It fires
  3402. # the warning (with _au_warn_XXX), outputs it into the
  3403. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3404. # the replacement expansion.
  3405. # This is an auxiliary macro that is also run when
  3406. # autoupdate runs m4. It simply calls m4_warning, but
  3407. # we need a wrapper so that each warning is emitted only
  3408. # once. We break the quoting in m4_warning's argument in
  3409. # order to expand this macro's arguments, not AU_DEFUN's.
  3410. # Finally, this is the expansion that is picked up by
  3411. # autoconf. It tells the user to run autoupdate, and
  3412. # then outputs the replacement expansion. We do not care
  3413. # about autoupdate's warning because that contains
  3414. # information on what to do *after* running autoupdate.
  3415. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  3416. # ----------------------------------
  3417. # implement the --enable-fast-install flag, and support the `fast-install'
  3418. # and `disable-fast-install' LT_INIT options.
  3419. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3420. # _LT_ENABLE_FAST_INSTALL
  3421. # Old names:
  3422. # This is what autoupdate's m4 run will expand. It fires
  3423. # the warning (with _au_warn_XXX), outputs it into the
  3424. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3425. # the replacement expansion.
  3426. # This is an auxiliary macro that is also run when
  3427. # autoupdate runs m4. It simply calls m4_warning, but
  3428. # we need a wrapper so that each warning is emitted only
  3429. # once. We break the quoting in m4_warning's argument in
  3430. # order to expand this macro's arguments, not AU_DEFUN's.
  3431. # Finally, this is the expansion that is picked up by
  3432. # autoconf. It tells the user to run autoupdate, and
  3433. # then outputs the replacement expansion. We do not care
  3434. # about autoupdate's warning because that contains
  3435. # information on what to do *after* running autoupdate.
  3436. # This is what autoupdate's m4 run will expand. It fires
  3437. # the warning (with _au_warn_XXX), outputs it into the
  3438. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3439. # the replacement expansion.
  3440. # This is an auxiliary macro that is also run when
  3441. # autoupdate runs m4. It simply calls m4_warning, but
  3442. # we need a wrapper so that each warning is emitted only
  3443. # once. We break the quoting in m4_warning's argument in
  3444. # order to expand this macro's arguments, not AU_DEFUN's.
  3445. # Finally, this is the expansion that is picked up by
  3446. # autoconf. It tells the user to run autoupdate, and
  3447. # then outputs the replacement expansion. We do not care
  3448. # about autoupdate's warning because that contains
  3449. # information on what to do *after* running autoupdate.
  3450. # _LT_WITH_PIC([MODE])
  3451. # --------------------
  3452. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  3453. # LT_INIT options.
  3454. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3455. # _LT_WITH_PIC
  3456. # Old name:
  3457. # This is what autoupdate's m4 run will expand. It fires
  3458. # the warning (with _au_warn_XXX), outputs it into the
  3459. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  3460. # the replacement expansion.
  3461. # This is an auxiliary macro that is also run when
  3462. # autoupdate runs m4. It simply calls m4_warning, but
  3463. # we need a wrapper so that each warning is emitted only
  3464. # once. We break the quoting in m4_warning's argument in
  3465. # order to expand this macro's arguments, not AU_DEFUN's.
  3466. # Finally, this is the expansion that is picked up by
  3467. # autoconf. It tells the user to run autoupdate, and
  3468. # then outputs the replacement expansion. We do not care
  3469. # about autoupdate's warning because that contains
  3470. # information on what to do *after* running autoupdate.
  3471. ## ----------------- ##
  3472. ## LTDL_INIT Options ##
  3473. ## ----------------- ##
  3474. # ltversion.m4 -- version numbers -*- Autoconf -*-
  3475. #
  3476. # Copyright (C) 2004 Free Software Foundation, Inc.
  3477. # Written by Scott James Remnant, 2004
  3478. #
  3479. # This file is free software; the Free Software Foundation gives
  3480. # unlimited permission to copy and/or distribute it, with or without
  3481. # modifications, as long as this notice is preserved.
  3482. # @configure_input@
  3483. # serial 3337 ltversion.m4
  3484. # This file is part of GNU Libtool
  3485. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  3486. #
  3487. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  3488. # Written by Scott James Remnant, 2004.
  3489. #
  3490. # This file is free software; the Free Software Foundation gives
  3491. # unlimited permission to copy and/or distribute it, with or without
  3492. # modifications, as long as this notice is preserved.
  3493. # serial 5 lt~obsolete.m4
  3494. # These exist entirely to fool aclocal when bootstrapping libtool.
  3495. #
  3496. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  3497. # which have later been changed to m4_define as they aren't part of the
  3498. # exported API, or moved to Autoconf or Automake where they belong.
  3499. #
  3500. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  3501. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  3502. # using a macro with the same name in our local m4/libtool.m4 it'll
  3503. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  3504. # and doesn't know about Autoconf macros at all.)
  3505. #
  3506. # So we provide this file, which has a silly filename so it's always
  3507. # included after everything else. This provides aclocal with the
  3508. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  3509. # because those macros already exist, or will be overwritten later.
  3510. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  3511. #
  3512. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  3513. # Yes, that means every name once taken will need to remain here until
  3514. # we give up compatibility with versions before 1.7, at which point
  3515. # we need to keep only those names which we still refer to.
  3516. # This is to help aclocal find these macros, as it can't see m4_define.
  3517. apr_ste_save_CPPFLAGS="$CPPFLAGS"
  3518. apr_ste_save_CFLAGS="$CFLAGS"
  3519. apr_ste_save_LDFLAGS="$LDFLAGS"
  3520. apr_ste_save_LIBS="$LIBS"
  3521. apr_ste_save_INCLUDES="$INCLUDES"
  3522. rm -f config.nice
  3523. cat >config.nice<<EOF
  3524. #! /bin/sh
  3525. #
  3526. # Created by configure
  3527. EOF
  3528. if test -n "$CC"; then
  3529. echo "CC=\"$CC\"; export CC" >> config.nice
  3530. fi
  3531. if test -n "$CFLAGS"; then
  3532. echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
  3533. fi
  3534. if test -n "$CPPFLAGS"; then
  3535. echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
  3536. fi
  3537. if test -n "$LDFLAGS"; then
  3538. echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
  3539. fi
  3540. if test -n "$LTFLAGS"; then
  3541. echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
  3542. fi
  3543. if test -n "$LIBS"; then
  3544. echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
  3545. fi
  3546. if test -n "$INCLUDES"; then
  3547. echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
  3548. fi
  3549. if test -n "$NOTEST_CFLAGS"; then
  3550. echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
  3551. fi
  3552. if test -n "$NOTEST_CPPFLAGS"; then
  3553. echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
  3554. fi
  3555. if test -n "$NOTEST_LDFLAGS"; then
  3556. echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
  3557. fi
  3558. if test -n "$NOTEST_LIBS"; then
  3559. echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
  3560. fi
  3561. # Retrieve command-line arguments.
  3562. eval "set x $0 $ac_configure_args"
  3563. shift
  3564. for arg
  3565. do
  3566. ap_last=
  3567. ap_cur="$arg"
  3568. while test "x${ap_cur}" != "x${ap_last}";
  3569. do
  3570. ap_last="${ap_cur}"
  3571. ap_cur=`eval "echo ${ap_cur}"`
  3572. done
  3573. arg="${ap_cur}"
  3574. echo "\"$arg\" \\" >> config.nice
  3575. done
  3576. echo '"$@"' >> config.nice
  3577. chmod +x config.nice
  3578. # Make sure we can run config.sub.
  3579. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3580. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3582. $as_echo_n "checking build system type... " >&6; }
  3583. if ${ac_cv_build+:} false; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. ac_build_alias=$build_alias
  3587. test "x$ac_build_alias" = x &&
  3588. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3589. test "x$ac_build_alias" = x &&
  3590. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3591. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3592. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3593. fi
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3595. $as_echo "$ac_cv_build" >&6; }
  3596. case $ac_cv_build in
  3597. *-*-*) ;;
  3598. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3599. esac
  3600. build=$ac_cv_build
  3601. ac_save_IFS=$IFS; IFS='-'
  3602. set x $ac_cv_build
  3603. shift
  3604. build_cpu=$1
  3605. build_vendor=$2
  3606. shift; shift
  3607. # Remember, the first character of IFS is used to create $*,
  3608. # except with old shells:
  3609. build_os=$*
  3610. IFS=$ac_save_IFS
  3611. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3613. $as_echo_n "checking host system type... " >&6; }
  3614. if ${ac_cv_host+:} false; then :
  3615. $as_echo_n "(cached) " >&6
  3616. else
  3617. if test "x$host_alias" = x; then
  3618. ac_cv_host=$ac_cv_build
  3619. else
  3620. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3621. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3622. fi
  3623. fi
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3625. $as_echo "$ac_cv_host" >&6; }
  3626. case $ac_cv_host in
  3627. *-*-*) ;;
  3628. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3629. esac
  3630. host=$ac_cv_host
  3631. ac_save_IFS=$IFS; IFS='-'
  3632. set x $ac_cv_host
  3633. shift
  3634. host_cpu=$1
  3635. host_vendor=$2
  3636. shift; shift
  3637. # Remember, the first character of IFS is used to create $*,
  3638. # except with old shells:
  3639. host_os=$*
  3640. IFS=$ac_save_IFS
  3641. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3643. $as_echo_n "checking target system type... " >&6; }
  3644. if ${ac_cv_target+:} false; then :
  3645. $as_echo_n "(cached) " >&6
  3646. else
  3647. if test "x$target_alias" = x; then
  3648. ac_cv_target=$ac_cv_host
  3649. else
  3650. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3651. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3652. fi
  3653. fi
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3655. $as_echo "$ac_cv_target" >&6; }
  3656. case $ac_cv_target in
  3657. *-*-*) ;;
  3658. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  3659. esac
  3660. target=$ac_cv_target
  3661. ac_save_IFS=$IFS; IFS='-'
  3662. set x $ac_cv_target
  3663. shift
  3664. target_cpu=$1
  3665. target_vendor=$2
  3666. shift; shift
  3667. # Remember, the first character of IFS is used to create $*,
  3668. # except with old shells:
  3669. target_os=$*
  3670. IFS=$ac_save_IFS
  3671. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3672. # The aliases save the names the user supplied, while $host etc.
  3673. # will get canonicalized.
  3674. test -n "$target_alias" &&
  3675. test "$program_prefix$program_suffix$program_transform_name" = \
  3676. NONENONEs,x,x, &&
  3677. program_prefix=${target_alias}-
  3678. echo "Configuring APR library"
  3679. echo "Platform: $host"
  3680. # Absolute source/build directory
  3681. apr_srcdir=`(cd $srcdir && pwd)`
  3682. apr_builddir=`pwd`
  3683. if test "$apr_builddir" != "$apr_srcdir"; then
  3684. USE_VPATH=1
  3685. APR_CONFIG_LOCATION=build
  3686. else
  3687. APR_CONFIG_LOCATION=source
  3688. fi
  3689. # Libtool might need this symbol -- it must point to the location of
  3690. # the generated libtool script (not necessarily the "top" build dir).
  3691. #
  3692. top_builddir="$apr_builddir"
  3693. # Directory containing apr build macros, helpers, and make rules
  3694. # NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
  3695. #
  3696. apr_buildout=$apr_builddir/build
  3697. apr_builders=$apr_srcdir/build
  3698. MKDIR=$apr_builders/mkdir.sh
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
  3700. $as_echo_n "checking for working mkdir -p... " >&6; }
  3701. if ${ac_cv_mkdir_p+:} false; then :
  3702. $as_echo_n "(cached) " >&6
  3703. else
  3704. test -d conftestdir && rm -rf conftestdir
  3705. mkdir -p conftestdir/somedir >/dev/null 2>&1
  3706. if test -d conftestdir/somedir; then
  3707. ac_cv_mkdir_p=yes
  3708. else
  3709. ac_cv_mkdir_p=no
  3710. fi
  3711. rm -rf conftestdir
  3712. fi
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
  3714. $as_echo "$ac_cv_mkdir_p" >&6; }
  3715. if test "$ac_cv_mkdir_p" = "yes"; then
  3716. mkdir_p="mkdir -p"
  3717. else
  3718. mkdir_p="$apr_builders/mkdir.sh"
  3719. fi
  3720. # get our version information
  3721. get_version="$apr_builders/get-version.sh"
  3722. version_hdr="$apr_srcdir/include/apr_version.h"
  3723. APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
  3724. APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
  3725. echo "APR Version: ${APR_DOTTED_VERSION}"
  3726. # Check whether --enable-layout was given.
  3727. if test "${enable_layout+set}" = set; then :
  3728. enableval=$enable_layout;
  3729. LAYOUT=$enableval
  3730. fi
  3731. if test -z "$LAYOUT"; then
  3732. LAYOUT="apr"
  3733. fi
  3734. if test ! -f $srcdir/config.layout; then
  3735. echo "** Error: Layout file $srcdir/config.layout not found"
  3736. echo "** Error: Cannot use undefined layout '$LAYOUT'"
  3737. exit 1
  3738. fi
  3739. # Catch layout names including a slash which will otherwise
  3740. # confuse the heck out of the sed script.
  3741. case $LAYOUT in
  3742. */*)
  3743. echo "** Error: $LAYOUT is not a valid layout name"
  3744. exit 1 ;;
  3745. esac
  3746. pldconf=./config.pld
  3747. sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
  3748. -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
  3749. -e '/[ ]*<\/Layout>[ ]*/,$d' \
  3750. -e "s/^[ ]*//g" \
  3751. -e "s/:[ ]*/=\'/g" \
  3752. -e "s/[ ]*$/'/g" \
  3753. $srcdir/config.layout > $pldconf
  3754. layout_name=$LAYOUT
  3755. if test ! -s $pldconf; then
  3756. echo "** Error: unable to find layout $layout_name"
  3757. exit 1
  3758. fi
  3759. . $pldconf
  3760. rm $pldconf
  3761. for var in prefix exec_prefix bindir sbindir libexecdir mandir \
  3762. sysconfdir datadir includedir localstatedir runtimedir \
  3763. logfiledir libdir installbuilddir libsuffix ; do
  3764. eval "val=\"\$$var\""
  3765. case $val in
  3766. *+)
  3767. val=`echo $val | sed -e 's;\+$;;'`
  3768. eval "$var=\"\$val\""
  3769. autosuffix=yes
  3770. ;;
  3771. *)
  3772. autosuffix=no
  3773. ;;
  3774. esac
  3775. val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
  3776. val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
  3777. if test "$autosuffix" = "yes"; then
  3778. if echo $val | grep apache >/dev/null; then
  3779. addtarget=no
  3780. else
  3781. addtarget=yes
  3782. fi
  3783. if test "$addtarget" = "yes"; then
  3784. val="$val/apache2"
  3785. fi
  3786. fi
  3787. eval "$var='$val'"
  3788. done
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
  3790. $as_echo_n "checking for chosen layout... " >&6; }
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
  3792. $as_echo "$layout_name" >&6; }
  3793. ac_prev=
  3794. # Retrieve the command-line arguments. The eval is needed because
  3795. # the arguments are quoted to preserve accuracy.
  3796. eval "set x $ac_configure_args"
  3797. shift
  3798. for ac_option
  3799. do
  3800. # If the previous option needs an argument, assign it.
  3801. if test -n "$ac_prev"; then
  3802. eval "$ac_prev=\$ac_option"
  3803. ac_prev=
  3804. continue
  3805. fi
  3806. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  3807. case $ac_option in
  3808. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  3809. ac_prev=bindir ;;
  3810. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  3811. bindir="$ac_optarg" ;;
  3812. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  3813. ac_prev=datadir ;;
  3814. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  3815. | --da=*)
  3816. datadir="$ac_optarg" ;;
  3817. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  3818. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  3819. | --exec | --exe | --ex)
  3820. ac_prev=exec_prefix ;;
  3821. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  3822. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  3823. | --exec=* | --exe=* | --ex=*)
  3824. exec_prefix="$ac_optarg" ;;
  3825. -includedir | --includedir | --includedi | --included | --include \
  3826. | --includ | --inclu | --incl | --inc)
  3827. ac_prev=includedir ;;
  3828. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  3829. | --includ=* | --inclu=* | --incl=* | --inc=*)
  3830. includedir="$ac_optarg" ;;
  3831. -infodir | --infodir | --infodi | --infod | --info | --inf)
  3832. ac_prev=infodir ;;
  3833. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  3834. infodir="$ac_optarg" ;;
  3835. -libdir | --libdir | --libdi | --libd)
  3836. ac_prev=libdir ;;
  3837. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  3838. libdir="$ac_optarg" ;;
  3839. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  3840. | --libexe | --libex | --libe)
  3841. ac_prev=libexecdir ;;
  3842. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  3843. | --libexe=* | --libex=* | --libe=*)
  3844. libexecdir="$ac_optarg" ;;
  3845. -localstatedir | --localstatedir | --localstatedi | --localstated \
  3846. | --localstate | --localstat | --localsta | --localst \
  3847. | --locals | --local | --loca | --loc | --lo)
  3848. ac_prev=localstatedir ;;
  3849. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  3850. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  3851. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  3852. localstatedir="$ac_optarg" ;;
  3853. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  3854. ac_prev=mandir ;;
  3855. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  3856. mandir="$ac_optarg" ;;
  3857. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  3858. ac_prev=prefix ;;
  3859. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  3860. prefix="$ac_optarg" ;;
  3861. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  3862. ac_prev=sbindir ;;
  3863. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  3864. | --sbi=* | --sb=*)
  3865. sbindir="$ac_optarg" ;;
  3866. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  3867. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  3868. | --sharedst | --shareds | --shared | --share | --shar \
  3869. | --sha | --sh)
  3870. ac_prev=sharedstatedir ;;
  3871. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  3872. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  3873. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  3874. | --sha=* | --sh=*)
  3875. sharedstatedir="$ac_optarg" ;;
  3876. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  3877. | --syscon | --sysco | --sysc | --sys | --sy)
  3878. ac_prev=sysconfdir ;;
  3879. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  3880. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  3881. sysconfdir="$ac_optarg" ;;
  3882. esac
  3883. done
  3884. # Be sure to have absolute paths.
  3885. for ac_var in exec_prefix prefix
  3886. do
  3887. eval ac_val=$`echo $ac_var`
  3888. case $ac_val in
  3889. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  3890. *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
  3891. esac
  3892. done
  3893. case "$host" in
  3894. *-apple-aux3*)
  3895. if test -z "$CC"; then
  3896. test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
  3897. CC="gcc"
  3898. fi
  3899. ;;
  3900. bs2000*-siemens-sysv*)
  3901. if test -z "$CC"; then
  3902. test "x$silent" != "xyes" && echo " setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
  3903. CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
  3904. fi
  3905. ;;
  3906. *convex-v11*)
  3907. if test -z "$CC"; then
  3908. test "x$silent" != "xyes" && echo " setting CC to \"cc\""
  3909. CC="cc"
  3910. fi
  3911. ;;
  3912. *-ibm-os390)
  3913. if test -z "$CC"; then
  3914. test "x$silent" != "xyes" && echo " setting CC to \"cc\""
  3915. CC="cc"
  3916. fi
  3917. ;;
  3918. *-ibm-as400)
  3919. if test -z "$CC"; then
  3920. test "x$silent" != "xyes" && echo " setting CC to \"icc\""
  3921. CC="icc"
  3922. fi
  3923. ;;
  3924. *-isc4*)
  3925. if test -z "$CC"; then
  3926. test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
  3927. CC="gcc"
  3928. fi
  3929. ;;
  3930. m88k-*-CX/SX|CYBER)
  3931. if test -z "$CC"; then
  3932. test "x$silent" != "xyes" && echo " setting CC to \"cc\""
  3933. CC="cc"
  3934. fi
  3935. ;;
  3936. *-next-openstep*)
  3937. if test -z "$CC"; then
  3938. test "x$silent" != "xyes" && echo " setting CC to \"cc\""
  3939. CC="cc"
  3940. fi
  3941. ;;
  3942. *-qnx32)
  3943. if test -z "$CC"; then
  3944. test "x$silent" != "xyes" && echo " setting CC to \"cc -F\""
  3945. CC="cc -F"
  3946. fi
  3947. ;;
  3948. *-tandem-oss)
  3949. if test -z "$CC"; then
  3950. test "x$silent" != "xyes" && echo " setting CC to \"c89\""
  3951. CC="c89"
  3952. fi
  3953. ;;
  3954. TPF)
  3955. if test -z "$CC"; then
  3956. test "x$silent" != "xyes" && echo " setting CC to \"c89\""
  3957. CC="c89"
  3958. fi
  3959. ;;
  3960. esac
  3961. ac_ext=c
  3962. ac_cpp='$CPP $CPPFLAGS'
  3963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3966. if test -n "$ac_tool_prefix"; then
  3967. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3968. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3970. $as_echo_n "checking for $ac_word... " >&6; }
  3971. if ${ac_cv_prog_CC+:} false; then :
  3972. $as_echo_n "(cached) " >&6
  3973. else
  3974. if test -n "$CC"; then
  3975. ac_cv_prog_CC="$CC" # Let the user override the test.
  3976. else
  3977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3978. for as_dir in $PATH
  3979. do
  3980. IFS=$as_save_IFS
  3981. test -z "$as_dir" && as_dir=.
  3982. for ac_exec_ext in '' $ac_executable_extensions; do
  3983. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3984. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3986. break 2
  3987. fi
  3988. done
  3989. done
  3990. IFS=$as_save_IFS
  3991. fi
  3992. fi
  3993. CC=$ac_cv_prog_CC
  3994. if test -n "$CC"; then
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3996. $as_echo "$CC" >&6; }
  3997. else
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3999. $as_echo "no" >&6; }
  4000. fi
  4001. fi
  4002. if test -z "$ac_cv_prog_CC"; then
  4003. ac_ct_CC=$CC
  4004. # Extract the first word of "gcc", so it can be a program name with args.
  4005. set dummy gcc; ac_word=$2
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4007. $as_echo_n "checking for $ac_word... " >&6; }
  4008. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4009. $as_echo_n "(cached) " >&6
  4010. else
  4011. if test -n "$ac_ct_CC"; then
  4012. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4013. else
  4014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4015. for as_dir in $PATH
  4016. do
  4017. IFS=$as_save_IFS
  4018. test -z "$as_dir" && as_dir=.
  4019. for ac_exec_ext in '' $ac_executable_extensions; do
  4020. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4021. ac_cv_prog_ac_ct_CC="gcc"
  4022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4023. break 2
  4024. fi
  4025. done
  4026. done
  4027. IFS=$as_save_IFS
  4028. fi
  4029. fi
  4030. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4031. if test -n "$ac_ct_CC"; then
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4033. $as_echo "$ac_ct_CC" >&6; }
  4034. else
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4036. $as_echo "no" >&6; }
  4037. fi
  4038. if test "x$ac_ct_CC" = x; then
  4039. CC=""
  4040. else
  4041. case $cross_compiling:$ac_tool_warned in
  4042. yes:)
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4044. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4045. ac_tool_warned=yes ;;
  4046. esac
  4047. CC=$ac_ct_CC
  4048. fi
  4049. else
  4050. CC="$ac_cv_prog_CC"
  4051. fi
  4052. if test -z "$CC"; then
  4053. if test -n "$ac_tool_prefix"; then
  4054. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4055. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4057. $as_echo_n "checking for $ac_word... " >&6; }
  4058. if ${ac_cv_prog_CC+:} false; then :
  4059. $as_echo_n "(cached) " >&6
  4060. else
  4061. if test -n "$CC"; then
  4062. ac_cv_prog_CC="$CC" # Let the user override the test.
  4063. else
  4064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4065. for as_dir in $PATH
  4066. do
  4067. IFS=$as_save_IFS
  4068. test -z "$as_dir" && as_dir=.
  4069. for ac_exec_ext in '' $ac_executable_extensions; do
  4070. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4071. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4073. break 2
  4074. fi
  4075. done
  4076. done
  4077. IFS=$as_save_IFS
  4078. fi
  4079. fi
  4080. CC=$ac_cv_prog_CC
  4081. if test -n "$CC"; then
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4083. $as_echo "$CC" >&6; }
  4084. else
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4086. $as_echo "no" >&6; }
  4087. fi
  4088. fi
  4089. fi
  4090. if test -z "$CC"; then
  4091. # Extract the first word of "cc", so it can be a program name with args.
  4092. set dummy cc; ac_word=$2
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4094. $as_echo_n "checking for $ac_word... " >&6; }
  4095. if ${ac_cv_prog_CC+:} false; then :
  4096. $as_echo_n "(cached) " >&6
  4097. else
  4098. if test -n "$CC"; then
  4099. ac_cv_prog_CC="$CC" # Let the user override the test.
  4100. else
  4101. ac_prog_rejected=no
  4102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4103. for as_dir in $PATH
  4104. do
  4105. IFS=$as_save_IFS
  4106. test -z "$as_dir" && as_dir=.
  4107. for ac_exec_ext in '' $ac_executable_extensions; do
  4108. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4109. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4110. ac_prog_rejected=yes
  4111. continue
  4112. fi
  4113. ac_cv_prog_CC="cc"
  4114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4115. break 2
  4116. fi
  4117. done
  4118. done
  4119. IFS=$as_save_IFS
  4120. if test $ac_prog_rejected = yes; then
  4121. # We found a bogon in the path, so make sure we never use it.
  4122. set dummy $ac_cv_prog_CC
  4123. shift
  4124. if test $# != 0; then
  4125. # We chose a different compiler from the bogus one.
  4126. # However, it has the same basename, so the bogon will be chosen
  4127. # first if we set CC to just the basename; use the full file name.
  4128. shift
  4129. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4130. fi
  4131. fi
  4132. fi
  4133. fi
  4134. CC=$ac_cv_prog_CC
  4135. if test -n "$CC"; then
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4137. $as_echo "$CC" >&6; }
  4138. else
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4140. $as_echo "no" >&6; }
  4141. fi
  4142. fi
  4143. if test -z "$CC"; then
  4144. if test -n "$ac_tool_prefix"; then
  4145. for ac_prog in cl.exe
  4146. do
  4147. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4148. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4150. $as_echo_n "checking for $ac_word... " >&6; }
  4151. if ${ac_cv_prog_CC+:} false; then :
  4152. $as_echo_n "(cached) " >&6
  4153. else
  4154. if test -n "$CC"; then
  4155. ac_cv_prog_CC="$CC" # Let the user override the test.
  4156. else
  4157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4158. for as_dir in $PATH
  4159. do
  4160. IFS=$as_save_IFS
  4161. test -z "$as_dir" && as_dir=.
  4162. for ac_exec_ext in '' $ac_executable_extensions; do
  4163. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4164. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4166. break 2
  4167. fi
  4168. done
  4169. done
  4170. IFS=$as_save_IFS
  4171. fi
  4172. fi
  4173. CC=$ac_cv_prog_CC
  4174. if test -n "$CC"; then
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4176. $as_echo "$CC" >&6; }
  4177. else
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4179. $as_echo "no" >&6; }
  4180. fi
  4181. test -n "$CC" && break
  4182. done
  4183. fi
  4184. if test -z "$CC"; then
  4185. ac_ct_CC=$CC
  4186. for ac_prog in cl.exe
  4187. do
  4188. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4189. set dummy $ac_prog; ac_word=$2
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4191. $as_echo_n "checking for $ac_word... " >&6; }
  4192. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. if test -n "$ac_ct_CC"; then
  4196. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4197. else
  4198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4199. for as_dir in $PATH
  4200. do
  4201. IFS=$as_save_IFS
  4202. test -z "$as_dir" && as_dir=.
  4203. for ac_exec_ext in '' $ac_executable_extensions; do
  4204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4205. ac_cv_prog_ac_ct_CC="$ac_prog"
  4206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4207. break 2
  4208. fi
  4209. done
  4210. done
  4211. IFS=$as_save_IFS
  4212. fi
  4213. fi
  4214. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4215. if test -n "$ac_ct_CC"; then
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4217. $as_echo "$ac_ct_CC" >&6; }
  4218. else
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4220. $as_echo "no" >&6; }
  4221. fi
  4222. test -n "$ac_ct_CC" && break
  4223. done
  4224. if test "x$ac_ct_CC" = x; then
  4225. CC=""
  4226. else
  4227. case $cross_compiling:$ac_tool_warned in
  4228. yes:)
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4230. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4231. ac_tool_warned=yes ;;
  4232. esac
  4233. CC=$ac_ct_CC
  4234. fi
  4235. fi
  4236. fi
  4237. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4239. as_fn_error $? "no acceptable C compiler found in \$PATH
  4240. See \`config.log' for more details" "$LINENO" 5; }
  4241. # Provide some information about the compiler.
  4242. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4243. set X $ac_compile
  4244. ac_compiler=$2
  4245. for ac_option in --version -v -V -qversion; do
  4246. { { ac_try="$ac_compiler $ac_option >&5"
  4247. case "(($ac_try" in
  4248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4249. *) ac_try_echo=$ac_try;;
  4250. esac
  4251. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4252. $as_echo "$ac_try_echo"; } >&5
  4253. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4254. ac_status=$?
  4255. if test -s conftest.err; then
  4256. sed '10a\
  4257. ... rest of stderr output deleted ...
  4258. 10q' conftest.err >conftest.er1
  4259. cat conftest.er1 >&5
  4260. fi
  4261. rm -f conftest.er1 conftest.err
  4262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4263. test $ac_status = 0; }
  4264. done
  4265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4266. /* end confdefs.h. */
  4267. int
  4268. main ()
  4269. {
  4270. ;
  4271. return 0;
  4272. }
  4273. _ACEOF
  4274. ac_clean_files_save=$ac_clean_files
  4275. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4276. # Try to create an executable without -o first, disregard a.out.
  4277. # It will help us diagnose broken compilers, and finding out an intuition
  4278. # of exeext.
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4280. $as_echo_n "checking whether the C compiler works... " >&6; }
  4281. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4282. # The possible output files:
  4283. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4284. ac_rmfiles=
  4285. for ac_file in $ac_files
  4286. do
  4287. case $ac_file in
  4288. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4289. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4290. esac
  4291. done
  4292. rm -f $ac_rmfiles
  4293. if { { ac_try="$ac_link_default"
  4294. case "(($ac_try" in
  4295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4296. *) ac_try_echo=$ac_try;;
  4297. esac
  4298. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4299. $as_echo "$ac_try_echo"; } >&5
  4300. (eval "$ac_link_default") 2>&5
  4301. ac_status=$?
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4303. test $ac_status = 0; }; then :
  4304. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4305. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4306. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4307. # so that the user can short-circuit this test for compilers unknown to
  4308. # Autoconf.
  4309. for ac_file in $ac_files ''
  4310. do
  4311. test -f "$ac_file" || continue
  4312. case $ac_file in
  4313. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4314. ;;
  4315. [ab].out )
  4316. # We found the default executable, but exeext='' is most
  4317. # certainly right.
  4318. break;;
  4319. *.* )
  4320. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4321. then :; else
  4322. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4323. fi
  4324. # We set ac_cv_exeext here because the later test for it is not
  4325. # safe: cross compilers may not add the suffix if given an `-o'
  4326. # argument, so we may need to know it at that point already.
  4327. # Even if this section looks crufty: it has the advantage of
  4328. # actually working.
  4329. break;;
  4330. * )
  4331. break;;
  4332. esac
  4333. done
  4334. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4335. else
  4336. ac_file=''
  4337. fi
  4338. if test -z "$ac_file"; then :
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4340. $as_echo "no" >&6; }
  4341. $as_echo "$as_me: failed program was:" >&5
  4342. sed 's/^/| /' conftest.$ac_ext >&5
  4343. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4345. as_fn_error 77 "C compiler cannot create executables
  4346. See \`config.log' for more details" "$LINENO" 5; }
  4347. else
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4349. $as_echo "yes" >&6; }
  4350. fi
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4352. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4354. $as_echo "$ac_file" >&6; }
  4355. ac_exeext=$ac_cv_exeext
  4356. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4357. ac_clean_files=$ac_clean_files_save
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4359. $as_echo_n "checking for suffix of executables... " >&6; }
  4360. if { { ac_try="$ac_link"
  4361. case "(($ac_try" in
  4362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4363. *) ac_try_echo=$ac_try;;
  4364. esac
  4365. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4366. $as_echo "$ac_try_echo"; } >&5
  4367. (eval "$ac_link") 2>&5
  4368. ac_status=$?
  4369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4370. test $ac_status = 0; }; then :
  4371. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4372. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4373. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4374. # `rm'.
  4375. for ac_file in conftest.exe conftest conftest.*; do
  4376. test -f "$ac_file" || continue
  4377. case $ac_file in
  4378. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4379. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4380. break;;
  4381. * ) break;;
  4382. esac
  4383. done
  4384. else
  4385. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4387. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4388. See \`config.log' for more details" "$LINENO" 5; }
  4389. fi
  4390. rm -f conftest conftest$ac_cv_exeext
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4392. $as_echo "$ac_cv_exeext" >&6; }
  4393. rm -f conftest.$ac_ext
  4394. EXEEXT=$ac_cv_exeext
  4395. ac_exeext=$EXEEXT
  4396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4397. /* end confdefs.h. */
  4398. #include <stdio.h>
  4399. int
  4400. main ()
  4401. {
  4402. FILE *f = fopen ("conftest.out", "w");
  4403. return ferror (f) || fclose (f) != 0;
  4404. ;
  4405. return 0;
  4406. }
  4407. _ACEOF
  4408. ac_clean_files="$ac_clean_files conftest.out"
  4409. # Check that the compiler produces executables we can run. If not, either
  4410. # the compiler is broken, or we cross compile.
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4412. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4413. if test "$cross_compiling" != yes; then
  4414. { { ac_try="$ac_link"
  4415. case "(($ac_try" in
  4416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4417. *) ac_try_echo=$ac_try;;
  4418. esac
  4419. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4420. $as_echo "$ac_try_echo"; } >&5
  4421. (eval "$ac_link") 2>&5
  4422. ac_status=$?
  4423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4424. test $ac_status = 0; }
  4425. if { ac_try='./conftest$ac_cv_exeext'
  4426. { { case "(($ac_try" in
  4427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4428. *) ac_try_echo=$ac_try;;
  4429. esac
  4430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4431. $as_echo "$ac_try_echo"; } >&5
  4432. (eval "$ac_try") 2>&5
  4433. ac_status=$?
  4434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4435. test $ac_status = 0; }; }; then
  4436. cross_compiling=no
  4437. else
  4438. if test "$cross_compiling" = maybe; then
  4439. cross_compiling=yes
  4440. else
  4441. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4442. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4443. as_fn_error $? "cannot run C compiled programs.
  4444. If you meant to cross compile, use \`--host'.
  4445. See \`config.log' for more details" "$LINENO" 5; }
  4446. fi
  4447. fi
  4448. fi
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4450. $as_echo "$cross_compiling" >&6; }
  4451. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4452. ac_clean_files=$ac_clean_files_save
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4454. $as_echo_n "checking for suffix of object files... " >&6; }
  4455. if ${ac_cv_objext+:} false; then :
  4456. $as_echo_n "(cached) " >&6
  4457. else
  4458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4459. /* end confdefs.h. */
  4460. int
  4461. main ()
  4462. {
  4463. ;
  4464. return 0;
  4465. }
  4466. _ACEOF
  4467. rm -f conftest.o conftest.obj
  4468. if { { ac_try="$ac_compile"
  4469. case "(($ac_try" in
  4470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4471. *) ac_try_echo=$ac_try;;
  4472. esac
  4473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4474. $as_echo "$ac_try_echo"; } >&5
  4475. (eval "$ac_compile") 2>&5
  4476. ac_status=$?
  4477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4478. test $ac_status = 0; }; then :
  4479. for ac_file in conftest.o conftest.obj conftest.*; do
  4480. test -f "$ac_file" || continue;
  4481. case $ac_file in
  4482. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4483. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4484. break;;
  4485. esac
  4486. done
  4487. else
  4488. $as_echo "$as_me: failed program was:" >&5
  4489. sed 's/^/| /' conftest.$ac_ext >&5
  4490. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4492. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4493. See \`config.log' for more details" "$LINENO" 5; }
  4494. fi
  4495. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4496. fi
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4498. $as_echo "$ac_cv_objext" >&6; }
  4499. OBJEXT=$ac_cv_objext
  4500. ac_objext=$OBJEXT
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4502. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4503. if ${ac_cv_c_compiler_gnu+:} false; then :
  4504. $as_echo_n "(cached) " >&6
  4505. else
  4506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4507. /* end confdefs.h. */
  4508. int
  4509. main ()
  4510. {
  4511. #ifndef __GNUC__
  4512. choke me
  4513. #endif
  4514. ;
  4515. return 0;
  4516. }
  4517. _ACEOF
  4518. if ac_fn_c_try_compile "$LINENO"; then :
  4519. ac_compiler_gnu=yes
  4520. else
  4521. ac_compiler_gnu=no
  4522. fi
  4523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4524. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4525. fi
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4527. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4528. if test $ac_compiler_gnu = yes; then
  4529. GCC=yes
  4530. else
  4531. GCC=
  4532. fi
  4533. ac_test_CFLAGS=${CFLAGS+set}
  4534. ac_save_CFLAGS=$CFLAGS
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4536. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4537. if ${ac_cv_prog_cc_g+:} false; then :
  4538. $as_echo_n "(cached) " >&6
  4539. else
  4540. ac_save_c_werror_flag=$ac_c_werror_flag
  4541. ac_c_werror_flag=yes
  4542. ac_cv_prog_cc_g=no
  4543. CFLAGS="-g"
  4544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4545. /* end confdefs.h. */
  4546. int
  4547. main ()
  4548. {
  4549. ;
  4550. return 0;
  4551. }
  4552. _ACEOF
  4553. if ac_fn_c_try_compile "$LINENO"; then :
  4554. ac_cv_prog_cc_g=yes
  4555. else
  4556. CFLAGS=""
  4557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4558. /* end confdefs.h. */
  4559. int
  4560. main ()
  4561. {
  4562. ;
  4563. return 0;
  4564. }
  4565. _ACEOF
  4566. if ac_fn_c_try_compile "$LINENO"; then :
  4567. else
  4568. ac_c_werror_flag=$ac_save_c_werror_flag
  4569. CFLAGS="-g"
  4570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4571. /* end confdefs.h. */
  4572. int
  4573. main ()
  4574. {
  4575. ;
  4576. return 0;
  4577. }
  4578. _ACEOF
  4579. if ac_fn_c_try_compile "$LINENO"; then :
  4580. ac_cv_prog_cc_g=yes
  4581. fi
  4582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4583. fi
  4584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4585. fi
  4586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4587. ac_c_werror_flag=$ac_save_c_werror_flag
  4588. fi
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4590. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4591. if test "$ac_test_CFLAGS" = set; then
  4592. CFLAGS=$ac_save_CFLAGS
  4593. elif test $ac_cv_prog_cc_g = yes; then
  4594. if test "$GCC" = yes; then
  4595. CFLAGS="-g -O2"
  4596. else
  4597. CFLAGS="-g"
  4598. fi
  4599. else
  4600. if test "$GCC" = yes; then
  4601. CFLAGS="-O2"
  4602. else
  4603. CFLAGS=
  4604. fi
  4605. fi
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4607. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4608. if ${ac_cv_prog_cc_c89+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. ac_cv_prog_cc_c89=no
  4612. ac_save_CC=$CC
  4613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4614. /* end confdefs.h. */
  4615. #include <stdarg.h>
  4616. #include <stdio.h>
  4617. #include <sys/types.h>
  4618. #include <sys/stat.h>
  4619. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4620. struct buf { int x; };
  4621. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4622. static char *e (p, i)
  4623. char **p;
  4624. int i;
  4625. {
  4626. return p[i];
  4627. }
  4628. static char *f (char * (*g) (char **, int), char **p, ...)
  4629. {
  4630. char *s;
  4631. va_list v;
  4632. va_start (v,p);
  4633. s = g (p, va_arg (v,int));
  4634. va_end (v);
  4635. return s;
  4636. }
  4637. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4638. function prototypes and stuff, but not '\xHH' hex character constants.
  4639. These don't provoke an error unfortunately, instead are silently treated
  4640. as 'x'. The following induces an error, until -std is added to get
  4641. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4642. array size at least. It's necessary to write '\x00'==0 to get something
  4643. that's true only with -std. */
  4644. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4645. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4646. inside strings and character constants. */
  4647. #define FOO(x) 'x'
  4648. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4649. int test (int i, double x);
  4650. struct s1 {int (*f) (int a);};
  4651. struct s2 {int (*f) (double a);};
  4652. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4653. int argc;
  4654. char **argv;
  4655. int
  4656. main ()
  4657. {
  4658. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4659. ;
  4660. return 0;
  4661. }
  4662. _ACEOF
  4663. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4664. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4665. do
  4666. CC="$ac_save_CC $ac_arg"
  4667. if ac_fn_c_try_compile "$LINENO"; then :
  4668. ac_cv_prog_cc_c89=$ac_arg
  4669. fi
  4670. rm -f core conftest.err conftest.$ac_objext
  4671. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4672. done
  4673. rm -f conftest.$ac_ext
  4674. CC=$ac_save_CC
  4675. fi
  4676. # AC_CACHE_VAL
  4677. case "x$ac_cv_prog_cc_c89" in
  4678. x)
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4680. $as_echo "none needed" >&6; } ;;
  4681. xno)
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4683. $as_echo "unsupported" >&6; } ;;
  4684. *)
  4685. CC="$CC $ac_cv_prog_cc_c89"
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4687. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4688. esac
  4689. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4690. fi
  4691. ac_ext=c
  4692. ac_cpp='$CPP $CPPFLAGS'
  4693. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4694. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4695. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4697. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4698. if ${ac_cv_path_SED+:} false; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4702. for ac_i in 1 2 3 4 5 6 7; do
  4703. ac_script="$ac_script$as_nl$ac_script"
  4704. done
  4705. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4706. { ac_script=; unset ac_script;}
  4707. if test -z "$SED"; then
  4708. ac_path_SED_found=false
  4709. # Loop through the user's path and test for each of PROGNAME-LIST
  4710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4711. for as_dir in $PATH
  4712. do
  4713. IFS=$as_save_IFS
  4714. test -z "$as_dir" && as_dir=.
  4715. for ac_prog in sed gsed; do
  4716. for ac_exec_ext in '' $ac_executable_extensions; do
  4717. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4718. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4719. # Check for GNU ac_path_SED and select it if it is found.
  4720. # Check for GNU $ac_path_SED
  4721. case `"$ac_path_SED" --version 2>&1` in
  4722. *GNU*)
  4723. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4724. *)
  4725. ac_count=0
  4726. $as_echo_n 0123456789 >"conftest.in"
  4727. while :
  4728. do
  4729. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4730. mv "conftest.tmp" "conftest.in"
  4731. cp "conftest.in" "conftest.nl"
  4732. $as_echo '' >> "conftest.nl"
  4733. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4734. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4735. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4736. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4737. # Best one so far, save it but keep looking for a better one
  4738. ac_cv_path_SED="$ac_path_SED"
  4739. ac_path_SED_max=$ac_count
  4740. fi
  4741. # 10*(2^10) chars as input seems more than enough
  4742. test $ac_count -gt 10 && break
  4743. done
  4744. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4745. esac
  4746. $ac_path_SED_found && break 3
  4747. done
  4748. done
  4749. done
  4750. IFS=$as_save_IFS
  4751. if test -z "$ac_cv_path_SED"; then
  4752. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4753. fi
  4754. else
  4755. ac_cv_path_SED=$SED
  4756. fi
  4757. fi
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4759. $as_echo "$ac_cv_path_SED" >&6; }
  4760. SED="$ac_cv_path_SED"
  4761. rm -f conftest.sed
  4762. if test "x$apr_preload_done" != "xyes" ; then
  4763. apr_preload_done="yes"
  4764. echo "Applying APR hints file rules for $host"
  4765. case "$host" in
  4766. *mint)
  4767. if test "x$CPPFLAGS" = "x"; then
  4768. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMINT\""
  4769. CPPFLAGS="-DMINT"
  4770. else
  4771. apr_addto_bugger="-DMINT"
  4772. for i in $apr_addto_bugger; do
  4773. apr_addto_duplicate="0"
  4774. for j in $CPPFLAGS; do
  4775. if test "x$i" = "x$j"; then
  4776. apr_addto_duplicate="1"
  4777. break
  4778. fi
  4779. done
  4780. if test $apr_addto_duplicate = "0"; then
  4781. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  4782. CPPFLAGS="$CPPFLAGS $i"
  4783. fi
  4784. done
  4785. fi
  4786. if test "x$LIBS" = "x"; then
  4787. test "x$silent" != "xyes" && echo " setting LIBS to \"-lportlib\""
  4788. LIBS="-lportlib"
  4789. else
  4790. apr_addto_bugger="-lportlib"
  4791. for i in $apr_addto_bugger; do
  4792. apr_addto_duplicate="0"
  4793. for j in $LIBS; do
  4794. if test "x$i" = "x$j"; then
  4795. apr_addto_duplicate="1"
  4796. break
  4797. fi
  4798. done
  4799. if test $apr_addto_duplicate = "0"; then
  4800. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  4801. LIBS="$LIBS $i"
  4802. fi
  4803. done
  4804. fi
  4805. ;;
  4806. *MPE/iX*)
  4807. if test "x$CPPFLAGS" = "x"; then
  4808. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
  4809. CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
  4810. else
  4811. apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
  4812. for i in $apr_addto_bugger; do
  4813. apr_addto_duplicate="0"
  4814. for j in $CPPFLAGS; do
  4815. if test "x$i" = "x$j"; then
  4816. apr_addto_duplicate="1"
  4817. break
  4818. fi
  4819. done
  4820. if test $apr_addto_duplicate = "0"; then
  4821. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  4822. CPPFLAGS="$CPPFLAGS $i"
  4823. fi
  4824. done
  4825. fi
  4826. if test "x$LIBS" = "x"; then
  4827. test "x$silent" != "xyes" && echo " setting LIBS to \"-lsvipc -lcurses\""
  4828. LIBS="-lsvipc -lcurses"
  4829. else
  4830. apr_addto_bugger="-lsvipc -lcurses"
  4831. for i in $apr_addto_bugger; do
  4832. apr_addto_duplicate="0"
  4833. for j in $LIBS; do
  4834. if test "x$i" = "x$j"; then
  4835. apr_addto_duplicate="1"
  4836. break
  4837. fi
  4838. done
  4839. if test $apr_addto_duplicate = "0"; then
  4840. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  4841. LIBS="$LIBS $i"
  4842. fi
  4843. done
  4844. fi
  4845. if test "x$LDFLAGS" = "x"; then
  4846. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
  4847. LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
  4848. else
  4849. apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
  4850. for i in $apr_addto_bugger; do
  4851. apr_addto_duplicate="0"
  4852. for j in $LDFLAGS; do
  4853. if test "x$i" = "x$j"; then
  4854. apr_addto_duplicate="1"
  4855. break
  4856. fi
  4857. done
  4858. if test $apr_addto_duplicate = "0"; then
  4859. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  4860. LDFLAGS="$LDFLAGS $i"
  4861. fi
  4862. done
  4863. fi
  4864. ;;
  4865. *-apple-aux3*)
  4866. if test "x$CPPFLAGS" = "x"; then
  4867. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
  4868. CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
  4869. else
  4870. apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
  4871. for i in $apr_addto_bugger; do
  4872. apr_addto_duplicate="0"
  4873. for j in $CPPFLAGS; do
  4874. if test "x$i" = "x$j"; then
  4875. apr_addto_duplicate="1"
  4876. break
  4877. fi
  4878. done
  4879. if test $apr_addto_duplicate = "0"; then
  4880. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  4881. CPPFLAGS="$CPPFLAGS $i"
  4882. fi
  4883. done
  4884. fi
  4885. if test "x$LIBS" = "x"; then
  4886. test "x$silent" != "xyes" && echo " setting LIBS to \"-lposix -lbsd\""
  4887. LIBS="-lposix -lbsd"
  4888. else
  4889. apr_addto_bugger="-lposix -lbsd"
  4890. for i in $apr_addto_bugger; do
  4891. apr_addto_duplicate="0"
  4892. for j in $LIBS; do
  4893. if test "x$i" = "x$j"; then
  4894. apr_addto_duplicate="1"
  4895. break
  4896. fi
  4897. done
  4898. if test $apr_addto_duplicate = "0"; then
  4899. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  4900. LIBS="$LIBS $i"
  4901. fi
  4902. done
  4903. fi
  4904. if test "x$LDFLAGS" = "x"; then
  4905. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-s\""
  4906. LDFLAGS="-s"
  4907. else
  4908. apr_addto_bugger="-s"
  4909. for i in $apr_addto_bugger; do
  4910. apr_addto_duplicate="0"
  4911. for j in $LDFLAGS; do
  4912. if test "x$i" = "x$j"; then
  4913. apr_addto_duplicate="1"
  4914. break
  4915. fi
  4916. done
  4917. if test $apr_addto_duplicate = "0"; then
  4918. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  4919. LDFLAGS="$LDFLAGS $i"
  4920. fi
  4921. done
  4922. fi
  4923. test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/ksh\""
  4924. SHELL="/bin/ksh"
  4925. ;;
  4926. *-ibm-aix*)
  4927. if test "x$CPPFLAGS" = "x"; then
  4928. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
  4929. CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
  4930. else
  4931. apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
  4932. for i in $apr_addto_bugger; do
  4933. apr_addto_duplicate="0"
  4934. for j in $CPPFLAGS; do
  4935. if test "x$i" = "x$j"; then
  4936. apr_addto_duplicate="1"
  4937. break
  4938. fi
  4939. done
  4940. if test $apr_addto_duplicate = "0"; then
  4941. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  4942. CPPFLAGS="$CPPFLAGS $i"
  4943. fi
  4944. done
  4945. fi
  4946. case $host in
  4947. *-ibm-aix4.3)
  4948. if test "x$CPPFLAGS" = "x"; then
  4949. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
  4950. CPPFLAGS="-D_USE_IRS"
  4951. else
  4952. apr_addto_bugger="-D_USE_IRS"
  4953. for i in $apr_addto_bugger; do
  4954. apr_addto_duplicate="0"
  4955. for j in $CPPFLAGS; do
  4956. if test "x$i" = "x$j"; then
  4957. apr_addto_duplicate="1"
  4958. break
  4959. fi
  4960. done
  4961. if test $apr_addto_duplicate = "0"; then
  4962. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  4963. CPPFLAGS="$CPPFLAGS $i"
  4964. fi
  4965. done
  4966. fi
  4967. ;;
  4968. *-ibm-aix5*)
  4969. if test "x$CPPFLAGS" = "x"; then
  4970. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
  4971. CPPFLAGS="-D_USE_IRS"
  4972. else
  4973. apr_addto_bugger="-D_USE_IRS"
  4974. for i in $apr_addto_bugger; do
  4975. apr_addto_duplicate="0"
  4976. for j in $CPPFLAGS; do
  4977. if test "x$i" = "x$j"; then
  4978. apr_addto_duplicate="1"
  4979. break
  4980. fi
  4981. done
  4982. if test $apr_addto_duplicate = "0"; then
  4983. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  4984. CPPFLAGS="$CPPFLAGS $i"
  4985. fi
  4986. done
  4987. fi
  4988. ;;
  4989. *-ibm-aix4.3.*)
  4990. if test "x$CPPFLAGS" = "x"; then
  4991. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
  4992. CPPFLAGS="-D_USE_IRS"
  4993. else
  4994. apr_addto_bugger="-D_USE_IRS"
  4995. for i in $apr_addto_bugger; do
  4996. apr_addto_duplicate="0"
  4997. for j in $CPPFLAGS; do
  4998. if test "x$i" = "x$j"; then
  4999. apr_addto_duplicate="1"
  5000. break
  5001. fi
  5002. done
  5003. if test $apr_addto_duplicate = "0"; then
  5004. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5005. CPPFLAGS="$CPPFLAGS $i"
  5006. fi
  5007. done
  5008. fi
  5009. ;;
  5010. esac
  5011. if $CC 2>&1 | grep 'xlc' > /dev/null; then
  5012. if test -z "$AIX_XLC"; then
  5013. test "x$silent" != "xyes" && echo " setting AIX_XLC to \"yes\""
  5014. AIX_XLC="yes"
  5015. fi
  5016. if test "x$CFLAGS" = "x"; then
  5017. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qHALT=E\""
  5018. CFLAGS="-qHALT=E"
  5019. else
  5020. apr_addto_bugger="-qHALT=E"
  5021. for i in $apr_addto_bugger; do
  5022. apr_addto_duplicate="0"
  5023. for j in $CFLAGS; do
  5024. if test "x$i" = "x$j"; then
  5025. apr_addto_duplicate="1"
  5026. break
  5027. fi
  5028. done
  5029. if test $apr_addto_duplicate = "0"; then
  5030. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  5031. CFLAGS="$CFLAGS $i"
  5032. fi
  5033. done
  5034. fi
  5035. fi
  5036. if test -z "$apr_sysvsem_is_global"; then
  5037. test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
  5038. apr_sysvsem_is_global="yes"
  5039. fi
  5040. if test -z "$apr_lock_method"; then
  5041. test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
  5042. apr_lock_method="USE_SYSVSEM_SERIALIZE"
  5043. fi
  5044. case $host in
  5045. *-ibm-aix3* | *-ibm-aix4.1.*)
  5046. ;;
  5047. *)
  5048. if test "x$LDFLAGS" = "x"; then
  5049. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,-brtl\""
  5050. LDFLAGS="-Wl,-brtl"
  5051. else
  5052. apr_addto_bugger="-Wl,-brtl"
  5053. for i in $apr_addto_bugger; do
  5054. apr_addto_duplicate="0"
  5055. for j in $LDFLAGS; do
  5056. if test "x$i" = "x$j"; then
  5057. apr_addto_duplicate="1"
  5058. break
  5059. fi
  5060. done
  5061. if test $apr_addto_duplicate = "0"; then
  5062. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  5063. LDFLAGS="$LDFLAGS $i"
  5064. fi
  5065. done
  5066. fi
  5067. ;;
  5068. esac
  5069. ;;
  5070. *-apollo-*)
  5071. if test "x$CPPFLAGS" = "x"; then
  5072. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPOLLO\""
  5073. CPPFLAGS="-DAPOLLO"
  5074. else
  5075. apr_addto_bugger="-DAPOLLO"
  5076. for i in $apr_addto_bugger; do
  5077. apr_addto_duplicate="0"
  5078. for j in $CPPFLAGS; do
  5079. if test "x$i" = "x$j"; then
  5080. apr_addto_duplicate="1"
  5081. break
  5082. fi
  5083. done
  5084. if test $apr_addto_duplicate = "0"; then
  5085. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5086. CPPFLAGS="$CPPFLAGS $i"
  5087. fi
  5088. done
  5089. fi
  5090. ;;
  5091. *-dg-dgux*)
  5092. if test "x$CPPFLAGS" = "x"; then
  5093. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDGUX\""
  5094. CPPFLAGS="-DDGUX"
  5095. else
  5096. apr_addto_bugger="-DDGUX"
  5097. for i in $apr_addto_bugger; do
  5098. apr_addto_duplicate="0"
  5099. for j in $CPPFLAGS; do
  5100. if test "x$i" = "x$j"; then
  5101. apr_addto_duplicate="1"
  5102. break
  5103. fi
  5104. done
  5105. if test $apr_addto_duplicate = "0"; then
  5106. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5107. CPPFLAGS="$CPPFLAGS $i"
  5108. fi
  5109. done
  5110. fi
  5111. ;;
  5112. *-os2*)
  5113. test "x$silent" != "xyes" && echo " forcing SHELL to \"sh\""
  5114. SHELL="sh"
  5115. if test -z "$apr_gethostbyname_is_thread_safe"; then
  5116. test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
  5117. apr_gethostbyname_is_thread_safe="yes"
  5118. fi
  5119. if test -z "$apr_gethostbyaddr_is_thread_safe"; then
  5120. test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
  5121. apr_gethostbyaddr_is_thread_safe="yes"
  5122. fi
  5123. if test -z "$apr_getservbyname_is_thread_safe"; then
  5124. test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
  5125. apr_getservbyname_is_thread_safe="yes"
  5126. fi
  5127. ;;
  5128. *-hi-hiux)
  5129. if test "x$CPPFLAGS" = "x"; then
  5130. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHIUX\""
  5131. CPPFLAGS="-DHIUX"
  5132. else
  5133. apr_addto_bugger="-DHIUX"
  5134. for i in $apr_addto_bugger; do
  5135. apr_addto_duplicate="0"
  5136. for j in $CPPFLAGS; do
  5137. if test "x$i" = "x$j"; then
  5138. apr_addto_duplicate="1"
  5139. break
  5140. fi
  5141. done
  5142. if test $apr_addto_duplicate = "0"; then
  5143. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5144. CPPFLAGS="$CPPFLAGS $i"
  5145. fi
  5146. done
  5147. fi
  5148. ;;
  5149. *-hp-hpux11.*)
  5150. if test "x$CPPFLAGS" = "x"; then
  5151. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
  5152. CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
  5153. else
  5154. apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
  5155. for i in $apr_addto_bugger; do
  5156. apr_addto_duplicate="0"
  5157. for j in $CPPFLAGS; do
  5158. if test "x$i" = "x$j"; then
  5159. apr_addto_duplicate="1"
  5160. break
  5161. fi
  5162. done
  5163. if test $apr_addto_duplicate = "0"; then
  5164. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5165. CPPFLAGS="$CPPFLAGS $i"
  5166. fi
  5167. done
  5168. fi
  5169. ;;
  5170. *-hp-hpux10.*)
  5171. case $host in
  5172. *-hp-hpux10.01)
  5173. if test "x$CPPFLAGS" = "x"; then
  5174. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
  5175. CPPFLAGS="-DSELECT_NEEDS_CAST"
  5176. else
  5177. apr_addto_bugger="-DSELECT_NEEDS_CAST"
  5178. for i in $apr_addto_bugger; do
  5179. apr_addto_duplicate="0"
  5180. for j in $CPPFLAGS; do
  5181. if test "x$i" = "x$j"; then
  5182. apr_addto_duplicate="1"
  5183. break
  5184. fi
  5185. done
  5186. if test $apr_addto_duplicate = "0"; then
  5187. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5188. CPPFLAGS="$CPPFLAGS $i"
  5189. fi
  5190. done
  5191. fi
  5192. ;;
  5193. esac
  5194. if test "x$CPPFLAGS" = "x"; then
  5195. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT\""
  5196. CPPFLAGS="-D_REENTRANT"
  5197. else
  5198. apr_addto_bugger="-D_REENTRANT"
  5199. for i in $apr_addto_bugger; do
  5200. apr_addto_duplicate="0"
  5201. for j in $CPPFLAGS; do
  5202. if test "x$i" = "x$j"; then
  5203. apr_addto_duplicate="1"
  5204. break
  5205. fi
  5206. done
  5207. if test $apr_addto_duplicate = "0"; then
  5208. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5209. CPPFLAGS="$CPPFLAGS $i"
  5210. fi
  5211. done
  5212. fi
  5213. ;;
  5214. *-hp-hpux*)
  5215. if test "x$CPPFLAGS" = "x"; then
  5216. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
  5217. CPPFLAGS="-DHPUX -D_REENTRANT"
  5218. else
  5219. apr_addto_bugger="-DHPUX -D_REENTRANT"
  5220. for i in $apr_addto_bugger; do
  5221. apr_addto_duplicate="0"
  5222. for j in $CPPFLAGS; do
  5223. if test "x$i" = "x$j"; then
  5224. apr_addto_duplicate="1"
  5225. break
  5226. fi
  5227. done
  5228. if test $apr_addto_duplicate = "0"; then
  5229. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5230. CPPFLAGS="$CPPFLAGS $i"
  5231. fi
  5232. done
  5233. fi
  5234. ;;
  5235. *-linux*)
  5236. case `uname -r` in
  5237. 2.* )
  5238. if test "x$CPPFLAGS" = "x"; then
  5239. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DLINUX=2\""
  5240. CPPFLAGS="-DLINUX=2"
  5241. else
  5242. apr_addto_bugger="-DLINUX=2"
  5243. for i in $apr_addto_bugger; do
  5244. apr_addto_duplicate="0"
  5245. for j in $CPPFLAGS; do
  5246. if test "x$i" = "x$j"; then
  5247. apr_addto_duplicate="1"
  5248. break
  5249. fi
  5250. done
  5251. if test $apr_addto_duplicate = "0"; then
  5252. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5253. CPPFLAGS="$CPPFLAGS $i"
  5254. fi
  5255. done
  5256. fi
  5257. ;;
  5258. 1.* )
  5259. if test "x$CPPFLAGS" = "x"; then
  5260. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DLINUX=1\""
  5261. CPPFLAGS="-DLINUX=1"
  5262. else
  5263. apr_addto_bugger="-DLINUX=1"
  5264. for i in $apr_addto_bugger; do
  5265. apr_addto_duplicate="0"
  5266. for j in $CPPFLAGS; do
  5267. if test "x$i" = "x$j"; then
  5268. apr_addto_duplicate="1"
  5269. break
  5270. fi
  5271. done
  5272. if test $apr_addto_duplicate = "0"; then
  5273. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5274. CPPFLAGS="$CPPFLAGS $i"
  5275. fi
  5276. done
  5277. fi
  5278. ;;
  5279. * )
  5280. ;;
  5281. esac
  5282. if test "x$CPPFLAGS" = "x"; then
  5283. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
  5284. CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
  5285. else
  5286. apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
  5287. for i in $apr_addto_bugger; do
  5288. apr_addto_duplicate="0"
  5289. for j in $CPPFLAGS; do
  5290. if test "x$i" = "x$j"; then
  5291. apr_addto_duplicate="1"
  5292. break
  5293. fi
  5294. done
  5295. if test $apr_addto_duplicate = "0"; then
  5296. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5297. CPPFLAGS="$CPPFLAGS $i"
  5298. fi
  5299. done
  5300. fi
  5301. ;;
  5302. *-GNU*)
  5303. if test "x$CPPFLAGS" = "x"; then
  5304. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHURD -D_GNU_SOURCE\""
  5305. CPPFLAGS="-DHURD -D_GNU_SOURCE"
  5306. else
  5307. apr_addto_bugger="-DHURD -D_GNU_SOURCE"
  5308. for i in $apr_addto_bugger; do
  5309. apr_addto_duplicate="0"
  5310. for j in $CPPFLAGS; do
  5311. if test "x$i" = "x$j"; then
  5312. apr_addto_duplicate="1"
  5313. break
  5314. fi
  5315. done
  5316. if test $apr_addto_duplicate = "0"; then
  5317. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5318. CPPFLAGS="$CPPFLAGS $i"
  5319. fi
  5320. done
  5321. fi
  5322. ;;
  5323. *-lynx-lynxos)
  5324. if test "x$CPPFLAGS" = "x"; then
  5325. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
  5326. CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
  5327. else
  5328. apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
  5329. for i in $apr_addto_bugger; do
  5330. apr_addto_duplicate="0"
  5331. for j in $CPPFLAGS; do
  5332. if test "x$i" = "x$j"; then
  5333. apr_addto_duplicate="1"
  5334. break
  5335. fi
  5336. done
  5337. if test $apr_addto_duplicate = "0"; then
  5338. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5339. CPPFLAGS="$CPPFLAGS $i"
  5340. fi
  5341. done
  5342. fi
  5343. if test "x$LIBS" = "x"; then
  5344. test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd\""
  5345. LIBS="-lbsd"
  5346. else
  5347. apr_addto_bugger="-lbsd"
  5348. for i in $apr_addto_bugger; do
  5349. apr_addto_duplicate="0"
  5350. for j in $LIBS; do
  5351. if test "x$i" = "x$j"; then
  5352. apr_addto_duplicate="1"
  5353. break
  5354. fi
  5355. done
  5356. if test $apr_addto_duplicate = "0"; then
  5357. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  5358. LIBS="$LIBS $i"
  5359. fi
  5360. done
  5361. fi
  5362. ;;
  5363. *486-*-bsdi*)
  5364. if test "x$CFLAGS" = "x"; then
  5365. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-m486\""
  5366. CFLAGS="-m486"
  5367. else
  5368. apr_addto_bugger="-m486"
  5369. for i in $apr_addto_bugger; do
  5370. apr_addto_duplicate="0"
  5371. for j in $CFLAGS; do
  5372. if test "x$i" = "x$j"; then
  5373. apr_addto_duplicate="1"
  5374. break
  5375. fi
  5376. done
  5377. if test $apr_addto_duplicate = "0"; then
  5378. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  5379. CFLAGS="$CFLAGS $i"
  5380. fi
  5381. done
  5382. fi
  5383. ;;
  5384. *-*-bsdi*)
  5385. case $host in
  5386. *bsdi4.1)
  5387. if test "x$CFLAGS" = "x"; then
  5388. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-D_REENTRANT\""
  5389. CFLAGS="-D_REENTRANT"
  5390. else
  5391. apr_addto_bugger="-D_REENTRANT"
  5392. for i in $apr_addto_bugger; do
  5393. apr_addto_duplicate="0"
  5394. for j in $CFLAGS; do
  5395. if test "x$i" = "x$j"; then
  5396. apr_addto_duplicate="1"
  5397. break
  5398. fi
  5399. done
  5400. if test $apr_addto_duplicate = "0"; then
  5401. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  5402. CFLAGS="$CFLAGS $i"
  5403. fi
  5404. done
  5405. fi
  5406. ;;
  5407. esac
  5408. ;;
  5409. *-openbsd*)
  5410. if test "x$CPPFLAGS" = "x"; then
  5411. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREADS\""
  5412. CPPFLAGS="-D_POSIX_THREADS"
  5413. else
  5414. apr_addto_bugger="-D_POSIX_THREADS"
  5415. for i in $apr_addto_bugger; do
  5416. apr_addto_duplicate="0"
  5417. for j in $CPPFLAGS; do
  5418. if test "x$i" = "x$j"; then
  5419. apr_addto_duplicate="1"
  5420. break
  5421. fi
  5422. done
  5423. if test $apr_addto_duplicate = "0"; then
  5424. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5425. CPPFLAGS="$CPPFLAGS $i"
  5426. fi
  5427. done
  5428. fi
  5429. # binding to an ephemeral port fails on OpenBSD so override
  5430. # the test for O_NONBLOCK inheritance across accept().
  5431. if test -z "$ac_cv_o_nonblock_inherited"; then
  5432. test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
  5433. ac_cv_o_nonblock_inherited="yes"
  5434. fi
  5435. ;;
  5436. *-netbsd*)
  5437. if test "x$CPPFLAGS" = "x"; then
  5438. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNETBSD\""
  5439. CPPFLAGS="-DNETBSD"
  5440. else
  5441. apr_addto_bugger="-DNETBSD"
  5442. for i in $apr_addto_bugger; do
  5443. apr_addto_duplicate="0"
  5444. for j in $CPPFLAGS; do
  5445. if test "x$i" = "x$j"; then
  5446. apr_addto_duplicate="1"
  5447. break
  5448. fi
  5449. done
  5450. if test $apr_addto_duplicate = "0"; then
  5451. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5452. CPPFLAGS="$CPPFLAGS $i"
  5453. fi
  5454. done
  5455. fi
  5456. # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
  5457. if test -z "$ac_cv_o_nonblock_inherited"; then
  5458. test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
  5459. ac_cv_o_nonblock_inherited="yes"
  5460. fi
  5461. ;;
  5462. *-freebsd*)
  5463. if test -z "$apr_lock_method"; then
  5464. test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
  5465. apr_lock_method="USE_FLOCK_SERIALIZE"
  5466. fi
  5467. if test -x /sbin/sysctl; then
  5468. os_version=`/sbin/sysctl -n kern.osreldate`
  5469. else
  5470. os_version=000000
  5471. fi
  5472. # 502102 is when libc_r switched to libpthread (aka libkse).
  5473. if test $os_version -ge "502102"; then
  5474. apr_cv_pthreads_cflags="none"
  5475. apr_cv_pthreads_lib="-lpthread"
  5476. else
  5477. if test "x$CPPFLAGS" = "x"; then
  5478. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
  5479. CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
  5480. else
  5481. apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
  5482. for i in $apr_addto_bugger; do
  5483. apr_addto_duplicate="0"
  5484. for j in $CPPFLAGS; do
  5485. if test "x$i" = "x$j"; then
  5486. apr_addto_duplicate="1"
  5487. break
  5488. fi
  5489. done
  5490. if test $apr_addto_duplicate = "0"; then
  5491. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5492. CPPFLAGS="$CPPFLAGS $i"
  5493. fi
  5494. done
  5495. fi
  5496. if test -z "$enable_threads"; then
  5497. test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
  5498. enable_threads="no"
  5499. fi
  5500. fi
  5501. # prevent use of KQueue before FreeBSD 4.8
  5502. if test $os_version -lt "480000"; then
  5503. if test -z "$ac_cv_func_kqueue"; then
  5504. test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
  5505. ac_cv_func_kqueue="no"
  5506. fi
  5507. fi
  5508. ;;
  5509. *-k*bsd*-gnu)
  5510. if test "x$CPPFLAGS" = "x"; then
  5511. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
  5512. CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
  5513. else
  5514. apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
  5515. for i in $apr_addto_bugger; do
  5516. apr_addto_duplicate="0"
  5517. for j in $CPPFLAGS; do
  5518. if test "x$i" = "x$j"; then
  5519. apr_addto_duplicate="1"
  5520. break
  5521. fi
  5522. done
  5523. if test $apr_addto_duplicate = "0"; then
  5524. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5525. CPPFLAGS="$CPPFLAGS $i"
  5526. fi
  5527. done
  5528. fi
  5529. ;;
  5530. *-next-nextstep*)
  5531. if test -z "$CFLAGS"; then
  5532. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
  5533. CFLAGS="-O"
  5534. fi
  5535. if test "x$CPPFLAGS" = "x"; then
  5536. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
  5537. CPPFLAGS="-DNEXT"
  5538. else
  5539. apr_addto_bugger="-DNEXT"
  5540. for i in $apr_addto_bugger; do
  5541. apr_addto_duplicate="0"
  5542. for j in $CPPFLAGS; do
  5543. if test "x$i" = "x$j"; then
  5544. apr_addto_duplicate="1"
  5545. break
  5546. fi
  5547. done
  5548. if test $apr_addto_duplicate = "0"; then
  5549. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5550. CPPFLAGS="$CPPFLAGS $i"
  5551. fi
  5552. done
  5553. fi
  5554. ;;
  5555. *-next-openstep*)
  5556. if test -z "$CFLAGS"; then
  5557. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
  5558. CFLAGS="-O"
  5559. fi
  5560. if test "x$CPPFLAGS" = "x"; then
  5561. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
  5562. CPPFLAGS="-DNEXT"
  5563. else
  5564. apr_addto_bugger="-DNEXT"
  5565. for i in $apr_addto_bugger; do
  5566. apr_addto_duplicate="0"
  5567. for j in $CPPFLAGS; do
  5568. if test "x$i" = "x$j"; then
  5569. apr_addto_duplicate="1"
  5570. break
  5571. fi
  5572. done
  5573. if test $apr_addto_duplicate = "0"; then
  5574. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5575. CPPFLAGS="$CPPFLAGS $i"
  5576. fi
  5577. done
  5578. fi
  5579. ;;
  5580. *-apple-rhapsody*)
  5581. if test "x$CPPFLAGS" = "x"; then
  5582. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRHAPSODY\""
  5583. CPPFLAGS="-DRHAPSODY"
  5584. else
  5585. apr_addto_bugger="-DRHAPSODY"
  5586. for i in $apr_addto_bugger; do
  5587. apr_addto_duplicate="0"
  5588. for j in $CPPFLAGS; do
  5589. if test "x$i" = "x$j"; then
  5590. apr_addto_duplicate="1"
  5591. break
  5592. fi
  5593. done
  5594. if test $apr_addto_duplicate = "0"; then
  5595. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5596. CPPFLAGS="$CPPFLAGS $i"
  5597. fi
  5598. done
  5599. fi
  5600. ;;
  5601. *-apple-darwin*)
  5602. if test "x$CPPFLAGS" = "x"; then
  5603. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp\""
  5604. CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
  5605. else
  5606. apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
  5607. for i in $apr_addto_bugger; do
  5608. apr_addto_duplicate="0"
  5609. for j in $CPPFLAGS; do
  5610. if test "x$i" = "x$j"; then
  5611. apr_addto_duplicate="1"
  5612. break
  5613. fi
  5614. done
  5615. if test $apr_addto_duplicate = "0"; then
  5616. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5617. CPPFLAGS="$CPPFLAGS $i"
  5618. fi
  5619. done
  5620. fi
  5621. if test -z "$apr_posixsem_is_global"; then
  5622. test "x$silent" != "xyes" && echo " setting apr_posixsem_is_global to \"yes\""
  5623. apr_posixsem_is_global="yes"
  5624. fi
  5625. case $host in
  5626. *-apple-darwin[1-9].*)
  5627. # APR's use of kqueue has triggered kernel panics for some
  5628. # 10.5.x (Darwin 9.x) users when running the entire test suite.
  5629. # In 10.4.x, use of kqueue would cause the socket tests to hang.
  5630. # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
  5631. if test -z "$ac_cv_func_kqueue"; then
  5632. test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
  5633. ac_cv_func_kqueue="no"
  5634. fi
  5635. if test -z "$ac_cv_func_poll"; then
  5636. test "x$silent" != "xyes" && echo " setting ac_cv_func_poll to \"no\""
  5637. ac_cv_func_poll="no"
  5638. fi
  5639. # See issue 34332
  5640. ;;
  5641. *-apple-darwin1[01].*)
  5642. if test "x$CPPFLAGS" = "x"; then
  5643. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN_10\""
  5644. CPPFLAGS="-DDARWIN_10"
  5645. else
  5646. apr_addto_bugger="-DDARWIN_10"
  5647. for i in $apr_addto_bugger; do
  5648. apr_addto_duplicate="0"
  5649. for j in $CPPFLAGS; do
  5650. if test "x$i" = "x$j"; then
  5651. apr_addto_duplicate="1"
  5652. break
  5653. fi
  5654. done
  5655. if test $apr_addto_duplicate = "0"; then
  5656. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5657. CPPFLAGS="$CPPFLAGS $i"
  5658. fi
  5659. done
  5660. fi
  5661. ;;
  5662. esac
  5663. ;;
  5664. *-dec-osf*)
  5665. if test "x$CPPFLAGS" = "x"; then
  5666. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOSF1\""
  5667. CPPFLAGS="-DOSF1"
  5668. else
  5669. apr_addto_bugger="-DOSF1"
  5670. for i in $apr_addto_bugger; do
  5671. apr_addto_duplicate="0"
  5672. for j in $CPPFLAGS; do
  5673. if test "x$i" = "x$j"; then
  5674. apr_addto_duplicate="1"
  5675. break
  5676. fi
  5677. done
  5678. if test $apr_addto_duplicate = "0"; then
  5679. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5680. CPPFLAGS="$CPPFLAGS $i"
  5681. fi
  5682. done
  5683. fi
  5684. # process-shared mutexes don't seem to work in Tru64 5.0
  5685. if test -z "$apr_cv_process_shared_works"; then
  5686. test "x$silent" != "xyes" && echo " setting apr_cv_process_shared_works to \"no\""
  5687. apr_cv_process_shared_works="no"
  5688. fi
  5689. ;;
  5690. *-nto-qnx*)
  5691. ;;
  5692. *-qnx)
  5693. if test "x$CPPFLAGS" = "x"; then
  5694. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
  5695. CPPFLAGS="-DQNX"
  5696. else
  5697. apr_addto_bugger="-DQNX"
  5698. for i in $apr_addto_bugger; do
  5699. apr_addto_duplicate="0"
  5700. for j in $CPPFLAGS; do
  5701. if test "x$i" = "x$j"; then
  5702. apr_addto_duplicate="1"
  5703. break
  5704. fi
  5705. done
  5706. if test $apr_addto_duplicate = "0"; then
  5707. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5708. CPPFLAGS="$CPPFLAGS $i"
  5709. fi
  5710. done
  5711. fi
  5712. if test "x$LIBS" = "x"; then
  5713. test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
  5714. LIBS="-N128k -lunix"
  5715. else
  5716. apr_addto_bugger="-N128k -lunix"
  5717. for i in $apr_addto_bugger; do
  5718. apr_addto_duplicate="0"
  5719. for j in $LIBS; do
  5720. if test "x$i" = "x$j"; then
  5721. apr_addto_duplicate="1"
  5722. break
  5723. fi
  5724. done
  5725. if test $apr_addto_duplicate = "0"; then
  5726. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  5727. LIBS="$LIBS $i"
  5728. fi
  5729. done
  5730. fi
  5731. ;;
  5732. *-qnx32)
  5733. if test "x$CPPFLAGS" = "x"; then
  5734. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
  5735. CPPFLAGS="-DQNX"
  5736. else
  5737. apr_addto_bugger="-DQNX"
  5738. for i in $apr_addto_bugger; do
  5739. apr_addto_duplicate="0"
  5740. for j in $CPPFLAGS; do
  5741. if test "x$i" = "x$j"; then
  5742. apr_addto_duplicate="1"
  5743. break
  5744. fi
  5745. done
  5746. if test $apr_addto_duplicate = "0"; then
  5747. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5748. CPPFLAGS="$CPPFLAGS $i"
  5749. fi
  5750. done
  5751. fi
  5752. if test "x$CFLAGS" = "x"; then
  5753. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-mf -3\""
  5754. CFLAGS="-mf -3"
  5755. else
  5756. apr_addto_bugger="-mf -3"
  5757. for i in $apr_addto_bugger; do
  5758. apr_addto_duplicate="0"
  5759. for j in $CFLAGS; do
  5760. if test "x$i" = "x$j"; then
  5761. apr_addto_duplicate="1"
  5762. break
  5763. fi
  5764. done
  5765. if test $apr_addto_duplicate = "0"; then
  5766. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  5767. CFLAGS="$CFLAGS $i"
  5768. fi
  5769. done
  5770. fi
  5771. if test "x$LIBS" = "x"; then
  5772. test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
  5773. LIBS="-N128k -lunix"
  5774. else
  5775. apr_addto_bugger="-N128k -lunix"
  5776. for i in $apr_addto_bugger; do
  5777. apr_addto_duplicate="0"
  5778. for j in $LIBS; do
  5779. if test "x$i" = "x$j"; then
  5780. apr_addto_duplicate="1"
  5781. break
  5782. fi
  5783. done
  5784. if test $apr_addto_duplicate = "0"; then
  5785. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  5786. LIBS="$LIBS $i"
  5787. fi
  5788. done
  5789. fi
  5790. ;;
  5791. *-isc4*)
  5792. if test "x$CPPFLAGS" = "x"; then
  5793. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-posix -DISC\""
  5794. CPPFLAGS="-posix -DISC"
  5795. else
  5796. apr_addto_bugger="-posix -DISC"
  5797. for i in $apr_addto_bugger; do
  5798. apr_addto_duplicate="0"
  5799. for j in $CPPFLAGS; do
  5800. if test "x$i" = "x$j"; then
  5801. apr_addto_duplicate="1"
  5802. break
  5803. fi
  5804. done
  5805. if test $apr_addto_duplicate = "0"; then
  5806. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5807. CPPFLAGS="$CPPFLAGS $i"
  5808. fi
  5809. done
  5810. fi
  5811. if test "x$LDFLAGS" = "x"; then
  5812. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-posix\""
  5813. LDFLAGS="-posix"
  5814. else
  5815. apr_addto_bugger="-posix"
  5816. for i in $apr_addto_bugger; do
  5817. apr_addto_duplicate="0"
  5818. for j in $LDFLAGS; do
  5819. if test "x$i" = "x$j"; then
  5820. apr_addto_duplicate="1"
  5821. break
  5822. fi
  5823. done
  5824. if test $apr_addto_duplicate = "0"; then
  5825. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  5826. LDFLAGS="$LDFLAGS $i"
  5827. fi
  5828. done
  5829. fi
  5830. if test "x$LIBS" = "x"; then
  5831. test "x$silent" != "xyes" && echo " setting LIBS to \"-linet\""
  5832. LIBS="-linet"
  5833. else
  5834. apr_addto_bugger="-linet"
  5835. for i in $apr_addto_bugger; do
  5836. apr_addto_duplicate="0"
  5837. for j in $LIBS; do
  5838. if test "x$i" = "x$j"; then
  5839. apr_addto_duplicate="1"
  5840. break
  5841. fi
  5842. done
  5843. if test $apr_addto_duplicate = "0"; then
  5844. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  5845. LIBS="$LIBS $i"
  5846. fi
  5847. done
  5848. fi
  5849. ;;
  5850. *-sco3.2v[234]*)
  5851. if test "x$CPPFLAGS" = "x"; then
  5852. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
  5853. CPPFLAGS="-DSCO -D_REENTRANT"
  5854. else
  5855. apr_addto_bugger="-DSCO -D_REENTRANT"
  5856. for i in $apr_addto_bugger; do
  5857. apr_addto_duplicate="0"
  5858. for j in $CPPFLAGS; do
  5859. if test "x$i" = "x$j"; then
  5860. apr_addto_duplicate="1"
  5861. break
  5862. fi
  5863. done
  5864. if test $apr_addto_duplicate = "0"; then
  5865. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5866. CPPFLAGS="$CPPFLAGS $i"
  5867. fi
  5868. done
  5869. fi
  5870. if test "$GCC" = "no"; then
  5871. if test "x$CFLAGS" = "x"; then
  5872. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Oacgiltz\""
  5873. CFLAGS="-Oacgiltz"
  5874. else
  5875. apr_addto_bugger="-Oacgiltz"
  5876. for i in $apr_addto_bugger; do
  5877. apr_addto_duplicate="0"
  5878. for j in $CFLAGS; do
  5879. if test "x$i" = "x$j"; then
  5880. apr_addto_duplicate="1"
  5881. break
  5882. fi
  5883. done
  5884. if test $apr_addto_duplicate = "0"; then
  5885. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  5886. CFLAGS="$CFLAGS $i"
  5887. fi
  5888. done
  5889. fi
  5890. fi
  5891. if test "x$LIBS" = "x"; then
  5892. test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
  5893. LIBS="-lPW -lmalloc"
  5894. else
  5895. apr_addto_bugger="-lPW -lmalloc"
  5896. for i in $apr_addto_bugger; do
  5897. apr_addto_duplicate="0"
  5898. for j in $LIBS; do
  5899. if test "x$i" = "x$j"; then
  5900. apr_addto_duplicate="1"
  5901. break
  5902. fi
  5903. done
  5904. if test $apr_addto_duplicate = "0"; then
  5905. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  5906. LIBS="$LIBS $i"
  5907. fi
  5908. done
  5909. fi
  5910. ;;
  5911. *-sco3.2v5*)
  5912. if test "x$CPPFLAGS" = "x"; then
  5913. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
  5914. CPPFLAGS="-DSCO5 -D_REENTRANT"
  5915. else
  5916. apr_addto_bugger="-DSCO5 -D_REENTRANT"
  5917. for i in $apr_addto_bugger; do
  5918. apr_addto_duplicate="0"
  5919. for j in $CPPFLAGS; do
  5920. if test "x$i" = "x$j"; then
  5921. apr_addto_duplicate="1"
  5922. break
  5923. fi
  5924. done
  5925. if test $apr_addto_duplicate = "0"; then
  5926. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5927. CPPFLAGS="$CPPFLAGS $i"
  5928. fi
  5929. done
  5930. fi
  5931. ;;
  5932. *-sco_sv*|*-SCO_SV*)
  5933. if test "x$CPPFLAGS" = "x"; then
  5934. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
  5935. CPPFLAGS="-DSCO -D_REENTRANT"
  5936. else
  5937. apr_addto_bugger="-DSCO -D_REENTRANT"
  5938. for i in $apr_addto_bugger; do
  5939. apr_addto_duplicate="0"
  5940. for j in $CPPFLAGS; do
  5941. if test "x$i" = "x$j"; then
  5942. apr_addto_duplicate="1"
  5943. break
  5944. fi
  5945. done
  5946. if test $apr_addto_duplicate = "0"; then
  5947. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5948. CPPFLAGS="$CPPFLAGS $i"
  5949. fi
  5950. done
  5951. fi
  5952. if test "x$LIBS" = "x"; then
  5953. test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
  5954. LIBS="-lPW -lmalloc"
  5955. else
  5956. apr_addto_bugger="-lPW -lmalloc"
  5957. for i in $apr_addto_bugger; do
  5958. apr_addto_duplicate="0"
  5959. for j in $LIBS; do
  5960. if test "x$i" = "x$j"; then
  5961. apr_addto_duplicate="1"
  5962. break
  5963. fi
  5964. done
  5965. if test $apr_addto_duplicate = "0"; then
  5966. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  5967. LIBS="$LIBS $i"
  5968. fi
  5969. done
  5970. fi
  5971. ;;
  5972. *-solaris2*)
  5973. PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
  5974. if test "x$CPPFLAGS" = "x"; then
  5975. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
  5976. CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
  5977. else
  5978. apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
  5979. for i in $apr_addto_bugger; do
  5980. apr_addto_duplicate="0"
  5981. for j in $CPPFLAGS; do
  5982. if test "x$i" = "x$j"; then
  5983. apr_addto_duplicate="1"
  5984. break
  5985. fi
  5986. done
  5987. if test $apr_addto_duplicate = "0"; then
  5988. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  5989. CPPFLAGS="$CPPFLAGS $i"
  5990. fi
  5991. done
  5992. fi
  5993. if test $PLATOSVERS -ge 10; then
  5994. if test -z "$apr_lock_method"; then
  5995. test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
  5996. apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
  5997. fi
  5998. else
  5999. if test -z "$apr_lock_method"; then
  6000. test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
  6001. apr_lock_method="USE_FCNTL_SERIALIZE"
  6002. fi
  6003. fi
  6004. # readdir64_r error handling seems broken on Solaris (at least
  6005. # up till 2.8) -- it will return -1 at end-of-directory.
  6006. if test -z "$ac_cv_func_readdir64_r"; then
  6007. test "x$silent" != "xyes" && echo " setting ac_cv_func_readdir64_r to \"no\""
  6008. ac_cv_func_readdir64_r="no"
  6009. fi
  6010. ;;
  6011. *-sunos4*)
  6012. if test "x$CPPFLAGS" = "x"; then
  6013. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSUNOS4\""
  6014. CPPFLAGS="-DSUNOS4"
  6015. else
  6016. apr_addto_bugger="-DSUNOS4"
  6017. for i in $apr_addto_bugger; do
  6018. apr_addto_duplicate="0"
  6019. for j in $CPPFLAGS; do
  6020. if test "x$i" = "x$j"; then
  6021. apr_addto_duplicate="1"
  6022. break
  6023. fi
  6024. done
  6025. if test $apr_addto_duplicate = "0"; then
  6026. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6027. CPPFLAGS="$CPPFLAGS $i"
  6028. fi
  6029. done
  6030. fi
  6031. ;;
  6032. *-unixware1)
  6033. if test "x$CPPFLAGS" = "x"; then
  6034. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=100\""
  6035. CPPFLAGS="-DUW=100"
  6036. else
  6037. apr_addto_bugger="-DUW=100"
  6038. for i in $apr_addto_bugger; do
  6039. apr_addto_duplicate="0"
  6040. for j in $CPPFLAGS; do
  6041. if test "x$i" = "x$j"; then
  6042. apr_addto_duplicate="1"
  6043. break
  6044. fi
  6045. done
  6046. if test $apr_addto_duplicate = "0"; then
  6047. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6048. CPPFLAGS="$CPPFLAGS $i"
  6049. fi
  6050. done
  6051. fi
  6052. ;;
  6053. *-unixware2)
  6054. if test "x$CPPFLAGS" = "x"; then
  6055. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=200\""
  6056. CPPFLAGS="-DUW=200"
  6057. else
  6058. apr_addto_bugger="-DUW=200"
  6059. for i in $apr_addto_bugger; do
  6060. apr_addto_duplicate="0"
  6061. for j in $CPPFLAGS; do
  6062. if test "x$i" = "x$j"; then
  6063. apr_addto_duplicate="1"
  6064. break
  6065. fi
  6066. done
  6067. if test $apr_addto_duplicate = "0"; then
  6068. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6069. CPPFLAGS="$CPPFLAGS $i"
  6070. fi
  6071. done
  6072. fi
  6073. if test "x$LIBS" = "x"; then
  6074. test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
  6075. LIBS="-lgen"
  6076. else
  6077. apr_addto_bugger="-lgen"
  6078. for i in $apr_addto_bugger; do
  6079. apr_addto_duplicate="0"
  6080. for j in $LIBS; do
  6081. if test "x$i" = "x$j"; then
  6082. apr_addto_duplicate="1"
  6083. break
  6084. fi
  6085. done
  6086. if test $apr_addto_duplicate = "0"; then
  6087. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6088. LIBS="$LIBS $i"
  6089. fi
  6090. done
  6091. fi
  6092. ;;
  6093. *-unixware211)
  6094. if test "x$CPPFLAGS" = "x"; then
  6095. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=211\""
  6096. CPPFLAGS="-DUW=211"
  6097. else
  6098. apr_addto_bugger="-DUW=211"
  6099. for i in $apr_addto_bugger; do
  6100. apr_addto_duplicate="0"
  6101. for j in $CPPFLAGS; do
  6102. if test "x$i" = "x$j"; then
  6103. apr_addto_duplicate="1"
  6104. break
  6105. fi
  6106. done
  6107. if test $apr_addto_duplicate = "0"; then
  6108. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6109. CPPFLAGS="$CPPFLAGS $i"
  6110. fi
  6111. done
  6112. fi
  6113. if test "x$LIBS" = "x"; then
  6114. test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
  6115. LIBS="-lgen"
  6116. else
  6117. apr_addto_bugger="-lgen"
  6118. for i in $apr_addto_bugger; do
  6119. apr_addto_duplicate="0"
  6120. for j in $LIBS; do
  6121. if test "x$i" = "x$j"; then
  6122. apr_addto_duplicate="1"
  6123. break
  6124. fi
  6125. done
  6126. if test $apr_addto_duplicate = "0"; then
  6127. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6128. LIBS="$LIBS $i"
  6129. fi
  6130. done
  6131. fi
  6132. ;;
  6133. *-unixware212)
  6134. if test "x$CPPFLAGS" = "x"; then
  6135. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=212\""
  6136. CPPFLAGS="-DUW=212"
  6137. else
  6138. apr_addto_bugger="-DUW=212"
  6139. for i in $apr_addto_bugger; do
  6140. apr_addto_duplicate="0"
  6141. for j in $CPPFLAGS; do
  6142. if test "x$i" = "x$j"; then
  6143. apr_addto_duplicate="1"
  6144. break
  6145. fi
  6146. done
  6147. if test $apr_addto_duplicate = "0"; then
  6148. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6149. CPPFLAGS="$CPPFLAGS $i"
  6150. fi
  6151. done
  6152. fi
  6153. if test "x$LIBS" = "x"; then
  6154. test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
  6155. LIBS="-lgen"
  6156. else
  6157. apr_addto_bugger="-lgen"
  6158. for i in $apr_addto_bugger; do
  6159. apr_addto_duplicate="0"
  6160. for j in $LIBS; do
  6161. if test "x$i" = "x$j"; then
  6162. apr_addto_duplicate="1"
  6163. break
  6164. fi
  6165. done
  6166. if test $apr_addto_duplicate = "0"; then
  6167. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6168. LIBS="$LIBS $i"
  6169. fi
  6170. done
  6171. fi
  6172. ;;
  6173. *-unixware7)
  6174. if test "x$CPPFLAGS" = "x"; then
  6175. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=700\""
  6176. CPPFLAGS="-DUW=700"
  6177. else
  6178. apr_addto_bugger="-DUW=700"
  6179. for i in $apr_addto_bugger; do
  6180. apr_addto_duplicate="0"
  6181. for j in $CPPFLAGS; do
  6182. if test "x$i" = "x$j"; then
  6183. apr_addto_duplicate="1"
  6184. break
  6185. fi
  6186. done
  6187. if test $apr_addto_duplicate = "0"; then
  6188. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6189. CPPFLAGS="$CPPFLAGS $i"
  6190. fi
  6191. done
  6192. fi
  6193. if test "x$LIBS" = "x"; then
  6194. test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
  6195. LIBS="-lgen"
  6196. else
  6197. apr_addto_bugger="-lgen"
  6198. for i in $apr_addto_bugger; do
  6199. apr_addto_duplicate="0"
  6200. for j in $LIBS; do
  6201. if test "x$i" = "x$j"; then
  6202. apr_addto_duplicate="1"
  6203. break
  6204. fi
  6205. done
  6206. if test $apr_addto_duplicate = "0"; then
  6207. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6208. LIBS="$LIBS $i"
  6209. fi
  6210. done
  6211. fi
  6212. ;;
  6213. maxion-*-sysv4*)
  6214. if test "x$CPPFLAGS" = "x"; then
  6215. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
  6216. CPPFLAGS="-DSVR4"
  6217. else
  6218. apr_addto_bugger="-DSVR4"
  6219. for i in $apr_addto_bugger; do
  6220. apr_addto_duplicate="0"
  6221. for j in $CPPFLAGS; do
  6222. if test "x$i" = "x$j"; then
  6223. apr_addto_duplicate="1"
  6224. break
  6225. fi
  6226. done
  6227. if test $apr_addto_duplicate = "0"; then
  6228. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6229. CPPFLAGS="$CPPFLAGS $i"
  6230. fi
  6231. done
  6232. fi
  6233. if test "x$LIBS" = "x"; then
  6234. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -lgen\""
  6235. LIBS="-lc -lgen"
  6236. else
  6237. apr_addto_bugger="-lc -lgen"
  6238. for i in $apr_addto_bugger; do
  6239. apr_addto_duplicate="0"
  6240. for j in $LIBS; do
  6241. if test "x$i" = "x$j"; then
  6242. apr_addto_duplicate="1"
  6243. break
  6244. fi
  6245. done
  6246. if test $apr_addto_duplicate = "0"; then
  6247. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6248. LIBS="$LIBS $i"
  6249. fi
  6250. done
  6251. fi
  6252. ;;
  6253. *-*-powermax*)
  6254. if test "x$CPPFLAGS" = "x"; then
  6255. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
  6256. CPPFLAGS="-DSVR4"
  6257. else
  6258. apr_addto_bugger="-DSVR4"
  6259. for i in $apr_addto_bugger; do
  6260. apr_addto_duplicate="0"
  6261. for j in $CPPFLAGS; do
  6262. if test "x$i" = "x$j"; then
  6263. apr_addto_duplicate="1"
  6264. break
  6265. fi
  6266. done
  6267. if test $apr_addto_duplicate = "0"; then
  6268. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6269. CPPFLAGS="$CPPFLAGS $i"
  6270. fi
  6271. done
  6272. fi
  6273. if test "x$LIBS" = "x"; then
  6274. test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
  6275. LIBS="-lgen"
  6276. else
  6277. apr_addto_bugger="-lgen"
  6278. for i in $apr_addto_bugger; do
  6279. apr_addto_duplicate="0"
  6280. for j in $LIBS; do
  6281. if test "x$i" = "x$j"; then
  6282. apr_addto_duplicate="1"
  6283. break
  6284. fi
  6285. done
  6286. if test $apr_addto_duplicate = "0"; then
  6287. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6288. LIBS="$LIBS $i"
  6289. fi
  6290. done
  6291. fi
  6292. ;;
  6293. TPF)
  6294. if test "x$CPPFLAGS" = "x"; then
  6295. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
  6296. CPPFLAGS="-DTPF -D_POSIX_SOURCE"
  6297. else
  6298. apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
  6299. for i in $apr_addto_bugger; do
  6300. apr_addto_duplicate="0"
  6301. for j in $CPPFLAGS; do
  6302. if test "x$i" = "x$j"; then
  6303. apr_addto_duplicate="1"
  6304. break
  6305. fi
  6306. done
  6307. if test $apr_addto_duplicate = "0"; then
  6308. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6309. CPPFLAGS="$CPPFLAGS $i"
  6310. fi
  6311. done
  6312. fi
  6313. ;;
  6314. bs2000*-siemens-sysv*)
  6315. if test -z "$CFLAGS"; then
  6316. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
  6317. CFLAGS="-O"
  6318. fi
  6319. if test "x$CPPFLAGS" = "x"; then
  6320. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
  6321. CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
  6322. else
  6323. apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
  6324. for i in $apr_addto_bugger; do
  6325. apr_addto_duplicate="0"
  6326. for j in $CPPFLAGS; do
  6327. if test "x$i" = "x$j"; then
  6328. apr_addto_duplicate="1"
  6329. break
  6330. fi
  6331. done
  6332. if test $apr_addto_duplicate = "0"; then
  6333. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6334. CPPFLAGS="$CPPFLAGS $i"
  6335. fi
  6336. done
  6337. fi
  6338. if test "x$LIBS" = "x"; then
  6339. test "x$silent" != "xyes" && echo " setting LIBS to \"-lsocket\""
  6340. LIBS="-lsocket"
  6341. else
  6342. apr_addto_bugger="-lsocket"
  6343. for i in $apr_addto_bugger; do
  6344. apr_addto_duplicate="0"
  6345. for j in $LIBS; do
  6346. if test "x$i" = "x$j"; then
  6347. apr_addto_duplicate="1"
  6348. break
  6349. fi
  6350. done
  6351. if test $apr_addto_duplicate = "0"; then
  6352. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6353. LIBS="$LIBS $i"
  6354. fi
  6355. done
  6356. fi
  6357. if test -z "$enable_threads"; then
  6358. test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
  6359. enable_threads="no"
  6360. fi
  6361. ;;
  6362. *-siemens-sysv4*)
  6363. if test "x$CPPFLAGS" = "x"; then
  6364. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
  6365. CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
  6366. else
  6367. apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
  6368. for i in $apr_addto_bugger; do
  6369. apr_addto_duplicate="0"
  6370. for j in $CPPFLAGS; do
  6371. if test "x$i" = "x$j"; then
  6372. apr_addto_duplicate="1"
  6373. break
  6374. fi
  6375. done
  6376. if test $apr_addto_duplicate = "0"; then
  6377. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6378. CPPFLAGS="$CPPFLAGS $i"
  6379. fi
  6380. done
  6381. fi
  6382. if test "x$LIBS" = "x"; then
  6383. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
  6384. LIBS="-lc"
  6385. else
  6386. apr_addto_bugger="-lc"
  6387. for i in $apr_addto_bugger; do
  6388. apr_addto_duplicate="0"
  6389. for j in $LIBS; do
  6390. if test "x$i" = "x$j"; then
  6391. apr_addto_duplicate="1"
  6392. break
  6393. fi
  6394. done
  6395. if test $apr_addto_duplicate = "0"; then
  6396. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6397. LIBS="$LIBS $i"
  6398. fi
  6399. done
  6400. fi
  6401. ;;
  6402. pyramid-pyramid-svr4)
  6403. if test "x$CPPFLAGS" = "x"; then
  6404. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
  6405. CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
  6406. else
  6407. apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
  6408. for i in $apr_addto_bugger; do
  6409. apr_addto_duplicate="0"
  6410. for j in $CPPFLAGS; do
  6411. if test "x$i" = "x$j"; then
  6412. apr_addto_duplicate="1"
  6413. break
  6414. fi
  6415. done
  6416. if test $apr_addto_duplicate = "0"; then
  6417. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6418. CPPFLAGS="$CPPFLAGS $i"
  6419. fi
  6420. done
  6421. fi
  6422. if test "x$LIBS" = "x"; then
  6423. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
  6424. LIBS="-lc"
  6425. else
  6426. apr_addto_bugger="-lc"
  6427. for i in $apr_addto_bugger; do
  6428. apr_addto_duplicate="0"
  6429. for j in $LIBS; do
  6430. if test "x$i" = "x$j"; then
  6431. apr_addto_duplicate="1"
  6432. break
  6433. fi
  6434. done
  6435. if test $apr_addto_duplicate = "0"; then
  6436. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6437. LIBS="$LIBS $i"
  6438. fi
  6439. done
  6440. fi
  6441. ;;
  6442. DS/90\ 7000-*-sysv4*)
  6443. if test "x$CPPFLAGS" = "x"; then
  6444. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUXPDS\""
  6445. CPPFLAGS="-DUXPDS"
  6446. else
  6447. apr_addto_bugger="-DUXPDS"
  6448. for i in $apr_addto_bugger; do
  6449. apr_addto_duplicate="0"
  6450. for j in $CPPFLAGS; do
  6451. if test "x$i" = "x$j"; then
  6452. apr_addto_duplicate="1"
  6453. break
  6454. fi
  6455. done
  6456. if test $apr_addto_duplicate = "0"; then
  6457. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6458. CPPFLAGS="$CPPFLAGS $i"
  6459. fi
  6460. done
  6461. fi
  6462. ;;
  6463. *-tandem-sysv4*)
  6464. if test "x$CPPFLAGS" = "x"; then
  6465. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
  6466. CPPFLAGS="-DSVR4"
  6467. else
  6468. apr_addto_bugger="-DSVR4"
  6469. for i in $apr_addto_bugger; do
  6470. apr_addto_duplicate="0"
  6471. for j in $CPPFLAGS; do
  6472. if test "x$i" = "x$j"; then
  6473. apr_addto_duplicate="1"
  6474. break
  6475. fi
  6476. done
  6477. if test $apr_addto_duplicate = "0"; then
  6478. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6479. CPPFLAGS="$CPPFLAGS $i"
  6480. fi
  6481. done
  6482. fi
  6483. ;;
  6484. *-ncr-sysv4)
  6485. if test "x$CPPFLAGS" = "x"; then
  6486. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
  6487. CPPFLAGS="-DSVR4 -DMPRAS"
  6488. else
  6489. apr_addto_bugger="-DSVR4 -DMPRAS"
  6490. for i in $apr_addto_bugger; do
  6491. apr_addto_duplicate="0"
  6492. for j in $CPPFLAGS; do
  6493. if test "x$i" = "x$j"; then
  6494. apr_addto_duplicate="1"
  6495. break
  6496. fi
  6497. done
  6498. if test $apr_addto_duplicate = "0"; then
  6499. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6500. CPPFLAGS="$CPPFLAGS $i"
  6501. fi
  6502. done
  6503. fi
  6504. if test "x$LIBS" = "x"; then
  6505. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
  6506. LIBS="-lc -L/usr/ucblib -lucb"
  6507. else
  6508. apr_addto_bugger="-lc -L/usr/ucblib -lucb"
  6509. for i in $apr_addto_bugger; do
  6510. apr_addto_duplicate="0"
  6511. for j in $LIBS; do
  6512. if test "x$i" = "x$j"; then
  6513. apr_addto_duplicate="1"
  6514. break
  6515. fi
  6516. done
  6517. if test $apr_addto_duplicate = "0"; then
  6518. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6519. LIBS="$LIBS $i"
  6520. fi
  6521. done
  6522. fi
  6523. ;;
  6524. *-sysv4*)
  6525. if test "x$CPPFLAGS" = "x"; then
  6526. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
  6527. CPPFLAGS="-DSVR4"
  6528. else
  6529. apr_addto_bugger="-DSVR4"
  6530. for i in $apr_addto_bugger; do
  6531. apr_addto_duplicate="0"
  6532. for j in $CPPFLAGS; do
  6533. if test "x$i" = "x$j"; then
  6534. apr_addto_duplicate="1"
  6535. break
  6536. fi
  6537. done
  6538. if test $apr_addto_duplicate = "0"; then
  6539. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6540. CPPFLAGS="$CPPFLAGS $i"
  6541. fi
  6542. done
  6543. fi
  6544. if test "x$LIBS" = "x"; then
  6545. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
  6546. LIBS="-lc"
  6547. else
  6548. apr_addto_bugger="-lc"
  6549. for i in $apr_addto_bugger; do
  6550. apr_addto_duplicate="0"
  6551. for j in $LIBS; do
  6552. if test "x$i" = "x$j"; then
  6553. apr_addto_duplicate="1"
  6554. break
  6555. fi
  6556. done
  6557. if test $apr_addto_duplicate = "0"; then
  6558. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6559. LIBS="$LIBS $i"
  6560. fi
  6561. done
  6562. fi
  6563. ;;
  6564. 88k-encore-sysv4)
  6565. if test "x$CPPFLAGS" = "x"; then
  6566. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DENCORE\""
  6567. CPPFLAGS="-DSVR4 -DENCORE"
  6568. else
  6569. apr_addto_bugger="-DSVR4 -DENCORE"
  6570. for i in $apr_addto_bugger; do
  6571. apr_addto_duplicate="0"
  6572. for j in $CPPFLAGS; do
  6573. if test "x$i" = "x$j"; then
  6574. apr_addto_duplicate="1"
  6575. break
  6576. fi
  6577. done
  6578. if test $apr_addto_duplicate = "0"; then
  6579. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6580. CPPFLAGS="$CPPFLAGS $i"
  6581. fi
  6582. done
  6583. fi
  6584. if test "x$LIBS" = "x"; then
  6585. test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW\""
  6586. LIBS="-lPW"
  6587. else
  6588. apr_addto_bugger="-lPW"
  6589. for i in $apr_addto_bugger; do
  6590. apr_addto_duplicate="0"
  6591. for j in $LIBS; do
  6592. if test "x$i" = "x$j"; then
  6593. apr_addto_duplicate="1"
  6594. break
  6595. fi
  6596. done
  6597. if test $apr_addto_duplicate = "0"; then
  6598. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6599. LIBS="$LIBS $i"
  6600. fi
  6601. done
  6602. fi
  6603. ;;
  6604. *-uts*)
  6605. PLATOSVERS=`echo $host | sed 's/^.*,//'`
  6606. case $PLATOSVERS in
  6607. 2*)
  6608. if test "x$CPPFLAGS" = "x"; then
  6609. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUTS21\""
  6610. CPPFLAGS="-DUTS21"
  6611. else
  6612. apr_addto_bugger="-DUTS21"
  6613. for i in $apr_addto_bugger; do
  6614. apr_addto_duplicate="0"
  6615. for j in $CPPFLAGS; do
  6616. if test "x$i" = "x$j"; then
  6617. apr_addto_duplicate="1"
  6618. break
  6619. fi
  6620. done
  6621. if test $apr_addto_duplicate = "0"; then
  6622. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6623. CPPFLAGS="$CPPFLAGS $i"
  6624. fi
  6625. done
  6626. fi
  6627. if test "x$CFLAGS" = "x"; then
  6628. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa -eft\""
  6629. CFLAGS="-Xa -eft"
  6630. else
  6631. apr_addto_bugger="-Xa -eft"
  6632. for i in $apr_addto_bugger; do
  6633. apr_addto_duplicate="0"
  6634. for j in $CFLAGS; do
  6635. if test "x$i" = "x$j"; then
  6636. apr_addto_duplicate="1"
  6637. break
  6638. fi
  6639. done
  6640. if test $apr_addto_duplicate = "0"; then
  6641. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  6642. CFLAGS="$CFLAGS $i"
  6643. fi
  6644. done
  6645. fi
  6646. if test "x$LIBS" = "x"; then
  6647. test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd -la\""
  6648. LIBS="-lbsd -la"
  6649. else
  6650. apr_addto_bugger="-lbsd -la"
  6651. for i in $apr_addto_bugger; do
  6652. apr_addto_duplicate="0"
  6653. for j in $LIBS; do
  6654. if test "x$i" = "x$j"; then
  6655. apr_addto_duplicate="1"
  6656. break
  6657. fi
  6658. done
  6659. if test $apr_addto_duplicate = "0"; then
  6660. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6661. LIBS="$LIBS $i"
  6662. fi
  6663. done
  6664. fi
  6665. ;;
  6666. *)
  6667. if test "x$CPPFLAGS" = "x"; then
  6668. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
  6669. CPPFLAGS="-DSVR4"
  6670. else
  6671. apr_addto_bugger="-DSVR4"
  6672. for i in $apr_addto_bugger; do
  6673. apr_addto_duplicate="0"
  6674. for j in $CPPFLAGS; do
  6675. if test "x$i" = "x$j"; then
  6676. apr_addto_duplicate="1"
  6677. break
  6678. fi
  6679. done
  6680. if test $apr_addto_duplicate = "0"; then
  6681. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6682. CPPFLAGS="$CPPFLAGS $i"
  6683. fi
  6684. done
  6685. fi
  6686. if test "x$CFLAGS" = "x"; then
  6687. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
  6688. CFLAGS="-Xa"
  6689. else
  6690. apr_addto_bugger="-Xa"
  6691. for i in $apr_addto_bugger; do
  6692. apr_addto_duplicate="0"
  6693. for j in $CFLAGS; do
  6694. if test "x$i" = "x$j"; then
  6695. apr_addto_duplicate="1"
  6696. break
  6697. fi
  6698. done
  6699. if test $apr_addto_duplicate = "0"; then
  6700. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  6701. CFLAGS="$CFLAGS $i"
  6702. fi
  6703. done
  6704. fi
  6705. ;;
  6706. esac
  6707. ;;
  6708. *-ultrix)
  6709. if test "x$CPPFLAGS" = "x"; then
  6710. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DULTRIX\""
  6711. CPPFLAGS="-DULTRIX"
  6712. else
  6713. apr_addto_bugger="-DULTRIX"
  6714. for i in $apr_addto_bugger; do
  6715. apr_addto_duplicate="0"
  6716. for j in $CPPFLAGS; do
  6717. if test "x$i" = "x$j"; then
  6718. apr_addto_duplicate="1"
  6719. break
  6720. fi
  6721. done
  6722. if test $apr_addto_duplicate = "0"; then
  6723. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6724. CPPFLAGS="$CPPFLAGS $i"
  6725. fi
  6726. done
  6727. fi
  6728. test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/sh5\""
  6729. SHELL="/bin/sh5"
  6730. ;;
  6731. *powerpc-tenon-machten*)
  6732. if test "x$LDFLAGS" = "x"; then
  6733. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
  6734. LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
  6735. else
  6736. apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
  6737. for i in $apr_addto_bugger; do
  6738. apr_addto_duplicate="0"
  6739. for j in $LDFLAGS; do
  6740. if test "x$i" = "x$j"; then
  6741. apr_addto_duplicate="1"
  6742. break
  6743. fi
  6744. done
  6745. if test $apr_addto_duplicate = "0"; then
  6746. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  6747. LDFLAGS="$LDFLAGS $i"
  6748. fi
  6749. done
  6750. fi
  6751. ;;
  6752. *-machten*)
  6753. if test "x$LDFLAGS" = "x"; then
  6754. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-stack 0x14000\""
  6755. LDFLAGS="-stack 0x14000"
  6756. else
  6757. apr_addto_bugger="-stack 0x14000"
  6758. for i in $apr_addto_bugger; do
  6759. apr_addto_duplicate="0"
  6760. for j in $LDFLAGS; do
  6761. if test "x$i" = "x$j"; then
  6762. apr_addto_duplicate="1"
  6763. break
  6764. fi
  6765. done
  6766. if test $apr_addto_duplicate = "0"; then
  6767. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  6768. LDFLAGS="$LDFLAGS $i"
  6769. fi
  6770. done
  6771. fi
  6772. ;;
  6773. *convex-v11*)
  6774. if test "x$CPPFLAGS" = "x"; then
  6775. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DCONVEXOS11\""
  6776. CPPFLAGS="-DCONVEXOS11"
  6777. else
  6778. apr_addto_bugger="-DCONVEXOS11"
  6779. for i in $apr_addto_bugger; do
  6780. apr_addto_duplicate="0"
  6781. for j in $CPPFLAGS; do
  6782. if test "x$i" = "x$j"; then
  6783. apr_addto_duplicate="1"
  6784. break
  6785. fi
  6786. done
  6787. if test $apr_addto_duplicate = "0"; then
  6788. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6789. CPPFLAGS="$CPPFLAGS $i"
  6790. fi
  6791. done
  6792. fi
  6793. if test -z "$CFLAGS"; then
  6794. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
  6795. CFLAGS="-O1"
  6796. fi
  6797. if test "x$CFLAGS" = "x"; then
  6798. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-ext\""
  6799. CFLAGS="-ext"
  6800. else
  6801. apr_addto_bugger="-ext"
  6802. for i in $apr_addto_bugger; do
  6803. apr_addto_duplicate="0"
  6804. for j in $CFLAGS; do
  6805. if test "x$i" = "x$j"; then
  6806. apr_addto_duplicate="1"
  6807. break
  6808. fi
  6809. done
  6810. if test $apr_addto_duplicate = "0"; then
  6811. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  6812. CFLAGS="$CFLAGS $i"
  6813. fi
  6814. done
  6815. fi
  6816. ;;
  6817. i860-intel-osf1)
  6818. if test "x$CPPFLAGS" = "x"; then
  6819. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DPARAGON\""
  6820. CPPFLAGS="-DPARAGON"
  6821. else
  6822. apr_addto_bugger="-DPARAGON"
  6823. for i in $apr_addto_bugger; do
  6824. apr_addto_duplicate="0"
  6825. for j in $CPPFLAGS; do
  6826. if test "x$i" = "x$j"; then
  6827. apr_addto_duplicate="1"
  6828. break
  6829. fi
  6830. done
  6831. if test $apr_addto_duplicate = "0"; then
  6832. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6833. CPPFLAGS="$CPPFLAGS $i"
  6834. fi
  6835. done
  6836. fi
  6837. ;;
  6838. *-sequent-ptx2.*.*)
  6839. if test "x$CPPFLAGS" = "x"; then
  6840. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=20\""
  6841. CPPFLAGS="-DSEQUENT=20"
  6842. else
  6843. apr_addto_bugger="-DSEQUENT=20"
  6844. for i in $apr_addto_bugger; do
  6845. apr_addto_duplicate="0"
  6846. for j in $CPPFLAGS; do
  6847. if test "x$i" = "x$j"; then
  6848. apr_addto_duplicate="1"
  6849. break
  6850. fi
  6851. done
  6852. if test $apr_addto_duplicate = "0"; then
  6853. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6854. CPPFLAGS="$CPPFLAGS $i"
  6855. fi
  6856. done
  6857. fi
  6858. if test "x$CFLAGS" = "x"; then
  6859. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
  6860. CFLAGS="-Wc,-pw"
  6861. else
  6862. apr_addto_bugger="-Wc,-pw"
  6863. for i in $apr_addto_bugger; do
  6864. apr_addto_duplicate="0"
  6865. for j in $CFLAGS; do
  6866. if test "x$i" = "x$j"; then
  6867. apr_addto_duplicate="1"
  6868. break
  6869. fi
  6870. done
  6871. if test $apr_addto_duplicate = "0"; then
  6872. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  6873. CFLAGS="$CFLAGS $i"
  6874. fi
  6875. done
  6876. fi
  6877. if test "x$LIBS" = "x"; then
  6878. test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc -lseq\""
  6879. LIBS="-linet -lc -lseq"
  6880. else
  6881. apr_addto_bugger="-linet -lc -lseq"
  6882. for i in $apr_addto_bugger; do
  6883. apr_addto_duplicate="0"
  6884. for j in $LIBS; do
  6885. if test "x$i" = "x$j"; then
  6886. apr_addto_duplicate="1"
  6887. break
  6888. fi
  6889. done
  6890. if test $apr_addto_duplicate = "0"; then
  6891. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6892. LIBS="$LIBS $i"
  6893. fi
  6894. done
  6895. fi
  6896. ;;
  6897. *-sequent-ptx4.0.*)
  6898. if test "x$CPPFLAGS" = "x"; then
  6899. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=40\""
  6900. CPPFLAGS="-DSEQUENT=40"
  6901. else
  6902. apr_addto_bugger="-DSEQUENT=40"
  6903. for i in $apr_addto_bugger; do
  6904. apr_addto_duplicate="0"
  6905. for j in $CPPFLAGS; do
  6906. if test "x$i" = "x$j"; then
  6907. apr_addto_duplicate="1"
  6908. break
  6909. fi
  6910. done
  6911. if test $apr_addto_duplicate = "0"; then
  6912. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6913. CPPFLAGS="$CPPFLAGS $i"
  6914. fi
  6915. done
  6916. fi
  6917. if test "x$CFLAGS" = "x"; then
  6918. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
  6919. CFLAGS="-Wc,-pw"
  6920. else
  6921. apr_addto_bugger="-Wc,-pw"
  6922. for i in $apr_addto_bugger; do
  6923. apr_addto_duplicate="0"
  6924. for j in $CFLAGS; do
  6925. if test "x$i" = "x$j"; then
  6926. apr_addto_duplicate="1"
  6927. break
  6928. fi
  6929. done
  6930. if test $apr_addto_duplicate = "0"; then
  6931. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  6932. CFLAGS="$CFLAGS $i"
  6933. fi
  6934. done
  6935. fi
  6936. if test "x$LIBS" = "x"; then
  6937. test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc\""
  6938. LIBS="-linet -lc"
  6939. else
  6940. apr_addto_bugger="-linet -lc"
  6941. for i in $apr_addto_bugger; do
  6942. apr_addto_duplicate="0"
  6943. for j in $LIBS; do
  6944. if test "x$i" = "x$j"; then
  6945. apr_addto_duplicate="1"
  6946. break
  6947. fi
  6948. done
  6949. if test $apr_addto_duplicate = "0"; then
  6950. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  6951. LIBS="$LIBS $i"
  6952. fi
  6953. done
  6954. fi
  6955. ;;
  6956. *-sequent-ptx4.[123].*)
  6957. if test "x$CPPFLAGS" = "x"; then
  6958. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=41\""
  6959. CPPFLAGS="-DSEQUENT=41"
  6960. else
  6961. apr_addto_bugger="-DSEQUENT=41"
  6962. for i in $apr_addto_bugger; do
  6963. apr_addto_duplicate="0"
  6964. for j in $CPPFLAGS; do
  6965. if test "x$i" = "x$j"; then
  6966. apr_addto_duplicate="1"
  6967. break
  6968. fi
  6969. done
  6970. if test $apr_addto_duplicate = "0"; then
  6971. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  6972. CPPFLAGS="$CPPFLAGS $i"
  6973. fi
  6974. done
  6975. fi
  6976. if test "x$CFLAGS" = "x"; then
  6977. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
  6978. CFLAGS="-Wc,-pw"
  6979. else
  6980. apr_addto_bugger="-Wc,-pw"
  6981. for i in $apr_addto_bugger; do
  6982. apr_addto_duplicate="0"
  6983. for j in $CFLAGS; do
  6984. if test "x$i" = "x$j"; then
  6985. apr_addto_duplicate="1"
  6986. break
  6987. fi
  6988. done
  6989. if test $apr_addto_duplicate = "0"; then
  6990. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  6991. CFLAGS="$CFLAGS $i"
  6992. fi
  6993. done
  6994. fi
  6995. if test "x$LIBS" = "x"; then
  6996. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
  6997. LIBS="-lc"
  6998. else
  6999. apr_addto_bugger="-lc"
  7000. for i in $apr_addto_bugger; do
  7001. apr_addto_duplicate="0"
  7002. for j in $LIBS; do
  7003. if test "x$i" = "x$j"; then
  7004. apr_addto_duplicate="1"
  7005. break
  7006. fi
  7007. done
  7008. if test $apr_addto_duplicate = "0"; then
  7009. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  7010. LIBS="$LIBS $i"
  7011. fi
  7012. done
  7013. fi
  7014. ;;
  7015. *-sequent-ptx4.4.*)
  7016. if test "x$CPPFLAGS" = "x"; then
  7017. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=44\""
  7018. CPPFLAGS="-DSEQUENT=44"
  7019. else
  7020. apr_addto_bugger="-DSEQUENT=44"
  7021. for i in $apr_addto_bugger; do
  7022. apr_addto_duplicate="0"
  7023. for j in $CPPFLAGS; do
  7024. if test "x$i" = "x$j"; then
  7025. apr_addto_duplicate="1"
  7026. break
  7027. fi
  7028. done
  7029. if test $apr_addto_duplicate = "0"; then
  7030. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7031. CPPFLAGS="$CPPFLAGS $i"
  7032. fi
  7033. done
  7034. fi
  7035. if test "x$CFLAGS" = "x"; then
  7036. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
  7037. CFLAGS="-Wc,-pw"
  7038. else
  7039. apr_addto_bugger="-Wc,-pw"
  7040. for i in $apr_addto_bugger; do
  7041. apr_addto_duplicate="0"
  7042. for j in $CFLAGS; do
  7043. if test "x$i" = "x$j"; then
  7044. apr_addto_duplicate="1"
  7045. break
  7046. fi
  7047. done
  7048. if test $apr_addto_duplicate = "0"; then
  7049. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  7050. CFLAGS="$CFLAGS $i"
  7051. fi
  7052. done
  7053. fi
  7054. if test "x$LIBS" = "x"; then
  7055. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
  7056. LIBS="-lc"
  7057. else
  7058. apr_addto_bugger="-lc"
  7059. for i in $apr_addto_bugger; do
  7060. apr_addto_duplicate="0"
  7061. for j in $LIBS; do
  7062. if test "x$i" = "x$j"; then
  7063. apr_addto_duplicate="1"
  7064. break
  7065. fi
  7066. done
  7067. if test $apr_addto_duplicate = "0"; then
  7068. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  7069. LIBS="$LIBS $i"
  7070. fi
  7071. done
  7072. fi
  7073. ;;
  7074. *-sequent-ptx4.5.*)
  7075. if test "x$CPPFLAGS" = "x"; then
  7076. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=45\""
  7077. CPPFLAGS="-DSEQUENT=45"
  7078. else
  7079. apr_addto_bugger="-DSEQUENT=45"
  7080. for i in $apr_addto_bugger; do
  7081. apr_addto_duplicate="0"
  7082. for j in $CPPFLAGS; do
  7083. if test "x$i" = "x$j"; then
  7084. apr_addto_duplicate="1"
  7085. break
  7086. fi
  7087. done
  7088. if test $apr_addto_duplicate = "0"; then
  7089. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7090. CPPFLAGS="$CPPFLAGS $i"
  7091. fi
  7092. done
  7093. fi
  7094. if test "x$CFLAGS" = "x"; then
  7095. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
  7096. CFLAGS="-Wc,-pw"
  7097. else
  7098. apr_addto_bugger="-Wc,-pw"
  7099. for i in $apr_addto_bugger; do
  7100. apr_addto_duplicate="0"
  7101. for j in $CFLAGS; do
  7102. if test "x$i" = "x$j"; then
  7103. apr_addto_duplicate="1"
  7104. break
  7105. fi
  7106. done
  7107. if test $apr_addto_duplicate = "0"; then
  7108. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  7109. CFLAGS="$CFLAGS $i"
  7110. fi
  7111. done
  7112. fi
  7113. if test "x$LIBS" = "x"; then
  7114. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
  7115. LIBS="-lc"
  7116. else
  7117. apr_addto_bugger="-lc"
  7118. for i in $apr_addto_bugger; do
  7119. apr_addto_duplicate="0"
  7120. for j in $LIBS; do
  7121. if test "x$i" = "x$j"; then
  7122. apr_addto_duplicate="1"
  7123. break
  7124. fi
  7125. done
  7126. if test $apr_addto_duplicate = "0"; then
  7127. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  7128. LIBS="$LIBS $i"
  7129. fi
  7130. done
  7131. fi
  7132. ;;
  7133. *-sequent-ptx5.0.*)
  7134. if test "x$CPPFLAGS" = "x"; then
  7135. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=50\""
  7136. CPPFLAGS="-DSEQUENT=50"
  7137. else
  7138. apr_addto_bugger="-DSEQUENT=50"
  7139. for i in $apr_addto_bugger; do
  7140. apr_addto_duplicate="0"
  7141. for j in $CPPFLAGS; do
  7142. if test "x$i" = "x$j"; then
  7143. apr_addto_duplicate="1"
  7144. break
  7145. fi
  7146. done
  7147. if test $apr_addto_duplicate = "0"; then
  7148. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7149. CPPFLAGS="$CPPFLAGS $i"
  7150. fi
  7151. done
  7152. fi
  7153. if test "x$CFLAGS" = "x"; then
  7154. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
  7155. CFLAGS="-Wc,-pw"
  7156. else
  7157. apr_addto_bugger="-Wc,-pw"
  7158. for i in $apr_addto_bugger; do
  7159. apr_addto_duplicate="0"
  7160. for j in $CFLAGS; do
  7161. if test "x$i" = "x$j"; then
  7162. apr_addto_duplicate="1"
  7163. break
  7164. fi
  7165. done
  7166. if test $apr_addto_duplicate = "0"; then
  7167. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  7168. CFLAGS="$CFLAGS $i"
  7169. fi
  7170. done
  7171. fi
  7172. if test "x$LIBS" = "x"; then
  7173. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
  7174. LIBS="-lc"
  7175. else
  7176. apr_addto_bugger="-lc"
  7177. for i in $apr_addto_bugger; do
  7178. apr_addto_duplicate="0"
  7179. for j in $LIBS; do
  7180. if test "x$i" = "x$j"; then
  7181. apr_addto_duplicate="1"
  7182. break
  7183. fi
  7184. done
  7185. if test $apr_addto_duplicate = "0"; then
  7186. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  7187. LIBS="$LIBS $i"
  7188. fi
  7189. done
  7190. fi
  7191. ;;
  7192. *NEWS-OS*)
  7193. if test "x$CPPFLAGS" = "x"; then
  7194. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEWSOS\""
  7195. CPPFLAGS="-DNEWSOS"
  7196. else
  7197. apr_addto_bugger="-DNEWSOS"
  7198. for i in $apr_addto_bugger; do
  7199. apr_addto_duplicate="0"
  7200. for j in $CPPFLAGS; do
  7201. if test "x$i" = "x$j"; then
  7202. apr_addto_duplicate="1"
  7203. break
  7204. fi
  7205. done
  7206. if test $apr_addto_duplicate = "0"; then
  7207. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7208. CPPFLAGS="$CPPFLAGS $i"
  7209. fi
  7210. done
  7211. fi
  7212. ;;
  7213. *-riscix)
  7214. if test "x$CPPFLAGS" = "x"; then
  7215. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRISCIX\""
  7216. CPPFLAGS="-DRISCIX"
  7217. else
  7218. apr_addto_bugger="-DRISCIX"
  7219. for i in $apr_addto_bugger; do
  7220. apr_addto_duplicate="0"
  7221. for j in $CPPFLAGS; do
  7222. if test "x$i" = "x$j"; then
  7223. apr_addto_duplicate="1"
  7224. break
  7225. fi
  7226. done
  7227. if test $apr_addto_duplicate = "0"; then
  7228. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7229. CPPFLAGS="$CPPFLAGS $i"
  7230. fi
  7231. done
  7232. fi
  7233. if test -z "$CFLAGS"; then
  7234. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
  7235. CFLAGS="-O"
  7236. fi
  7237. ;;
  7238. *-irix*)
  7239. if test "x$CPPFLAGS" = "x"; then
  7240. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
  7241. CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
  7242. else
  7243. apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
  7244. for i in $apr_addto_bugger; do
  7245. apr_addto_duplicate="0"
  7246. for j in $CPPFLAGS; do
  7247. if test "x$i" = "x$j"; then
  7248. apr_addto_duplicate="1"
  7249. break
  7250. fi
  7251. done
  7252. if test $apr_addto_duplicate = "0"; then
  7253. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7254. CPPFLAGS="$CPPFLAGS $i"
  7255. fi
  7256. done
  7257. fi
  7258. ;;
  7259. *beos*)
  7260. if test "x$CPPFLAGS" = "x"; then
  7261. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
  7262. CPPFLAGS="-DBEOS"
  7263. else
  7264. apr_addto_bugger="-DBEOS"
  7265. for i in $apr_addto_bugger; do
  7266. apr_addto_duplicate="0"
  7267. for j in $CPPFLAGS; do
  7268. if test "x$i" = "x$j"; then
  7269. apr_addto_duplicate="1"
  7270. break
  7271. fi
  7272. done
  7273. if test $apr_addto_duplicate = "0"; then
  7274. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7275. CPPFLAGS="$CPPFLAGS $i"
  7276. fi
  7277. done
  7278. fi
  7279. PLATOSVERS=`uname -r`
  7280. if test -z "$apr_process_lock_is_global"; then
  7281. test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
  7282. apr_process_lock_is_global="yes"
  7283. fi
  7284. case $PLATOSVERS in
  7285. 5.0.4)
  7286. if test "x$LDFLAGS" = "x"; then
  7287. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
  7288. LDFLAGS="-L/boot/beos/system/lib"
  7289. else
  7290. apr_addto_bugger="-L/boot/beos/system/lib"
  7291. for i in $apr_addto_bugger; do
  7292. apr_addto_duplicate="0"
  7293. for j in $LDFLAGS; do
  7294. if test "x$i" = "x$j"; then
  7295. apr_addto_duplicate="1"
  7296. break
  7297. fi
  7298. done
  7299. if test $apr_addto_duplicate = "0"; then
  7300. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  7301. LDFLAGS="$LDFLAGS $i"
  7302. fi
  7303. done
  7304. fi
  7305. if test "x$LIBS" = "x"; then
  7306. test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
  7307. LIBS="-lbind -lsocket"
  7308. else
  7309. apr_addto_bugger="-lbind -lsocket"
  7310. for i in $apr_addto_bugger; do
  7311. apr_addto_duplicate="0"
  7312. for j in $LIBS; do
  7313. if test "x$i" = "x$j"; then
  7314. apr_addto_duplicate="1"
  7315. break
  7316. fi
  7317. done
  7318. if test $apr_addto_duplicate = "0"; then
  7319. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  7320. LIBS="$LIBS $i"
  7321. fi
  7322. done
  7323. fi
  7324. if test "x$CPPFLAGS" = "x"; then
  7325. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBONE7\""
  7326. CPPFLAGS="-DBONE7"
  7327. else
  7328. apr_addto_bugger="-DBONE7"
  7329. for i in $apr_addto_bugger; do
  7330. apr_addto_duplicate="0"
  7331. for j in $CPPFLAGS; do
  7332. if test "x$i" = "x$j"; then
  7333. apr_addto_duplicate="1"
  7334. break
  7335. fi
  7336. done
  7337. if test $apr_addto_duplicate = "0"; then
  7338. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7339. CPPFLAGS="$CPPFLAGS $i"
  7340. fi
  7341. done
  7342. fi
  7343. ;;
  7344. 5.1)
  7345. if test "x$LDFLAGS" = "x"; then
  7346. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
  7347. LDFLAGS="-L/boot/beos/system/lib"
  7348. else
  7349. apr_addto_bugger="-L/boot/beos/system/lib"
  7350. for i in $apr_addto_bugger; do
  7351. apr_addto_duplicate="0"
  7352. for j in $LDFLAGS; do
  7353. if test "x$i" = "x$j"; then
  7354. apr_addto_duplicate="1"
  7355. break
  7356. fi
  7357. done
  7358. if test $apr_addto_duplicate = "0"; then
  7359. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  7360. LDFLAGS="$LDFLAGS $i"
  7361. fi
  7362. done
  7363. fi
  7364. if test "x$LIBS" = "x"; then
  7365. test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
  7366. LIBS="-lbind -lsocket"
  7367. else
  7368. apr_addto_bugger="-lbind -lsocket"
  7369. for i in $apr_addto_bugger; do
  7370. apr_addto_duplicate="0"
  7371. for j in $LIBS; do
  7372. if test "x$i" = "x$j"; then
  7373. apr_addto_duplicate="1"
  7374. break
  7375. fi
  7376. done
  7377. if test $apr_addto_duplicate = "0"; then
  7378. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  7379. LIBS="$LIBS $i"
  7380. fi
  7381. done
  7382. fi
  7383. ;;
  7384. esac
  7385. if test "x$CPPFLAGS" = "x"; then
  7386. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
  7387. CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
  7388. else
  7389. apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
  7390. for i in $apr_addto_bugger; do
  7391. apr_addto_duplicate="0"
  7392. for j in $CPPFLAGS; do
  7393. if test "x$i" = "x$j"; then
  7394. apr_addto_duplicate="1"
  7395. break
  7396. fi
  7397. done
  7398. if test $apr_addto_duplicate = "0"; then
  7399. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7400. CPPFLAGS="$CPPFLAGS $i"
  7401. fi
  7402. done
  7403. fi
  7404. ;;
  7405. 4850-*.*)
  7406. if test "x$CPPFLAGS" = "x"; then
  7407. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
  7408. CPPFLAGS="-DSVR4 -DMPRAS"
  7409. else
  7410. apr_addto_bugger="-DSVR4 -DMPRAS"
  7411. for i in $apr_addto_bugger; do
  7412. apr_addto_duplicate="0"
  7413. for j in $CPPFLAGS; do
  7414. if test "x$i" = "x$j"; then
  7415. apr_addto_duplicate="1"
  7416. break
  7417. fi
  7418. done
  7419. if test $apr_addto_duplicate = "0"; then
  7420. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7421. CPPFLAGS="$CPPFLAGS $i"
  7422. fi
  7423. done
  7424. fi
  7425. if test "x$LIBS" = "x"; then
  7426. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
  7427. LIBS="-lc -L/usr/ucblib -lucb"
  7428. else
  7429. apr_addto_bugger="-lc -L/usr/ucblib -lucb"
  7430. for i in $apr_addto_bugger; do
  7431. apr_addto_duplicate="0"
  7432. for j in $LIBS; do
  7433. if test "x$i" = "x$j"; then
  7434. apr_addto_duplicate="1"
  7435. break
  7436. fi
  7437. done
  7438. if test $apr_addto_duplicate = "0"; then
  7439. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  7440. LIBS="$LIBS $i"
  7441. fi
  7442. done
  7443. fi
  7444. ;;
  7445. drs6000*)
  7446. if test "x$CPPFLAGS" = "x"; then
  7447. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
  7448. CPPFLAGS="-DSVR4"
  7449. else
  7450. apr_addto_bugger="-DSVR4"
  7451. for i in $apr_addto_bugger; do
  7452. apr_addto_duplicate="0"
  7453. for j in $CPPFLAGS; do
  7454. if test "x$i" = "x$j"; then
  7455. apr_addto_duplicate="1"
  7456. break
  7457. fi
  7458. done
  7459. if test $apr_addto_duplicate = "0"; then
  7460. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7461. CPPFLAGS="$CPPFLAGS $i"
  7462. fi
  7463. done
  7464. fi
  7465. if test "x$LIBS" = "x"; then
  7466. test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
  7467. LIBS="-lc -L/usr/ucblib -lucb"
  7468. else
  7469. apr_addto_bugger="-lc -L/usr/ucblib -lucb"
  7470. for i in $apr_addto_bugger; do
  7471. apr_addto_duplicate="0"
  7472. for j in $LIBS; do
  7473. if test "x$i" = "x$j"; then
  7474. apr_addto_duplicate="1"
  7475. break
  7476. fi
  7477. done
  7478. if test $apr_addto_duplicate = "0"; then
  7479. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  7480. LIBS="$LIBS $i"
  7481. fi
  7482. done
  7483. fi
  7484. ;;
  7485. m88k-*-CX/SX|CYBER)
  7486. if test "x$CPPFLAGS" = "x"; then
  7487. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_CX_SX\""
  7488. CPPFLAGS="-D_CX_SX"
  7489. else
  7490. apr_addto_bugger="-D_CX_SX"
  7491. for i in $apr_addto_bugger; do
  7492. apr_addto_duplicate="0"
  7493. for j in $CPPFLAGS; do
  7494. if test "x$i" = "x$j"; then
  7495. apr_addto_duplicate="1"
  7496. break
  7497. fi
  7498. done
  7499. if test $apr_addto_duplicate = "0"; then
  7500. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7501. CPPFLAGS="$CPPFLAGS $i"
  7502. fi
  7503. done
  7504. fi
  7505. if test "x$CFLAGS" = "x"; then
  7506. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
  7507. CFLAGS="-Xa"
  7508. else
  7509. apr_addto_bugger="-Xa"
  7510. for i in $apr_addto_bugger; do
  7511. apr_addto_duplicate="0"
  7512. for j in $CFLAGS; do
  7513. if test "x$i" = "x$j"; then
  7514. apr_addto_duplicate="1"
  7515. break
  7516. fi
  7517. done
  7518. if test $apr_addto_duplicate = "0"; then
  7519. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  7520. CFLAGS="$CFLAGS $i"
  7521. fi
  7522. done
  7523. fi
  7524. ;;
  7525. *-tandem-oss)
  7526. if test "x$CPPFLAGS" = "x"; then
  7527. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
  7528. CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
  7529. else
  7530. apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
  7531. for i in $apr_addto_bugger; do
  7532. apr_addto_duplicate="0"
  7533. for j in $CPPFLAGS; do
  7534. if test "x$i" = "x$j"; then
  7535. apr_addto_duplicate="1"
  7536. break
  7537. fi
  7538. done
  7539. if test $apr_addto_duplicate = "0"; then
  7540. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7541. CPPFLAGS="$CPPFLAGS $i"
  7542. fi
  7543. done
  7544. fi
  7545. ;;
  7546. *-ibm-os390)
  7547. if test -z "$apr_lock_method"; then
  7548. test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
  7549. apr_lock_method="USE_SYSVSEM_SERIALIZE"
  7550. fi
  7551. if test -z "$apr_sysvsem_is_global"; then
  7552. test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
  7553. apr_sysvsem_is_global="yes"
  7554. fi
  7555. if test -z "$apr_gethostbyname_is_thread_safe"; then
  7556. test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
  7557. apr_gethostbyname_is_thread_safe="yes"
  7558. fi
  7559. if test -z "$apr_gethostbyaddr_is_thread_safe"; then
  7560. test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
  7561. apr_gethostbyaddr_is_thread_safe="yes"
  7562. fi
  7563. if test -z "$apr_getservbyname_is_thread_safe"; then
  7564. test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
  7565. apr_getservbyname_is_thread_safe="yes"
  7566. fi
  7567. $as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
  7568. if test "x$CPPFLAGS" = "x"; then
  7569. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
  7570. CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
  7571. else
  7572. apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
  7573. for i in $apr_addto_bugger; do
  7574. apr_addto_duplicate="0"
  7575. for j in $CPPFLAGS; do
  7576. if test "x$i" = "x$j"; then
  7577. apr_addto_duplicate="1"
  7578. break
  7579. fi
  7580. done
  7581. if test $apr_addto_duplicate = "0"; then
  7582. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7583. CPPFLAGS="$CPPFLAGS $i"
  7584. fi
  7585. done
  7586. fi
  7587. ;;
  7588. *-ibm-as400)
  7589. if test -z "$apr_lock_method"; then
  7590. test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
  7591. apr_lock_method="USE_SYSVSEM_SERIALIZE"
  7592. fi
  7593. if test -z "$apr_process_lock_is_global"; then
  7594. test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
  7595. apr_process_lock_is_global="yes"
  7596. fi
  7597. if test -z "$apr_gethostbyname_is_thread_safe"; then
  7598. test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
  7599. apr_gethostbyname_is_thread_safe="yes"
  7600. fi
  7601. if test -z "$apr_gethostbyaddr_is_thread_safe"; then
  7602. test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
  7603. apr_gethostbyaddr_is_thread_safe="yes"
  7604. fi
  7605. if test -z "$apr_getservbyname_is_thread_safe"; then
  7606. test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
  7607. apr_getservbyname_is_thread_safe="yes"
  7608. fi
  7609. ;;
  7610. *cygwin*)
  7611. if test "x$CPPFLAGS" = "x"; then
  7612. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DCYGWIN\""
  7613. CPPFLAGS="-DCYGWIN"
  7614. else
  7615. apr_addto_bugger="-DCYGWIN"
  7616. for i in $apr_addto_bugger; do
  7617. apr_addto_duplicate="0"
  7618. for j in $CPPFLAGS; do
  7619. if test "x$i" = "x$j"; then
  7620. apr_addto_duplicate="1"
  7621. break
  7622. fi
  7623. done
  7624. if test $apr_addto_duplicate = "0"; then
  7625. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7626. CPPFLAGS="$CPPFLAGS $i"
  7627. fi
  7628. done
  7629. fi
  7630. ;;
  7631. *mingw*)
  7632. if test "x$CPPFLAGS" = "x"; then
  7633. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
  7634. CPPFLAGS="-DWIN32 -D__MSVCRT__"
  7635. else
  7636. apr_addto_bugger="-DWIN32 -D__MSVCRT__"
  7637. for i in $apr_addto_bugger; do
  7638. apr_addto_duplicate="0"
  7639. for j in $CPPFLAGS; do
  7640. if test "x$i" = "x$j"; then
  7641. apr_addto_duplicate="1"
  7642. break
  7643. fi
  7644. done
  7645. if test $apr_addto_duplicate = "0"; then
  7646. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  7647. CPPFLAGS="$CPPFLAGS $i"
  7648. fi
  7649. done
  7650. fi
  7651. if test "x$LDFLAGS" = "x"; then
  7652. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
  7653. LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
  7654. else
  7655. apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
  7656. for i in $apr_addto_bugger; do
  7657. apr_addto_duplicate="0"
  7658. for j in $LDFLAGS; do
  7659. if test "x$i" = "x$j"; then
  7660. apr_addto_duplicate="1"
  7661. break
  7662. fi
  7663. done
  7664. if test $apr_addto_duplicate = "0"; then
  7665. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  7666. LDFLAGS="$LDFLAGS $i"
  7667. fi
  7668. done
  7669. fi
  7670. if test -z "$have_unicode_fs"; then
  7671. test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"1\""
  7672. have_unicode_fs="1"
  7673. fi
  7674. if test -z "$have_proc_invoked"; then
  7675. test "x$silent" != "xyes" && echo " setting have_proc_invoked to \"1\""
  7676. have_proc_invoked="1"
  7677. fi
  7678. if test -z "$apr_lock_method"; then
  7679. test "x$silent" != "xyes" && echo " setting apr_lock_method to \"win32\""
  7680. apr_lock_method="win32"
  7681. fi
  7682. if test -z "$apr_process_lock_is_global"; then
  7683. test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
  7684. apr_process_lock_is_global="yes"
  7685. fi
  7686. if test -z "$apr_cv_use_lfs64"; then
  7687. test "x$silent" != "xyes" && echo " setting apr_cv_use_lfs64 to \"yes\""
  7688. apr_cv_use_lfs64="yes"
  7689. fi
  7690. if test -z "$apr_cv_osuuid"; then
  7691. test "x$silent" != "xyes" && echo " setting apr_cv_osuuid to \"yes\""
  7692. apr_cv_osuuid="yes"
  7693. fi
  7694. if test -z "$apr_cv_tcp_nodelay_with_cork"; then
  7695. test "x$silent" != "xyes" && echo " setting apr_cv_tcp_nodelay_with_cork to \"no\""
  7696. apr_cv_tcp_nodelay_with_cork="no"
  7697. fi
  7698. if test -z "$apr_thread_func"; then
  7699. test "x$silent" != "xyes" && echo " setting apr_thread_func to \"__stdcall\""
  7700. apr_thread_func="__stdcall"
  7701. fi
  7702. if test -z "$ac_cv_o_nonblock_inherited"; then
  7703. test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
  7704. ac_cv_o_nonblock_inherited="yes"
  7705. fi
  7706. if test -z "$ac_cv_tcp_nodelay_inherited"; then
  7707. test "x$silent" != "xyes" && echo " setting ac_cv_tcp_nodelay_inherited to \"yes\""
  7708. ac_cv_tcp_nodelay_inherited="yes"
  7709. fi
  7710. if test -z "$ac_cv_file__dev_zero"; then
  7711. test "x$silent" != "xyes" && echo " setting ac_cv_file__dev_zero to \"no\""
  7712. ac_cv_file__dev_zero="no"
  7713. fi
  7714. if test -z "$ac_cv_func_setpgrp_void"; then
  7715. test "x$silent" != "xyes" && echo " setting ac_cv_func_setpgrp_void to \"no\""
  7716. ac_cv_func_setpgrp_void="no"
  7717. fi
  7718. if test -z "$ac_cv_func_mmap"; then
  7719. test "x$silent" != "xyes" && echo " setting ac_cv_func_mmap to \"yes\""
  7720. ac_cv_func_mmap="yes"
  7721. fi
  7722. if test -z "$ac_cv_define_sockaddr_in6"; then
  7723. test "x$silent" != "xyes" && echo " setting ac_cv_define_sockaddr_in6 to \"yes\""
  7724. ac_cv_define_sockaddr_in6="yes"
  7725. fi
  7726. if test -z "$ac_cv_working_getaddrinfo"; then
  7727. test "x$silent" != "xyes" && echo " setting ac_cv_working_getaddrinfo to \"yes\""
  7728. ac_cv_working_getaddrinfo="yes"
  7729. fi
  7730. if test -z "$ac_cv_working_getnameinfo"; then
  7731. test "x$silent" != "xyes" && echo " setting ac_cv_working_getnameinfo to \"yes\""
  7732. ac_cv_working_getnameinfo="yes"
  7733. fi
  7734. if test -z "$ac_cv_func_gai_strerror"; then
  7735. test "x$silent" != "xyes" && echo " setting ac_cv_func_gai_strerror to \"yes\""
  7736. ac_cv_func_gai_strerror="yes"
  7737. fi
  7738. case $host in
  7739. *mingw32*)
  7740. if test -z "$apr_has_xthread_files"; then
  7741. test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"1\""
  7742. apr_has_xthread_files="1"
  7743. fi
  7744. if test -z "$apr_has_user"; then
  7745. test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
  7746. apr_has_user="1"
  7747. fi
  7748. if test -z "$apr_procattr_user_set_requires_password"; then
  7749. test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"1\""
  7750. apr_procattr_user_set_requires_password="1"
  7751. fi
  7752. if test -z "$ac_cv_func_sendfile"; then
  7753. test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"yes\""
  7754. ac_cv_func_sendfile="yes"
  7755. fi
  7756. ;;
  7757. *mingwce)
  7758. if test -z "$apr_has_xthread_files"; then
  7759. test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
  7760. apr_has_xthread_files="0"
  7761. fi
  7762. if test -z "$apr_has_user"; then
  7763. test "x$silent" != "xyes" && echo " setting apr_has_user to \"0\""
  7764. apr_has_user="0"
  7765. fi
  7766. if test -z "$apr_procattr_user_set_requires_password"; then
  7767. test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
  7768. apr_procattr_user_set_requires_password="0"
  7769. fi
  7770. if test -z "$ac_cv_func_sendfile"; then
  7771. test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"no\""
  7772. ac_cv_func_sendfile="no"
  7773. fi
  7774. ;;
  7775. esac
  7776. ;;
  7777. esac
  7778. fi
  7779. DEFAULT_OSDIR="unix"
  7780. echo "(Default will be ${DEFAULT_OSDIR})"
  7781. apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
  7782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  7783. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  7784. set x ${MAKE-make}
  7785. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  7786. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  7787. $as_echo_n "(cached) " >&6
  7788. else
  7789. cat >conftest.make <<\_ACEOF
  7790. SHELL = /bin/sh
  7791. all:
  7792. @echo '@@@%%%=$(MAKE)=@@@%%%'
  7793. _ACEOF
  7794. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  7795. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  7796. *@@@%%%=?*=@@@%%%*)
  7797. eval ac_cv_prog_make_${ac_make}_set=yes;;
  7798. *)
  7799. eval ac_cv_prog_make_${ac_make}_set=no;;
  7800. esac
  7801. rm -f conftest.make
  7802. fi
  7803. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7805. $as_echo "yes" >&6; }
  7806. SET_MAKE=
  7807. else
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7809. $as_echo "no" >&6; }
  7810. SET_MAKE="MAKE=${MAKE-make}"
  7811. fi
  7812. ac_ext=c
  7813. ac_cpp='$CPP $CPPFLAGS'
  7814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7818. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7819. # On Suns, sometimes $CPP names a directory.
  7820. if test -n "$CPP" && test -d "$CPP"; then
  7821. CPP=
  7822. fi
  7823. if test -z "$CPP"; then
  7824. if ${ac_cv_prog_CPP+:} false; then :
  7825. $as_echo_n "(cached) " >&6
  7826. else
  7827. # Double quotes because CPP needs to be expanded
  7828. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7829. do
  7830. ac_preproc_ok=false
  7831. for ac_c_preproc_warn_flag in '' yes
  7832. do
  7833. # Use a header file that comes with gcc, so configuring glibc
  7834. # with a fresh cross-compiler works.
  7835. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7836. # <limits.h> exists even on freestanding compilers.
  7837. # On the NeXT, cc -E runs the code through the compiler's parser,
  7838. # not just through cpp. "Syntax error" is here to catch this case.
  7839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7840. /* end confdefs.h. */
  7841. #ifdef __STDC__
  7842. # include <limits.h>
  7843. #else
  7844. # include <assert.h>
  7845. #endif
  7846. Syntax error
  7847. _ACEOF
  7848. if ac_fn_c_try_cpp "$LINENO"; then :
  7849. else
  7850. # Broken: fails on valid input.
  7851. continue
  7852. fi
  7853. rm -f conftest.err conftest.i conftest.$ac_ext
  7854. # OK, works on sane cases. Now check whether nonexistent headers
  7855. # can be detected and how.
  7856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7857. /* end confdefs.h. */
  7858. #include <ac_nonexistent.h>
  7859. _ACEOF
  7860. if ac_fn_c_try_cpp "$LINENO"; then :
  7861. # Broken: success on invalid input.
  7862. continue
  7863. else
  7864. # Passes both tests.
  7865. ac_preproc_ok=:
  7866. break
  7867. fi
  7868. rm -f conftest.err conftest.i conftest.$ac_ext
  7869. done
  7870. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7871. rm -f conftest.i conftest.err conftest.$ac_ext
  7872. if $ac_preproc_ok; then :
  7873. break
  7874. fi
  7875. done
  7876. ac_cv_prog_CPP=$CPP
  7877. fi
  7878. CPP=$ac_cv_prog_CPP
  7879. else
  7880. ac_cv_prog_CPP=$CPP
  7881. fi
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7883. $as_echo "$CPP" >&6; }
  7884. ac_preproc_ok=false
  7885. for ac_c_preproc_warn_flag in '' yes
  7886. do
  7887. # Use a header file that comes with gcc, so configuring glibc
  7888. # with a fresh cross-compiler works.
  7889. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7890. # <limits.h> exists even on freestanding compilers.
  7891. # On the NeXT, cc -E runs the code through the compiler's parser,
  7892. # not just through cpp. "Syntax error" is here to catch this case.
  7893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7894. /* end confdefs.h. */
  7895. #ifdef __STDC__
  7896. # include <limits.h>
  7897. #else
  7898. # include <assert.h>
  7899. #endif
  7900. Syntax error
  7901. _ACEOF
  7902. if ac_fn_c_try_cpp "$LINENO"; then :
  7903. else
  7904. # Broken: fails on valid input.
  7905. continue
  7906. fi
  7907. rm -f conftest.err conftest.i conftest.$ac_ext
  7908. # OK, works on sane cases. Now check whether nonexistent headers
  7909. # can be detected and how.
  7910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7911. /* end confdefs.h. */
  7912. #include <ac_nonexistent.h>
  7913. _ACEOF
  7914. if ac_fn_c_try_cpp "$LINENO"; then :
  7915. # Broken: success on invalid input.
  7916. continue
  7917. else
  7918. # Passes both tests.
  7919. ac_preproc_ok=:
  7920. break
  7921. fi
  7922. rm -f conftest.err conftest.i conftest.$ac_ext
  7923. done
  7924. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7925. rm -f conftest.i conftest.err conftest.$ac_ext
  7926. if $ac_preproc_ok; then :
  7927. else
  7928. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7929. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7930. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7931. See \`config.log' for more details" "$LINENO" 5; }
  7932. fi
  7933. ac_ext=c
  7934. ac_cpp='$CPP $CPPFLAGS'
  7935. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7936. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7937. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7938. for ac_prog in gawk mawk nawk awk
  7939. do
  7940. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7941. set dummy $ac_prog; ac_word=$2
  7942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7943. $as_echo_n "checking for $ac_word... " >&6; }
  7944. if ${ac_cv_prog_AWK+:} false; then :
  7945. $as_echo_n "(cached) " >&6
  7946. else
  7947. if test -n "$AWK"; then
  7948. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7949. else
  7950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7951. for as_dir in $PATH
  7952. do
  7953. IFS=$as_save_IFS
  7954. test -z "$as_dir" && as_dir=.
  7955. for ac_exec_ext in '' $ac_executable_extensions; do
  7956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7957. ac_cv_prog_AWK="$ac_prog"
  7958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7959. break 2
  7960. fi
  7961. done
  7962. done
  7963. IFS=$as_save_IFS
  7964. fi
  7965. fi
  7966. AWK=$ac_cv_prog_AWK
  7967. if test -n "$AWK"; then
  7968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7969. $as_echo "$AWK" >&6; }
  7970. else
  7971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7972. $as_echo "no" >&6; }
  7973. fi
  7974. test -n "$AWK" && break
  7975. done
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7977. $as_echo_n "checking whether ln -s works... " >&6; }
  7978. LN_S=$as_ln_s
  7979. if test "$LN_S" = "ln -s"; then
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7981. $as_echo "yes" >&6; }
  7982. else
  7983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7984. $as_echo "no, using $LN_S" >&6; }
  7985. fi
  7986. if test -n "$ac_tool_prefix"; then
  7987. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7988. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7990. $as_echo_n "checking for $ac_word... " >&6; }
  7991. if ${ac_cv_prog_RANLIB+:} false; then :
  7992. $as_echo_n "(cached) " >&6
  7993. else
  7994. if test -n "$RANLIB"; then
  7995. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7996. else
  7997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7998. for as_dir in $PATH
  7999. do
  8000. IFS=$as_save_IFS
  8001. test -z "$as_dir" && as_dir=.
  8002. for ac_exec_ext in '' $ac_executable_extensions; do
  8003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8004. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8006. break 2
  8007. fi
  8008. done
  8009. done
  8010. IFS=$as_save_IFS
  8011. fi
  8012. fi
  8013. RANLIB=$ac_cv_prog_RANLIB
  8014. if test -n "$RANLIB"; then
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8016. $as_echo "$RANLIB" >&6; }
  8017. else
  8018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8019. $as_echo "no" >&6; }
  8020. fi
  8021. fi
  8022. if test -z "$ac_cv_prog_RANLIB"; then
  8023. ac_ct_RANLIB=$RANLIB
  8024. # Extract the first word of "ranlib", so it can be a program name with args.
  8025. set dummy ranlib; ac_word=$2
  8026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8027. $as_echo_n "checking for $ac_word... " >&6; }
  8028. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  8029. $as_echo_n "(cached) " >&6
  8030. else
  8031. if test -n "$ac_ct_RANLIB"; then
  8032. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8033. else
  8034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8035. for as_dir in $PATH
  8036. do
  8037. IFS=$as_save_IFS
  8038. test -z "$as_dir" && as_dir=.
  8039. for ac_exec_ext in '' $ac_executable_extensions; do
  8040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8041. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8043. break 2
  8044. fi
  8045. done
  8046. done
  8047. IFS=$as_save_IFS
  8048. fi
  8049. fi
  8050. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8051. if test -n "$ac_ct_RANLIB"; then
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8053. $as_echo "$ac_ct_RANLIB" >&6; }
  8054. else
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8056. $as_echo "no" >&6; }
  8057. fi
  8058. if test "x$ac_ct_RANLIB" = x; then
  8059. RANLIB=":"
  8060. else
  8061. case $cross_compiling:$ac_tool_warned in
  8062. yes:)
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8065. ac_tool_warned=yes ;;
  8066. esac
  8067. RANLIB=$ac_ct_RANLIB
  8068. fi
  8069. else
  8070. RANLIB="$ac_cv_prog_RANLIB"
  8071. fi
  8072. # Find a good install program. We prefer a C program (faster),
  8073. # so one script is as good as another. But avoid the broken or
  8074. # incompatible versions:
  8075. # SysV /etc/install, /usr/sbin/install
  8076. # SunOS /usr/etc/install
  8077. # IRIX /sbin/install
  8078. # AIX /bin/install
  8079. # AmigaOS /C/install, which installs bootblocks on floppy discs
  8080. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  8081. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  8082. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  8083. # OS/2's system install, which has a completely different semantic
  8084. # ./install, which can be erroneously created by make from ./install.sh.
  8085. # Reject install programs that cannot install multiple files.
  8086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  8087. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  8088. if test -z "$INSTALL"; then
  8089. if ${ac_cv_path_install+:} false; then :
  8090. $as_echo_n "(cached) " >&6
  8091. else
  8092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8093. for as_dir in $PATH
  8094. do
  8095. IFS=$as_save_IFS
  8096. test -z "$as_dir" && as_dir=.
  8097. # Account for people who put trailing slashes in PATH elements.
  8098. case $as_dir/ in #((
  8099. ./ | .// | /[cC]/* | \
  8100. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  8101. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  8102. /usr/ucb/* ) ;;
  8103. *)
  8104. # OSF1 and SCO ODT 3.0 have their own names for install.
  8105. # Don't use installbsd from OSF since it installs stuff as root
  8106. # by default.
  8107. for ac_prog in ginstall scoinst install; do
  8108. for ac_exec_ext in '' $ac_executable_extensions; do
  8109. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  8110. if test $ac_prog = install &&
  8111. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8112. # AIX install. It has an incompatible calling convention.
  8113. :
  8114. elif test $ac_prog = install &&
  8115. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8116. # program-specific install script used by HP pwplus--don't use.
  8117. :
  8118. else
  8119. rm -rf conftest.one conftest.two conftest.dir
  8120. echo one > conftest.one
  8121. echo two > conftest.two
  8122. mkdir conftest.dir
  8123. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  8124. test -s conftest.one && test -s conftest.two &&
  8125. test -s conftest.dir/conftest.one &&
  8126. test -s conftest.dir/conftest.two
  8127. then
  8128. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  8129. break 3
  8130. fi
  8131. fi
  8132. fi
  8133. done
  8134. done
  8135. ;;
  8136. esac
  8137. done
  8138. IFS=$as_save_IFS
  8139. rm -rf conftest.one conftest.two conftest.dir
  8140. fi
  8141. if test "${ac_cv_path_install+set}" = set; then
  8142. INSTALL=$ac_cv_path_install
  8143. else
  8144. # As a last resort, use the slow shell script. Don't cache a
  8145. # value for INSTALL within a source directory, because that will
  8146. # break other packages using the cache if that directory is
  8147. # removed, or if the value is a relative name.
  8148. INSTALL=$ac_install_sh
  8149. fi
  8150. fi
  8151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  8152. $as_echo "$INSTALL" >&6; }
  8153. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  8154. # It thinks the first close brace ends the variable substitution.
  8155. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  8156. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  8157. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  8158. # Extract the first word of "rm", so it can be a program name with args.
  8159. set dummy rm; ac_word=$2
  8160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8161. $as_echo_n "checking for $ac_word... " >&6; }
  8162. if ${ac_cv_prog_RM+:} false; then :
  8163. $as_echo_n "(cached) " >&6
  8164. else
  8165. if test -n "$RM"; then
  8166. ac_cv_prog_RM="$RM" # Let the user override the test.
  8167. else
  8168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8169. for as_dir in $PATH
  8170. do
  8171. IFS=$as_save_IFS
  8172. test -z "$as_dir" && as_dir=.
  8173. for ac_exec_ext in '' $ac_executable_extensions; do
  8174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8175. ac_cv_prog_RM="rm"
  8176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8177. break 2
  8178. fi
  8179. done
  8180. done
  8181. IFS=$as_save_IFS
  8182. fi
  8183. fi
  8184. RM=$ac_cv_prog_RM
  8185. if test -n "$RM"; then
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
  8187. $as_echo "$RM" >&6; }
  8188. else
  8189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8190. $as_echo "no" >&6; }
  8191. fi
  8192. # Extract the first word of "as", so it can be a program name with args.
  8193. set dummy as; ac_word=$2
  8194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8195. $as_echo_n "checking for $ac_word... " >&6; }
  8196. if ${ac_cv_prog_AS+:} false; then :
  8197. $as_echo_n "(cached) " >&6
  8198. else
  8199. if test -n "$AS"; then
  8200. ac_cv_prog_AS="$AS" # Let the user override the test.
  8201. else
  8202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8203. for as_dir in $PATH
  8204. do
  8205. IFS=$as_save_IFS
  8206. test -z "$as_dir" && as_dir=.
  8207. for ac_exec_ext in '' $ac_executable_extensions; do
  8208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8209. ac_cv_prog_AS="as"
  8210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8211. break 2
  8212. fi
  8213. done
  8214. done
  8215. IFS=$as_save_IFS
  8216. fi
  8217. fi
  8218. AS=$ac_cv_prog_AS
  8219. if test -n "$AS"; then
  8220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8221. $as_echo "$AS" >&6; }
  8222. else
  8223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8224. $as_echo "no" >&6; }
  8225. fi
  8226. # Extract the first word of "cpp", so it can be a program name with args.
  8227. set dummy cpp; ac_word=$2
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8229. $as_echo_n "checking for $ac_word... " >&6; }
  8230. if ${ac_cv_prog_ASCPP+:} false; then :
  8231. $as_echo_n "(cached) " >&6
  8232. else
  8233. if test -n "$ASCPP"; then
  8234. ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
  8235. else
  8236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8237. for as_dir in $PATH
  8238. do
  8239. IFS=$as_save_IFS
  8240. test -z "$as_dir" && as_dir=.
  8241. for ac_exec_ext in '' $ac_executable_extensions; do
  8242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8243. ac_cv_prog_ASCPP="cpp"
  8244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8245. break 2
  8246. fi
  8247. done
  8248. done
  8249. IFS=$as_save_IFS
  8250. fi
  8251. fi
  8252. ASCPP=$ac_cv_prog_ASCPP
  8253. if test -n "$ASCPP"; then
  8254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
  8255. $as_echo "$ASCPP" >&6; }
  8256. else
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8258. $as_echo "no" >&6; }
  8259. fi
  8260. if test -n "$ac_tool_prefix"; then
  8261. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  8262. set dummy ${ac_tool_prefix}ar; ac_word=$2
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8264. $as_echo_n "checking for $ac_word... " >&6; }
  8265. if ${ac_cv_prog_AR+:} false; then :
  8266. $as_echo_n "(cached) " >&6
  8267. else
  8268. if test -n "$AR"; then
  8269. ac_cv_prog_AR="$AR" # Let the user override the test.
  8270. else
  8271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8272. for as_dir in $PATH
  8273. do
  8274. IFS=$as_save_IFS
  8275. test -z "$as_dir" && as_dir=.
  8276. for ac_exec_ext in '' $ac_executable_extensions; do
  8277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8278. ac_cv_prog_AR="${ac_tool_prefix}ar"
  8279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8280. break 2
  8281. fi
  8282. done
  8283. done
  8284. IFS=$as_save_IFS
  8285. fi
  8286. fi
  8287. AR=$ac_cv_prog_AR
  8288. if test -n "$AR"; then
  8289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8290. $as_echo "$AR" >&6; }
  8291. else
  8292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8293. $as_echo "no" >&6; }
  8294. fi
  8295. fi
  8296. if test -z "$ac_cv_prog_AR"; then
  8297. ac_ct_AR=$AR
  8298. # Extract the first word of "ar", so it can be a program name with args.
  8299. set dummy ar; ac_word=$2
  8300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8301. $as_echo_n "checking for $ac_word... " >&6; }
  8302. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  8303. $as_echo_n "(cached) " >&6
  8304. else
  8305. if test -n "$ac_ct_AR"; then
  8306. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8307. else
  8308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8309. for as_dir in $PATH
  8310. do
  8311. IFS=$as_save_IFS
  8312. test -z "$as_dir" && as_dir=.
  8313. for ac_exec_ext in '' $ac_executable_extensions; do
  8314. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8315. ac_cv_prog_ac_ct_AR="ar"
  8316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8317. break 2
  8318. fi
  8319. done
  8320. done
  8321. IFS=$as_save_IFS
  8322. fi
  8323. fi
  8324. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8325. if test -n "$ac_ct_AR"; then
  8326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8327. $as_echo "$ac_ct_AR" >&6; }
  8328. else
  8329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8330. $as_echo "no" >&6; }
  8331. fi
  8332. if test "x$ac_ct_AR" = x; then
  8333. AR="ar"
  8334. else
  8335. case $cross_compiling:$ac_tool_warned in
  8336. yes:)
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8338. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8339. ac_tool_warned=yes ;;
  8340. esac
  8341. AR=$ac_ct_AR
  8342. fi
  8343. else
  8344. AR="$ac_cv_prog_AR"
  8345. fi
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  8347. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  8348. if ${ac_cv_path_GREP+:} false; then :
  8349. $as_echo_n "(cached) " >&6
  8350. else
  8351. if test -z "$GREP"; then
  8352. ac_path_GREP_found=false
  8353. # Loop through the user's path and test for each of PROGNAME-LIST
  8354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8355. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8356. do
  8357. IFS=$as_save_IFS
  8358. test -z "$as_dir" && as_dir=.
  8359. for ac_prog in grep ggrep; do
  8360. for ac_exec_ext in '' $ac_executable_extensions; do
  8361. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  8362. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  8363. # Check for GNU ac_path_GREP and select it if it is found.
  8364. # Check for GNU $ac_path_GREP
  8365. case `"$ac_path_GREP" --version 2>&1` in
  8366. *GNU*)
  8367. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  8368. *)
  8369. ac_count=0
  8370. $as_echo_n 0123456789 >"conftest.in"
  8371. while :
  8372. do
  8373. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8374. mv "conftest.tmp" "conftest.in"
  8375. cp "conftest.in" "conftest.nl"
  8376. $as_echo 'GREP' >> "conftest.nl"
  8377. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8378. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8379. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8380. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  8381. # Best one so far, save it but keep looking for a better one
  8382. ac_cv_path_GREP="$ac_path_GREP"
  8383. ac_path_GREP_max=$ac_count
  8384. fi
  8385. # 10*(2^10) chars as input seems more than enough
  8386. test $ac_count -gt 10 && break
  8387. done
  8388. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8389. esac
  8390. $ac_path_GREP_found && break 3
  8391. done
  8392. done
  8393. done
  8394. IFS=$as_save_IFS
  8395. if test -z "$ac_cv_path_GREP"; then
  8396. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8397. fi
  8398. else
  8399. ac_cv_path_GREP=$GREP
  8400. fi
  8401. fi
  8402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  8403. $as_echo "$ac_cv_path_GREP" >&6; }
  8404. GREP="$ac_cv_path_GREP"
  8405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  8406. $as_echo_n "checking for egrep... " >&6; }
  8407. if ${ac_cv_path_EGREP+:} false; then :
  8408. $as_echo_n "(cached) " >&6
  8409. else
  8410. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  8411. then ac_cv_path_EGREP="$GREP -E"
  8412. else
  8413. if test -z "$EGREP"; then
  8414. ac_path_EGREP_found=false
  8415. # Loop through the user's path and test for each of PROGNAME-LIST
  8416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8417. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8418. do
  8419. IFS=$as_save_IFS
  8420. test -z "$as_dir" && as_dir=.
  8421. for ac_prog in egrep; do
  8422. for ac_exec_ext in '' $ac_executable_extensions; do
  8423. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  8424. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  8425. # Check for GNU ac_path_EGREP and select it if it is found.
  8426. # Check for GNU $ac_path_EGREP
  8427. case `"$ac_path_EGREP" --version 2>&1` in
  8428. *GNU*)
  8429. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  8430. *)
  8431. ac_count=0
  8432. $as_echo_n 0123456789 >"conftest.in"
  8433. while :
  8434. do
  8435. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8436. mv "conftest.tmp" "conftest.in"
  8437. cp "conftest.in" "conftest.nl"
  8438. $as_echo 'EGREP' >> "conftest.nl"
  8439. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8440. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8441. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8442. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  8443. # Best one so far, save it but keep looking for a better one
  8444. ac_cv_path_EGREP="$ac_path_EGREP"
  8445. ac_path_EGREP_max=$ac_count
  8446. fi
  8447. # 10*(2^10) chars as input seems more than enough
  8448. test $ac_count -gt 10 && break
  8449. done
  8450. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8451. esac
  8452. $ac_path_EGREP_found && break 3
  8453. done
  8454. done
  8455. done
  8456. IFS=$as_save_IFS
  8457. if test -z "$ac_cv_path_EGREP"; then
  8458. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8459. fi
  8460. else
  8461. ac_cv_path_EGREP=$EGREP
  8462. fi
  8463. fi
  8464. fi
  8465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  8466. $as_echo "$ac_cv_path_EGREP" >&6; }
  8467. EGREP="$ac_cv_path_EGREP"
  8468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8469. $as_echo_n "checking for ANSI C header files... " >&6; }
  8470. if ${ac_cv_header_stdc+:} false; then :
  8471. $as_echo_n "(cached) " >&6
  8472. else
  8473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8474. /* end confdefs.h. */
  8475. #include <stdlib.h>
  8476. #include <stdarg.h>
  8477. #include <string.h>
  8478. #include <float.h>
  8479. int
  8480. main ()
  8481. {
  8482. ;
  8483. return 0;
  8484. }
  8485. _ACEOF
  8486. if ac_fn_c_try_compile "$LINENO"; then :
  8487. ac_cv_header_stdc=yes
  8488. else
  8489. ac_cv_header_stdc=no
  8490. fi
  8491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8492. if test $ac_cv_header_stdc = yes; then
  8493. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8495. /* end confdefs.h. */
  8496. #include <string.h>
  8497. _ACEOF
  8498. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8499. $EGREP "memchr" >/dev/null 2>&1; then :
  8500. else
  8501. ac_cv_header_stdc=no
  8502. fi
  8503. rm -f conftest*
  8504. fi
  8505. if test $ac_cv_header_stdc = yes; then
  8506. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8508. /* end confdefs.h. */
  8509. #include <stdlib.h>
  8510. _ACEOF
  8511. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8512. $EGREP "free" >/dev/null 2>&1; then :
  8513. else
  8514. ac_cv_header_stdc=no
  8515. fi
  8516. rm -f conftest*
  8517. fi
  8518. if test $ac_cv_header_stdc = yes; then
  8519. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8520. if test "$cross_compiling" = yes; then :
  8521. :
  8522. else
  8523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8524. /* end confdefs.h. */
  8525. #include <ctype.h>
  8526. #include <stdlib.h>
  8527. #if ((' ' & 0x0FF) == 0x020)
  8528. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8529. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8530. #else
  8531. # define ISLOWER(c) \
  8532. (('a' <= (c) && (c) <= 'i') \
  8533. || ('j' <= (c) && (c) <= 'r') \
  8534. || ('s' <= (c) && (c) <= 'z'))
  8535. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8536. #endif
  8537. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8538. int
  8539. main ()
  8540. {
  8541. int i;
  8542. for (i = 0; i < 256; i++)
  8543. if (XOR (islower (i), ISLOWER (i))
  8544. || toupper (i) != TOUPPER (i))
  8545. return 2;
  8546. return 0;
  8547. }
  8548. _ACEOF
  8549. if ac_fn_c_try_run "$LINENO"; then :
  8550. else
  8551. ac_cv_header_stdc=no
  8552. fi
  8553. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8554. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8555. fi
  8556. fi
  8557. fi
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8559. $as_echo "$ac_cv_header_stdc" >&6; }
  8560. if test $ac_cv_header_stdc = yes; then
  8561. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8562. fi
  8563. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8564. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8565. inttypes.h stdint.h unistd.h
  8566. do :
  8567. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8568. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8569. "
  8570. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8571. cat >>confdefs.h <<_ACEOF
  8572. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8573. _ACEOF
  8574. fi
  8575. done
  8576. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  8577. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  8578. MINIX=yes
  8579. else
  8580. MINIX=
  8581. fi
  8582. if test "$MINIX" = yes; then
  8583. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  8584. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  8585. $as_echo "#define _MINIX 1" >>confdefs.h
  8586. fi
  8587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  8588. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  8589. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  8590. $as_echo_n "(cached) " >&6
  8591. else
  8592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8593. /* end confdefs.h. */
  8594. # define __EXTENSIONS__ 1
  8595. $ac_includes_default
  8596. int
  8597. main ()
  8598. {
  8599. ;
  8600. return 0;
  8601. }
  8602. _ACEOF
  8603. if ac_fn_c_try_compile "$LINENO"; then :
  8604. ac_cv_safe_to_define___extensions__=yes
  8605. else
  8606. ac_cv_safe_to_define___extensions__=no
  8607. fi
  8608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8609. fi
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  8611. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  8612. test $ac_cv_safe_to_define___extensions__ = yes &&
  8613. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  8614. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  8615. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  8616. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  8617. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  8619. $as_echo_n "checking for library containing strerror... " >&6; }
  8620. if ${ac_cv_search_strerror+:} false; then :
  8621. $as_echo_n "(cached) " >&6
  8622. else
  8623. ac_func_search_save_LIBS=$LIBS
  8624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8625. /* end confdefs.h. */
  8626. /* Override any GCC internal prototype to avoid an error.
  8627. Use char because int might match the return type of a GCC
  8628. builtin and then its argument prototype would still apply. */
  8629. #ifdef __cplusplus
  8630. extern "C"
  8631. #endif
  8632. char strerror ();
  8633. int
  8634. main ()
  8635. {
  8636. return strerror ();
  8637. ;
  8638. return 0;
  8639. }
  8640. _ACEOF
  8641. for ac_lib in '' cposix; do
  8642. if test -z "$ac_lib"; then
  8643. ac_res="none required"
  8644. else
  8645. ac_res=-l$ac_lib
  8646. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8647. fi
  8648. if ac_fn_c_try_link "$LINENO"; then :
  8649. ac_cv_search_strerror=$ac_res
  8650. fi
  8651. rm -f core conftest.err conftest.$ac_objext \
  8652. conftest$ac_exeext
  8653. if ${ac_cv_search_strerror+:} false; then :
  8654. break
  8655. fi
  8656. done
  8657. if ${ac_cv_search_strerror+:} false; then :
  8658. else
  8659. ac_cv_search_strerror=no
  8660. fi
  8661. rm conftest.$ac_ext
  8662. LIBS=$ac_func_search_save_LIBS
  8663. fi
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  8665. $as_echo "$ac_cv_search_strerror" >&6; }
  8666. ac_res=$ac_cv_search_strerror
  8667. if test "$ac_res" != no; then :
  8668. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8669. fi
  8670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
  8671. $as_echo_n "checking whether system uses EBCDIC... " >&6; }
  8672. if ${ac_cv_ebcdic+:} false; then :
  8673. $as_echo_n "(cached) " >&6
  8674. else
  8675. if test "$cross_compiling" = yes; then :
  8676. ac_cv_ebcdic="no"
  8677. else
  8678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8679. /* end confdefs.h. */
  8680. int main(void) {
  8681. return (unsigned char)'A' != (unsigned char)0xC1;
  8682. }
  8683. _ACEOF
  8684. if ac_fn_c_try_run "$LINENO"; then :
  8685. ac_cv_ebcdic="yes"
  8686. else
  8687. ac_cv_ebcdic="no"
  8688. fi
  8689. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8690. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8691. fi
  8692. fi
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
  8694. $as_echo "$ac_cv_ebcdic" >&6; }
  8695. if test "$ac_cv_ebcdic" = "yes"; then
  8696. apr_charset_ebcdic=1
  8697. else
  8698. apr_charset_ebcdic=0
  8699. fi
  8700. APR_LIBNAME="apr${libsuffix}"
  8701. echo "performing libtool configuration..."
  8702. # Check whether --enable-experimental-libtool was given.
  8703. if test "${enable_experimental_libtool+set}" = set; then :
  8704. enableval=$enable_experimental_libtool; experimental_libtool=$enableval
  8705. else
  8706. experimental_libtool=no
  8707. fi
  8708. if test "x$Xsed" = "x"; then
  8709. Xsed="$SED -e 1s/^X//"
  8710. fi
  8711. case $host in
  8712. *-os2*)
  8713. # Use a custom-made libtool replacement
  8714. echo "using aplibtool"
  8715. LIBTOOL="$srcdir/build/aplibtool"
  8716. gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
  8717. ;;
  8718. *)
  8719. if test "x$LTFLAGS" = "x"; then
  8720. LTFLAGS='--silent'
  8721. fi
  8722. if test "$experimental_libtool" = "yes"; then
  8723. # Use a custom-made libtool replacement
  8724. echo "using jlibtool"
  8725. LIBTOOL="$apr_builddir/libtool"
  8726. LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
  8727. $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
  8728. eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
  8729. if test "x$shlibpath_var" = "x"; then
  8730. shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
  8731. fi
  8732. else
  8733. enable_win32_dll=yes
  8734. case $host in
  8735. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  8736. if test -n "$ac_tool_prefix"; then
  8737. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  8738. set dummy ${ac_tool_prefix}as; ac_word=$2
  8739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8740. $as_echo_n "checking for $ac_word... " >&6; }
  8741. if ${ac_cv_prog_AS+:} false; then :
  8742. $as_echo_n "(cached) " >&6
  8743. else
  8744. if test -n "$AS"; then
  8745. ac_cv_prog_AS="$AS" # Let the user override the test.
  8746. else
  8747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8748. for as_dir in $PATH
  8749. do
  8750. IFS=$as_save_IFS
  8751. test -z "$as_dir" && as_dir=.
  8752. for ac_exec_ext in '' $ac_executable_extensions; do
  8753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8754. ac_cv_prog_AS="${ac_tool_prefix}as"
  8755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8756. break 2
  8757. fi
  8758. done
  8759. done
  8760. IFS=$as_save_IFS
  8761. fi
  8762. fi
  8763. AS=$ac_cv_prog_AS
  8764. if test -n "$AS"; then
  8765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8766. $as_echo "$AS" >&6; }
  8767. else
  8768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8769. $as_echo "no" >&6; }
  8770. fi
  8771. fi
  8772. if test -z "$ac_cv_prog_AS"; then
  8773. ac_ct_AS=$AS
  8774. # Extract the first word of "as", so it can be a program name with args.
  8775. set dummy as; ac_word=$2
  8776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8777. $as_echo_n "checking for $ac_word... " >&6; }
  8778. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  8779. $as_echo_n "(cached) " >&6
  8780. else
  8781. if test -n "$ac_ct_AS"; then
  8782. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8783. else
  8784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8785. for as_dir in $PATH
  8786. do
  8787. IFS=$as_save_IFS
  8788. test -z "$as_dir" && as_dir=.
  8789. for ac_exec_ext in '' $ac_executable_extensions; do
  8790. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8791. ac_cv_prog_ac_ct_AS="as"
  8792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8793. break 2
  8794. fi
  8795. done
  8796. done
  8797. IFS=$as_save_IFS
  8798. fi
  8799. fi
  8800. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8801. if test -n "$ac_ct_AS"; then
  8802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  8803. $as_echo "$ac_ct_AS" >&6; }
  8804. else
  8805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8806. $as_echo "no" >&6; }
  8807. fi
  8808. if test "x$ac_ct_AS" = x; then
  8809. AS="false"
  8810. else
  8811. case $cross_compiling:$ac_tool_warned in
  8812. yes:)
  8813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8814. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8815. ac_tool_warned=yes ;;
  8816. esac
  8817. AS=$ac_ct_AS
  8818. fi
  8819. else
  8820. AS="$ac_cv_prog_AS"
  8821. fi
  8822. if test -n "$ac_tool_prefix"; then
  8823. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8824. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8826. $as_echo_n "checking for $ac_word... " >&6; }
  8827. if ${ac_cv_prog_DLLTOOL+:} false; then :
  8828. $as_echo_n "(cached) " >&6
  8829. else
  8830. if test -n "$DLLTOOL"; then
  8831. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8832. else
  8833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8834. for as_dir in $PATH
  8835. do
  8836. IFS=$as_save_IFS
  8837. test -z "$as_dir" && as_dir=.
  8838. for ac_exec_ext in '' $ac_executable_extensions; do
  8839. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8840. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8842. break 2
  8843. fi
  8844. done
  8845. done
  8846. IFS=$as_save_IFS
  8847. fi
  8848. fi
  8849. DLLTOOL=$ac_cv_prog_DLLTOOL
  8850. if test -n "$DLLTOOL"; then
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8852. $as_echo "$DLLTOOL" >&6; }
  8853. else
  8854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8855. $as_echo "no" >&6; }
  8856. fi
  8857. fi
  8858. if test -z "$ac_cv_prog_DLLTOOL"; then
  8859. ac_ct_DLLTOOL=$DLLTOOL
  8860. # Extract the first word of "dlltool", so it can be a program name with args.
  8861. set dummy dlltool; ac_word=$2
  8862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8863. $as_echo_n "checking for $ac_word... " >&6; }
  8864. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  8865. $as_echo_n "(cached) " >&6
  8866. else
  8867. if test -n "$ac_ct_DLLTOOL"; then
  8868. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8869. else
  8870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8871. for as_dir in $PATH
  8872. do
  8873. IFS=$as_save_IFS
  8874. test -z "$as_dir" && as_dir=.
  8875. for ac_exec_ext in '' $ac_executable_extensions; do
  8876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8877. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8879. break 2
  8880. fi
  8881. done
  8882. done
  8883. IFS=$as_save_IFS
  8884. fi
  8885. fi
  8886. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8887. if test -n "$ac_ct_DLLTOOL"; then
  8888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8889. $as_echo "$ac_ct_DLLTOOL" >&6; }
  8890. else
  8891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8892. $as_echo "no" >&6; }
  8893. fi
  8894. if test "x$ac_ct_DLLTOOL" = x; then
  8895. DLLTOOL="false"
  8896. else
  8897. case $cross_compiling:$ac_tool_warned in
  8898. yes:)
  8899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8901. ac_tool_warned=yes ;;
  8902. esac
  8903. DLLTOOL=$ac_ct_DLLTOOL
  8904. fi
  8905. else
  8906. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8907. fi
  8908. if test -n "$ac_tool_prefix"; then
  8909. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8910. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8912. $as_echo_n "checking for $ac_word... " >&6; }
  8913. if ${ac_cv_prog_OBJDUMP+:} false; then :
  8914. $as_echo_n "(cached) " >&6
  8915. else
  8916. if test -n "$OBJDUMP"; then
  8917. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8918. else
  8919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8920. for as_dir in $PATH
  8921. do
  8922. IFS=$as_save_IFS
  8923. test -z "$as_dir" && as_dir=.
  8924. for ac_exec_ext in '' $ac_executable_extensions; do
  8925. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8926. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8928. break 2
  8929. fi
  8930. done
  8931. done
  8932. IFS=$as_save_IFS
  8933. fi
  8934. fi
  8935. OBJDUMP=$ac_cv_prog_OBJDUMP
  8936. if test -n "$OBJDUMP"; then
  8937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8938. $as_echo "$OBJDUMP" >&6; }
  8939. else
  8940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8941. $as_echo "no" >&6; }
  8942. fi
  8943. fi
  8944. if test -z "$ac_cv_prog_OBJDUMP"; then
  8945. ac_ct_OBJDUMP=$OBJDUMP
  8946. # Extract the first word of "objdump", so it can be a program name with args.
  8947. set dummy objdump; ac_word=$2
  8948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8949. $as_echo_n "checking for $ac_word... " >&6; }
  8950. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  8951. $as_echo_n "(cached) " >&6
  8952. else
  8953. if test -n "$ac_ct_OBJDUMP"; then
  8954. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8955. else
  8956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8957. for as_dir in $PATH
  8958. do
  8959. IFS=$as_save_IFS
  8960. test -z "$as_dir" && as_dir=.
  8961. for ac_exec_ext in '' $ac_executable_extensions; do
  8962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8963. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8965. break 2
  8966. fi
  8967. done
  8968. done
  8969. IFS=$as_save_IFS
  8970. fi
  8971. fi
  8972. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8973. if test -n "$ac_ct_OBJDUMP"; then
  8974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8975. $as_echo "$ac_ct_OBJDUMP" >&6; }
  8976. else
  8977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8978. $as_echo "no" >&6; }
  8979. fi
  8980. if test "x$ac_ct_OBJDUMP" = x; then
  8981. OBJDUMP="false"
  8982. else
  8983. case $cross_compiling:$ac_tool_warned in
  8984. yes:)
  8985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8986. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8987. ac_tool_warned=yes ;;
  8988. esac
  8989. OBJDUMP=$ac_ct_OBJDUMP
  8990. fi
  8991. else
  8992. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8993. fi
  8994. ;;
  8995. esac
  8996. test -z "$AS" && AS=as
  8997. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8998. test -z "$OBJDUMP" && OBJDUMP=objdump
  8999. case `pwd` in
  9000. *\ * | *\ *)
  9001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  9002. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  9003. esac
  9004. macro_version='2.4.2'
  9005. macro_revision='1.3337'
  9006. ltmain="$ac_aux_dir/ltmain.sh"
  9007. # Backslashify metacharacters that are still active within
  9008. # double-quoted strings.
  9009. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  9010. # Same as above, but do not quote variable references.
  9011. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  9012. # Sed substitution to delay expansion of an escaped shell variable in a
  9013. # double_quote_subst'ed string.
  9014. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  9015. # Sed substitution to delay expansion of an escaped single quote.
  9016. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  9017. # Sed substitution to avoid accidental globbing in evaled expressions
  9018. no_glob_subst='s/\*/\\\*/g'
  9019. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9020. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  9021. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  9022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  9023. $as_echo_n "checking how to print strings... " >&6; }
  9024. # Test print first, because it will be a builtin if present.
  9025. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  9026. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  9027. ECHO='print -r --'
  9028. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  9029. ECHO='printf %s\n'
  9030. else
  9031. # Use this function as a fallback that always works.
  9032. func_fallback_echo ()
  9033. {
  9034. eval 'cat <<_LTECHO_EOF
  9035. $1
  9036. _LTECHO_EOF'
  9037. }
  9038. ECHO='func_fallback_echo'
  9039. fi
  9040. # func_echo_all arg...
  9041. # Invoke $ECHO with all args, space-separated.
  9042. func_echo_all ()
  9043. {
  9044. $ECHO ""
  9045. }
  9046. case "$ECHO" in
  9047. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  9048. $as_echo "printf" >&6; } ;;
  9049. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  9050. $as_echo "print -r" >&6; } ;;
  9051. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  9052. $as_echo "cat" >&6; } ;;
  9053. esac
  9054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  9055. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  9056. if ${ac_cv_path_SED+:} false; then :
  9057. $as_echo_n "(cached) " >&6
  9058. else
  9059. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  9060. for ac_i in 1 2 3 4 5 6 7; do
  9061. ac_script="$ac_script$as_nl$ac_script"
  9062. done
  9063. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  9064. { ac_script=; unset ac_script;}
  9065. if test -z "$SED"; then
  9066. ac_path_SED_found=false
  9067. # Loop through the user's path and test for each of PROGNAME-LIST
  9068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9069. for as_dir in $PATH
  9070. do
  9071. IFS=$as_save_IFS
  9072. test -z "$as_dir" && as_dir=.
  9073. for ac_prog in sed gsed; do
  9074. for ac_exec_ext in '' $ac_executable_extensions; do
  9075. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  9076. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  9077. # Check for GNU ac_path_SED and select it if it is found.
  9078. # Check for GNU $ac_path_SED
  9079. case `"$ac_path_SED" --version 2>&1` in
  9080. *GNU*)
  9081. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  9082. *)
  9083. ac_count=0
  9084. $as_echo_n 0123456789 >"conftest.in"
  9085. while :
  9086. do
  9087. cat "conftest.in" "conftest.in" >"conftest.tmp"
  9088. mv "conftest.tmp" "conftest.in"
  9089. cp "conftest.in" "conftest.nl"
  9090. $as_echo '' >> "conftest.nl"
  9091. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9092. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9093. as_fn_arith $ac_count + 1 && ac_count=$as_val
  9094. if test $ac_count -gt ${ac_path_SED_max-0}; then
  9095. # Best one so far, save it but keep looking for a better one
  9096. ac_cv_path_SED="$ac_path_SED"
  9097. ac_path_SED_max=$ac_count
  9098. fi
  9099. # 10*(2^10) chars as input seems more than enough
  9100. test $ac_count -gt 10 && break
  9101. done
  9102. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9103. esac
  9104. $ac_path_SED_found && break 3
  9105. done
  9106. done
  9107. done
  9108. IFS=$as_save_IFS
  9109. if test -z "$ac_cv_path_SED"; then
  9110. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  9111. fi
  9112. else
  9113. ac_cv_path_SED=$SED
  9114. fi
  9115. fi
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  9117. $as_echo "$ac_cv_path_SED" >&6; }
  9118. SED="$ac_cv_path_SED"
  9119. rm -f conftest.sed
  9120. test -z "$SED" && SED=sed
  9121. Xsed="$SED -e 1s/^X//"
  9122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  9123. $as_echo_n "checking for fgrep... " >&6; }
  9124. if ${ac_cv_path_FGREP+:} false; then :
  9125. $as_echo_n "(cached) " >&6
  9126. else
  9127. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  9128. then ac_cv_path_FGREP="$GREP -F"
  9129. else
  9130. if test -z "$FGREP"; then
  9131. ac_path_FGREP_found=false
  9132. # Loop through the user's path and test for each of PROGNAME-LIST
  9133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9134. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  9135. do
  9136. IFS=$as_save_IFS
  9137. test -z "$as_dir" && as_dir=.
  9138. for ac_prog in fgrep; do
  9139. for ac_exec_ext in '' $ac_executable_extensions; do
  9140. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  9141. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  9142. # Check for GNU ac_path_FGREP and select it if it is found.
  9143. # Check for GNU $ac_path_FGREP
  9144. case `"$ac_path_FGREP" --version 2>&1` in
  9145. *GNU*)
  9146. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  9147. *)
  9148. ac_count=0
  9149. $as_echo_n 0123456789 >"conftest.in"
  9150. while :
  9151. do
  9152. cat "conftest.in" "conftest.in" >"conftest.tmp"
  9153. mv "conftest.tmp" "conftest.in"
  9154. cp "conftest.in" "conftest.nl"
  9155. $as_echo 'FGREP' >> "conftest.nl"
  9156. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9157. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9158. as_fn_arith $ac_count + 1 && ac_count=$as_val
  9159. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  9160. # Best one so far, save it but keep looking for a better one
  9161. ac_cv_path_FGREP="$ac_path_FGREP"
  9162. ac_path_FGREP_max=$ac_count
  9163. fi
  9164. # 10*(2^10) chars as input seems more than enough
  9165. test $ac_count -gt 10 && break
  9166. done
  9167. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9168. esac
  9169. $ac_path_FGREP_found && break 3
  9170. done
  9171. done
  9172. done
  9173. IFS=$as_save_IFS
  9174. if test -z "$ac_cv_path_FGREP"; then
  9175. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  9176. fi
  9177. else
  9178. ac_cv_path_FGREP=$FGREP
  9179. fi
  9180. fi
  9181. fi
  9182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  9183. $as_echo "$ac_cv_path_FGREP" >&6; }
  9184. FGREP="$ac_cv_path_FGREP"
  9185. test -z "$GREP" && GREP=grep
  9186. # Check whether --with-gnu-ld was given.
  9187. if test "${with_gnu_ld+set}" = set; then :
  9188. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9189. else
  9190. with_gnu_ld=no
  9191. fi
  9192. ac_prog=ld
  9193. if test "$GCC" = yes; then
  9194. # Check if gcc -print-prog-name=ld gives a path.
  9195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9196. $as_echo_n "checking for ld used by $CC... " >&6; }
  9197. case $host in
  9198. *-*-mingw*)
  9199. # gcc leaves a trailing carriage return which upsets mingw
  9200. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9201. *)
  9202. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9203. esac
  9204. case $ac_prog in
  9205. # Accept absolute paths.
  9206. [\\/]* | ?:[\\/]*)
  9207. re_direlt='/[^/][^/]*/\.\./'
  9208. # Canonicalize the pathname of ld
  9209. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9210. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9211. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9212. done
  9213. test -z "$LD" && LD="$ac_prog"
  9214. ;;
  9215. "")
  9216. # If it fails, then pretend we aren't using GCC.
  9217. ac_prog=ld
  9218. ;;
  9219. *)
  9220. # If it is relative, then search for the first ld in PATH.
  9221. with_gnu_ld=unknown
  9222. ;;
  9223. esac
  9224. elif test "$with_gnu_ld" = yes; then
  9225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9226. $as_echo_n "checking for GNU ld... " >&6; }
  9227. else
  9228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9229. $as_echo_n "checking for non-GNU ld... " >&6; }
  9230. fi
  9231. if ${lt_cv_path_LD+:} false; then :
  9232. $as_echo_n "(cached) " >&6
  9233. else
  9234. if test -z "$LD"; then
  9235. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9236. for ac_dir in $PATH; do
  9237. IFS="$lt_save_ifs"
  9238. test -z "$ac_dir" && ac_dir=.
  9239. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9240. lt_cv_path_LD="$ac_dir/$ac_prog"
  9241. # Check to see if the program is GNU ld. I'd rather use --version,
  9242. # but apparently some variants of GNU ld only accept -v.
  9243. # Break only if it was the GNU/non-GNU ld that we prefer.
  9244. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9245. *GNU* | *'with BFD'*)
  9246. test "$with_gnu_ld" != no && break
  9247. ;;
  9248. *)
  9249. test "$with_gnu_ld" != yes && break
  9250. ;;
  9251. esac
  9252. fi
  9253. done
  9254. IFS="$lt_save_ifs"
  9255. else
  9256. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9257. fi
  9258. fi
  9259. LD="$lt_cv_path_LD"
  9260. if test -n "$LD"; then
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9262. $as_echo "$LD" >&6; }
  9263. else
  9264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9265. $as_echo "no" >&6; }
  9266. fi
  9267. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  9268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9269. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9270. if ${lt_cv_prog_gnu_ld+:} false; then :
  9271. $as_echo_n "(cached) " >&6
  9272. else
  9273. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9274. case `$LD -v 2>&1 </dev/null` in
  9275. *GNU* | *'with BFD'*)
  9276. lt_cv_prog_gnu_ld=yes
  9277. ;;
  9278. *)
  9279. lt_cv_prog_gnu_ld=no
  9280. ;;
  9281. esac
  9282. fi
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9284. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9285. with_gnu_ld=$lt_cv_prog_gnu_ld
  9286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  9287. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  9288. if ${lt_cv_path_NM+:} false; then :
  9289. $as_echo_n "(cached) " >&6
  9290. else
  9291. if test -n "$NM"; then
  9292. # Let the user override the test.
  9293. lt_cv_path_NM="$NM"
  9294. else
  9295. lt_nm_to_check="${ac_tool_prefix}nm"
  9296. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  9297. lt_nm_to_check="$lt_nm_to_check nm"
  9298. fi
  9299. for lt_tmp_nm in $lt_nm_to_check; do
  9300. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9301. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  9302. IFS="$lt_save_ifs"
  9303. test -z "$ac_dir" && ac_dir=.
  9304. tmp_nm="$ac_dir/$lt_tmp_nm"
  9305. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  9306. # Check to see if the nm accepts a BSD-compat flag.
  9307. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  9308. # nm: unknown option "B" ignored
  9309. # Tru64's nm complains that /dev/null is an invalid object file
  9310. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  9311. */dev/null* | *'Invalid file or object type'*)
  9312. lt_cv_path_NM="$tmp_nm -B"
  9313. break
  9314. ;;
  9315. *)
  9316. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  9317. */dev/null*)
  9318. lt_cv_path_NM="$tmp_nm -p"
  9319. break
  9320. ;;
  9321. *)
  9322. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  9323. continue # so that we can try to find one that supports BSD flags
  9324. ;;
  9325. esac
  9326. ;;
  9327. esac
  9328. fi
  9329. done
  9330. IFS="$lt_save_ifs"
  9331. done
  9332. : ${lt_cv_path_NM=no}
  9333. fi
  9334. fi
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  9336. $as_echo "$lt_cv_path_NM" >&6; }
  9337. if test "$lt_cv_path_NM" != "no"; then
  9338. NM="$lt_cv_path_NM"
  9339. else
  9340. # Didn't find any BSD compatible name lister, look for dumpbin.
  9341. if test -n "$DUMPBIN"; then :
  9342. # Let the user override the test.
  9343. else
  9344. if test -n "$ac_tool_prefix"; then
  9345. for ac_prog in dumpbin "link -dump"
  9346. do
  9347. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9348. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9350. $as_echo_n "checking for $ac_word... " >&6; }
  9351. if ${ac_cv_prog_DUMPBIN+:} false; then :
  9352. $as_echo_n "(cached) " >&6
  9353. else
  9354. if test -n "$DUMPBIN"; then
  9355. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  9356. else
  9357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9358. for as_dir in $PATH
  9359. do
  9360. IFS=$as_save_IFS
  9361. test -z "$as_dir" && as_dir=.
  9362. for ac_exec_ext in '' $ac_executable_extensions; do
  9363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9364. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  9365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9366. break 2
  9367. fi
  9368. done
  9369. done
  9370. IFS=$as_save_IFS
  9371. fi
  9372. fi
  9373. DUMPBIN=$ac_cv_prog_DUMPBIN
  9374. if test -n "$DUMPBIN"; then
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  9376. $as_echo "$DUMPBIN" >&6; }
  9377. else
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9379. $as_echo "no" >&6; }
  9380. fi
  9381. test -n "$DUMPBIN" && break
  9382. done
  9383. fi
  9384. if test -z "$DUMPBIN"; then
  9385. ac_ct_DUMPBIN=$DUMPBIN
  9386. for ac_prog in dumpbin "link -dump"
  9387. do
  9388. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9389. set dummy $ac_prog; ac_word=$2
  9390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9391. $as_echo_n "checking for $ac_word... " >&6; }
  9392. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  9393. $as_echo_n "(cached) " >&6
  9394. else
  9395. if test -n "$ac_ct_DUMPBIN"; then
  9396. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  9397. else
  9398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9399. for as_dir in $PATH
  9400. do
  9401. IFS=$as_save_IFS
  9402. test -z "$as_dir" && as_dir=.
  9403. for ac_exec_ext in '' $ac_executable_extensions; do
  9404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9405. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  9406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9407. break 2
  9408. fi
  9409. done
  9410. done
  9411. IFS=$as_save_IFS
  9412. fi
  9413. fi
  9414. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  9415. if test -n "$ac_ct_DUMPBIN"; then
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  9417. $as_echo "$ac_ct_DUMPBIN" >&6; }
  9418. else
  9419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9420. $as_echo "no" >&6; }
  9421. fi
  9422. test -n "$ac_ct_DUMPBIN" && break
  9423. done
  9424. if test "x$ac_ct_DUMPBIN" = x; then
  9425. DUMPBIN=":"
  9426. else
  9427. case $cross_compiling:$ac_tool_warned in
  9428. yes:)
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9430. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9431. ac_tool_warned=yes ;;
  9432. esac
  9433. DUMPBIN=$ac_ct_DUMPBIN
  9434. fi
  9435. fi
  9436. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  9437. *COFF*)
  9438. DUMPBIN="$DUMPBIN -symbols"
  9439. ;;
  9440. *)
  9441. DUMPBIN=:
  9442. ;;
  9443. esac
  9444. fi
  9445. if test "$DUMPBIN" != ":"; then
  9446. NM="$DUMPBIN"
  9447. fi
  9448. fi
  9449. test -z "$NM" && NM=nm
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  9451. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  9452. if ${lt_cv_nm_interface+:} false; then :
  9453. $as_echo_n "(cached) " >&6
  9454. else
  9455. lt_cv_nm_interface="BSD nm"
  9456. echo "int some_variable = 0;" > conftest.$ac_ext
  9457. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  9458. (eval "$ac_compile" 2>conftest.err)
  9459. cat conftest.err >&5
  9460. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  9461. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  9462. cat conftest.err >&5
  9463. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  9464. cat conftest.out >&5
  9465. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  9466. lt_cv_nm_interface="MS dumpbin"
  9467. fi
  9468. rm -f conftest*
  9469. fi
  9470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  9471. $as_echo "$lt_cv_nm_interface" >&6; }
  9472. # find the maximum length of command line arguments
  9473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  9474. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  9475. if ${lt_cv_sys_max_cmd_len+:} false; then :
  9476. $as_echo_n "(cached) " >&6
  9477. else
  9478. i=0
  9479. teststring="ABCD"
  9480. case $build_os in
  9481. msdosdjgpp*)
  9482. # On DJGPP, this test can blow up pretty badly due to problems in libc
  9483. # (any single argument exceeding 2000 bytes causes a buffer overrun
  9484. # during glob expansion). Even if it were fixed, the result of this
  9485. # check would be larger than it should be.
  9486. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  9487. ;;
  9488. gnu*)
  9489. # Under GNU Hurd, this test is not required because there is
  9490. # no limit to the length of command line arguments.
  9491. # Libtool will interpret -1 as no limit whatsoever
  9492. lt_cv_sys_max_cmd_len=-1;
  9493. ;;
  9494. cygwin* | mingw* | cegcc*)
  9495. # On Win9x/ME, this test blows up -- it succeeds, but takes
  9496. # about 5 minutes as the teststring grows exponentially.
  9497. # Worse, since 9x/ME are not pre-emptively multitasking,
  9498. # you end up with a "frozen" computer, even though with patience
  9499. # the test eventually succeeds (with a max line length of 256k).
  9500. # Instead, let's just punt: use the minimum linelength reported by
  9501. # all of the supported platforms: 8192 (on NT/2K/XP).
  9502. lt_cv_sys_max_cmd_len=8192;
  9503. ;;
  9504. mint*)
  9505. # On MiNT this can take a long time and run out of memory.
  9506. lt_cv_sys_max_cmd_len=8192;
  9507. ;;
  9508. amigaos*)
  9509. # On AmigaOS with pdksh, this test takes hours, literally.
  9510. # So we just punt and use a minimum line length of 8192.
  9511. lt_cv_sys_max_cmd_len=8192;
  9512. ;;
  9513. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  9514. # This has been around since 386BSD, at least. Likely further.
  9515. if test -x /sbin/sysctl; then
  9516. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  9517. elif test -x /usr/sbin/sysctl; then
  9518. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  9519. else
  9520. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  9521. fi
  9522. # And add a safety zone
  9523. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9524. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9525. ;;
  9526. interix*)
  9527. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  9528. lt_cv_sys_max_cmd_len=196608
  9529. ;;
  9530. os2*)
  9531. # The test takes a long time on OS/2.
  9532. lt_cv_sys_max_cmd_len=8192
  9533. ;;
  9534. osf*)
  9535. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  9536. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  9537. # nice to cause kernel panics so lets avoid the loop below.
  9538. # First set a reasonable default.
  9539. lt_cv_sys_max_cmd_len=16384
  9540. #
  9541. if test -x /sbin/sysconfig; then
  9542. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  9543. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  9544. esac
  9545. fi
  9546. ;;
  9547. sco3.2v5*)
  9548. lt_cv_sys_max_cmd_len=102400
  9549. ;;
  9550. sysv5* | sco5v6* | sysv4.2uw2*)
  9551. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  9552. if test -n "$kargmax"; then
  9553. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  9554. else
  9555. lt_cv_sys_max_cmd_len=32768
  9556. fi
  9557. ;;
  9558. *)
  9559. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  9560. if test -n "$lt_cv_sys_max_cmd_len"; then
  9561. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9562. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9563. else
  9564. # Make teststring a little bigger before we do anything with it.
  9565. # a 1K string should be a reasonable start.
  9566. for i in 1 2 3 4 5 6 7 8 ; do
  9567. teststring=$teststring$teststring
  9568. done
  9569. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  9570. # If test is not a shell built-in, we'll probably end up computing a
  9571. # maximum length that is only half of the actual maximum length, but
  9572. # we can't tell.
  9573. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  9574. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  9575. test $i != 17 # 1/2 MB should be enough
  9576. do
  9577. i=`expr $i + 1`
  9578. teststring=$teststring$teststring
  9579. done
  9580. # Only check the string length outside the loop.
  9581. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  9582. teststring=
  9583. # Add a significant safety factor because C++ compilers can tack on
  9584. # massive amounts of additional arguments before passing them to the
  9585. # linker. It appears as though 1/2 is a usable value.
  9586. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  9587. fi
  9588. ;;
  9589. esac
  9590. fi
  9591. if test -n $lt_cv_sys_max_cmd_len ; then
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  9593. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  9594. else
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  9596. $as_echo "none" >&6; }
  9597. fi
  9598. max_cmd_len=$lt_cv_sys_max_cmd_len
  9599. : ${CP="cp -f"}
  9600. : ${MV="mv -f"}
  9601. : ${RM="rm -f"}
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  9603. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  9604. # Try some XSI features
  9605. xsi_shell=no
  9606. ( _lt_dummy="a/b/c"
  9607. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  9608. = c,a/b,b/c, \
  9609. && eval 'test $(( 1 + 1 )) -eq 2 \
  9610. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9611. && xsi_shell=yes
  9612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  9613. $as_echo "$xsi_shell" >&6; }
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  9615. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  9616. lt_shell_append=no
  9617. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  9618. >/dev/null 2>&1 \
  9619. && lt_shell_append=yes
  9620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  9621. $as_echo "$lt_shell_append" >&6; }
  9622. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9623. lt_unset=unset
  9624. else
  9625. lt_unset=false
  9626. fi
  9627. # test EBCDIC or ASCII
  9628. case `echo X|tr X '\101'` in
  9629. A) # ASCII based system
  9630. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9631. lt_SP2NL='tr \040 \012'
  9632. lt_NL2SP='tr \015\012 \040\040'
  9633. ;;
  9634. *) # EBCDIC based system
  9635. lt_SP2NL='tr \100 \n'
  9636. lt_NL2SP='tr \r\n \100\100'
  9637. ;;
  9638. esac
  9639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  9640. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  9641. if ${lt_cv_to_host_file_cmd+:} false; then :
  9642. $as_echo_n "(cached) " >&6
  9643. else
  9644. case $host in
  9645. *-*-mingw* )
  9646. case $build in
  9647. *-*-mingw* ) # actually msys
  9648. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  9649. ;;
  9650. *-*-cygwin* )
  9651. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  9652. ;;
  9653. * ) # otherwise, assume *nix
  9654. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  9655. ;;
  9656. esac
  9657. ;;
  9658. *-*-cygwin* )
  9659. case $build in
  9660. *-*-mingw* ) # actually msys
  9661. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  9662. ;;
  9663. *-*-cygwin* )
  9664. lt_cv_to_host_file_cmd=func_convert_file_noop
  9665. ;;
  9666. * ) # otherwise, assume *nix
  9667. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  9668. ;;
  9669. esac
  9670. ;;
  9671. * ) # unhandled hosts (and "normal" native builds)
  9672. lt_cv_to_host_file_cmd=func_convert_file_noop
  9673. ;;
  9674. esac
  9675. fi
  9676. to_host_file_cmd=$lt_cv_to_host_file_cmd
  9677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  9678. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  9680. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  9681. if ${lt_cv_to_tool_file_cmd+:} false; then :
  9682. $as_echo_n "(cached) " >&6
  9683. else
  9684. #assume ordinary cross tools, or native build.
  9685. lt_cv_to_tool_file_cmd=func_convert_file_noop
  9686. case $host in
  9687. *-*-mingw* )
  9688. case $build in
  9689. *-*-mingw* ) # actually msys
  9690. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  9691. ;;
  9692. esac
  9693. ;;
  9694. esac
  9695. fi
  9696. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  9697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  9698. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  9700. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  9701. if ${lt_cv_ld_reload_flag+:} false; then :
  9702. $as_echo_n "(cached) " >&6
  9703. else
  9704. lt_cv_ld_reload_flag='-r'
  9705. fi
  9706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  9707. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  9708. reload_flag=$lt_cv_ld_reload_flag
  9709. case $reload_flag in
  9710. "" | " "*) ;;
  9711. *) reload_flag=" $reload_flag" ;;
  9712. esac
  9713. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9714. case $host_os in
  9715. cygwin* | mingw* | pw32* | cegcc*)
  9716. if test "$GCC" != yes; then
  9717. reload_cmds=false
  9718. fi
  9719. ;;
  9720. darwin*)
  9721. if test "$GCC" = yes; then
  9722. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  9723. else
  9724. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9725. fi
  9726. ;;
  9727. esac
  9728. if test -n "$ac_tool_prefix"; then
  9729. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9730. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9732. $as_echo_n "checking for $ac_word... " >&6; }
  9733. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9734. $as_echo_n "(cached) " >&6
  9735. else
  9736. if test -n "$OBJDUMP"; then
  9737. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9738. else
  9739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9740. for as_dir in $PATH
  9741. do
  9742. IFS=$as_save_IFS
  9743. test -z "$as_dir" && as_dir=.
  9744. for ac_exec_ext in '' $ac_executable_extensions; do
  9745. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9746. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9748. break 2
  9749. fi
  9750. done
  9751. done
  9752. IFS=$as_save_IFS
  9753. fi
  9754. fi
  9755. OBJDUMP=$ac_cv_prog_OBJDUMP
  9756. if test -n "$OBJDUMP"; then
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9758. $as_echo "$OBJDUMP" >&6; }
  9759. else
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9761. $as_echo "no" >&6; }
  9762. fi
  9763. fi
  9764. if test -z "$ac_cv_prog_OBJDUMP"; then
  9765. ac_ct_OBJDUMP=$OBJDUMP
  9766. # Extract the first word of "objdump", so it can be a program name with args.
  9767. set dummy objdump; ac_word=$2
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9769. $as_echo_n "checking for $ac_word... " >&6; }
  9770. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  9771. $as_echo_n "(cached) " >&6
  9772. else
  9773. if test -n "$ac_ct_OBJDUMP"; then
  9774. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9775. else
  9776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9777. for as_dir in $PATH
  9778. do
  9779. IFS=$as_save_IFS
  9780. test -z "$as_dir" && as_dir=.
  9781. for ac_exec_ext in '' $ac_executable_extensions; do
  9782. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9783. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9785. break 2
  9786. fi
  9787. done
  9788. done
  9789. IFS=$as_save_IFS
  9790. fi
  9791. fi
  9792. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9793. if test -n "$ac_ct_OBJDUMP"; then
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9795. $as_echo "$ac_ct_OBJDUMP" >&6; }
  9796. else
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9798. $as_echo "no" >&6; }
  9799. fi
  9800. if test "x$ac_ct_OBJDUMP" = x; then
  9801. OBJDUMP="false"
  9802. else
  9803. case $cross_compiling:$ac_tool_warned in
  9804. yes:)
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9807. ac_tool_warned=yes ;;
  9808. esac
  9809. OBJDUMP=$ac_ct_OBJDUMP
  9810. fi
  9811. else
  9812. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9813. fi
  9814. test -z "$OBJDUMP" && OBJDUMP=objdump
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  9816. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  9817. if ${lt_cv_deplibs_check_method+:} false; then :
  9818. $as_echo_n "(cached) " >&6
  9819. else
  9820. lt_cv_file_magic_cmd='$MAGIC_CMD'
  9821. lt_cv_file_magic_test_file=
  9822. lt_cv_deplibs_check_method='unknown'
  9823. # Need to set the preceding variable on all platforms that support
  9824. # interlibrary dependencies.
  9825. # 'none' -- dependencies not supported.
  9826. # `unknown' -- same as none, but documents that we really don't know.
  9827. # 'pass_all' -- all dependencies passed with no checks.
  9828. # 'test_compile' -- check by making test program.
  9829. # 'file_magic [[regex]]' -- check by looking for files in library path
  9830. # which responds to the $file_magic_cmd with a given extended regex.
  9831. # If you have `file' or equivalent on your system and you're not sure
  9832. # whether `pass_all' will *always* work, you probably want this one.
  9833. case $host_os in
  9834. aix[4-9]*)
  9835. lt_cv_deplibs_check_method=pass_all
  9836. ;;
  9837. beos*)
  9838. lt_cv_deplibs_check_method=pass_all
  9839. ;;
  9840. bsdi[45]*)
  9841. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  9842. lt_cv_file_magic_cmd='/usr/bin/file -L'
  9843. lt_cv_file_magic_test_file=/shlib/libc.so
  9844. ;;
  9845. cygwin*)
  9846. # func_win32_libid is a shell function defined in ltmain.sh
  9847. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9848. lt_cv_file_magic_cmd='func_win32_libid'
  9849. ;;
  9850. mingw* | pw32*)
  9851. # Base MSYS/MinGW do not provide the 'file' command needed by
  9852. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  9853. # unless we find 'file', for example because we are cross-compiling.
  9854. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  9855. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  9856. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9857. lt_cv_file_magic_cmd='func_win32_libid'
  9858. else
  9859. # Keep this pattern in sync with the one in func_win32_libid.
  9860. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  9861. lt_cv_file_magic_cmd='$OBJDUMP -f'
  9862. fi
  9863. ;;
  9864. cegcc*)
  9865. # use the weaker test based on 'objdump'. See mingw*.
  9866. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  9867. lt_cv_file_magic_cmd='$OBJDUMP -f'
  9868. ;;
  9869. darwin* | rhapsody*)
  9870. lt_cv_deplibs_check_method=pass_all
  9871. ;;
  9872. freebsd* | dragonfly*)
  9873. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9874. case $host_cpu in
  9875. i*86 )
  9876. # Not sure whether the presence of OpenBSD here was a mistake.
  9877. # Let's accept both of them until this is cleared up.
  9878. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  9879. lt_cv_file_magic_cmd=/usr/bin/file
  9880. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  9881. ;;
  9882. esac
  9883. else
  9884. lt_cv_deplibs_check_method=pass_all
  9885. fi
  9886. ;;
  9887. gnu*)
  9888. lt_cv_deplibs_check_method=pass_all
  9889. ;;
  9890. haiku*)
  9891. lt_cv_deplibs_check_method=pass_all
  9892. ;;
  9893. hpux10.20* | hpux11*)
  9894. lt_cv_file_magic_cmd=/usr/bin/file
  9895. case $host_cpu in
  9896. ia64*)
  9897. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  9898. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  9899. ;;
  9900. hppa*64*)
  9901. 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]'
  9902. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  9903. ;;
  9904. *)
  9905. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  9906. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  9907. ;;
  9908. esac
  9909. ;;
  9910. interix[3-9]*)
  9911. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  9912. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  9913. ;;
  9914. irix5* | irix6* | nonstopux*)
  9915. case $LD in
  9916. *-32|*"-32 ") libmagic=32-bit;;
  9917. *-n32|*"-n32 ") libmagic=N32;;
  9918. *-64|*"-64 ") libmagic=64-bit;;
  9919. *) libmagic=never-match;;
  9920. esac
  9921. lt_cv_deplibs_check_method=pass_all
  9922. ;;
  9923. # This must be glibc/ELF.
  9924. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9925. lt_cv_deplibs_check_method=pass_all
  9926. ;;
  9927. netbsd*)
  9928. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9929. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9930. else
  9931. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  9932. fi
  9933. ;;
  9934. newos6*)
  9935. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  9936. lt_cv_file_magic_cmd=/usr/bin/file
  9937. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  9938. ;;
  9939. *nto* | *qnx*)
  9940. lt_cv_deplibs_check_method=pass_all
  9941. ;;
  9942. openbsd*)
  9943. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9944. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  9945. else
  9946. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9947. fi
  9948. ;;
  9949. osf3* | osf4* | osf5*)
  9950. lt_cv_deplibs_check_method=pass_all
  9951. ;;
  9952. rdos*)
  9953. lt_cv_deplibs_check_method=pass_all
  9954. ;;
  9955. solaris*)
  9956. lt_cv_deplibs_check_method=pass_all
  9957. ;;
  9958. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9959. lt_cv_deplibs_check_method=pass_all
  9960. ;;
  9961. sysv4 | sysv4.3*)
  9962. case $host_vendor in
  9963. motorola)
  9964. 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]'
  9965. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  9966. ;;
  9967. ncr)
  9968. lt_cv_deplibs_check_method=pass_all
  9969. ;;
  9970. sequent)
  9971. lt_cv_file_magic_cmd='/bin/file'
  9972. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  9973. ;;
  9974. sni)
  9975. lt_cv_file_magic_cmd='/bin/file'
  9976. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  9977. lt_cv_file_magic_test_file=/lib/libc.so
  9978. ;;
  9979. siemens)
  9980. lt_cv_deplibs_check_method=pass_all
  9981. ;;
  9982. pc)
  9983. lt_cv_deplibs_check_method=pass_all
  9984. ;;
  9985. esac
  9986. ;;
  9987. tpf*)
  9988. lt_cv_deplibs_check_method=pass_all
  9989. ;;
  9990. esac
  9991. fi
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  9993. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  9994. file_magic_glob=
  9995. want_nocaseglob=no
  9996. if test "$build" = "$host"; then
  9997. case $host_os in
  9998. mingw* | pw32*)
  9999. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  10000. want_nocaseglob=yes
  10001. else
  10002. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  10003. fi
  10004. ;;
  10005. esac
  10006. fi
  10007. file_magic_cmd=$lt_cv_file_magic_cmd
  10008. deplibs_check_method=$lt_cv_deplibs_check_method
  10009. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  10010. if test -n "$ac_tool_prefix"; then
  10011. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  10012. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10014. $as_echo_n "checking for $ac_word... " >&6; }
  10015. if ${ac_cv_prog_DLLTOOL+:} false; then :
  10016. $as_echo_n "(cached) " >&6
  10017. else
  10018. if test -n "$DLLTOOL"; then
  10019. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  10020. else
  10021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10022. for as_dir in $PATH
  10023. do
  10024. IFS=$as_save_IFS
  10025. test -z "$as_dir" && as_dir=.
  10026. for ac_exec_ext in '' $ac_executable_extensions; do
  10027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10028. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  10029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10030. break 2
  10031. fi
  10032. done
  10033. done
  10034. IFS=$as_save_IFS
  10035. fi
  10036. fi
  10037. DLLTOOL=$ac_cv_prog_DLLTOOL
  10038. if test -n "$DLLTOOL"; then
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  10040. $as_echo "$DLLTOOL" >&6; }
  10041. else
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10043. $as_echo "no" >&6; }
  10044. fi
  10045. fi
  10046. if test -z "$ac_cv_prog_DLLTOOL"; then
  10047. ac_ct_DLLTOOL=$DLLTOOL
  10048. # Extract the first word of "dlltool", so it can be a program name with args.
  10049. set dummy dlltool; ac_word=$2
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10051. $as_echo_n "checking for $ac_word... " >&6; }
  10052. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  10053. $as_echo_n "(cached) " >&6
  10054. else
  10055. if test -n "$ac_ct_DLLTOOL"; then
  10056. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  10057. else
  10058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10059. for as_dir in $PATH
  10060. do
  10061. IFS=$as_save_IFS
  10062. test -z "$as_dir" && as_dir=.
  10063. for ac_exec_ext in '' $ac_executable_extensions; do
  10064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10065. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  10066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10067. break 2
  10068. fi
  10069. done
  10070. done
  10071. IFS=$as_save_IFS
  10072. fi
  10073. fi
  10074. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  10075. if test -n "$ac_ct_DLLTOOL"; then
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  10077. $as_echo "$ac_ct_DLLTOOL" >&6; }
  10078. else
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10080. $as_echo "no" >&6; }
  10081. fi
  10082. if test "x$ac_ct_DLLTOOL" = x; then
  10083. DLLTOOL="false"
  10084. else
  10085. case $cross_compiling:$ac_tool_warned in
  10086. yes:)
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10088. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10089. ac_tool_warned=yes ;;
  10090. esac
  10091. DLLTOOL=$ac_ct_DLLTOOL
  10092. fi
  10093. else
  10094. DLLTOOL="$ac_cv_prog_DLLTOOL"
  10095. fi
  10096. test -z "$DLLTOOL" && DLLTOOL=dlltool
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  10098. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  10099. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  10100. $as_echo_n "(cached) " >&6
  10101. else
  10102. lt_cv_sharedlib_from_linklib_cmd='unknown'
  10103. case $host_os in
  10104. cygwin* | mingw* | pw32* | cegcc*)
  10105. # two different shell functions defined in ltmain.sh
  10106. # decide which to use based on capabilities of $DLLTOOL
  10107. case `$DLLTOOL --help 2>&1` in
  10108. *--identify-strict*)
  10109. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  10110. ;;
  10111. *)
  10112. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  10113. ;;
  10114. esac
  10115. ;;
  10116. *)
  10117. # fallback: assume linklib IS sharedlib
  10118. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  10119. ;;
  10120. esac
  10121. fi
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  10123. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  10124. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  10125. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  10126. if test -n "$ac_tool_prefix"; then
  10127. for ac_prog in ar
  10128. do
  10129. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10130. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10132. $as_echo_n "checking for $ac_word... " >&6; }
  10133. if ${ac_cv_prog_AR+:} false; then :
  10134. $as_echo_n "(cached) " >&6
  10135. else
  10136. if test -n "$AR"; then
  10137. ac_cv_prog_AR="$AR" # Let the user override the test.
  10138. else
  10139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10140. for as_dir in $PATH
  10141. do
  10142. IFS=$as_save_IFS
  10143. test -z "$as_dir" && as_dir=.
  10144. for ac_exec_ext in '' $ac_executable_extensions; do
  10145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10146. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  10147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10148. break 2
  10149. fi
  10150. done
  10151. done
  10152. IFS=$as_save_IFS
  10153. fi
  10154. fi
  10155. AR=$ac_cv_prog_AR
  10156. if test -n "$AR"; then
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  10158. $as_echo "$AR" >&6; }
  10159. else
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10161. $as_echo "no" >&6; }
  10162. fi
  10163. test -n "$AR" && break
  10164. done
  10165. fi
  10166. if test -z "$AR"; then
  10167. ac_ct_AR=$AR
  10168. for ac_prog in ar
  10169. do
  10170. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10171. set dummy $ac_prog; ac_word=$2
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10173. $as_echo_n "checking for $ac_word... " >&6; }
  10174. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  10175. $as_echo_n "(cached) " >&6
  10176. else
  10177. if test -n "$ac_ct_AR"; then
  10178. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  10179. else
  10180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10181. for as_dir in $PATH
  10182. do
  10183. IFS=$as_save_IFS
  10184. test -z "$as_dir" && as_dir=.
  10185. for ac_exec_ext in '' $ac_executable_extensions; do
  10186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10187. ac_cv_prog_ac_ct_AR="$ac_prog"
  10188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10189. break 2
  10190. fi
  10191. done
  10192. done
  10193. IFS=$as_save_IFS
  10194. fi
  10195. fi
  10196. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  10197. if test -n "$ac_ct_AR"; then
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  10199. $as_echo "$ac_ct_AR" >&6; }
  10200. else
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10202. $as_echo "no" >&6; }
  10203. fi
  10204. test -n "$ac_ct_AR" && break
  10205. done
  10206. if test "x$ac_ct_AR" = x; then
  10207. AR="false"
  10208. else
  10209. case $cross_compiling:$ac_tool_warned in
  10210. yes:)
  10211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10212. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10213. ac_tool_warned=yes ;;
  10214. esac
  10215. AR=$ac_ct_AR
  10216. fi
  10217. fi
  10218. : ${AR=ar}
  10219. : ${AR_FLAGS=cru}
  10220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  10221. $as_echo_n "checking for archiver @FILE support... " >&6; }
  10222. if ${lt_cv_ar_at_file+:} false; then :
  10223. $as_echo_n "(cached) " >&6
  10224. else
  10225. lt_cv_ar_at_file=no
  10226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10227. /* end confdefs.h. */
  10228. int
  10229. main ()
  10230. {
  10231. ;
  10232. return 0;
  10233. }
  10234. _ACEOF
  10235. if ac_fn_c_try_compile "$LINENO"; then :
  10236. echo conftest.$ac_objext > conftest.lst
  10237. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  10238. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10239. (eval $lt_ar_try) 2>&5
  10240. ac_status=$?
  10241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10242. test $ac_status = 0; }
  10243. if test "$ac_status" -eq 0; then
  10244. # Ensure the archiver fails upon bogus file names.
  10245. rm -f conftest.$ac_objext libconftest.a
  10246. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10247. (eval $lt_ar_try) 2>&5
  10248. ac_status=$?
  10249. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10250. test $ac_status = 0; }
  10251. if test "$ac_status" -ne 0; then
  10252. lt_cv_ar_at_file=@
  10253. fi
  10254. fi
  10255. rm -f conftest.* libconftest.a
  10256. fi
  10257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10258. fi
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  10260. $as_echo "$lt_cv_ar_at_file" >&6; }
  10261. if test "x$lt_cv_ar_at_file" = xno; then
  10262. archiver_list_spec=
  10263. else
  10264. archiver_list_spec=$lt_cv_ar_at_file
  10265. fi
  10266. if test -n "$ac_tool_prefix"; then
  10267. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10268. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10270. $as_echo_n "checking for $ac_word... " >&6; }
  10271. if ${ac_cv_prog_STRIP+:} false; then :
  10272. $as_echo_n "(cached) " >&6
  10273. else
  10274. if test -n "$STRIP"; then
  10275. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10276. else
  10277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10278. for as_dir in $PATH
  10279. do
  10280. IFS=$as_save_IFS
  10281. test -z "$as_dir" && as_dir=.
  10282. for ac_exec_ext in '' $ac_executable_extensions; do
  10283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10284. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10286. break 2
  10287. fi
  10288. done
  10289. done
  10290. IFS=$as_save_IFS
  10291. fi
  10292. fi
  10293. STRIP=$ac_cv_prog_STRIP
  10294. if test -n "$STRIP"; then
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10296. $as_echo "$STRIP" >&6; }
  10297. else
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10299. $as_echo "no" >&6; }
  10300. fi
  10301. fi
  10302. if test -z "$ac_cv_prog_STRIP"; then
  10303. ac_ct_STRIP=$STRIP
  10304. # Extract the first word of "strip", so it can be a program name with args.
  10305. set dummy strip; ac_word=$2
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10307. $as_echo_n "checking for $ac_word... " >&6; }
  10308. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10309. $as_echo_n "(cached) " >&6
  10310. else
  10311. if test -n "$ac_ct_STRIP"; then
  10312. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10313. else
  10314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10315. for as_dir in $PATH
  10316. do
  10317. IFS=$as_save_IFS
  10318. test -z "$as_dir" && as_dir=.
  10319. for ac_exec_ext in '' $ac_executable_extensions; do
  10320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10321. ac_cv_prog_ac_ct_STRIP="strip"
  10322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10323. break 2
  10324. fi
  10325. done
  10326. done
  10327. IFS=$as_save_IFS
  10328. fi
  10329. fi
  10330. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10331. if test -n "$ac_ct_STRIP"; then
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10333. $as_echo "$ac_ct_STRIP" >&6; }
  10334. else
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10336. $as_echo "no" >&6; }
  10337. fi
  10338. if test "x$ac_ct_STRIP" = x; then
  10339. STRIP=":"
  10340. else
  10341. case $cross_compiling:$ac_tool_warned in
  10342. yes:)
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10344. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10345. ac_tool_warned=yes ;;
  10346. esac
  10347. STRIP=$ac_ct_STRIP
  10348. fi
  10349. else
  10350. STRIP="$ac_cv_prog_STRIP"
  10351. fi
  10352. test -z "$STRIP" && STRIP=:
  10353. if test -n "$ac_tool_prefix"; then
  10354. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  10355. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10357. $as_echo_n "checking for $ac_word... " >&6; }
  10358. if ${ac_cv_prog_RANLIB+:} false; then :
  10359. $as_echo_n "(cached) " >&6
  10360. else
  10361. if test -n "$RANLIB"; then
  10362. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10363. else
  10364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10365. for as_dir in $PATH
  10366. do
  10367. IFS=$as_save_IFS
  10368. test -z "$as_dir" && as_dir=.
  10369. for ac_exec_ext in '' $ac_executable_extensions; do
  10370. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10371. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10373. break 2
  10374. fi
  10375. done
  10376. done
  10377. IFS=$as_save_IFS
  10378. fi
  10379. fi
  10380. RANLIB=$ac_cv_prog_RANLIB
  10381. if test -n "$RANLIB"; then
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10383. $as_echo "$RANLIB" >&6; }
  10384. else
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10386. $as_echo "no" >&6; }
  10387. fi
  10388. fi
  10389. if test -z "$ac_cv_prog_RANLIB"; then
  10390. ac_ct_RANLIB=$RANLIB
  10391. # Extract the first word of "ranlib", so it can be a program name with args.
  10392. set dummy ranlib; ac_word=$2
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10394. $as_echo_n "checking for $ac_word... " >&6; }
  10395. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  10396. $as_echo_n "(cached) " >&6
  10397. else
  10398. if test -n "$ac_ct_RANLIB"; then
  10399. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10400. else
  10401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10402. for as_dir in $PATH
  10403. do
  10404. IFS=$as_save_IFS
  10405. test -z "$as_dir" && as_dir=.
  10406. for ac_exec_ext in '' $ac_executable_extensions; do
  10407. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10408. ac_cv_prog_ac_ct_RANLIB="ranlib"
  10409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10410. break 2
  10411. fi
  10412. done
  10413. done
  10414. IFS=$as_save_IFS
  10415. fi
  10416. fi
  10417. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10418. if test -n "$ac_ct_RANLIB"; then
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  10420. $as_echo "$ac_ct_RANLIB" >&6; }
  10421. else
  10422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10423. $as_echo "no" >&6; }
  10424. fi
  10425. if test "x$ac_ct_RANLIB" = x; then
  10426. RANLIB=":"
  10427. else
  10428. case $cross_compiling:$ac_tool_warned in
  10429. yes:)
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10431. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10432. ac_tool_warned=yes ;;
  10433. esac
  10434. RANLIB=$ac_ct_RANLIB
  10435. fi
  10436. else
  10437. RANLIB="$ac_cv_prog_RANLIB"
  10438. fi
  10439. test -z "$RANLIB" && RANLIB=:
  10440. # Determine commands to create old-style static archives.
  10441. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  10442. old_postinstall_cmds='chmod 644 $oldlib'
  10443. old_postuninstall_cmds=
  10444. if test -n "$RANLIB"; then
  10445. case $host_os in
  10446. openbsd*)
  10447. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  10448. ;;
  10449. *)
  10450. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  10451. ;;
  10452. esac
  10453. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  10454. fi
  10455. case $host_os in
  10456. darwin*)
  10457. lock_old_archive_extraction=yes ;;
  10458. *)
  10459. lock_old_archive_extraction=no ;;
  10460. esac
  10461. # If no C compiler was specified, use CC.
  10462. LTCC=${LTCC-"$CC"}
  10463. # If no C compiler flags were specified, use CFLAGS.
  10464. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10465. # Allow CC to be a program name with arguments.
  10466. compiler=$CC
  10467. # Check for command to grab the raw symbol name followed by C symbol from nm.
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  10469. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  10470. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  10471. $as_echo_n "(cached) " >&6
  10472. else
  10473. # These are sane defaults that work on at least a few old systems.
  10474. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  10475. # Character class describing NM global symbol codes.
  10476. symcode='[BCDEGRST]'
  10477. # Regexp to match symbols that can be accessed directly from C.
  10478. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  10479. # Define system-specific variables.
  10480. case $host_os in
  10481. aix*)
  10482. symcode='[BCDT]'
  10483. ;;
  10484. cygwin* | mingw* | pw32* | cegcc*)
  10485. symcode='[ABCDGISTW]'
  10486. ;;
  10487. hpux*)
  10488. if test "$host_cpu" = ia64; then
  10489. symcode='[ABCDEGRST]'
  10490. fi
  10491. ;;
  10492. irix* | nonstopux*)
  10493. symcode='[BCDEGRST]'
  10494. ;;
  10495. osf*)
  10496. symcode='[BCDEGQRST]'
  10497. ;;
  10498. solaris*)
  10499. symcode='[BDRT]'
  10500. ;;
  10501. sco3.2v5*)
  10502. symcode='[DT]'
  10503. ;;
  10504. sysv4.2uw2*)
  10505. symcode='[DT]'
  10506. ;;
  10507. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  10508. symcode='[ABDT]'
  10509. ;;
  10510. sysv4)
  10511. symcode='[DFNSTU]'
  10512. ;;
  10513. esac
  10514. # If we're using GNU nm, then use its standard symbol codes.
  10515. case `$NM -V 2>&1` in
  10516. *GNU* | *'with BFD'*)
  10517. symcode='[ABCDGIRSTW]' ;;
  10518. esac
  10519. # Transform an extracted symbol line into a proper C declaration.
  10520. # Some systems (esp. on ia64) link data and code symbols differently,
  10521. # so use this general approach.
  10522. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  10523. # Transform an extracted symbol line into symbol name and symbol address
  10524. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  10525. 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'"
  10526. # Handle CRLF in mingw tool chain
  10527. opt_cr=
  10528. case $build_os in
  10529. mingw*)
  10530. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  10531. ;;
  10532. esac
  10533. # Try without a prefix underscore, then with it.
  10534. for ac_symprfx in "" "_"; do
  10535. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  10536. symxfrm="\\1 $ac_symprfx\\2 \\2"
  10537. # Write the raw and C identifiers.
  10538. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10539. # Fake it for dumpbin and say T for any non-static function
  10540. # and D for any global variable.
  10541. # Also find C++ and __fastcall symbols from MSVC++,
  10542. # which start with @ or ?.
  10543. lt_cv_sys_global_symbol_pipe="$AWK '"\
  10544. " {last_section=section; section=\$ 3};"\
  10545. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  10546. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  10547. " \$ 0!~/External *\|/{next};"\
  10548. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  10549. " {if(hide[section]) next};"\
  10550. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  10551. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  10552. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  10553. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  10554. " ' prfx=^$ac_symprfx"
  10555. else
  10556. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  10557. fi
  10558. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  10559. # Check to see that the pipe works correctly.
  10560. pipe_works=no
  10561. rm -f conftest*
  10562. cat > conftest.$ac_ext <<_LT_EOF
  10563. #ifdef __cplusplus
  10564. extern "C" {
  10565. #endif
  10566. char nm_test_var;
  10567. void nm_test_func(void);
  10568. void nm_test_func(void){}
  10569. #ifdef __cplusplus
  10570. }
  10571. #endif
  10572. int main(){nm_test_var='a';nm_test_func();return(0);}
  10573. _LT_EOF
  10574. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10575. (eval $ac_compile) 2>&5
  10576. ac_status=$?
  10577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10578. test $ac_status = 0; }; then
  10579. # Now try to grab the symbols.
  10580. nlist=conftest.nm
  10581. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  10582. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  10583. ac_status=$?
  10584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10585. test $ac_status = 0; } && test -s "$nlist"; then
  10586. # Try sorting and uniquifying the output.
  10587. if sort "$nlist" | uniq > "$nlist"T; then
  10588. mv -f "$nlist"T "$nlist"
  10589. else
  10590. rm -f "$nlist"T
  10591. fi
  10592. # Make sure that we snagged all the symbols we need.
  10593. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  10594. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  10595. cat <<_LT_EOF > conftest.$ac_ext
  10596. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  10597. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  10598. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  10599. relocations are performed -- see ld's documentation on pseudo-relocs. */
  10600. # define LT_DLSYM_CONST
  10601. #elif defined(__osf__)
  10602. /* This system does not cope well with relocations in const data. */
  10603. # define LT_DLSYM_CONST
  10604. #else
  10605. # define LT_DLSYM_CONST const
  10606. #endif
  10607. #ifdef __cplusplus
  10608. extern "C" {
  10609. #endif
  10610. _LT_EOF
  10611. # Now generate the symbol file.
  10612. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  10613. cat <<_LT_EOF >> conftest.$ac_ext
  10614. /* The mapping between symbol names and symbols. */
  10615. LT_DLSYM_CONST struct {
  10616. const char *name;
  10617. void *address;
  10618. }
  10619. lt__PROGRAM__LTX_preloaded_symbols[] =
  10620. {
  10621. { "@PROGRAM@", (void *) 0 },
  10622. _LT_EOF
  10623. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  10624. cat <<\_LT_EOF >> conftest.$ac_ext
  10625. {0, (void *) 0}
  10626. };
  10627. /* This works around a problem in FreeBSD linker */
  10628. #ifdef FREEBSD_WORKAROUND
  10629. static const void *lt_preloaded_setup() {
  10630. return lt__PROGRAM__LTX_preloaded_symbols;
  10631. }
  10632. #endif
  10633. #ifdef __cplusplus
  10634. }
  10635. #endif
  10636. _LT_EOF
  10637. # Now try linking the two files.
  10638. mv conftest.$ac_objext conftstm.$ac_objext
  10639. lt_globsym_save_LIBS=$LIBS
  10640. lt_globsym_save_CFLAGS=$CFLAGS
  10641. LIBS="conftstm.$ac_objext"
  10642. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  10643. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10644. (eval $ac_link) 2>&5
  10645. ac_status=$?
  10646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10647. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  10648. pipe_works=yes
  10649. fi
  10650. LIBS=$lt_globsym_save_LIBS
  10651. CFLAGS=$lt_globsym_save_CFLAGS
  10652. else
  10653. echo "cannot find nm_test_func in $nlist" >&5
  10654. fi
  10655. else
  10656. echo "cannot find nm_test_var in $nlist" >&5
  10657. fi
  10658. else
  10659. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10660. fi
  10661. else
  10662. echo "$progname: failed program was:" >&5
  10663. cat conftest.$ac_ext >&5
  10664. fi
  10665. rm -rf conftest* conftst*
  10666. # Do not use the global_symbol_pipe unless it works.
  10667. if test "$pipe_works" = yes; then
  10668. break
  10669. else
  10670. lt_cv_sys_global_symbol_pipe=
  10671. fi
  10672. done
  10673. fi
  10674. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  10675. lt_cv_sys_global_symbol_to_cdecl=
  10676. fi
  10677. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  10679. $as_echo "failed" >&6; }
  10680. else
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  10682. $as_echo "ok" >&6; }
  10683. fi
  10684. # Response file support.
  10685. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10686. nm_file_list_spec='@'
  10687. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  10688. nm_file_list_spec='@'
  10689. fi
  10690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  10691. $as_echo_n "checking for sysroot... " >&6; }
  10692. # Check whether --with-sysroot was given.
  10693. if test "${with_sysroot+set}" = set; then :
  10694. withval=$with_sysroot;
  10695. else
  10696. with_sysroot=no
  10697. fi
  10698. lt_sysroot=
  10699. case ${with_sysroot} in #(
  10700. yes)
  10701. if test "$GCC" = yes; then
  10702. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  10703. fi
  10704. ;; #(
  10705. /*)
  10706. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  10707. ;; #(
  10708. no|'')
  10709. ;; #(
  10710. *)
  10711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  10712. $as_echo "${with_sysroot}" >&6; }
  10713. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  10714. ;;
  10715. esac
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  10717. $as_echo "${lt_sysroot:-no}" >&6; }
  10718. # Check whether --enable-libtool-lock was given.
  10719. if test "${enable_libtool_lock+set}" = set; then :
  10720. enableval=$enable_libtool_lock;
  10721. fi
  10722. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  10723. # Some flags need to be propagated to the compiler or linker for good
  10724. # libtool support.
  10725. case $host in
  10726. ia64-*-hpux*)
  10727. # Find out which ABI we are using.
  10728. echo 'int i;' > conftest.$ac_ext
  10729. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10730. (eval $ac_compile) 2>&5
  10731. ac_status=$?
  10732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10733. test $ac_status = 0; }; then
  10734. case `/usr/bin/file conftest.$ac_objext` in
  10735. *ELF-32*)
  10736. HPUX_IA64_MODE="32"
  10737. ;;
  10738. *ELF-64*)
  10739. HPUX_IA64_MODE="64"
  10740. ;;
  10741. esac
  10742. fi
  10743. rm -rf conftest*
  10744. ;;
  10745. *-*-irix6*)
  10746. # Find out which ABI we are using.
  10747. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  10748. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10749. (eval $ac_compile) 2>&5
  10750. ac_status=$?
  10751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10752. test $ac_status = 0; }; then
  10753. if test "$lt_cv_prog_gnu_ld" = yes; then
  10754. case `/usr/bin/file conftest.$ac_objext` in
  10755. *32-bit*)
  10756. LD="${LD-ld} -melf32bsmip"
  10757. ;;
  10758. *N32*)
  10759. LD="${LD-ld} -melf32bmipn32"
  10760. ;;
  10761. *64-bit*)
  10762. LD="${LD-ld} -melf64bmip"
  10763. ;;
  10764. esac
  10765. else
  10766. case `/usr/bin/file conftest.$ac_objext` in
  10767. *32-bit*)
  10768. LD="${LD-ld} -32"
  10769. ;;
  10770. *N32*)
  10771. LD="${LD-ld} -n32"
  10772. ;;
  10773. *64-bit*)
  10774. LD="${LD-ld} -64"
  10775. ;;
  10776. esac
  10777. fi
  10778. fi
  10779. rm -rf conftest*
  10780. ;;
  10781. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  10782. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  10783. # Find out which ABI we are using.
  10784. echo 'int i;' > conftest.$ac_ext
  10785. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10786. (eval $ac_compile) 2>&5
  10787. ac_status=$?
  10788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10789. test $ac_status = 0; }; then
  10790. case `/usr/bin/file conftest.o` in
  10791. *32-bit*)
  10792. case $host in
  10793. x86_64-*kfreebsd*-gnu)
  10794. LD="${LD-ld} -m elf_i386_fbsd"
  10795. ;;
  10796. x86_64-*linux*)
  10797. LD="${LD-ld} -m elf_i386"
  10798. ;;
  10799. ppc64-*linux*|powerpc64-*linux*)
  10800. LD="${LD-ld} -m elf32ppclinux"
  10801. ;;
  10802. s390x-*linux*)
  10803. LD="${LD-ld} -m elf_s390"
  10804. ;;
  10805. sparc64-*linux*)
  10806. LD="${LD-ld} -m elf32_sparc"
  10807. ;;
  10808. esac
  10809. ;;
  10810. *64-bit*)
  10811. case $host in
  10812. x86_64-*kfreebsd*-gnu)
  10813. LD="${LD-ld} -m elf_x86_64_fbsd"
  10814. ;;
  10815. x86_64-*linux*)
  10816. LD="${LD-ld} -m elf_x86_64"
  10817. ;;
  10818. ppc*-*linux*|powerpc*-*linux*)
  10819. LD="${LD-ld} -m elf64ppc"
  10820. ;;
  10821. s390*-*linux*|s390*-*tpf*)
  10822. LD="${LD-ld} -m elf64_s390"
  10823. ;;
  10824. sparc*-*linux*)
  10825. LD="${LD-ld} -m elf64_sparc"
  10826. ;;
  10827. esac
  10828. ;;
  10829. esac
  10830. fi
  10831. rm -rf conftest*
  10832. ;;
  10833. *-*-sco3.2v5*)
  10834. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  10835. SAVE_CFLAGS="$CFLAGS"
  10836. CFLAGS="$CFLAGS -belf"
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  10838. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  10839. if ${lt_cv_cc_needs_belf+:} false; then :
  10840. $as_echo_n "(cached) " >&6
  10841. else
  10842. ac_ext=c
  10843. ac_cpp='$CPP $CPPFLAGS'
  10844. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10845. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10846. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10848. /* end confdefs.h. */
  10849. int
  10850. main ()
  10851. {
  10852. ;
  10853. return 0;
  10854. }
  10855. _ACEOF
  10856. if ac_fn_c_try_link "$LINENO"; then :
  10857. lt_cv_cc_needs_belf=yes
  10858. else
  10859. lt_cv_cc_needs_belf=no
  10860. fi
  10861. rm -f core conftest.err conftest.$ac_objext \
  10862. conftest$ac_exeext conftest.$ac_ext
  10863. ac_ext=c
  10864. ac_cpp='$CPP $CPPFLAGS'
  10865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10868. fi
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  10870. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  10871. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  10872. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  10873. CFLAGS="$SAVE_CFLAGS"
  10874. fi
  10875. ;;
  10876. *-*solaris*)
  10877. # Find out which ABI we are using.
  10878. echo 'int i;' > conftest.$ac_ext
  10879. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10880. (eval $ac_compile) 2>&5
  10881. ac_status=$?
  10882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10883. test $ac_status = 0; }; then
  10884. case `/usr/bin/file conftest.o` in
  10885. *64-bit*)
  10886. case $lt_cv_prog_gnu_ld in
  10887. yes*)
  10888. case $host in
  10889. i?86-*-solaris*)
  10890. LD="${LD-ld} -m elf_x86_64"
  10891. ;;
  10892. sparc*-*-solaris*)
  10893. LD="${LD-ld} -m elf64_sparc"
  10894. ;;
  10895. esac
  10896. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  10897. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  10898. LD="${LD-ld}_sol2"
  10899. fi
  10900. ;;
  10901. *)
  10902. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  10903. LD="${LD-ld} -64"
  10904. fi
  10905. ;;
  10906. esac
  10907. ;;
  10908. esac
  10909. fi
  10910. rm -rf conftest*
  10911. ;;
  10912. esac
  10913. need_locks="$enable_libtool_lock"
  10914. if test -n "$ac_tool_prefix"; then
  10915. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  10916. set dummy ${ac_tool_prefix}mt; ac_word=$2
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10918. $as_echo_n "checking for $ac_word... " >&6; }
  10919. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  10920. $as_echo_n "(cached) " >&6
  10921. else
  10922. if test -n "$MANIFEST_TOOL"; then
  10923. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  10924. else
  10925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10926. for as_dir in $PATH
  10927. do
  10928. IFS=$as_save_IFS
  10929. test -z "$as_dir" && as_dir=.
  10930. for ac_exec_ext in '' $ac_executable_extensions; do
  10931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10932. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  10933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10934. break 2
  10935. fi
  10936. done
  10937. done
  10938. IFS=$as_save_IFS
  10939. fi
  10940. fi
  10941. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  10942. if test -n "$MANIFEST_TOOL"; then
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  10944. $as_echo "$MANIFEST_TOOL" >&6; }
  10945. else
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10947. $as_echo "no" >&6; }
  10948. fi
  10949. fi
  10950. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  10951. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  10952. # Extract the first word of "mt", so it can be a program name with args.
  10953. set dummy mt; ac_word=$2
  10954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10955. $as_echo_n "checking for $ac_word... " >&6; }
  10956. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  10957. $as_echo_n "(cached) " >&6
  10958. else
  10959. if test -n "$ac_ct_MANIFEST_TOOL"; then
  10960. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  10961. else
  10962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10963. for as_dir in $PATH
  10964. do
  10965. IFS=$as_save_IFS
  10966. test -z "$as_dir" && as_dir=.
  10967. for ac_exec_ext in '' $ac_executable_extensions; do
  10968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10969. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  10970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10971. break 2
  10972. fi
  10973. done
  10974. done
  10975. IFS=$as_save_IFS
  10976. fi
  10977. fi
  10978. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  10979. if test -n "$ac_ct_MANIFEST_TOOL"; then
  10980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  10981. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  10982. else
  10983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10984. $as_echo "no" >&6; }
  10985. fi
  10986. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  10987. MANIFEST_TOOL=":"
  10988. else
  10989. case $cross_compiling:$ac_tool_warned in
  10990. yes:)
  10991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10992. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10993. ac_tool_warned=yes ;;
  10994. esac
  10995. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  10996. fi
  10997. else
  10998. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  10999. fi
  11000. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  11001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  11002. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  11003. if ${lt_cv_path_mainfest_tool+:} false; then :
  11004. $as_echo_n "(cached) " >&6
  11005. else
  11006. lt_cv_path_mainfest_tool=no
  11007. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  11008. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  11009. cat conftest.err >&5
  11010. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  11011. lt_cv_path_mainfest_tool=yes
  11012. fi
  11013. rm -f conftest*
  11014. fi
  11015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  11016. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  11017. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  11018. MANIFEST_TOOL=:
  11019. fi
  11020. case $host_os in
  11021. rhapsody* | darwin*)
  11022. if test -n "$ac_tool_prefix"; then
  11023. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  11024. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11026. $as_echo_n "checking for $ac_word... " >&6; }
  11027. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  11028. $as_echo_n "(cached) " >&6
  11029. else
  11030. if test -n "$DSYMUTIL"; then
  11031. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  11032. else
  11033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11034. for as_dir in $PATH
  11035. do
  11036. IFS=$as_save_IFS
  11037. test -z "$as_dir" && as_dir=.
  11038. for ac_exec_ext in '' $ac_executable_extensions; do
  11039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11040. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  11041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11042. break 2
  11043. fi
  11044. done
  11045. done
  11046. IFS=$as_save_IFS
  11047. fi
  11048. fi
  11049. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  11050. if test -n "$DSYMUTIL"; then
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  11052. $as_echo "$DSYMUTIL" >&6; }
  11053. else
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11055. $as_echo "no" >&6; }
  11056. fi
  11057. fi
  11058. if test -z "$ac_cv_prog_DSYMUTIL"; then
  11059. ac_ct_DSYMUTIL=$DSYMUTIL
  11060. # Extract the first word of "dsymutil", so it can be a program name with args.
  11061. set dummy dsymutil; ac_word=$2
  11062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11063. $as_echo_n "checking for $ac_word... " >&6; }
  11064. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  11065. $as_echo_n "(cached) " >&6
  11066. else
  11067. if test -n "$ac_ct_DSYMUTIL"; then
  11068. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  11069. else
  11070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11071. for as_dir in $PATH
  11072. do
  11073. IFS=$as_save_IFS
  11074. test -z "$as_dir" && as_dir=.
  11075. for ac_exec_ext in '' $ac_executable_extensions; do
  11076. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11077. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  11078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11079. break 2
  11080. fi
  11081. done
  11082. done
  11083. IFS=$as_save_IFS
  11084. fi
  11085. fi
  11086. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  11087. if test -n "$ac_ct_DSYMUTIL"; then
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  11089. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  11090. else
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11092. $as_echo "no" >&6; }
  11093. fi
  11094. if test "x$ac_ct_DSYMUTIL" = x; then
  11095. DSYMUTIL=":"
  11096. else
  11097. case $cross_compiling:$ac_tool_warned in
  11098. yes:)
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11100. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11101. ac_tool_warned=yes ;;
  11102. esac
  11103. DSYMUTIL=$ac_ct_DSYMUTIL
  11104. fi
  11105. else
  11106. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  11107. fi
  11108. if test -n "$ac_tool_prefix"; then
  11109. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  11110. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11112. $as_echo_n "checking for $ac_word... " >&6; }
  11113. if ${ac_cv_prog_NMEDIT+:} false; then :
  11114. $as_echo_n "(cached) " >&6
  11115. else
  11116. if test -n "$NMEDIT"; then
  11117. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  11118. else
  11119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11120. for as_dir in $PATH
  11121. do
  11122. IFS=$as_save_IFS
  11123. test -z "$as_dir" && as_dir=.
  11124. for ac_exec_ext in '' $ac_executable_extensions; do
  11125. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11126. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  11127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11128. break 2
  11129. fi
  11130. done
  11131. done
  11132. IFS=$as_save_IFS
  11133. fi
  11134. fi
  11135. NMEDIT=$ac_cv_prog_NMEDIT
  11136. if test -n "$NMEDIT"; then
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  11138. $as_echo "$NMEDIT" >&6; }
  11139. else
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11141. $as_echo "no" >&6; }
  11142. fi
  11143. fi
  11144. if test -z "$ac_cv_prog_NMEDIT"; then
  11145. ac_ct_NMEDIT=$NMEDIT
  11146. # Extract the first word of "nmedit", so it can be a program name with args.
  11147. set dummy nmedit; ac_word=$2
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11149. $as_echo_n "checking for $ac_word... " >&6; }
  11150. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  11151. $as_echo_n "(cached) " >&6
  11152. else
  11153. if test -n "$ac_ct_NMEDIT"; then
  11154. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  11155. else
  11156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11157. for as_dir in $PATH
  11158. do
  11159. IFS=$as_save_IFS
  11160. test -z "$as_dir" && as_dir=.
  11161. for ac_exec_ext in '' $ac_executable_extensions; do
  11162. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11163. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  11164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11165. break 2
  11166. fi
  11167. done
  11168. done
  11169. IFS=$as_save_IFS
  11170. fi
  11171. fi
  11172. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  11173. if test -n "$ac_ct_NMEDIT"; then
  11174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  11175. $as_echo "$ac_ct_NMEDIT" >&6; }
  11176. else
  11177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11178. $as_echo "no" >&6; }
  11179. fi
  11180. if test "x$ac_ct_NMEDIT" = x; then
  11181. NMEDIT=":"
  11182. else
  11183. case $cross_compiling:$ac_tool_warned in
  11184. yes:)
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11186. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11187. ac_tool_warned=yes ;;
  11188. esac
  11189. NMEDIT=$ac_ct_NMEDIT
  11190. fi
  11191. else
  11192. NMEDIT="$ac_cv_prog_NMEDIT"
  11193. fi
  11194. if test -n "$ac_tool_prefix"; then
  11195. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  11196. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11198. $as_echo_n "checking for $ac_word... " >&6; }
  11199. if ${ac_cv_prog_LIPO+:} false; then :
  11200. $as_echo_n "(cached) " >&6
  11201. else
  11202. if test -n "$LIPO"; then
  11203. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  11204. else
  11205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11206. for as_dir in $PATH
  11207. do
  11208. IFS=$as_save_IFS
  11209. test -z "$as_dir" && as_dir=.
  11210. for ac_exec_ext in '' $ac_executable_extensions; do
  11211. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11212. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  11213. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11214. break 2
  11215. fi
  11216. done
  11217. done
  11218. IFS=$as_save_IFS
  11219. fi
  11220. fi
  11221. LIPO=$ac_cv_prog_LIPO
  11222. if test -n "$LIPO"; then
  11223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  11224. $as_echo "$LIPO" >&6; }
  11225. else
  11226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11227. $as_echo "no" >&6; }
  11228. fi
  11229. fi
  11230. if test -z "$ac_cv_prog_LIPO"; then
  11231. ac_ct_LIPO=$LIPO
  11232. # Extract the first word of "lipo", so it can be a program name with args.
  11233. set dummy lipo; ac_word=$2
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11235. $as_echo_n "checking for $ac_word... " >&6; }
  11236. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  11237. $as_echo_n "(cached) " >&6
  11238. else
  11239. if test -n "$ac_ct_LIPO"; then
  11240. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  11241. else
  11242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11243. for as_dir in $PATH
  11244. do
  11245. IFS=$as_save_IFS
  11246. test -z "$as_dir" && as_dir=.
  11247. for ac_exec_ext in '' $ac_executable_extensions; do
  11248. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11249. ac_cv_prog_ac_ct_LIPO="lipo"
  11250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11251. break 2
  11252. fi
  11253. done
  11254. done
  11255. IFS=$as_save_IFS
  11256. fi
  11257. fi
  11258. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  11259. if test -n "$ac_ct_LIPO"; then
  11260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  11261. $as_echo "$ac_ct_LIPO" >&6; }
  11262. else
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11264. $as_echo "no" >&6; }
  11265. fi
  11266. if test "x$ac_ct_LIPO" = x; then
  11267. LIPO=":"
  11268. else
  11269. case $cross_compiling:$ac_tool_warned in
  11270. yes:)
  11271. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11272. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11273. ac_tool_warned=yes ;;
  11274. esac
  11275. LIPO=$ac_ct_LIPO
  11276. fi
  11277. else
  11278. LIPO="$ac_cv_prog_LIPO"
  11279. fi
  11280. if test -n "$ac_tool_prefix"; then
  11281. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  11282. set dummy ${ac_tool_prefix}otool; ac_word=$2
  11283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11284. $as_echo_n "checking for $ac_word... " >&6; }
  11285. if ${ac_cv_prog_OTOOL+:} false; then :
  11286. $as_echo_n "(cached) " >&6
  11287. else
  11288. if test -n "$OTOOL"; then
  11289. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11290. else
  11291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11292. for as_dir in $PATH
  11293. do
  11294. IFS=$as_save_IFS
  11295. test -z "$as_dir" && as_dir=.
  11296. for ac_exec_ext in '' $ac_executable_extensions; do
  11297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11298. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  11299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11300. break 2
  11301. fi
  11302. done
  11303. done
  11304. IFS=$as_save_IFS
  11305. fi
  11306. fi
  11307. OTOOL=$ac_cv_prog_OTOOL
  11308. if test -n "$OTOOL"; then
  11309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11310. $as_echo "$OTOOL" >&6; }
  11311. else
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11313. $as_echo "no" >&6; }
  11314. fi
  11315. fi
  11316. if test -z "$ac_cv_prog_OTOOL"; then
  11317. ac_ct_OTOOL=$OTOOL
  11318. # Extract the first word of "otool", so it can be a program name with args.
  11319. set dummy otool; ac_word=$2
  11320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11321. $as_echo_n "checking for $ac_word... " >&6; }
  11322. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  11323. $as_echo_n "(cached) " >&6
  11324. else
  11325. if test -n "$ac_ct_OTOOL"; then
  11326. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  11327. else
  11328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11329. for as_dir in $PATH
  11330. do
  11331. IFS=$as_save_IFS
  11332. test -z "$as_dir" && as_dir=.
  11333. for ac_exec_ext in '' $ac_executable_extensions; do
  11334. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11335. ac_cv_prog_ac_ct_OTOOL="otool"
  11336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11337. break 2
  11338. fi
  11339. done
  11340. done
  11341. IFS=$as_save_IFS
  11342. fi
  11343. fi
  11344. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  11345. if test -n "$ac_ct_OTOOL"; then
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  11347. $as_echo "$ac_ct_OTOOL" >&6; }
  11348. else
  11349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11350. $as_echo "no" >&6; }
  11351. fi
  11352. if test "x$ac_ct_OTOOL" = x; then
  11353. OTOOL=":"
  11354. else
  11355. case $cross_compiling:$ac_tool_warned in
  11356. yes:)
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11358. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11359. ac_tool_warned=yes ;;
  11360. esac
  11361. OTOOL=$ac_ct_OTOOL
  11362. fi
  11363. else
  11364. OTOOL="$ac_cv_prog_OTOOL"
  11365. fi
  11366. if test -n "$ac_tool_prefix"; then
  11367. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  11368. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  11369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11370. $as_echo_n "checking for $ac_word... " >&6; }
  11371. if ${ac_cv_prog_OTOOL64+:} false; then :
  11372. $as_echo_n "(cached) " >&6
  11373. else
  11374. if test -n "$OTOOL64"; then
  11375. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  11376. else
  11377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11378. for as_dir in $PATH
  11379. do
  11380. IFS=$as_save_IFS
  11381. test -z "$as_dir" && as_dir=.
  11382. for ac_exec_ext in '' $ac_executable_extensions; do
  11383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11384. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  11385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11386. break 2
  11387. fi
  11388. done
  11389. done
  11390. IFS=$as_save_IFS
  11391. fi
  11392. fi
  11393. OTOOL64=$ac_cv_prog_OTOOL64
  11394. if test -n "$OTOOL64"; then
  11395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  11396. $as_echo "$OTOOL64" >&6; }
  11397. else
  11398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11399. $as_echo "no" >&6; }
  11400. fi
  11401. fi
  11402. if test -z "$ac_cv_prog_OTOOL64"; then
  11403. ac_ct_OTOOL64=$OTOOL64
  11404. # Extract the first word of "otool64", so it can be a program name with args.
  11405. set dummy otool64; ac_word=$2
  11406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11407. $as_echo_n "checking for $ac_word... " >&6; }
  11408. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  11409. $as_echo_n "(cached) " >&6
  11410. else
  11411. if test -n "$ac_ct_OTOOL64"; then
  11412. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  11413. else
  11414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11415. for as_dir in $PATH
  11416. do
  11417. IFS=$as_save_IFS
  11418. test -z "$as_dir" && as_dir=.
  11419. for ac_exec_ext in '' $ac_executable_extensions; do
  11420. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11421. ac_cv_prog_ac_ct_OTOOL64="otool64"
  11422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11423. break 2
  11424. fi
  11425. done
  11426. done
  11427. IFS=$as_save_IFS
  11428. fi
  11429. fi
  11430. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  11431. if test -n "$ac_ct_OTOOL64"; then
  11432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  11433. $as_echo "$ac_ct_OTOOL64" >&6; }
  11434. else
  11435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11436. $as_echo "no" >&6; }
  11437. fi
  11438. if test "x$ac_ct_OTOOL64" = x; then
  11439. OTOOL64=":"
  11440. else
  11441. case $cross_compiling:$ac_tool_warned in
  11442. yes:)
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11444. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11445. ac_tool_warned=yes ;;
  11446. esac
  11447. OTOOL64=$ac_ct_OTOOL64
  11448. fi
  11449. else
  11450. OTOOL64="$ac_cv_prog_OTOOL64"
  11451. fi
  11452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  11453. $as_echo_n "checking for -single_module linker flag... " >&6; }
  11454. if ${lt_cv_apple_cc_single_mod+:} false; then :
  11455. $as_echo_n "(cached) " >&6
  11456. else
  11457. lt_cv_apple_cc_single_mod=no
  11458. if test -z "${LT_MULTI_MODULE}"; then
  11459. # By default we will add the -single_module flag. You can override
  11460. # by either setting the environment variable LT_MULTI_MODULE
  11461. # non-empty at configure time, or by adding -multi_module to the
  11462. # link flags.
  11463. rm -rf libconftest.dylib*
  11464. echo "int foo(void){return 1;}" > conftest.c
  11465. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11466. -dynamiclib -Wl,-single_module conftest.c" >&5
  11467. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11468. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  11469. _lt_result=$?
  11470. # If there is a non-empty error log, and "single_module"
  11471. # appears in it, assume the flag caused a linker warning
  11472. if test -s conftest.err && $GREP single_module conftest.err; then
  11473. cat conftest.err >&5
  11474. # Otherwise, if the output was created with a 0 exit code from
  11475. # the compiler, it worked.
  11476. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  11477. lt_cv_apple_cc_single_mod=yes
  11478. else
  11479. cat conftest.err >&5
  11480. fi
  11481. rm -rf libconftest.dylib*
  11482. rm -f conftest.*
  11483. fi
  11484. fi
  11485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  11486. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  11487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  11488. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  11489. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  11490. $as_echo_n "(cached) " >&6
  11491. else
  11492. lt_cv_ld_exported_symbols_list=no
  11493. save_LDFLAGS=$LDFLAGS
  11494. echo "_main" > conftest.sym
  11495. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  11496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11497. /* end confdefs.h. */
  11498. int
  11499. main ()
  11500. {
  11501. ;
  11502. return 0;
  11503. }
  11504. _ACEOF
  11505. if ac_fn_c_try_link "$LINENO"; then :
  11506. lt_cv_ld_exported_symbols_list=yes
  11507. else
  11508. lt_cv_ld_exported_symbols_list=no
  11509. fi
  11510. rm -f core conftest.err conftest.$ac_objext \
  11511. conftest$ac_exeext conftest.$ac_ext
  11512. LDFLAGS="$save_LDFLAGS"
  11513. fi
  11514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  11515. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  11516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  11517. $as_echo_n "checking for -force_load linker flag... " >&6; }
  11518. if ${lt_cv_ld_force_load+:} false; then :
  11519. $as_echo_n "(cached) " >&6
  11520. else
  11521. lt_cv_ld_force_load=no
  11522. cat > conftest.c << _LT_EOF
  11523. int forced_loaded() { return 2;}
  11524. _LT_EOF
  11525. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  11526. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  11527. echo "$AR cru libconftest.a conftest.o" >&5
  11528. $AR cru libconftest.a conftest.o 2>&5
  11529. echo "$RANLIB libconftest.a" >&5
  11530. $RANLIB libconftest.a 2>&5
  11531. cat > conftest.c << _LT_EOF
  11532. int main() { return 0;}
  11533. _LT_EOF
  11534. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  11535. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  11536. _lt_result=$?
  11537. if test -s conftest.err && $GREP force_load conftest.err; then
  11538. cat conftest.err >&5
  11539. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  11540. lt_cv_ld_force_load=yes
  11541. else
  11542. cat conftest.err >&5
  11543. fi
  11544. rm -f conftest.err libconftest.a conftest conftest.c
  11545. rm -rf conftest.dSYM
  11546. fi
  11547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  11548. $as_echo "$lt_cv_ld_force_load" >&6; }
  11549. case $host_os in
  11550. rhapsody* | darwin1.[012])
  11551. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  11552. darwin1.*)
  11553. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11554. darwin*) # darwin 5.x on
  11555. # if running on 10.5 or later, the deployment target defaults
  11556. # to the OS version, if on x86, and 10.4, the deployment
  11557. # target defaults to 10.4. Don't you love it?
  11558. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  11559. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  11560. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11561. 10.[012]*)
  11562. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11563. 10.*)
  11564. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11565. esac
  11566. ;;
  11567. esac
  11568. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  11569. _lt_dar_single_mod='$single_module'
  11570. fi
  11571. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  11572. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  11573. else
  11574. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11575. fi
  11576. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  11577. _lt_dsymutil='~$DSYMUTIL $lib || :'
  11578. else
  11579. _lt_dsymutil=
  11580. fi
  11581. ;;
  11582. esac
  11583. for ac_header in dlfcn.h
  11584. do :
  11585. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  11586. "
  11587. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  11588. cat >>confdefs.h <<_ACEOF
  11589. #define HAVE_DLFCN_H 1
  11590. _ACEOF
  11591. fi
  11592. done
  11593. # Set options
  11594. enable_dlopen=no
  11595. # Check whether --enable-shared was given.
  11596. if test "${enable_shared+set}" = set; then :
  11597. enableval=$enable_shared; p=${PACKAGE-default}
  11598. case $enableval in
  11599. yes) enable_shared=yes ;;
  11600. no) enable_shared=no ;;
  11601. *)
  11602. enable_shared=no
  11603. # Look at the argument we got. We use all the common list separators.
  11604. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11605. for pkg in $enableval; do
  11606. IFS="$lt_save_ifs"
  11607. if test "X$pkg" = "X$p"; then
  11608. enable_shared=yes
  11609. fi
  11610. done
  11611. IFS="$lt_save_ifs"
  11612. ;;
  11613. esac
  11614. else
  11615. enable_shared=yes
  11616. fi
  11617. # Check whether --enable-static was given.
  11618. if test "${enable_static+set}" = set; then :
  11619. enableval=$enable_static; p=${PACKAGE-default}
  11620. case $enableval in
  11621. yes) enable_static=yes ;;
  11622. no) enable_static=no ;;
  11623. *)
  11624. enable_static=no
  11625. # Look at the argument we got. We use all the common list separators.
  11626. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11627. for pkg in $enableval; do
  11628. IFS="$lt_save_ifs"
  11629. if test "X$pkg" = "X$p"; then
  11630. enable_static=yes
  11631. fi
  11632. done
  11633. IFS="$lt_save_ifs"
  11634. ;;
  11635. esac
  11636. else
  11637. enable_static=yes
  11638. fi
  11639. # Check whether --with-pic was given.
  11640. if test "${with_pic+set}" = set; then :
  11641. withval=$with_pic; lt_p=${PACKAGE-default}
  11642. case $withval in
  11643. yes|no) pic_mode=$withval ;;
  11644. *)
  11645. pic_mode=default
  11646. # Look at the argument we got. We use all the common list separators.
  11647. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11648. for lt_pkg in $withval; do
  11649. IFS="$lt_save_ifs"
  11650. if test "X$lt_pkg" = "X$lt_p"; then
  11651. pic_mode=yes
  11652. fi
  11653. done
  11654. IFS="$lt_save_ifs"
  11655. ;;
  11656. esac
  11657. else
  11658. pic_mode=default
  11659. fi
  11660. test -z "$pic_mode" && pic_mode=default
  11661. # Check whether --enable-fast-install was given.
  11662. if test "${enable_fast_install+set}" = set; then :
  11663. enableval=$enable_fast_install; p=${PACKAGE-default}
  11664. case $enableval in
  11665. yes) enable_fast_install=yes ;;
  11666. no) enable_fast_install=no ;;
  11667. *)
  11668. enable_fast_install=no
  11669. # Look at the argument we got. We use all the common list separators.
  11670. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11671. for pkg in $enableval; do
  11672. IFS="$lt_save_ifs"
  11673. if test "X$pkg" = "X$p"; then
  11674. enable_fast_install=yes
  11675. fi
  11676. done
  11677. IFS="$lt_save_ifs"
  11678. ;;
  11679. esac
  11680. else
  11681. enable_fast_install=yes
  11682. fi
  11683. # This can be used to rebuild libtool when needed
  11684. LIBTOOL_DEPS="$ltmain"
  11685. # Always use our own libtool.
  11686. LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
  11687. test -z "$LN_S" && LN_S="ln -s"
  11688. if test -n "${ZSH_VERSION+set}" ; then
  11689. setopt NO_GLOB_SUBST
  11690. fi
  11691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  11692. $as_echo_n "checking for objdir... " >&6; }
  11693. if ${lt_cv_objdir+:} false; then :
  11694. $as_echo_n "(cached) " >&6
  11695. else
  11696. rm -f .libs 2>/dev/null
  11697. mkdir .libs 2>/dev/null
  11698. if test -d .libs; then
  11699. lt_cv_objdir=.libs
  11700. else
  11701. # MS-DOS does not allow filenames that begin with a dot.
  11702. lt_cv_objdir=_libs
  11703. fi
  11704. rmdir .libs 2>/dev/null
  11705. fi
  11706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  11707. $as_echo "$lt_cv_objdir" >&6; }
  11708. objdir=$lt_cv_objdir
  11709. cat >>confdefs.h <<_ACEOF
  11710. #define LT_OBJDIR "$lt_cv_objdir/"
  11711. _ACEOF
  11712. case $host_os in
  11713. aix3*)
  11714. # AIX sometimes has problems with the GCC collect2 program. For some
  11715. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11716. # vanish in a puff of smoke.
  11717. if test "X${COLLECT_NAMES+set}" != Xset; then
  11718. COLLECT_NAMES=
  11719. export COLLECT_NAMES
  11720. fi
  11721. ;;
  11722. esac
  11723. # Global variables:
  11724. ofile=libtool
  11725. can_build_shared=yes
  11726. # All known linkers require a `.a' archive for static linking (except MSVC,
  11727. # which needs '.lib').
  11728. libext=a
  11729. with_gnu_ld="$lt_cv_prog_gnu_ld"
  11730. old_CC="$CC"
  11731. old_CFLAGS="$CFLAGS"
  11732. # Set sane defaults for various variables
  11733. test -z "$CC" && CC=cc
  11734. test -z "$LTCC" && LTCC=$CC
  11735. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  11736. test -z "$LD" && LD=ld
  11737. test -z "$ac_objext" && ac_objext=o
  11738. for cc_temp in $compiler""; do
  11739. case $cc_temp in
  11740. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11741. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11742. \-*) ;;
  11743. *) break;;
  11744. esac
  11745. done
  11746. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11747. # Only perform the check for file, if the check method requires it
  11748. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  11749. case $deplibs_check_method in
  11750. file_magic*)
  11751. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  11752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  11753. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  11754. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  11755. $as_echo_n "(cached) " >&6
  11756. else
  11757. case $MAGIC_CMD in
  11758. [\\/*] | ?:[\\/]*)
  11759. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  11760. ;;
  11761. *)
  11762. lt_save_MAGIC_CMD="$MAGIC_CMD"
  11763. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11764. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11765. for ac_dir in $ac_dummy; do
  11766. IFS="$lt_save_ifs"
  11767. test -z "$ac_dir" && ac_dir=.
  11768. if test -f $ac_dir/${ac_tool_prefix}file; then
  11769. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  11770. if test -n "$file_magic_test_file"; then
  11771. case $deplibs_check_method in
  11772. "file_magic "*)
  11773. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11774. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11775. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11776. $EGREP "$file_magic_regex" > /dev/null; then
  11777. :
  11778. else
  11779. cat <<_LT_EOF 1>&2
  11780. *** Warning: the command libtool uses to detect shared libraries,
  11781. *** $file_magic_cmd, produces output that libtool cannot recognize.
  11782. *** The result is that libtool may fail to recognize shared libraries
  11783. *** as such. This will affect the creation of libtool libraries that
  11784. *** depend on shared libraries, but programs linked with such libtool
  11785. *** libraries will work regardless of this problem. Nevertheless, you
  11786. *** may want to report the problem to your system manager and/or to
  11787. *** [email protected]
  11788. _LT_EOF
  11789. fi ;;
  11790. esac
  11791. fi
  11792. break
  11793. fi
  11794. done
  11795. IFS="$lt_save_ifs"
  11796. MAGIC_CMD="$lt_save_MAGIC_CMD"
  11797. ;;
  11798. esac
  11799. fi
  11800. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11801. if test -n "$MAGIC_CMD"; then
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  11803. $as_echo "$MAGIC_CMD" >&6; }
  11804. else
  11805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11806. $as_echo "no" >&6; }
  11807. fi
  11808. if test -z "$lt_cv_path_MAGIC_CMD"; then
  11809. if test -n "$ac_tool_prefix"; then
  11810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  11811. $as_echo_n "checking for file... " >&6; }
  11812. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  11813. $as_echo_n "(cached) " >&6
  11814. else
  11815. case $MAGIC_CMD in
  11816. [\\/*] | ?:[\\/]*)
  11817. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  11818. ;;
  11819. *)
  11820. lt_save_MAGIC_CMD="$MAGIC_CMD"
  11821. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11822. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11823. for ac_dir in $ac_dummy; do
  11824. IFS="$lt_save_ifs"
  11825. test -z "$ac_dir" && ac_dir=.
  11826. if test -f $ac_dir/file; then
  11827. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  11828. if test -n "$file_magic_test_file"; then
  11829. case $deplibs_check_method in
  11830. "file_magic "*)
  11831. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11832. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11833. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11834. $EGREP "$file_magic_regex" > /dev/null; then
  11835. :
  11836. else
  11837. cat <<_LT_EOF 1>&2
  11838. *** Warning: the command libtool uses to detect shared libraries,
  11839. *** $file_magic_cmd, produces output that libtool cannot recognize.
  11840. *** The result is that libtool may fail to recognize shared libraries
  11841. *** as such. This will affect the creation of libtool libraries that
  11842. *** depend on shared libraries, but programs linked with such libtool
  11843. *** libraries will work regardless of this problem. Nevertheless, you
  11844. *** may want to report the problem to your system manager and/or to
  11845. *** [email protected]
  11846. _LT_EOF
  11847. fi ;;
  11848. esac
  11849. fi
  11850. break
  11851. fi
  11852. done
  11853. IFS="$lt_save_ifs"
  11854. MAGIC_CMD="$lt_save_MAGIC_CMD"
  11855. ;;
  11856. esac
  11857. fi
  11858. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11859. if test -n "$MAGIC_CMD"; then
  11860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  11861. $as_echo "$MAGIC_CMD" >&6; }
  11862. else
  11863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11864. $as_echo "no" >&6; }
  11865. fi
  11866. else
  11867. MAGIC_CMD=:
  11868. fi
  11869. fi
  11870. fi
  11871. ;;
  11872. esac
  11873. # Use C for the default configuration in the libtool script
  11874. lt_save_CC="$CC"
  11875. ac_ext=c
  11876. ac_cpp='$CPP $CPPFLAGS'
  11877. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11878. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11879. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11880. # Source file extension for C test sources.
  11881. ac_ext=c
  11882. # Object file extension for compiled C test sources.
  11883. objext=o
  11884. objext=$objext
  11885. # Code to be used in simple compile tests
  11886. lt_simple_compile_test_code="int some_variable = 0;"
  11887. # Code to be used in simple link tests
  11888. lt_simple_link_test_code='int main(){return(0);}'
  11889. # If no C compiler was specified, use CC.
  11890. LTCC=${LTCC-"$CC"}
  11891. # If no C compiler flags were specified, use CFLAGS.
  11892. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11893. # Allow CC to be a program name with arguments.
  11894. compiler=$CC
  11895. # Save the default compiler, since it gets overwritten when the other
  11896. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  11897. compiler_DEFAULT=$CC
  11898. # save warnings/boilerplate of simple test code
  11899. ac_outfile=conftest.$ac_objext
  11900. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11901. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11902. _lt_compiler_boilerplate=`cat conftest.err`
  11903. $RM conftest*
  11904. ac_outfile=conftest.$ac_objext
  11905. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11906. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11907. _lt_linker_boilerplate=`cat conftest.err`
  11908. $RM -r conftest*
  11909. ## CAVEAT EMPTOR:
  11910. ## There is no encapsulation within the following macros, do not change
  11911. ## the running order or otherwise move them around unless you know exactly
  11912. ## what you are doing...
  11913. if test -n "$compiler"; then
  11914. lt_prog_compiler_no_builtin_flag=
  11915. if test "$GCC" = yes; then
  11916. case $cc_basename in
  11917. nvcc*)
  11918. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  11919. *)
  11920. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  11921. esac
  11922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  11923. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  11924. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  11925. $as_echo_n "(cached) " >&6
  11926. else
  11927. lt_cv_prog_compiler_rtti_exceptions=no
  11928. ac_outfile=conftest.$ac_objext
  11929. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11930. lt_compiler_flag="-fno-rtti -fno-exceptions"
  11931. # Insert the option either (1) after the last *FLAGS variable, or
  11932. # (2) before a word containing "conftest.", or (3) at the end.
  11933. # Note that $ac_compile itself does not contain backslashes and begins
  11934. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11935. # The option is referenced via a variable to avoid confusing sed.
  11936. lt_compile=`echo "$ac_compile" | $SED \
  11937. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11938. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11939. -e 's:$: $lt_compiler_flag:'`
  11940. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11941. (eval "$lt_compile" 2>conftest.err)
  11942. ac_status=$?
  11943. cat conftest.err >&5
  11944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11945. if (exit $ac_status) && test -s "$ac_outfile"; then
  11946. # The compiler can only warn and ignore the option if not recognized
  11947. # So say no if there are warnings other than the usual output.
  11948. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11949. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11950. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11951. lt_cv_prog_compiler_rtti_exceptions=yes
  11952. fi
  11953. fi
  11954. $RM conftest*
  11955. fi
  11956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  11957. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  11958. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  11959. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  11960. else
  11961. :
  11962. fi
  11963. fi
  11964. lt_prog_compiler_wl=
  11965. lt_prog_compiler_pic=
  11966. lt_prog_compiler_static=
  11967. if test "$GCC" = yes; then
  11968. lt_prog_compiler_wl='-Wl,'
  11969. lt_prog_compiler_static='-static'
  11970. case $host_os in
  11971. aix*)
  11972. # All AIX code is PIC.
  11973. if test "$host_cpu" = ia64; then
  11974. # AIX 5 now supports IA64 processor
  11975. lt_prog_compiler_static='-Bstatic'
  11976. fi
  11977. ;;
  11978. amigaos*)
  11979. case $host_cpu in
  11980. powerpc)
  11981. # see comment about AmigaOS4 .so support
  11982. lt_prog_compiler_pic='-fPIC'
  11983. ;;
  11984. m68k)
  11985. # FIXME: we need at least 68020 code to build shared libraries, but
  11986. # adding the `-m68020' flag to GCC prevents building anything better,
  11987. # like `-m68040'.
  11988. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  11989. ;;
  11990. esac
  11991. ;;
  11992. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11993. # PIC is the default for these OSes.
  11994. ;;
  11995. mingw* | cygwin* | pw32* | os2* | cegcc*)
  11996. # This hack is so that the source file can tell whether it is being
  11997. # built for inclusion in a dll (and should export symbols for example).
  11998. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11999. # (--disable-auto-import) libraries
  12000. lt_prog_compiler_pic='-DDLL_EXPORT'
  12001. ;;
  12002. darwin* | rhapsody*)
  12003. # PIC is the default on this platform
  12004. # Common symbols not allowed in MH_DYLIB files
  12005. lt_prog_compiler_pic='-fno-common'
  12006. ;;
  12007. haiku*)
  12008. # PIC is the default for Haiku.
  12009. # The "-static" flag exists, but is broken.
  12010. lt_prog_compiler_static=
  12011. ;;
  12012. hpux*)
  12013. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12014. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12015. # sets the default TLS model and affects inlining.
  12016. case $host_cpu in
  12017. hppa*64*)
  12018. # +Z the default
  12019. ;;
  12020. *)
  12021. lt_prog_compiler_pic='-fPIC'
  12022. ;;
  12023. esac
  12024. ;;
  12025. interix[3-9]*)
  12026. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12027. # Instead, we relocate shared libraries at runtime.
  12028. ;;
  12029. msdosdjgpp*)
  12030. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12031. # on systems that don't support them.
  12032. lt_prog_compiler_can_build_shared=no
  12033. enable_shared=no
  12034. ;;
  12035. *nto* | *qnx*)
  12036. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12037. # it will coredump.
  12038. lt_prog_compiler_pic='-fPIC -shared'
  12039. ;;
  12040. sysv4*MP*)
  12041. if test -d /usr/nec; then
  12042. lt_prog_compiler_pic=-Kconform_pic
  12043. fi
  12044. ;;
  12045. *)
  12046. lt_prog_compiler_pic='-fPIC'
  12047. ;;
  12048. esac
  12049. case $cc_basename in
  12050. nvcc*) # Cuda Compiler Driver 2.2
  12051. lt_prog_compiler_wl='-Xlinker '
  12052. if test -n "$lt_prog_compiler_pic"; then
  12053. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  12054. fi
  12055. ;;
  12056. esac
  12057. else
  12058. # PORTME Check for flag to pass linker flags through the system compiler.
  12059. case $host_os in
  12060. aix*)
  12061. lt_prog_compiler_wl='-Wl,'
  12062. if test "$host_cpu" = ia64; then
  12063. # AIX 5 now supports IA64 processor
  12064. lt_prog_compiler_static='-Bstatic'
  12065. else
  12066. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  12067. fi
  12068. ;;
  12069. mingw* | cygwin* | pw32* | os2* | cegcc*)
  12070. # This hack is so that the source file can tell whether it is being
  12071. # built for inclusion in a dll (and should export symbols for example).
  12072. lt_prog_compiler_pic='-DDLL_EXPORT'
  12073. ;;
  12074. hpux9* | hpux10* | hpux11*)
  12075. lt_prog_compiler_wl='-Wl,'
  12076. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12077. # not for PA HP-UX.
  12078. case $host_cpu in
  12079. hppa*64*|ia64*)
  12080. # +Z the default
  12081. ;;
  12082. *)
  12083. lt_prog_compiler_pic='+Z'
  12084. ;;
  12085. esac
  12086. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12087. lt_prog_compiler_static='${wl}-a ${wl}archive'
  12088. ;;
  12089. irix5* | irix6* | nonstopux*)
  12090. lt_prog_compiler_wl='-Wl,'
  12091. # PIC (with -KPIC) is the default.
  12092. lt_prog_compiler_static='-non_shared'
  12093. ;;
  12094. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12095. case $cc_basename in
  12096. # old Intel for x86_64 which still supported -KPIC.
  12097. ecc*)
  12098. lt_prog_compiler_wl='-Wl,'
  12099. lt_prog_compiler_pic='-KPIC'
  12100. lt_prog_compiler_static='-static'
  12101. ;;
  12102. # icc used to be incompatible with GCC.
  12103. # ICC 10 doesn't accept -KPIC any more.
  12104. icc* | ifort*)
  12105. lt_prog_compiler_wl='-Wl,'
  12106. lt_prog_compiler_pic='-fPIC'
  12107. lt_prog_compiler_static='-static'
  12108. ;;
  12109. # Lahey Fortran 8.1.
  12110. lf95*)
  12111. lt_prog_compiler_wl='-Wl,'
  12112. lt_prog_compiler_pic='--shared'
  12113. lt_prog_compiler_static='--static'
  12114. ;;
  12115. nagfor*)
  12116. # NAG Fortran compiler
  12117. lt_prog_compiler_wl='-Wl,-Wl,,'
  12118. lt_prog_compiler_pic='-PIC'
  12119. lt_prog_compiler_static='-Bstatic'
  12120. ;;
  12121. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  12122. # Portland Group compilers (*not* the Pentium gcc compiler,
  12123. # which looks to be a dead project)
  12124. lt_prog_compiler_wl='-Wl,'
  12125. lt_prog_compiler_pic='-fpic'
  12126. lt_prog_compiler_static='-Bstatic'
  12127. ;;
  12128. ccc*)
  12129. lt_prog_compiler_wl='-Wl,'
  12130. # All Alpha code is PIC.
  12131. lt_prog_compiler_static='-non_shared'
  12132. ;;
  12133. xl* | bgxl* | bgf* | mpixl*)
  12134. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  12135. lt_prog_compiler_wl='-Wl,'
  12136. lt_prog_compiler_pic='-qpic'
  12137. lt_prog_compiler_static='-qstaticlink'
  12138. ;;
  12139. *)
  12140. case `$CC -V 2>&1 | sed 5q` in
  12141. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  12142. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12143. lt_prog_compiler_pic='-KPIC'
  12144. lt_prog_compiler_static='-Bstatic'
  12145. lt_prog_compiler_wl=''
  12146. ;;
  12147. *Sun\ F* | *Sun*Fortran*)
  12148. lt_prog_compiler_pic='-KPIC'
  12149. lt_prog_compiler_static='-Bstatic'
  12150. lt_prog_compiler_wl='-Qoption ld '
  12151. ;;
  12152. *Sun\ C*)
  12153. # Sun C 5.9
  12154. lt_prog_compiler_pic='-KPIC'
  12155. lt_prog_compiler_static='-Bstatic'
  12156. lt_prog_compiler_wl='-Wl,'
  12157. ;;
  12158. *Intel*\ [CF]*Compiler*)
  12159. lt_prog_compiler_wl='-Wl,'
  12160. lt_prog_compiler_pic='-fPIC'
  12161. lt_prog_compiler_static='-static'
  12162. ;;
  12163. *Portland\ Group*)
  12164. lt_prog_compiler_wl='-Wl,'
  12165. lt_prog_compiler_pic='-fpic'
  12166. lt_prog_compiler_static='-Bstatic'
  12167. ;;
  12168. esac
  12169. ;;
  12170. esac
  12171. ;;
  12172. newsos6)
  12173. lt_prog_compiler_pic='-KPIC'
  12174. lt_prog_compiler_static='-Bstatic'
  12175. ;;
  12176. *nto* | *qnx*)
  12177. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12178. # it will coredump.
  12179. lt_prog_compiler_pic='-fPIC -shared'
  12180. ;;
  12181. osf3* | osf4* | osf5*)
  12182. lt_prog_compiler_wl='-Wl,'
  12183. # All OSF/1 code is PIC.
  12184. lt_prog_compiler_static='-non_shared'
  12185. ;;
  12186. rdos*)
  12187. lt_prog_compiler_static='-non_shared'
  12188. ;;
  12189. solaris*)
  12190. lt_prog_compiler_pic='-KPIC'
  12191. lt_prog_compiler_static='-Bstatic'
  12192. case $cc_basename in
  12193. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  12194. lt_prog_compiler_wl='-Qoption ld ';;
  12195. *)
  12196. lt_prog_compiler_wl='-Wl,';;
  12197. esac
  12198. ;;
  12199. sunos4*)
  12200. lt_prog_compiler_wl='-Qoption ld '
  12201. lt_prog_compiler_pic='-PIC'
  12202. lt_prog_compiler_static='-Bstatic'
  12203. ;;
  12204. sysv4 | sysv4.2uw2* | sysv4.3*)
  12205. lt_prog_compiler_wl='-Wl,'
  12206. lt_prog_compiler_pic='-KPIC'
  12207. lt_prog_compiler_static='-Bstatic'
  12208. ;;
  12209. sysv4*MP*)
  12210. if test -d /usr/nec ;then
  12211. lt_prog_compiler_pic='-Kconform_pic'
  12212. lt_prog_compiler_static='-Bstatic'
  12213. fi
  12214. ;;
  12215. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12216. lt_prog_compiler_wl='-Wl,'
  12217. lt_prog_compiler_pic='-KPIC'
  12218. lt_prog_compiler_static='-Bstatic'
  12219. ;;
  12220. unicos*)
  12221. lt_prog_compiler_wl='-Wl,'
  12222. lt_prog_compiler_can_build_shared=no
  12223. ;;
  12224. uts4*)
  12225. lt_prog_compiler_pic='-pic'
  12226. lt_prog_compiler_static='-Bstatic'
  12227. ;;
  12228. *)
  12229. lt_prog_compiler_can_build_shared=no
  12230. ;;
  12231. esac
  12232. fi
  12233. case $host_os in
  12234. # For platforms which do not support PIC, -DPIC is meaningless:
  12235. *djgpp*)
  12236. lt_prog_compiler_pic=
  12237. ;;
  12238. *)
  12239. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  12240. ;;
  12241. esac
  12242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12243. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12244. if ${lt_cv_prog_compiler_pic+:} false; then :
  12245. $as_echo_n "(cached) " >&6
  12246. else
  12247. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  12248. fi
  12249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  12250. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  12251. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  12252. #
  12253. # Check to make sure the PIC flag actually works.
  12254. #
  12255. if test -n "$lt_prog_compiler_pic"; then
  12256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  12257. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  12258. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  12259. $as_echo_n "(cached) " >&6
  12260. else
  12261. lt_cv_prog_compiler_pic_works=no
  12262. ac_outfile=conftest.$ac_objext
  12263. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12264. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  12265. # Insert the option either (1) after the last *FLAGS variable, or
  12266. # (2) before a word containing "conftest.", or (3) at the end.
  12267. # Note that $ac_compile itself does not contain backslashes and begins
  12268. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12269. # The option is referenced via a variable to avoid confusing sed.
  12270. lt_compile=`echo "$ac_compile" | $SED \
  12271. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12272. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12273. -e 's:$: $lt_compiler_flag:'`
  12274. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12275. (eval "$lt_compile" 2>conftest.err)
  12276. ac_status=$?
  12277. cat conftest.err >&5
  12278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12279. if (exit $ac_status) && test -s "$ac_outfile"; then
  12280. # The compiler can only warn and ignore the option if not recognized
  12281. # So say no if there are warnings other than the usual output.
  12282. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12283. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12284. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12285. lt_cv_prog_compiler_pic_works=yes
  12286. fi
  12287. fi
  12288. $RM conftest*
  12289. fi
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  12291. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  12292. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  12293. case $lt_prog_compiler_pic in
  12294. "" | " "*) ;;
  12295. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  12296. esac
  12297. else
  12298. lt_prog_compiler_pic=
  12299. lt_prog_compiler_can_build_shared=no
  12300. fi
  12301. fi
  12302. #
  12303. # Check to make sure the static flag actually works.
  12304. #
  12305. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  12306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12307. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12308. if ${lt_cv_prog_compiler_static_works+:} false; then :
  12309. $as_echo_n "(cached) " >&6
  12310. else
  12311. lt_cv_prog_compiler_static_works=no
  12312. save_LDFLAGS="$LDFLAGS"
  12313. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12314. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12315. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12316. # The linker can only warn and ignore the option if not recognized
  12317. # So say no if there are warnings
  12318. if test -s conftest.err; then
  12319. # Append any errors to the config.log.
  12320. cat conftest.err 1>&5
  12321. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12322. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12323. if diff conftest.exp conftest.er2 >/dev/null; then
  12324. lt_cv_prog_compiler_static_works=yes
  12325. fi
  12326. else
  12327. lt_cv_prog_compiler_static_works=yes
  12328. fi
  12329. fi
  12330. $RM -r conftest*
  12331. LDFLAGS="$save_LDFLAGS"
  12332. fi
  12333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  12334. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  12335. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  12336. :
  12337. else
  12338. lt_prog_compiler_static=
  12339. fi
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12341. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12342. if ${lt_cv_prog_compiler_c_o+:} false; then :
  12343. $as_echo_n "(cached) " >&6
  12344. else
  12345. lt_cv_prog_compiler_c_o=no
  12346. $RM -r conftest 2>/dev/null
  12347. mkdir conftest
  12348. cd conftest
  12349. mkdir out
  12350. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12351. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12352. # Insert the option either (1) after the last *FLAGS variable, or
  12353. # (2) before a word containing "conftest.", or (3) at the end.
  12354. # Note that $ac_compile itself does not contain backslashes and begins
  12355. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12356. lt_compile=`echo "$ac_compile" | $SED \
  12357. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12358. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12359. -e 's:$: $lt_compiler_flag:'`
  12360. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12361. (eval "$lt_compile" 2>out/conftest.err)
  12362. ac_status=$?
  12363. cat out/conftest.err >&5
  12364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12365. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12366. then
  12367. # The compiler can only warn and ignore the option if not recognized
  12368. # So say no if there are warnings
  12369. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12370. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12371. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12372. lt_cv_prog_compiler_c_o=yes
  12373. fi
  12374. fi
  12375. chmod u+w . 2>&5
  12376. $RM conftest*
  12377. # SGI C++ compiler will create directory out/ii_files/ for
  12378. # template instantiation
  12379. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12380. $RM out/* && rmdir out
  12381. cd ..
  12382. $RM -r conftest
  12383. $RM conftest*
  12384. fi
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12386. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  12387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12388. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12389. if ${lt_cv_prog_compiler_c_o+:} false; then :
  12390. $as_echo_n "(cached) " >&6
  12391. else
  12392. lt_cv_prog_compiler_c_o=no
  12393. $RM -r conftest 2>/dev/null
  12394. mkdir conftest
  12395. cd conftest
  12396. mkdir out
  12397. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12398. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12399. # Insert the option either (1) after the last *FLAGS variable, or
  12400. # (2) before a word containing "conftest.", or (3) at the end.
  12401. # Note that $ac_compile itself does not contain backslashes and begins
  12402. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12403. lt_compile=`echo "$ac_compile" | $SED \
  12404. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12405. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12406. -e 's:$: $lt_compiler_flag:'`
  12407. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12408. (eval "$lt_compile" 2>out/conftest.err)
  12409. ac_status=$?
  12410. cat out/conftest.err >&5
  12411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12412. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12413. then
  12414. # The compiler can only warn and ignore the option if not recognized
  12415. # So say no if there are warnings
  12416. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12417. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12418. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12419. lt_cv_prog_compiler_c_o=yes
  12420. fi
  12421. fi
  12422. chmod u+w . 2>&5
  12423. $RM conftest*
  12424. # SGI C++ compiler will create directory out/ii_files/ for
  12425. # template instantiation
  12426. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12427. $RM out/* && rmdir out
  12428. cd ..
  12429. $RM -r conftest
  12430. $RM conftest*
  12431. fi
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12433. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  12434. hard_links="nottested"
  12435. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  12436. # do not overwrite the value of need_locks provided by the user
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12438. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12439. hard_links=yes
  12440. $RM conftest*
  12441. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12442. touch conftest.a
  12443. ln conftest.a conftest.b 2>&5 || hard_links=no
  12444. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12446. $as_echo "$hard_links" >&6; }
  12447. if test "$hard_links" = no; then
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12449. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12450. need_locks=warn
  12451. fi
  12452. else
  12453. need_locks=no
  12454. fi
  12455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12456. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12457. runpath_var=
  12458. allow_undefined_flag=
  12459. always_export_symbols=no
  12460. archive_cmds=
  12461. archive_expsym_cmds=
  12462. compiler_needs_object=no
  12463. enable_shared_with_static_runtimes=no
  12464. export_dynamic_flag_spec=
  12465. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12466. hardcode_automatic=no
  12467. hardcode_direct=no
  12468. hardcode_direct_absolute=no
  12469. hardcode_libdir_flag_spec=
  12470. hardcode_libdir_separator=
  12471. hardcode_minus_L=no
  12472. hardcode_shlibpath_var=unsupported
  12473. inherit_rpath=no
  12474. link_all_deplibs=unknown
  12475. module_cmds=
  12476. module_expsym_cmds=
  12477. old_archive_from_new_cmds=
  12478. old_archive_from_expsyms_cmds=
  12479. thread_safe_flag_spec=
  12480. whole_archive_flag_spec=
  12481. # include_expsyms should be a list of space-separated symbols to be *always*
  12482. # included in the symbol list
  12483. include_expsyms=
  12484. # exclude_expsyms can be an extended regexp of symbols to exclude
  12485. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12486. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12487. # as well as any symbol that contains `d'.
  12488. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12489. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12490. # platforms (ab)use it in PIC code, but their linkers get confused if
  12491. # the symbol is explicitly referenced. Since portable code cannot
  12492. # rely on this symbol name, it's probably fine to never include it in
  12493. # preloaded symbol tables.
  12494. # Exclude shared library initialization/finalization symbols.
  12495. extract_expsyms_cmds=
  12496. case $host_os in
  12497. cygwin* | mingw* | pw32* | cegcc*)
  12498. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12499. # When not using gcc, we currently assume that we are using
  12500. # Microsoft Visual C++.
  12501. if test "$GCC" != yes; then
  12502. with_gnu_ld=no
  12503. fi
  12504. ;;
  12505. interix*)
  12506. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12507. with_gnu_ld=yes
  12508. ;;
  12509. openbsd*)
  12510. with_gnu_ld=no
  12511. ;;
  12512. esac
  12513. ld_shlibs=yes
  12514. # On some targets, GNU ld is compatible enough with the native linker
  12515. # that we're better off using the native interface for both.
  12516. lt_use_gnu_ld_interface=no
  12517. if test "$with_gnu_ld" = yes; then
  12518. case $host_os in
  12519. aix*)
  12520. # The AIX port of GNU ld has always aspired to compatibility
  12521. # with the native linker. However, as the warning in the GNU ld
  12522. # block says, versions before 2.19.5* couldn't really create working
  12523. # shared libraries, regardless of the interface used.
  12524. case `$LD -v 2>&1` in
  12525. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  12526. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  12527. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  12528. *)
  12529. lt_use_gnu_ld_interface=yes
  12530. ;;
  12531. esac
  12532. ;;
  12533. *)
  12534. lt_use_gnu_ld_interface=yes
  12535. ;;
  12536. esac
  12537. fi
  12538. if test "$lt_use_gnu_ld_interface" = yes; then
  12539. # If archive_cmds runs LD, not CC, wlarc should be empty
  12540. wlarc='${wl}'
  12541. # Set some defaults for GNU ld with shared library support. These
  12542. # are reset later if shared libraries are not supported. Putting them
  12543. # here allows them to be overridden if necessary.
  12544. runpath_var=LD_RUN_PATH
  12545. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12546. export_dynamic_flag_spec='${wl}--export-dynamic'
  12547. # ancient GNU ld didn't support --whole-archive et. al.
  12548. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  12549. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12550. else
  12551. whole_archive_flag_spec=
  12552. fi
  12553. supports_anon_versioning=no
  12554. case `$LD -v 2>&1` in
  12555. *GNU\ gold*) supports_anon_versioning=yes ;;
  12556. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12557. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12558. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12559. *\ 2.11.*) ;; # other 2.11 versions
  12560. *) supports_anon_versioning=yes ;;
  12561. esac
  12562. # See if GNU ld supports shared libraries.
  12563. case $host_os in
  12564. aix[3-9]*)
  12565. # On AIX/PPC, the GNU linker is very broken
  12566. if test "$host_cpu" != ia64; then
  12567. ld_shlibs=no
  12568. cat <<_LT_EOF 1>&2
  12569. *** Warning: the GNU linker, at least up to release 2.19, is reported
  12570. *** to be unable to reliably create shared libraries on AIX.
  12571. *** Therefore, libtool is disabling shared libraries support. If you
  12572. *** really care for shared libraries, you may want to install binutils
  12573. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  12574. *** You will then need to restart the configuration process.
  12575. _LT_EOF
  12576. fi
  12577. ;;
  12578. amigaos*)
  12579. case $host_cpu in
  12580. powerpc)
  12581. # see comment about AmigaOS4 .so support
  12582. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12583. archive_expsym_cmds=''
  12584. ;;
  12585. m68k)
  12586. 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)'
  12587. hardcode_libdir_flag_spec='-L$libdir'
  12588. hardcode_minus_L=yes
  12589. ;;
  12590. esac
  12591. ;;
  12592. beos*)
  12593. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12594. allow_undefined_flag=unsupported
  12595. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12596. # support --undefined. This deserves some investigation. FIXME
  12597. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12598. else
  12599. ld_shlibs=no
  12600. fi
  12601. ;;
  12602. cygwin* | mingw* | pw32* | cegcc*)
  12603. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  12604. # as there is no search path for DLLs.
  12605. hardcode_libdir_flag_spec='-L$libdir'
  12606. export_dynamic_flag_spec='${wl}--export-all-symbols'
  12607. allow_undefined_flag=unsupported
  12608. always_export_symbols=no
  12609. enable_shared_with_static_runtimes=yes
  12610. 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'
  12611. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12612. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12613. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12614. # If the export-symbols file already is a .def file (1st line
  12615. # is EXPORTS), use it as is; otherwise, prepend...
  12616. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12617. cp $export_symbols $output_objdir/$soname.def;
  12618. else
  12619. echo EXPORTS > $output_objdir/$soname.def;
  12620. cat $export_symbols >> $output_objdir/$soname.def;
  12621. fi~
  12622. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12623. else
  12624. ld_shlibs=no
  12625. fi
  12626. ;;
  12627. haiku*)
  12628. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12629. link_all_deplibs=yes
  12630. ;;
  12631. interix[3-9]*)
  12632. hardcode_direct=no
  12633. hardcode_shlibpath_var=no
  12634. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  12635. export_dynamic_flag_spec='${wl}-E'
  12636. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12637. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12638. # default) and relocated if they conflict, which is a slow very memory
  12639. # consuming and fragmenting process. To avoid this, we pick a random,
  12640. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12641. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12642. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12643. 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'
  12644. ;;
  12645. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  12646. tmp_diet=no
  12647. if test "$host_os" = linux-dietlibc; then
  12648. case $cc_basename in
  12649. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  12650. esac
  12651. fi
  12652. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  12653. && test "$tmp_diet" = no
  12654. then
  12655. tmp_addflag=' $pic_flag'
  12656. tmp_sharedflag='-shared'
  12657. case $cc_basename,$host_cpu in
  12658. pgcc*) # Portland Group C compiler
  12659. 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'
  12660. tmp_addflag=' $pic_flag'
  12661. ;;
  12662. pgf77* | pgf90* | pgf95* | pgfortran*)
  12663. # Portland Group f77 and f90 compilers
  12664. 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'
  12665. tmp_addflag=' $pic_flag -Mnomain' ;;
  12666. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12667. tmp_addflag=' -i_dynamic' ;;
  12668. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12669. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12670. ifc* | ifort*) # Intel Fortran compiler
  12671. tmp_addflag=' -nofor_main' ;;
  12672. lf95*) # Lahey Fortran 8.1
  12673. whole_archive_flag_spec=
  12674. tmp_sharedflag='--shared' ;;
  12675. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  12676. tmp_sharedflag='-qmkshrobj'
  12677. tmp_addflag= ;;
  12678. nvcc*) # Cuda Compiler Driver 2.2
  12679. 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'
  12680. compiler_needs_object=yes
  12681. ;;
  12682. esac
  12683. case `$CC -V 2>&1 | sed 5q` in
  12684. *Sun\ C*) # Sun C 5.9
  12685. 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'
  12686. compiler_needs_object=yes
  12687. tmp_sharedflag='-G' ;;
  12688. *Sun\ F*) # Sun Fortran 8.3
  12689. tmp_sharedflag='-G' ;;
  12690. esac
  12691. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12692. if test "x$supports_anon_versioning" = xyes; then
  12693. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12694. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12695. echo "local: *; };" >> $output_objdir/$libname.ver~
  12696. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12697. fi
  12698. case $cc_basename in
  12699. xlf* | bgf* | bgxlf* | mpixlf*)
  12700. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  12701. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  12702. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12703. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  12704. if test "x$supports_anon_versioning" = xyes; then
  12705. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12706. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12707. echo "local: *; };" >> $output_objdir/$libname.ver~
  12708. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  12709. fi
  12710. ;;
  12711. esac
  12712. else
  12713. ld_shlibs=no
  12714. fi
  12715. ;;
  12716. netbsd*)
  12717. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12718. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12719. wlarc=
  12720. else
  12721. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12722. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12723. fi
  12724. ;;
  12725. solaris*)
  12726. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  12727. ld_shlibs=no
  12728. cat <<_LT_EOF 1>&2
  12729. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12730. *** create shared libraries on Solaris systems. Therefore, libtool
  12731. *** is disabling shared libraries support. We urge you to upgrade GNU
  12732. *** binutils to release 2.9.1 or newer. Another option is to modify
  12733. *** your PATH or compiler configuration so that the native linker is
  12734. *** used, and then restart.
  12735. _LT_EOF
  12736. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12737. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12738. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12739. else
  12740. ld_shlibs=no
  12741. fi
  12742. ;;
  12743. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12744. case `$LD -v 2>&1` in
  12745. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12746. ld_shlibs=no
  12747. cat <<_LT_EOF 1>&2
  12748. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12749. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12750. *** is disabling shared libraries support. We urge you to upgrade GNU
  12751. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12752. *** your PATH or compiler configuration so that the native linker is
  12753. *** used, and then restart.
  12754. _LT_EOF
  12755. ;;
  12756. *)
  12757. # For security reasons, it is highly recommended that you always
  12758. # use absolute paths for naming shared libraries, and exclude the
  12759. # DT_RUNPATH tag from executables and libraries. But doing so
  12760. # requires that you compile everything twice, which is a pain.
  12761. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12762. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12763. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12764. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12765. else
  12766. ld_shlibs=no
  12767. fi
  12768. ;;
  12769. esac
  12770. ;;
  12771. sunos4*)
  12772. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12773. wlarc=
  12774. hardcode_direct=yes
  12775. hardcode_shlibpath_var=no
  12776. ;;
  12777. *)
  12778. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12779. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12780. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12781. else
  12782. ld_shlibs=no
  12783. fi
  12784. ;;
  12785. esac
  12786. if test "$ld_shlibs" = no; then
  12787. runpath_var=
  12788. hardcode_libdir_flag_spec=
  12789. export_dynamic_flag_spec=
  12790. whole_archive_flag_spec=
  12791. fi
  12792. else
  12793. # PORTME fill in a description of your system's linker (not GNU ld)
  12794. case $host_os in
  12795. aix3*)
  12796. allow_undefined_flag=unsupported
  12797. always_export_symbols=yes
  12798. 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'
  12799. # Note: this linker hardcodes the directories in LIBPATH if there
  12800. # are no directories specified by -L.
  12801. hardcode_minus_L=yes
  12802. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12803. # Neither direct hardcoding nor static linking is supported with a
  12804. # broken collect2.
  12805. hardcode_direct=unsupported
  12806. fi
  12807. ;;
  12808. aix[4-9]*)
  12809. if test "$host_cpu" = ia64; then
  12810. # On IA64, the linker does run time linking by default, so we don't
  12811. # have to do anything special.
  12812. aix_use_runtimelinking=no
  12813. exp_sym_flag='-Bexport'
  12814. no_entry_flag=""
  12815. else
  12816. # If we're using GNU nm, then we don't want the "-C" option.
  12817. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12818. # Also, AIX nm treats weak defined symbols like other global
  12819. # defined symbols, whereas GNU nm marks them as "W".
  12820. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12821. 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'
  12822. else
  12823. 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'
  12824. fi
  12825. aix_use_runtimelinking=no
  12826. # Test if we are trying to use run time linking or normal
  12827. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12828. # need to do runtime linking.
  12829. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12830. for ld_flag in $LDFLAGS; do
  12831. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12832. aix_use_runtimelinking=yes
  12833. break
  12834. fi
  12835. done
  12836. ;;
  12837. esac
  12838. exp_sym_flag='-bexport'
  12839. no_entry_flag='-bnoentry'
  12840. fi
  12841. # When large executables or shared objects are built, AIX ld can
  12842. # have problems creating the table of contents. If linking a library
  12843. # or program results in "error TOC overflow" add -mminimal-toc to
  12844. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12845. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12846. archive_cmds=''
  12847. hardcode_direct=yes
  12848. hardcode_direct_absolute=yes
  12849. hardcode_libdir_separator=':'
  12850. link_all_deplibs=yes
  12851. file_list_spec='${wl}-f,'
  12852. if test "$GCC" = yes; then
  12853. case $host_os in aix4.[012]|aix4.[012].*)
  12854. # We only want to do this on AIX 4.2 and lower, the check
  12855. # below for broken collect2 doesn't work under 4.3+
  12856. collect2name=`${CC} -print-prog-name=collect2`
  12857. if test -f "$collect2name" &&
  12858. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12859. then
  12860. # We have reworked collect2
  12861. :
  12862. else
  12863. # We have old collect2
  12864. hardcode_direct=unsupported
  12865. # It fails to find uninstalled libraries when the uninstalled
  12866. # path is not listed in the libpath. Setting hardcode_minus_L
  12867. # to unsupported forces relinking
  12868. hardcode_minus_L=yes
  12869. hardcode_libdir_flag_spec='-L$libdir'
  12870. hardcode_libdir_separator=
  12871. fi
  12872. ;;
  12873. esac
  12874. shared_flag='-shared'
  12875. if test "$aix_use_runtimelinking" = yes; then
  12876. shared_flag="$shared_flag "'${wl}-G'
  12877. fi
  12878. else
  12879. # not using gcc
  12880. if test "$host_cpu" = ia64; then
  12881. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12882. # chokes on -Wl,-G. The following line is correct:
  12883. shared_flag='-G'
  12884. else
  12885. if test "$aix_use_runtimelinking" = yes; then
  12886. shared_flag='${wl}-G'
  12887. else
  12888. shared_flag='${wl}-bM:SRE'
  12889. fi
  12890. fi
  12891. fi
  12892. export_dynamic_flag_spec='${wl}-bexpall'
  12893. # It seems that -bexpall does not export symbols beginning with
  12894. # underscore (_), so it is better to generate a list of symbols to export.
  12895. always_export_symbols=yes
  12896. if test "$aix_use_runtimelinking" = yes; then
  12897. # Warning - without using the other runtime loading flags (-brtl),
  12898. # -berok will link without error, but may produce a broken library.
  12899. allow_undefined_flag='-berok'
  12900. # Determine the default libpath from the value encoded in an
  12901. # empty executable.
  12902. if test "${lt_cv_aix_libpath+set}" = set; then
  12903. aix_libpath=$lt_cv_aix_libpath
  12904. else
  12905. if ${lt_cv_aix_libpath_+:} false; then :
  12906. $as_echo_n "(cached) " >&6
  12907. else
  12908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12909. /* end confdefs.h. */
  12910. int
  12911. main ()
  12912. {
  12913. ;
  12914. return 0;
  12915. }
  12916. _ACEOF
  12917. if ac_fn_c_try_link "$LINENO"; then :
  12918. lt_aix_libpath_sed='
  12919. /Import File Strings/,/^$/ {
  12920. /^0/ {
  12921. s/^0 *\([^ ]*\) *$/\1/
  12922. p
  12923. }
  12924. }'
  12925. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12926. # Check for a 64-bit object if we didn't find anything.
  12927. if test -z "$lt_cv_aix_libpath_"; then
  12928. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12929. fi
  12930. fi
  12931. rm -f core conftest.err conftest.$ac_objext \
  12932. conftest$ac_exeext conftest.$ac_ext
  12933. if test -z "$lt_cv_aix_libpath_"; then
  12934. lt_cv_aix_libpath_="/usr/lib:/lib"
  12935. fi
  12936. fi
  12937. aix_libpath=$lt_cv_aix_libpath_
  12938. fi
  12939. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  12940. 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"
  12941. else
  12942. if test "$host_cpu" = ia64; then
  12943. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  12944. allow_undefined_flag="-z nodefs"
  12945. 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"
  12946. else
  12947. # Determine the default libpath from the value encoded in an
  12948. # empty executable.
  12949. if test "${lt_cv_aix_libpath+set}" = set; then
  12950. aix_libpath=$lt_cv_aix_libpath
  12951. else
  12952. if ${lt_cv_aix_libpath_+:} false; then :
  12953. $as_echo_n "(cached) " >&6
  12954. else
  12955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12956. /* end confdefs.h. */
  12957. int
  12958. main ()
  12959. {
  12960. ;
  12961. return 0;
  12962. }
  12963. _ACEOF
  12964. if ac_fn_c_try_link "$LINENO"; then :
  12965. lt_aix_libpath_sed='
  12966. /Import File Strings/,/^$/ {
  12967. /^0/ {
  12968. s/^0 *\([^ ]*\) *$/\1/
  12969. p
  12970. }
  12971. }'
  12972. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12973. # Check for a 64-bit object if we didn't find anything.
  12974. if test -z "$lt_cv_aix_libpath_"; then
  12975. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12976. fi
  12977. fi
  12978. rm -f core conftest.err conftest.$ac_objext \
  12979. conftest$ac_exeext conftest.$ac_ext
  12980. if test -z "$lt_cv_aix_libpath_"; then
  12981. lt_cv_aix_libpath_="/usr/lib:/lib"
  12982. fi
  12983. fi
  12984. aix_libpath=$lt_cv_aix_libpath_
  12985. fi
  12986. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  12987. # Warning - without using the other run time loading flags,
  12988. # -berok will link without error, but may produce a broken library.
  12989. no_undefined_flag=' ${wl}-bernotok'
  12990. allow_undefined_flag=' ${wl}-berok'
  12991. if test "$with_gnu_ld" = yes; then
  12992. # We only use this code for GNU lds that support --whole-archive.
  12993. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12994. else
  12995. # Exported symbols can be pulled into shared objects from archives
  12996. whole_archive_flag_spec='$convenience'
  12997. fi
  12998. archive_cmds_need_lc=yes
  12999. # This is similar to how AIX traditionally builds its shared libraries.
  13000. 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'
  13001. fi
  13002. fi
  13003. ;;
  13004. amigaos*)
  13005. case $host_cpu in
  13006. powerpc)
  13007. # see comment about AmigaOS4 .so support
  13008. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13009. archive_expsym_cmds=''
  13010. ;;
  13011. m68k)
  13012. 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)'
  13013. hardcode_libdir_flag_spec='-L$libdir'
  13014. hardcode_minus_L=yes
  13015. ;;
  13016. esac
  13017. ;;
  13018. bsdi[45]*)
  13019. export_dynamic_flag_spec=-rdynamic
  13020. ;;
  13021. cygwin* | mingw* | pw32* | cegcc*)
  13022. # When not using gcc, we currently assume that we are using
  13023. # Microsoft Visual C++.
  13024. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13025. # no search path for DLLs.
  13026. case $cc_basename in
  13027. cl*)
  13028. # Native MSVC
  13029. hardcode_libdir_flag_spec=' '
  13030. allow_undefined_flag=unsupported
  13031. always_export_symbols=yes
  13032. file_list_spec='@'
  13033. # Tell ltmain to make .lib files, not .a files.
  13034. libext=lib
  13035. # Tell ltmain to make .dll files, not .so files.
  13036. shrext_cmds=".dll"
  13037. # FIXME: Setting linknames here is a bad hack.
  13038. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  13039. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13040. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  13041. else
  13042. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  13043. fi~
  13044. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13045. linknames='
  13046. # The linker will not automatically build a static lib if we build a DLL.
  13047. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  13048. enable_shared_with_static_runtimes=yes
  13049. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13050. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13051. # Don't use ranlib
  13052. old_postinstall_cmds='chmod 644 $oldlib'
  13053. postlink_cmds='lt_outputfile="@OUTPUT@"~
  13054. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13055. case $lt_outputfile in
  13056. *.exe|*.EXE) ;;
  13057. *)
  13058. lt_outputfile="$lt_outputfile.exe"
  13059. lt_tool_outputfile="$lt_tool_outputfile.exe"
  13060. ;;
  13061. esac~
  13062. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  13063. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13064. $RM "$lt_outputfile.manifest";
  13065. fi'
  13066. ;;
  13067. *)
  13068. # Assume MSVC wrapper
  13069. hardcode_libdir_flag_spec=' '
  13070. allow_undefined_flag=unsupported
  13071. # Tell ltmain to make .lib files, not .a files.
  13072. libext=lib
  13073. # Tell ltmain to make .dll files, not .so files.
  13074. shrext_cmds=".dll"
  13075. # FIXME: Setting linknames here is a bad hack.
  13076. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  13077. # The linker will automatically build a .lib file if we build a DLL.
  13078. old_archive_from_new_cmds='true'
  13079. # FIXME: Should let the user specify the lib program.
  13080. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13081. enable_shared_with_static_runtimes=yes
  13082. ;;
  13083. esac
  13084. ;;
  13085. darwin* | rhapsody*)
  13086. archive_cmds_need_lc=no
  13087. hardcode_direct=no
  13088. hardcode_automatic=yes
  13089. hardcode_shlibpath_var=unsupported
  13090. if test "$lt_cv_ld_force_load" = "yes"; then
  13091. 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\"`'
  13092. else
  13093. whole_archive_flag_spec=''
  13094. fi
  13095. link_all_deplibs=yes
  13096. allow_undefined_flag="$_lt_dar_allow_undefined"
  13097. case $cc_basename in
  13098. ifort*) _lt_dar_can_shared=yes ;;
  13099. *) _lt_dar_can_shared=$GCC ;;
  13100. esac
  13101. if test "$_lt_dar_can_shared" = "yes"; then
  13102. output_verbose_link_cmd=func_echo_all
  13103. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  13104. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13105. 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}"
  13106. 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}"
  13107. else
  13108. ld_shlibs=no
  13109. fi
  13110. ;;
  13111. dgux*)
  13112. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13113. hardcode_libdir_flag_spec='-L$libdir'
  13114. hardcode_shlibpath_var=no
  13115. ;;
  13116. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13117. # support. Future versions do this automatically, but an explicit c++rt0.o
  13118. # does not break anything, and helps significantly (at the cost of a little
  13119. # extra space).
  13120. freebsd2.2*)
  13121. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13122. hardcode_libdir_flag_spec='-R$libdir'
  13123. hardcode_direct=yes
  13124. hardcode_shlibpath_var=no
  13125. ;;
  13126. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13127. freebsd2.*)
  13128. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13129. hardcode_direct=yes
  13130. hardcode_minus_L=yes
  13131. hardcode_shlibpath_var=no
  13132. ;;
  13133. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13134. freebsd* | dragonfly*)
  13135. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13136. hardcode_libdir_flag_spec='-R$libdir'
  13137. hardcode_direct=yes
  13138. hardcode_shlibpath_var=no
  13139. ;;
  13140. hpux9*)
  13141. if test "$GCC" = yes; then
  13142. 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'
  13143. else
  13144. 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'
  13145. fi
  13146. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13147. hardcode_libdir_separator=:
  13148. hardcode_direct=yes
  13149. # hardcode_minus_L: Not really in the search PATH,
  13150. # but as the default location of the library.
  13151. hardcode_minus_L=yes
  13152. export_dynamic_flag_spec='${wl}-E'
  13153. ;;
  13154. hpux10*)
  13155. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13156. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13157. else
  13158. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13159. fi
  13160. if test "$with_gnu_ld" = no; then
  13161. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13162. hardcode_libdir_separator=:
  13163. hardcode_direct=yes
  13164. hardcode_direct_absolute=yes
  13165. export_dynamic_flag_spec='${wl}-E'
  13166. # hardcode_minus_L: Not really in the search PATH,
  13167. # but as the default location of the library.
  13168. hardcode_minus_L=yes
  13169. fi
  13170. ;;
  13171. hpux11*)
  13172. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13173. case $host_cpu in
  13174. hppa*64*)
  13175. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13176. ;;
  13177. ia64*)
  13178. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13179. ;;
  13180. *)
  13181. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13182. ;;
  13183. esac
  13184. else
  13185. case $host_cpu in
  13186. hppa*64*)
  13187. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13188. ;;
  13189. ia64*)
  13190. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13191. ;;
  13192. *)
  13193. # Older versions of the 11.00 compiler do not understand -b yet
  13194. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  13196. $as_echo_n "checking if $CC understands -b... " >&6; }
  13197. if ${lt_cv_prog_compiler__b+:} false; then :
  13198. $as_echo_n "(cached) " >&6
  13199. else
  13200. lt_cv_prog_compiler__b=no
  13201. save_LDFLAGS="$LDFLAGS"
  13202. LDFLAGS="$LDFLAGS -b"
  13203. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13204. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13205. # The linker can only warn and ignore the option if not recognized
  13206. # So say no if there are warnings
  13207. if test -s conftest.err; then
  13208. # Append any errors to the config.log.
  13209. cat conftest.err 1>&5
  13210. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13211. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13212. if diff conftest.exp conftest.er2 >/dev/null; then
  13213. lt_cv_prog_compiler__b=yes
  13214. fi
  13215. else
  13216. lt_cv_prog_compiler__b=yes
  13217. fi
  13218. fi
  13219. $RM -r conftest*
  13220. LDFLAGS="$save_LDFLAGS"
  13221. fi
  13222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  13223. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  13224. if test x"$lt_cv_prog_compiler__b" = xyes; then
  13225. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13226. else
  13227. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13228. fi
  13229. ;;
  13230. esac
  13231. fi
  13232. if test "$with_gnu_ld" = no; then
  13233. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13234. hardcode_libdir_separator=:
  13235. case $host_cpu in
  13236. hppa*64*|ia64*)
  13237. hardcode_direct=no
  13238. hardcode_shlibpath_var=no
  13239. ;;
  13240. *)
  13241. hardcode_direct=yes
  13242. hardcode_direct_absolute=yes
  13243. export_dynamic_flag_spec='${wl}-E'
  13244. # hardcode_minus_L: Not really in the search PATH,
  13245. # but as the default location of the library.
  13246. hardcode_minus_L=yes
  13247. ;;
  13248. esac
  13249. fi
  13250. ;;
  13251. irix5* | irix6* | nonstopux*)
  13252. if test "$GCC" = yes; then
  13253. 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'
  13254. # Try to use the -exported_symbol ld option, if it does not
  13255. # work, assume that -exports_file does not work either and
  13256. # implicitly export all symbols.
  13257. # This should be the same for all languages, so no per-tag cache variable.
  13258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  13259. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  13260. if ${lt_cv_irix_exported_symbol+:} false; then :
  13261. $as_echo_n "(cached) " >&6
  13262. else
  13263. save_LDFLAGS="$LDFLAGS"
  13264. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  13265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13266. /* end confdefs.h. */
  13267. int foo (void) { return 0; }
  13268. _ACEOF
  13269. if ac_fn_c_try_link "$LINENO"; then :
  13270. lt_cv_irix_exported_symbol=yes
  13271. else
  13272. lt_cv_irix_exported_symbol=no
  13273. fi
  13274. rm -f core conftest.err conftest.$ac_objext \
  13275. conftest$ac_exeext conftest.$ac_ext
  13276. LDFLAGS="$save_LDFLAGS"
  13277. fi
  13278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  13279. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  13280. if test "$lt_cv_irix_exported_symbol" = yes; then
  13281. 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'
  13282. fi
  13283. else
  13284. 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'
  13285. 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'
  13286. fi
  13287. archive_cmds_need_lc='no'
  13288. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13289. hardcode_libdir_separator=:
  13290. inherit_rpath=yes
  13291. link_all_deplibs=yes
  13292. ;;
  13293. netbsd*)
  13294. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13295. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13296. else
  13297. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13298. fi
  13299. hardcode_libdir_flag_spec='-R$libdir'
  13300. hardcode_direct=yes
  13301. hardcode_shlibpath_var=no
  13302. ;;
  13303. newsos6)
  13304. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13305. hardcode_direct=yes
  13306. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13307. hardcode_libdir_separator=:
  13308. hardcode_shlibpath_var=no
  13309. ;;
  13310. *nto* | *qnx*)
  13311. ;;
  13312. openbsd*)
  13313. if test -f /usr/libexec/ld.so; then
  13314. hardcode_direct=yes
  13315. hardcode_shlibpath_var=no
  13316. hardcode_direct_absolute=yes
  13317. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13318. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13319. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13320. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13321. export_dynamic_flag_spec='${wl}-E'
  13322. else
  13323. case $host_os in
  13324. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13325. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13326. hardcode_libdir_flag_spec='-R$libdir'
  13327. ;;
  13328. *)
  13329. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13330. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13331. ;;
  13332. esac
  13333. fi
  13334. else
  13335. ld_shlibs=no
  13336. fi
  13337. ;;
  13338. os2*)
  13339. hardcode_libdir_flag_spec='-L$libdir'
  13340. hardcode_minus_L=yes
  13341. allow_undefined_flag=unsupported
  13342. 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'
  13343. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13344. ;;
  13345. osf3*)
  13346. if test "$GCC" = yes; then
  13347. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13348. 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'
  13349. else
  13350. allow_undefined_flag=' -expect_unresolved \*'
  13351. 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'
  13352. fi
  13353. archive_cmds_need_lc='no'
  13354. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13355. hardcode_libdir_separator=:
  13356. ;;
  13357. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13358. if test "$GCC" = yes; then
  13359. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13360. 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'
  13361. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13362. else
  13363. allow_undefined_flag=' -expect_unresolved \*'
  13364. 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'
  13365. 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~
  13366. $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'
  13367. # Both c and cxx compiler support -rpath directly
  13368. hardcode_libdir_flag_spec='-rpath $libdir'
  13369. fi
  13370. archive_cmds_need_lc='no'
  13371. hardcode_libdir_separator=:
  13372. ;;
  13373. solaris*)
  13374. no_undefined_flag=' -z defs'
  13375. if test "$GCC" = yes; then
  13376. wlarc='${wl}'
  13377. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13378. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13379. $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'
  13380. else
  13381. case `$CC -V 2>&1` in
  13382. *"Compilers 5.0"*)
  13383. wlarc=''
  13384. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13385. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13386. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  13387. ;;
  13388. *)
  13389. wlarc='${wl}'
  13390. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13391. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13392. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  13393. ;;
  13394. esac
  13395. fi
  13396. hardcode_libdir_flag_spec='-R$libdir'
  13397. hardcode_shlibpath_var=no
  13398. case $host_os in
  13399. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13400. *)
  13401. # The compiler driver will combine and reorder linker options,
  13402. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13403. # but is careful enough not to reorder.
  13404. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13405. if test "$GCC" = yes; then
  13406. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13407. else
  13408. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  13409. fi
  13410. ;;
  13411. esac
  13412. link_all_deplibs=yes
  13413. ;;
  13414. sunos4*)
  13415. if test "x$host_vendor" = xsequent; then
  13416. # Use $CC to link under sequent, because it throws in some extra .o
  13417. # files that make .init and .fini sections work.
  13418. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13419. else
  13420. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13421. fi
  13422. hardcode_libdir_flag_spec='-L$libdir'
  13423. hardcode_direct=yes
  13424. hardcode_minus_L=yes
  13425. hardcode_shlibpath_var=no
  13426. ;;
  13427. sysv4)
  13428. case $host_vendor in
  13429. sni)
  13430. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13431. hardcode_direct=yes # is this really true???
  13432. ;;
  13433. siemens)
  13434. ## LD is ld it makes a PLAMLIB
  13435. ## CC just makes a GrossModule.
  13436. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13437. reload_cmds='$CC -r -o $output$reload_objs'
  13438. hardcode_direct=no
  13439. ;;
  13440. motorola)
  13441. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13442. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  13443. ;;
  13444. esac
  13445. runpath_var='LD_RUN_PATH'
  13446. hardcode_shlibpath_var=no
  13447. ;;
  13448. sysv4.3*)
  13449. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13450. hardcode_shlibpath_var=no
  13451. export_dynamic_flag_spec='-Bexport'
  13452. ;;
  13453. sysv4*MP*)
  13454. if test -d /usr/nec; then
  13455. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13456. hardcode_shlibpath_var=no
  13457. runpath_var=LD_RUN_PATH
  13458. hardcode_runpath_var=yes
  13459. ld_shlibs=yes
  13460. fi
  13461. ;;
  13462. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13463. no_undefined_flag='${wl}-z,text'
  13464. archive_cmds_need_lc=no
  13465. hardcode_shlibpath_var=no
  13466. runpath_var='LD_RUN_PATH'
  13467. if test "$GCC" = yes; then
  13468. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13469. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13470. else
  13471. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13472. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13473. fi
  13474. ;;
  13475. sysv5* | sco3.2v5* | sco5v6*)
  13476. # Note: We can NOT use -z defs as we might desire, because we do not
  13477. # link with -lc, and that would cause any symbols used from libc to
  13478. # always be unresolved, which means just about no library would
  13479. # ever link correctly. If we're not using GNU ld we use -z text
  13480. # though, which does catch some bad symbols but isn't as heavy-handed
  13481. # as -z defs.
  13482. no_undefined_flag='${wl}-z,text'
  13483. allow_undefined_flag='${wl}-z,nodefs'
  13484. archive_cmds_need_lc=no
  13485. hardcode_shlibpath_var=no
  13486. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  13487. hardcode_libdir_separator=':'
  13488. link_all_deplibs=yes
  13489. export_dynamic_flag_spec='${wl}-Bexport'
  13490. runpath_var='LD_RUN_PATH'
  13491. if test "$GCC" = yes; then
  13492. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13493. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13494. else
  13495. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13496. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13497. fi
  13498. ;;
  13499. uts4*)
  13500. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13501. hardcode_libdir_flag_spec='-L$libdir'
  13502. hardcode_shlibpath_var=no
  13503. ;;
  13504. *)
  13505. ld_shlibs=no
  13506. ;;
  13507. esac
  13508. if test x$host_vendor = xsni; then
  13509. case $host in
  13510. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13511. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13512. ;;
  13513. esac
  13514. fi
  13515. fi
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  13517. $as_echo "$ld_shlibs" >&6; }
  13518. test "$ld_shlibs" = no && can_build_shared=no
  13519. with_gnu_ld=$with_gnu_ld
  13520. #
  13521. # Do we need to explicitly link libc?
  13522. #
  13523. case "x$archive_cmds_need_lc" in
  13524. x|xyes)
  13525. # Assume -lc should be added
  13526. archive_cmds_need_lc=yes
  13527. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13528. case $archive_cmds in
  13529. *'~'*)
  13530. # FIXME: we may have to deal with multi-command sequences.
  13531. ;;
  13532. '$CC '*)
  13533. # Test whether the compiler implicitly links with -lc since on some
  13534. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13535. # to ld, don't add -lc before -lgcc.
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13537. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13538. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  13539. $as_echo_n "(cached) " >&6
  13540. else
  13541. $RM conftest*
  13542. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13543. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13544. (eval $ac_compile) 2>&5
  13545. ac_status=$?
  13546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13547. test $ac_status = 0; } 2>conftest.err; then
  13548. soname=conftest
  13549. lib=conftest
  13550. libobjs=conftest.$ac_objext
  13551. deplibs=
  13552. wl=$lt_prog_compiler_wl
  13553. pic_flag=$lt_prog_compiler_pic
  13554. compiler_flags=-v
  13555. linker_flags=-v
  13556. verstring=
  13557. output_objdir=.
  13558. libname=conftest
  13559. lt_save_allow_undefined_flag=$allow_undefined_flag
  13560. allow_undefined_flag=
  13561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13562. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13563. ac_status=$?
  13564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13565. test $ac_status = 0; }
  13566. then
  13567. lt_cv_archive_cmds_need_lc=no
  13568. else
  13569. lt_cv_archive_cmds_need_lc=yes
  13570. fi
  13571. allow_undefined_flag=$lt_save_allow_undefined_flag
  13572. else
  13573. cat conftest.err 1>&5
  13574. fi
  13575. $RM conftest*
  13576. fi
  13577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  13578. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  13579. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  13580. ;;
  13581. esac
  13582. fi
  13583. ;;
  13584. esac
  13585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13586. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13587. if test "$GCC" = yes; then
  13588. case $host_os in
  13589. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  13590. *) lt_awk_arg="/^libraries:/" ;;
  13591. esac
  13592. case $host_os in
  13593. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  13594. *) lt_sed_strip_eq="s,=/,/,g" ;;
  13595. esac
  13596. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  13597. case $lt_search_path_spec in
  13598. *\;*)
  13599. # if the path contains ";" then we assume it to be the separator
  13600. # otherwise default to the standard path separator (i.e. ":") - it is
  13601. # assumed that no part of a normal pathname contains ";" but that should
  13602. # okay in the real world where ";" in dirpaths is itself problematic.
  13603. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  13604. ;;
  13605. *)
  13606. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  13607. ;;
  13608. esac
  13609. # Ok, now we have the path, separated by spaces, we can step through it
  13610. # and add multilib dir if necessary.
  13611. lt_tmp_lt_search_path_spec=
  13612. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  13613. for lt_sys_path in $lt_search_path_spec; do
  13614. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  13615. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  13616. else
  13617. test -d "$lt_sys_path" && \
  13618. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  13619. fi
  13620. done
  13621. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  13622. BEGIN {RS=" "; FS="/|\n";} {
  13623. lt_foo="";
  13624. lt_count=0;
  13625. for (lt_i = NF; lt_i > 0; lt_i--) {
  13626. if ($lt_i != "" && $lt_i != ".") {
  13627. if ($lt_i == "..") {
  13628. lt_count++;
  13629. } else {
  13630. if (lt_count == 0) {
  13631. lt_foo="/" $lt_i lt_foo;
  13632. } else {
  13633. lt_count--;
  13634. }
  13635. }
  13636. }
  13637. }
  13638. if (lt_foo != "") { lt_freq[lt_foo]++; }
  13639. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  13640. }'`
  13641. # AWK program above erroneously prepends '/' to C:/dos/paths
  13642. # for these hosts.
  13643. case $host_os in
  13644. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  13645. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  13646. esac
  13647. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  13648. else
  13649. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13650. fi
  13651. library_names_spec=
  13652. libname_spec='lib$name'
  13653. soname_spec=
  13654. shrext_cmds=".so"
  13655. postinstall_cmds=
  13656. postuninstall_cmds=
  13657. finish_cmds=
  13658. finish_eval=
  13659. shlibpath_var=
  13660. shlibpath_overrides_runpath=unknown
  13661. version_type=none
  13662. dynamic_linker="$host_os ld.so"
  13663. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13664. need_lib_prefix=unknown
  13665. hardcode_into_libs=no
  13666. # when you set need_version to no, make sure it does not cause -set_version
  13667. # flags to be left without arguments
  13668. need_version=unknown
  13669. case $host_os in
  13670. aix3*)
  13671. version_type=linux # correct to gnu/linux during the next big refactor
  13672. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13673. shlibpath_var=LIBPATH
  13674. # AIX 3 has no versioning support, so we append a major version to the name.
  13675. soname_spec='${libname}${release}${shared_ext}$major'
  13676. ;;
  13677. aix[4-9]*)
  13678. version_type=linux # correct to gnu/linux during the next big refactor
  13679. need_lib_prefix=no
  13680. need_version=no
  13681. hardcode_into_libs=yes
  13682. if test "$host_cpu" = ia64; then
  13683. # AIX 5 supports IA64
  13684. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13685. shlibpath_var=LD_LIBRARY_PATH
  13686. else
  13687. # With GCC up to 2.95.x, collect2 would create an import file
  13688. # for dependence libraries. The import file would start with
  13689. # the line `#! .'. This would cause the generated library to
  13690. # depend on `.', always an invalid library. This was fixed in
  13691. # development snapshots of GCC prior to 3.0.
  13692. case $host_os in
  13693. aix4 | aix4.[01] | aix4.[01].*)
  13694. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13695. echo ' yes '
  13696. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13697. :
  13698. else
  13699. can_build_shared=no
  13700. fi
  13701. ;;
  13702. esac
  13703. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13704. # soname into executable. Probably we can add versioning support to
  13705. # collect2, so additional links can be useful in future.
  13706. if test "$aix_use_runtimelinking" = yes; then
  13707. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13708. # instead of lib<name>.a to let people know that these are not
  13709. # typical AIX shared libraries.
  13710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13711. else
  13712. # We preserve .a as extension for shared libraries through AIX4.2
  13713. # and later when we are not doing run time linking.
  13714. library_names_spec='${libname}${release}.a $libname.a'
  13715. soname_spec='${libname}${release}${shared_ext}$major'
  13716. fi
  13717. shlibpath_var=LIBPATH
  13718. fi
  13719. ;;
  13720. amigaos*)
  13721. case $host_cpu in
  13722. powerpc)
  13723. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13724. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13726. ;;
  13727. m68k)
  13728. library_names_spec='$libname.ixlibrary $libname.a'
  13729. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13730. 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'
  13731. ;;
  13732. esac
  13733. ;;
  13734. beos*)
  13735. library_names_spec='${libname}${shared_ext}'
  13736. dynamic_linker="$host_os ld.so"
  13737. shlibpath_var=LIBRARY_PATH
  13738. ;;
  13739. bsdi[45]*)
  13740. version_type=linux # correct to gnu/linux during the next big refactor
  13741. need_version=no
  13742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13743. soname_spec='${libname}${release}${shared_ext}$major'
  13744. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13745. shlibpath_var=LD_LIBRARY_PATH
  13746. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13747. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13748. # the default ld.so.conf also contains /usr/contrib/lib and
  13749. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13750. # libtool to hard-code these into programs
  13751. ;;
  13752. cygwin* | mingw* | pw32* | cegcc*)
  13753. version_type=windows
  13754. shrext_cmds=".dll"
  13755. need_version=no
  13756. need_lib_prefix=no
  13757. case $GCC,$cc_basename in
  13758. yes,*)
  13759. # gcc
  13760. library_names_spec='$libname.dll.a'
  13761. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13762. postinstall_cmds='base_file=`basename \${file}`~
  13763. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13764. dldir=$destdir/`dirname \$dlpath`~
  13765. test -d \$dldir || mkdir -p \$dldir~
  13766. $install_prog $dir/$dlname \$dldir/$dlname~
  13767. chmod a+x \$dldir/$dlname~
  13768. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13769. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13770. fi'
  13771. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13772. dlpath=$dir/\$dldll~
  13773. $RM \$dlpath'
  13774. shlibpath_overrides_runpath=yes
  13775. case $host_os in
  13776. cygwin*)
  13777. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13778. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13779. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  13780. ;;
  13781. mingw* | cegcc*)
  13782. # MinGW DLLs use traditional 'lib' prefix
  13783. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13784. ;;
  13785. pw32*)
  13786. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13787. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13788. ;;
  13789. esac
  13790. dynamic_linker='Win32 ld.exe'
  13791. ;;
  13792. *,cl*)
  13793. # Native MSVC
  13794. libname_spec='$name'
  13795. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13796. library_names_spec='${libname}.dll.lib'
  13797. case $build_os in
  13798. mingw*)
  13799. sys_lib_search_path_spec=
  13800. lt_save_ifs=$IFS
  13801. IFS=';'
  13802. for lt_path in $LIB
  13803. do
  13804. IFS=$lt_save_ifs
  13805. # Let DOS variable expansion print the short 8.3 style file name.
  13806. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13807. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13808. done
  13809. IFS=$lt_save_ifs
  13810. # Convert to MSYS style.
  13811. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13812. ;;
  13813. cygwin*)
  13814. # Convert to unix form, then to dos form, then back to unix form
  13815. # but this time dos style (no spaces!) so that the unix form looks
  13816. # like /cygdrive/c/PROGRA~1:/cygdr...
  13817. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13818. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13819. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13820. ;;
  13821. *)
  13822. sys_lib_search_path_spec="$LIB"
  13823. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13824. # It is most probably a Windows format PATH.
  13825. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13826. else
  13827. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13828. fi
  13829. # FIXME: find the short name or the path components, as spaces are
  13830. # common. (e.g. "Program Files" -> "PROGRA~1")
  13831. ;;
  13832. esac
  13833. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13834. postinstall_cmds='base_file=`basename \${file}`~
  13835. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13836. dldir=$destdir/`dirname \$dlpath`~
  13837. test -d \$dldir || mkdir -p \$dldir~
  13838. $install_prog $dir/$dlname \$dldir/$dlname'
  13839. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13840. dlpath=$dir/\$dldll~
  13841. $RM \$dlpath'
  13842. shlibpath_overrides_runpath=yes
  13843. dynamic_linker='Win32 link.exe'
  13844. ;;
  13845. *)
  13846. # Assume MSVC wrapper
  13847. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13848. dynamic_linker='Win32 ld.exe'
  13849. ;;
  13850. esac
  13851. # FIXME: first we should search . and the directory the executable is in
  13852. shlibpath_var=PATH
  13853. ;;
  13854. darwin* | rhapsody*)
  13855. dynamic_linker="$host_os dyld"
  13856. version_type=darwin
  13857. need_lib_prefix=no
  13858. need_version=no
  13859. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13860. soname_spec='${libname}${release}${major}$shared_ext'
  13861. shlibpath_overrides_runpath=yes
  13862. shlibpath_var=DYLD_LIBRARY_PATH
  13863. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13864. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  13865. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13866. ;;
  13867. dgux*)
  13868. version_type=linux # correct to gnu/linux during the next big refactor
  13869. need_lib_prefix=no
  13870. need_version=no
  13871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13872. soname_spec='${libname}${release}${shared_ext}$major'
  13873. shlibpath_var=LD_LIBRARY_PATH
  13874. ;;
  13875. freebsd* | dragonfly*)
  13876. # DragonFly does not have aout. When/if they implement a new
  13877. # versioning mechanism, adjust this.
  13878. if test -x /usr/bin/objformat; then
  13879. objformat=`/usr/bin/objformat`
  13880. else
  13881. case $host_os in
  13882. freebsd[23].*) objformat=aout ;;
  13883. *) objformat=elf ;;
  13884. esac
  13885. fi
  13886. version_type=freebsd-$objformat
  13887. case $version_type in
  13888. freebsd-elf*)
  13889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13890. need_version=no
  13891. need_lib_prefix=no
  13892. ;;
  13893. freebsd-*)
  13894. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13895. need_version=yes
  13896. ;;
  13897. esac
  13898. shlibpath_var=LD_LIBRARY_PATH
  13899. case $host_os in
  13900. freebsd2.*)
  13901. shlibpath_overrides_runpath=yes
  13902. ;;
  13903. freebsd3.[01]* | freebsdelf3.[01]*)
  13904. shlibpath_overrides_runpath=yes
  13905. hardcode_into_libs=yes
  13906. ;;
  13907. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13908. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13909. shlibpath_overrides_runpath=no
  13910. hardcode_into_libs=yes
  13911. ;;
  13912. *) # from 4.6 on, and DragonFly
  13913. shlibpath_overrides_runpath=yes
  13914. hardcode_into_libs=yes
  13915. ;;
  13916. esac
  13917. ;;
  13918. gnu*)
  13919. version_type=linux # correct to gnu/linux during the next big refactor
  13920. need_lib_prefix=no
  13921. need_version=no
  13922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13923. soname_spec='${libname}${release}${shared_ext}$major'
  13924. shlibpath_var=LD_LIBRARY_PATH
  13925. shlibpath_overrides_runpath=no
  13926. hardcode_into_libs=yes
  13927. ;;
  13928. haiku*)
  13929. version_type=linux # correct to gnu/linux during the next big refactor
  13930. need_lib_prefix=no
  13931. need_version=no
  13932. dynamic_linker="$host_os runtime_loader"
  13933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13934. soname_spec='${libname}${release}${shared_ext}$major'
  13935. shlibpath_var=LIBRARY_PATH
  13936. shlibpath_overrides_runpath=yes
  13937. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13938. hardcode_into_libs=yes
  13939. ;;
  13940. hpux9* | hpux10* | hpux11*)
  13941. # Give a soname corresponding to the major version so that dld.sl refuses to
  13942. # link against other versions.
  13943. version_type=sunos
  13944. need_lib_prefix=no
  13945. need_version=no
  13946. case $host_cpu in
  13947. ia64*)
  13948. shrext_cmds='.so'
  13949. hardcode_into_libs=yes
  13950. dynamic_linker="$host_os dld.so"
  13951. shlibpath_var=LD_LIBRARY_PATH
  13952. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13954. soname_spec='${libname}${release}${shared_ext}$major'
  13955. if test "X$HPUX_IA64_MODE" = X32; then
  13956. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13957. else
  13958. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13959. fi
  13960. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13961. ;;
  13962. hppa*64*)
  13963. shrext_cmds='.sl'
  13964. hardcode_into_libs=yes
  13965. dynamic_linker="$host_os dld.sl"
  13966. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13967. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13969. soname_spec='${libname}${release}${shared_ext}$major'
  13970. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13971. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13972. ;;
  13973. *)
  13974. shrext_cmds='.sl'
  13975. dynamic_linker="$host_os dld.sl"
  13976. shlibpath_var=SHLIB_PATH
  13977. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13979. soname_spec='${libname}${release}${shared_ext}$major'
  13980. ;;
  13981. esac
  13982. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13983. postinstall_cmds='chmod 555 $lib'
  13984. # or fails outright, so override atomically:
  13985. install_override_mode=555
  13986. ;;
  13987. interix[3-9]*)
  13988. version_type=linux # correct to gnu/linux during the next big refactor
  13989. need_lib_prefix=no
  13990. need_version=no
  13991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13992. soname_spec='${libname}${release}${shared_ext}$major'
  13993. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13994. shlibpath_var=LD_LIBRARY_PATH
  13995. shlibpath_overrides_runpath=no
  13996. hardcode_into_libs=yes
  13997. ;;
  13998. irix5* | irix6* | nonstopux*)
  13999. case $host_os in
  14000. nonstopux*) version_type=nonstopux ;;
  14001. *)
  14002. if test "$lt_cv_prog_gnu_ld" = yes; then
  14003. version_type=linux # correct to gnu/linux during the next big refactor
  14004. else
  14005. version_type=irix
  14006. fi ;;
  14007. esac
  14008. need_lib_prefix=no
  14009. need_version=no
  14010. soname_spec='${libname}${release}${shared_ext}$major'
  14011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14012. case $host_os in
  14013. irix5* | nonstopux*)
  14014. libsuff= shlibsuff=
  14015. ;;
  14016. *)
  14017. case $LD in # libtool.m4 will add one of these switches to LD
  14018. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14019. libsuff= shlibsuff= libmagic=32-bit;;
  14020. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14021. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14022. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14023. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14024. *) libsuff= shlibsuff= libmagic=never-match;;
  14025. esac
  14026. ;;
  14027. esac
  14028. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14029. shlibpath_overrides_runpath=no
  14030. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14031. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14032. hardcode_into_libs=yes
  14033. ;;
  14034. # No shared lib support for Linux oldld, aout, or coff.
  14035. linux*oldld* | linux*aout* | linux*coff*)
  14036. dynamic_linker=no
  14037. ;;
  14038. # This must be glibc/ELF.
  14039. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14040. version_type=linux # correct to gnu/linux during the next big refactor
  14041. need_lib_prefix=no
  14042. need_version=no
  14043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14044. soname_spec='${libname}${release}${shared_ext}$major'
  14045. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14046. shlibpath_var=LD_LIBRARY_PATH
  14047. shlibpath_overrides_runpath=no
  14048. # Some binutils ld are patched to set DT_RUNPATH
  14049. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14050. $as_echo_n "(cached) " >&6
  14051. else
  14052. lt_cv_shlibpath_overrides_runpath=no
  14053. save_LDFLAGS=$LDFLAGS
  14054. save_libdir=$libdir
  14055. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  14056. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  14057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14058. /* end confdefs.h. */
  14059. int
  14060. main ()
  14061. {
  14062. ;
  14063. return 0;
  14064. }
  14065. _ACEOF
  14066. if ac_fn_c_try_link "$LINENO"; then :
  14067. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14068. lt_cv_shlibpath_overrides_runpath=yes
  14069. fi
  14070. fi
  14071. rm -f core conftest.err conftest.$ac_objext \
  14072. conftest$ac_exeext conftest.$ac_ext
  14073. LDFLAGS=$save_LDFLAGS
  14074. libdir=$save_libdir
  14075. fi
  14076. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14077. # This implies no fast_install, which is unacceptable.
  14078. # Some rework will be needed to allow for fast_install
  14079. # before this can be enabled.
  14080. hardcode_into_libs=yes
  14081. # Append ld.so.conf contents to the search path
  14082. if test -f /etc/ld.so.conf; then
  14083. 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' ' '`
  14084. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14085. fi
  14086. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14087. # powerpc, because MkLinux only supported shared libraries with the
  14088. # GNU dynamic linker. Since this was broken with cross compilers,
  14089. # most powerpc-linux boxes support dynamic linking these days and
  14090. # people can always --disable-shared, the test was removed, and we
  14091. # assume the GNU/Linux dynamic linker is in use.
  14092. dynamic_linker='GNU/Linux ld.so'
  14093. ;;
  14094. netbsd*)
  14095. version_type=sunos
  14096. need_lib_prefix=no
  14097. need_version=no
  14098. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14100. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14101. dynamic_linker='NetBSD (a.out) ld.so'
  14102. else
  14103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14104. soname_spec='${libname}${release}${shared_ext}$major'
  14105. dynamic_linker='NetBSD ld.elf_so'
  14106. fi
  14107. shlibpath_var=LD_LIBRARY_PATH
  14108. shlibpath_overrides_runpath=yes
  14109. hardcode_into_libs=yes
  14110. ;;
  14111. newsos6)
  14112. version_type=linux # correct to gnu/linux during the next big refactor
  14113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14114. shlibpath_var=LD_LIBRARY_PATH
  14115. shlibpath_overrides_runpath=yes
  14116. ;;
  14117. *nto* | *qnx*)
  14118. version_type=qnx
  14119. need_lib_prefix=no
  14120. need_version=no
  14121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14122. soname_spec='${libname}${release}${shared_ext}$major'
  14123. shlibpath_var=LD_LIBRARY_PATH
  14124. shlibpath_overrides_runpath=no
  14125. hardcode_into_libs=yes
  14126. dynamic_linker='ldqnx.so'
  14127. ;;
  14128. openbsd*)
  14129. version_type=sunos
  14130. sys_lib_dlsearch_path_spec="/usr/lib"
  14131. need_lib_prefix=no
  14132. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14133. case $host_os in
  14134. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14135. *) need_version=no ;;
  14136. esac
  14137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14138. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14139. shlibpath_var=LD_LIBRARY_PATH
  14140. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14141. case $host_os in
  14142. openbsd2.[89] | openbsd2.[89].*)
  14143. shlibpath_overrides_runpath=no
  14144. ;;
  14145. *)
  14146. shlibpath_overrides_runpath=yes
  14147. ;;
  14148. esac
  14149. else
  14150. shlibpath_overrides_runpath=yes
  14151. fi
  14152. ;;
  14153. os2*)
  14154. libname_spec='$name'
  14155. shrext_cmds=".dll"
  14156. need_lib_prefix=no
  14157. library_names_spec='$libname${shared_ext} $libname.a'
  14158. dynamic_linker='OS/2 ld.exe'
  14159. shlibpath_var=LIBPATH
  14160. ;;
  14161. osf3* | osf4* | osf5*)
  14162. version_type=osf
  14163. need_lib_prefix=no
  14164. need_version=no
  14165. soname_spec='${libname}${release}${shared_ext}$major'
  14166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14167. shlibpath_var=LD_LIBRARY_PATH
  14168. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14169. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14170. ;;
  14171. rdos*)
  14172. dynamic_linker=no
  14173. ;;
  14174. solaris*)
  14175. version_type=linux # correct to gnu/linux during the next big refactor
  14176. need_lib_prefix=no
  14177. need_version=no
  14178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14179. soname_spec='${libname}${release}${shared_ext}$major'
  14180. shlibpath_var=LD_LIBRARY_PATH
  14181. shlibpath_overrides_runpath=yes
  14182. hardcode_into_libs=yes
  14183. # ldd complains unless libraries are executable
  14184. postinstall_cmds='chmod +x $lib'
  14185. ;;
  14186. sunos4*)
  14187. version_type=sunos
  14188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14189. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14190. shlibpath_var=LD_LIBRARY_PATH
  14191. shlibpath_overrides_runpath=yes
  14192. if test "$with_gnu_ld" = yes; then
  14193. need_lib_prefix=no
  14194. fi
  14195. need_version=yes
  14196. ;;
  14197. sysv4 | sysv4.3*)
  14198. version_type=linux # correct to gnu/linux during the next big refactor
  14199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14200. soname_spec='${libname}${release}${shared_ext}$major'
  14201. shlibpath_var=LD_LIBRARY_PATH
  14202. case $host_vendor in
  14203. sni)
  14204. shlibpath_overrides_runpath=no
  14205. need_lib_prefix=no
  14206. runpath_var=LD_RUN_PATH
  14207. ;;
  14208. siemens)
  14209. need_lib_prefix=no
  14210. ;;
  14211. motorola)
  14212. need_lib_prefix=no
  14213. need_version=no
  14214. shlibpath_overrides_runpath=no
  14215. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14216. ;;
  14217. esac
  14218. ;;
  14219. sysv4*MP*)
  14220. if test -d /usr/nec ;then
  14221. version_type=linux # correct to gnu/linux during the next big refactor
  14222. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14223. soname_spec='$libname${shared_ext}.$major'
  14224. shlibpath_var=LD_LIBRARY_PATH
  14225. fi
  14226. ;;
  14227. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14228. version_type=freebsd-elf
  14229. need_lib_prefix=no
  14230. need_version=no
  14231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14232. soname_spec='${libname}${release}${shared_ext}$major'
  14233. shlibpath_var=LD_LIBRARY_PATH
  14234. shlibpath_overrides_runpath=yes
  14235. hardcode_into_libs=yes
  14236. if test "$with_gnu_ld" = yes; then
  14237. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14238. else
  14239. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14240. case $host_os in
  14241. sco3.2v5*)
  14242. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14243. ;;
  14244. esac
  14245. fi
  14246. sys_lib_dlsearch_path_spec='/usr/lib'
  14247. ;;
  14248. tpf*)
  14249. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14250. version_type=linux # correct to gnu/linux during the next big refactor
  14251. need_lib_prefix=no
  14252. need_version=no
  14253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14254. shlibpath_var=LD_LIBRARY_PATH
  14255. shlibpath_overrides_runpath=no
  14256. hardcode_into_libs=yes
  14257. ;;
  14258. uts4*)
  14259. version_type=linux # correct to gnu/linux during the next big refactor
  14260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14261. soname_spec='${libname}${release}${shared_ext}$major'
  14262. shlibpath_var=LD_LIBRARY_PATH
  14263. ;;
  14264. *)
  14265. dynamic_linker=no
  14266. ;;
  14267. esac
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14269. $as_echo "$dynamic_linker" >&6; }
  14270. test "$dynamic_linker" = no && can_build_shared=no
  14271. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14272. if test "$GCC" = yes; then
  14273. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14274. fi
  14275. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14276. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14277. fi
  14278. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14279. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14280. fi
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14282. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14283. hardcode_action=
  14284. if test -n "$hardcode_libdir_flag_spec" ||
  14285. test -n "$runpath_var" ||
  14286. test "X$hardcode_automatic" = "Xyes" ; then
  14287. # We can hardcode non-existent directories.
  14288. if test "$hardcode_direct" != no &&
  14289. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14290. # have to relink, otherwise we might link with an installed library
  14291. # when we should be linking with a yet-to-be-installed one
  14292. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  14293. test "$hardcode_minus_L" != no; then
  14294. # Linking always hardcodes the temporary library directory.
  14295. hardcode_action=relink
  14296. else
  14297. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14298. hardcode_action=immediate
  14299. fi
  14300. else
  14301. # We cannot hardcode anything, or else we can only hardcode existing
  14302. # directories.
  14303. hardcode_action=unsupported
  14304. fi
  14305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  14306. $as_echo "$hardcode_action" >&6; }
  14307. if test "$hardcode_action" = relink ||
  14308. test "$inherit_rpath" = yes; then
  14309. # Fast installation is not supported
  14310. enable_fast_install=no
  14311. elif test "$shlibpath_overrides_runpath" = yes ||
  14312. test "$enable_shared" = no; then
  14313. # Fast installation is not necessary
  14314. enable_fast_install=needless
  14315. fi
  14316. if test "x$enable_dlopen" != xyes; then
  14317. enable_dlopen=unknown
  14318. enable_dlopen_self=unknown
  14319. enable_dlopen_self_static=unknown
  14320. else
  14321. lt_cv_dlopen=no
  14322. lt_cv_dlopen_libs=
  14323. case $host_os in
  14324. beos*)
  14325. lt_cv_dlopen="load_add_on"
  14326. lt_cv_dlopen_libs=
  14327. lt_cv_dlopen_self=yes
  14328. ;;
  14329. mingw* | pw32* | cegcc*)
  14330. lt_cv_dlopen="LoadLibrary"
  14331. lt_cv_dlopen_libs=
  14332. ;;
  14333. cygwin*)
  14334. lt_cv_dlopen="dlopen"
  14335. lt_cv_dlopen_libs=
  14336. ;;
  14337. darwin*)
  14338. # if libdl is installed we need to link against it
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14340. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14341. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14342. $as_echo_n "(cached) " >&6
  14343. else
  14344. ac_check_lib_save_LIBS=$LIBS
  14345. LIBS="-ldl $LIBS"
  14346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14347. /* end confdefs.h. */
  14348. /* Override any GCC internal prototype to avoid an error.
  14349. Use char because int might match the return type of a GCC
  14350. builtin and then its argument prototype would still apply. */
  14351. #ifdef __cplusplus
  14352. extern "C"
  14353. #endif
  14354. char dlopen ();
  14355. int
  14356. main ()
  14357. {
  14358. return dlopen ();
  14359. ;
  14360. return 0;
  14361. }
  14362. _ACEOF
  14363. if ac_fn_c_try_link "$LINENO"; then :
  14364. ac_cv_lib_dl_dlopen=yes
  14365. else
  14366. ac_cv_lib_dl_dlopen=no
  14367. fi
  14368. rm -f core conftest.err conftest.$ac_objext \
  14369. conftest$ac_exeext conftest.$ac_ext
  14370. LIBS=$ac_check_lib_save_LIBS
  14371. fi
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14373. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14374. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  14375. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  14376. else
  14377. lt_cv_dlopen="dyld"
  14378. lt_cv_dlopen_libs=
  14379. lt_cv_dlopen_self=yes
  14380. fi
  14381. ;;
  14382. *)
  14383. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  14384. if test "x$ac_cv_func_shl_load" = xyes; then :
  14385. lt_cv_dlopen="shl_load"
  14386. else
  14387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  14388. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  14389. if ${ac_cv_lib_dld_shl_load+:} false; then :
  14390. $as_echo_n "(cached) " >&6
  14391. else
  14392. ac_check_lib_save_LIBS=$LIBS
  14393. LIBS="-ldld $LIBS"
  14394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14395. /* end confdefs.h. */
  14396. /* Override any GCC internal prototype to avoid an error.
  14397. Use char because int might match the return type of a GCC
  14398. builtin and then its argument prototype would still apply. */
  14399. #ifdef __cplusplus
  14400. extern "C"
  14401. #endif
  14402. char shl_load ();
  14403. int
  14404. main ()
  14405. {
  14406. return shl_load ();
  14407. ;
  14408. return 0;
  14409. }
  14410. _ACEOF
  14411. if ac_fn_c_try_link "$LINENO"; then :
  14412. ac_cv_lib_dld_shl_load=yes
  14413. else
  14414. ac_cv_lib_dld_shl_load=no
  14415. fi
  14416. rm -f core conftest.err conftest.$ac_objext \
  14417. conftest$ac_exeext conftest.$ac_ext
  14418. LIBS=$ac_check_lib_save_LIBS
  14419. fi
  14420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  14421. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  14422. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  14423. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  14424. else
  14425. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  14426. if test "x$ac_cv_func_dlopen" = xyes; then :
  14427. lt_cv_dlopen="dlopen"
  14428. else
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14430. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14431. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14432. $as_echo_n "(cached) " >&6
  14433. else
  14434. ac_check_lib_save_LIBS=$LIBS
  14435. LIBS="-ldl $LIBS"
  14436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14437. /* end confdefs.h. */
  14438. /* Override any GCC internal prototype to avoid an error.
  14439. Use char because int might match the return type of a GCC
  14440. builtin and then its argument prototype would still apply. */
  14441. #ifdef __cplusplus
  14442. extern "C"
  14443. #endif
  14444. char dlopen ();
  14445. int
  14446. main ()
  14447. {
  14448. return dlopen ();
  14449. ;
  14450. return 0;
  14451. }
  14452. _ACEOF
  14453. if ac_fn_c_try_link "$LINENO"; then :
  14454. ac_cv_lib_dl_dlopen=yes
  14455. else
  14456. ac_cv_lib_dl_dlopen=no
  14457. fi
  14458. rm -f core conftest.err conftest.$ac_objext \
  14459. conftest$ac_exeext conftest.$ac_ext
  14460. LIBS=$ac_check_lib_save_LIBS
  14461. fi
  14462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14463. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14464. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  14465. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  14466. else
  14467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  14468. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  14469. if ${ac_cv_lib_svld_dlopen+:} false; then :
  14470. $as_echo_n "(cached) " >&6
  14471. else
  14472. ac_check_lib_save_LIBS=$LIBS
  14473. LIBS="-lsvld $LIBS"
  14474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14475. /* end confdefs.h. */
  14476. /* Override any GCC internal prototype to avoid an error.
  14477. Use char because int might match the return type of a GCC
  14478. builtin and then its argument prototype would still apply. */
  14479. #ifdef __cplusplus
  14480. extern "C"
  14481. #endif
  14482. char dlopen ();
  14483. int
  14484. main ()
  14485. {
  14486. return dlopen ();
  14487. ;
  14488. return 0;
  14489. }
  14490. _ACEOF
  14491. if ac_fn_c_try_link "$LINENO"; then :
  14492. ac_cv_lib_svld_dlopen=yes
  14493. else
  14494. ac_cv_lib_svld_dlopen=no
  14495. fi
  14496. rm -f core conftest.err conftest.$ac_objext \
  14497. conftest$ac_exeext conftest.$ac_ext
  14498. LIBS=$ac_check_lib_save_LIBS
  14499. fi
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  14501. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  14502. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  14503. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  14504. else
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  14506. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  14507. if ${ac_cv_lib_dld_dld_link+:} false; then :
  14508. $as_echo_n "(cached) " >&6
  14509. else
  14510. ac_check_lib_save_LIBS=$LIBS
  14511. LIBS="-ldld $LIBS"
  14512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14513. /* end confdefs.h. */
  14514. /* Override any GCC internal prototype to avoid an error.
  14515. Use char because int might match the return type of a GCC
  14516. builtin and then its argument prototype would still apply. */
  14517. #ifdef __cplusplus
  14518. extern "C"
  14519. #endif
  14520. char dld_link ();
  14521. int
  14522. main ()
  14523. {
  14524. return dld_link ();
  14525. ;
  14526. return 0;
  14527. }
  14528. _ACEOF
  14529. if ac_fn_c_try_link "$LINENO"; then :
  14530. ac_cv_lib_dld_dld_link=yes
  14531. else
  14532. ac_cv_lib_dld_dld_link=no
  14533. fi
  14534. rm -f core conftest.err conftest.$ac_objext \
  14535. conftest$ac_exeext conftest.$ac_ext
  14536. LIBS=$ac_check_lib_save_LIBS
  14537. fi
  14538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  14539. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  14540. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  14541. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  14542. fi
  14543. fi
  14544. fi
  14545. fi
  14546. fi
  14547. fi
  14548. ;;
  14549. esac
  14550. if test "x$lt_cv_dlopen" != xno; then
  14551. enable_dlopen=yes
  14552. else
  14553. enable_dlopen=no
  14554. fi
  14555. case $lt_cv_dlopen in
  14556. dlopen)
  14557. save_CPPFLAGS="$CPPFLAGS"
  14558. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  14559. save_LDFLAGS="$LDFLAGS"
  14560. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  14561. save_LIBS="$LIBS"
  14562. LIBS="$lt_cv_dlopen_libs $LIBS"
  14563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  14564. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  14565. if ${lt_cv_dlopen_self+:} false; then :
  14566. $as_echo_n "(cached) " >&6
  14567. else
  14568. if test "$cross_compiling" = yes; then :
  14569. lt_cv_dlopen_self=cross
  14570. else
  14571. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14572. lt_status=$lt_dlunknown
  14573. cat > conftest.$ac_ext <<_LT_EOF
  14574. #line $LINENO "configure"
  14575. #include "confdefs.h"
  14576. #if HAVE_DLFCN_H
  14577. #include <dlfcn.h>
  14578. #endif
  14579. #include <stdio.h>
  14580. #ifdef RTLD_GLOBAL
  14581. # define LT_DLGLOBAL RTLD_GLOBAL
  14582. #else
  14583. # ifdef DL_GLOBAL
  14584. # define LT_DLGLOBAL DL_GLOBAL
  14585. # else
  14586. # define LT_DLGLOBAL 0
  14587. # endif
  14588. #endif
  14589. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14590. find out it does not work in some platform. */
  14591. #ifndef LT_DLLAZY_OR_NOW
  14592. # ifdef RTLD_LAZY
  14593. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  14594. # else
  14595. # ifdef DL_LAZY
  14596. # define LT_DLLAZY_OR_NOW DL_LAZY
  14597. # else
  14598. # ifdef RTLD_NOW
  14599. # define LT_DLLAZY_OR_NOW RTLD_NOW
  14600. # else
  14601. # ifdef DL_NOW
  14602. # define LT_DLLAZY_OR_NOW DL_NOW
  14603. # else
  14604. # define LT_DLLAZY_OR_NOW 0
  14605. # endif
  14606. # endif
  14607. # endif
  14608. # endif
  14609. #endif
  14610. /* When -fvisbility=hidden is used, assume the code has been annotated
  14611. correspondingly for the symbols needed. */
  14612. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14613. int fnord () __attribute__((visibility("default")));
  14614. #endif
  14615. int fnord () { return 42; }
  14616. int main ()
  14617. {
  14618. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14619. int status = $lt_dlunknown;
  14620. if (self)
  14621. {
  14622. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14623. else
  14624. {
  14625. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14626. else puts (dlerror ());
  14627. }
  14628. /* dlclose (self); */
  14629. }
  14630. else
  14631. puts (dlerror ());
  14632. return status;
  14633. }
  14634. _LT_EOF
  14635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  14636. (eval $ac_link) 2>&5
  14637. ac_status=$?
  14638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14639. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  14640. (./conftest; exit; ) >&5 2>/dev/null
  14641. lt_status=$?
  14642. case x$lt_status in
  14643. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  14644. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  14645. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  14646. esac
  14647. else :
  14648. # compilation failed
  14649. lt_cv_dlopen_self=no
  14650. fi
  14651. fi
  14652. rm -fr conftest*
  14653. fi
  14654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  14655. $as_echo "$lt_cv_dlopen_self" >&6; }
  14656. if test "x$lt_cv_dlopen_self" = xyes; then
  14657. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  14658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  14659. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  14660. if ${lt_cv_dlopen_self_static+:} false; then :
  14661. $as_echo_n "(cached) " >&6
  14662. else
  14663. if test "$cross_compiling" = yes; then :
  14664. lt_cv_dlopen_self_static=cross
  14665. else
  14666. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14667. lt_status=$lt_dlunknown
  14668. cat > conftest.$ac_ext <<_LT_EOF
  14669. #line $LINENO "configure"
  14670. #include "confdefs.h"
  14671. #if HAVE_DLFCN_H
  14672. #include <dlfcn.h>
  14673. #endif
  14674. #include <stdio.h>
  14675. #ifdef RTLD_GLOBAL
  14676. # define LT_DLGLOBAL RTLD_GLOBAL
  14677. #else
  14678. # ifdef DL_GLOBAL
  14679. # define LT_DLGLOBAL DL_GLOBAL
  14680. # else
  14681. # define LT_DLGLOBAL 0
  14682. # endif
  14683. #endif
  14684. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14685. find out it does not work in some platform. */
  14686. #ifndef LT_DLLAZY_OR_NOW
  14687. # ifdef RTLD_LAZY
  14688. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  14689. # else
  14690. # ifdef DL_LAZY
  14691. # define LT_DLLAZY_OR_NOW DL_LAZY
  14692. # else
  14693. # ifdef RTLD_NOW
  14694. # define LT_DLLAZY_OR_NOW RTLD_NOW
  14695. # else
  14696. # ifdef DL_NOW
  14697. # define LT_DLLAZY_OR_NOW DL_NOW
  14698. # else
  14699. # define LT_DLLAZY_OR_NOW 0
  14700. # endif
  14701. # endif
  14702. # endif
  14703. # endif
  14704. #endif
  14705. /* When -fvisbility=hidden is used, assume the code has been annotated
  14706. correspondingly for the symbols needed. */
  14707. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14708. int fnord () __attribute__((visibility("default")));
  14709. #endif
  14710. int fnord () { return 42; }
  14711. int main ()
  14712. {
  14713. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14714. int status = $lt_dlunknown;
  14715. if (self)
  14716. {
  14717. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14718. else
  14719. {
  14720. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14721. else puts (dlerror ());
  14722. }
  14723. /* dlclose (self); */
  14724. }
  14725. else
  14726. puts (dlerror ());
  14727. return status;
  14728. }
  14729. _LT_EOF
  14730. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  14731. (eval $ac_link) 2>&5
  14732. ac_status=$?
  14733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14734. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  14735. (./conftest; exit; ) >&5 2>/dev/null
  14736. lt_status=$?
  14737. case x$lt_status in
  14738. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  14739. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  14740. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  14741. esac
  14742. else :
  14743. # compilation failed
  14744. lt_cv_dlopen_self_static=no
  14745. fi
  14746. fi
  14747. rm -fr conftest*
  14748. fi
  14749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  14750. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  14751. fi
  14752. CPPFLAGS="$save_CPPFLAGS"
  14753. LDFLAGS="$save_LDFLAGS"
  14754. LIBS="$save_LIBS"
  14755. ;;
  14756. esac
  14757. case $lt_cv_dlopen_self in
  14758. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  14759. *) enable_dlopen_self=unknown ;;
  14760. esac
  14761. case $lt_cv_dlopen_self_static in
  14762. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14763. *) enable_dlopen_self_static=unknown ;;
  14764. esac
  14765. fi
  14766. striplib=
  14767. old_striplib=
  14768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  14769. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  14770. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  14771. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14772. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14774. $as_echo "yes" >&6; }
  14775. else
  14776. # FIXME - insert some real tests, host_os isn't really good enough
  14777. case $host_os in
  14778. darwin*)
  14779. if test -n "$STRIP" ; then
  14780. striplib="$STRIP -x"
  14781. old_striplib="$STRIP -S"
  14782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14783. $as_echo "yes" >&6; }
  14784. else
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14786. $as_echo "no" >&6; }
  14787. fi
  14788. ;;
  14789. *)
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14791. $as_echo "no" >&6; }
  14792. ;;
  14793. esac
  14794. fi
  14795. # Report which library types will actually be built
  14796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  14797. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  14798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  14799. $as_echo "$can_build_shared" >&6; }
  14800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  14801. $as_echo_n "checking whether to build shared libraries... " >&6; }
  14802. test "$can_build_shared" = "no" && enable_shared=no
  14803. # On AIX, shared libraries and static libraries use the same namespace, and
  14804. # are all built from PIC.
  14805. case $host_os in
  14806. aix3*)
  14807. test "$enable_shared" = yes && enable_static=no
  14808. if test -n "$RANLIB"; then
  14809. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  14810. postinstall_cmds='$RANLIB $lib'
  14811. fi
  14812. ;;
  14813. aix[4-9]*)
  14814. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  14815. test "$enable_shared" = yes && enable_static=no
  14816. fi
  14817. ;;
  14818. esac
  14819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  14820. $as_echo "$enable_shared" >&6; }
  14821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  14822. $as_echo_n "checking whether to build static libraries... " >&6; }
  14823. # Make sure either enable_shared or enable_static is yes.
  14824. test "$enable_shared" = yes || enable_static=yes
  14825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  14826. $as_echo "$enable_static" >&6; }
  14827. fi
  14828. ac_ext=c
  14829. ac_cpp='$CPP $CPPFLAGS'
  14830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14833. CC="$lt_save_CC"
  14834. ac_config_commands="$ac_config_commands libtool"
  14835. # Only expand once:
  14836. # get libtool's setting of shlibpath_var
  14837. eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
  14838. if test "x$shlibpath_var" = "x"; then
  14839. shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
  14840. fi
  14841. fi
  14842. ;;
  14843. esac
  14844. # Check whether --with-installbuilddir was given.
  14845. if test "${with_installbuilddir+set}" = set; then :
  14846. withval=$with_installbuilddir; installbuilddir=$withval
  14847. else
  14848. installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
  14849. fi
  14850. # Check whether --with-libtool was given.
  14851. if test "${with_libtool+set}" = set; then :
  14852. withval=$with_libtool; use_libtool=$withval
  14853. else
  14854. use_libtool="yes"
  14855. fi
  14856. if test "x$use_libtool" = "xyes"; then
  14857. lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
  14858. LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
  14859. link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(LT_LDFLAGS) \$(COMPILE) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
  14860. so_ext='lo'
  14861. lib_target='-rpath $(libdir) $(OBJECTS)'
  14862. export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
  14863. else
  14864. lt_compile='$(COMPILE) -o $@ -c $<'
  14865. link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
  14866. so_ext='o'
  14867. lib_target=''
  14868. export_lib_target=''
  14869. fi
  14870. case $host in
  14871. *-solaris2*)
  14872. apr_platform_runtime_link_flag="-R"
  14873. ;;
  14874. *)
  14875. ;;
  14876. esac
  14877. nl='
  14878. '
  14879. echo "${nl}Check for compiler flags..."
  14880. case $host in
  14881. *os390)
  14882. if test "$ac_test_CFLAGS" != set; then
  14883. if test "x$CFLAGS" = "x-g"; then
  14884. test "x$silent" != "xyes" && echo " nulling CFLAGS"
  14885. CFLAGS=""
  14886. else
  14887. apr_new_bugger=""
  14888. apr_removed=0
  14889. for i in $CFLAGS; do
  14890. if test "x$i" != "x-g"; then
  14891. apr_new_bugger="$apr_new_bugger $i"
  14892. else
  14893. apr_removed=1
  14894. fi
  14895. done
  14896. if test $apr_removed = "1"; then
  14897. test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
  14898. CFLAGS=$apr_new_bugger
  14899. fi
  14900. fi
  14901. fi
  14902. ;;
  14903. esac
  14904. # Check whether --enable-debug was given.
  14905. if test "${enable_debug+set}" = set; then :
  14906. enableval=$enable_debug;
  14907. if test "x$CFLAGS" = "x"; then
  14908. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
  14909. CFLAGS="-g"
  14910. else
  14911. apr_addto_bugger="-g"
  14912. for i in $apr_addto_bugger; do
  14913. apr_addto_duplicate="0"
  14914. for j in $CFLAGS; do
  14915. if test "x$i" = "x$j"; then
  14916. apr_addto_duplicate="1"
  14917. break
  14918. fi
  14919. done
  14920. if test $apr_addto_duplicate = "0"; then
  14921. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  14922. CFLAGS="$CFLAGS $i"
  14923. fi
  14924. done
  14925. fi
  14926. if test "$GCC" = "yes"; then
  14927. if test "x$CFLAGS" = "x"; then
  14928. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall\""
  14929. CFLAGS="-Wall"
  14930. else
  14931. apr_addto_bugger="-Wall"
  14932. for i in $apr_addto_bugger; do
  14933. apr_addto_duplicate="0"
  14934. for j in $CFLAGS; do
  14935. if test "x$i" = "x$j"; then
  14936. apr_addto_duplicate="1"
  14937. break
  14938. fi
  14939. done
  14940. if test $apr_addto_duplicate = "0"; then
  14941. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  14942. CFLAGS="$CFLAGS $i"
  14943. fi
  14944. done
  14945. fi
  14946. elif test "$AIX_XLC" = "yes"; then
  14947. if test "x$CFLAGS" = "x"; then
  14948. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath\""
  14949. CFLAGS="-qfullpath"
  14950. else
  14951. apr_addto_bugger="-qfullpath"
  14952. for i in $apr_addto_bugger; do
  14953. apr_addto_duplicate="0"
  14954. for j in $CFLAGS; do
  14955. if test "x$i" = "x$j"; then
  14956. apr_addto_duplicate="1"
  14957. break
  14958. fi
  14959. done
  14960. if test $apr_addto_duplicate = "0"; then
  14961. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  14962. CFLAGS="$CFLAGS $i"
  14963. fi
  14964. done
  14965. fi
  14966. fi
  14967. fi
  14968. # Check whether --enable-maintainer-mode was given.
  14969. if test "${enable_maintainer_mode+set}" = set; then :
  14970. enableval=$enable_maintainer_mode;
  14971. if test "x$CFLAGS" = "x"; then
  14972. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
  14973. CFLAGS="-g"
  14974. else
  14975. apr_addto_bugger="-g"
  14976. for i in $apr_addto_bugger; do
  14977. apr_addto_duplicate="0"
  14978. for j in $CFLAGS; do
  14979. if test "x$i" = "x$j"; then
  14980. apr_addto_duplicate="1"
  14981. break
  14982. fi
  14983. done
  14984. if test $apr_addto_duplicate = "0"; then
  14985. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  14986. CFLAGS="$CFLAGS $i"
  14987. fi
  14988. done
  14989. fi
  14990. if test "$GCC" = "yes"; then
  14991. if test "x$CFLAGS" = "x"; then
  14992. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
  14993. CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
  14994. else
  14995. apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
  14996. for i in $apr_addto_bugger; do
  14997. apr_addto_duplicate="0"
  14998. for j in $CFLAGS; do
  14999. if test "x$i" = "x$j"; then
  15000. apr_addto_duplicate="1"
  15001. break
  15002. fi
  15003. done
  15004. if test $apr_addto_duplicate = "0"; then
  15005. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  15006. CFLAGS="$CFLAGS $i"
  15007. fi
  15008. done
  15009. fi
  15010. elif test "$AIX_XLC" = "yes"; then
  15011. if test "x$CFLAGS" = "x"; then
  15012. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
  15013. CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
  15014. else
  15015. apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
  15016. for i in $apr_addto_bugger; do
  15017. apr_addto_duplicate="0"
  15018. for j in $CFLAGS; do
  15019. if test "x$i" = "x$j"; then
  15020. apr_addto_duplicate="1"
  15021. break
  15022. fi
  15023. done
  15024. if test $apr_addto_duplicate = "0"; then
  15025. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  15026. CFLAGS="$CFLAGS $i"
  15027. fi
  15028. done
  15029. fi
  15030. fi
  15031. fi
  15032. # Check whether --enable-profile was given.
  15033. if test "${enable_profile+set}" = set; then :
  15034. enableval=$enable_profile; if test "$GCC" = "yes"; then
  15035. if test "x$CFLAGS" = "x"; then
  15036. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-pg\""
  15037. CFLAGS="-pg"
  15038. else
  15039. apr_addto_bugger="-pg"
  15040. for i in $apr_addto_bugger; do
  15041. apr_addto_duplicate="0"
  15042. for j in $CFLAGS; do
  15043. if test "x$i" = "x$j"; then
  15044. apr_addto_duplicate="1"
  15045. break
  15046. fi
  15047. done
  15048. if test $apr_addto_duplicate = "0"; then
  15049. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  15050. CFLAGS="$CFLAGS $i"
  15051. fi
  15052. done
  15053. fi
  15054. if test "x$CFLAGS" = "x-g"; then
  15055. test "x$silent" != "xyes" && echo " nulling CFLAGS"
  15056. CFLAGS=""
  15057. else
  15058. apr_new_bugger=""
  15059. apr_removed=0
  15060. for i in $CFLAGS; do
  15061. if test "x$i" != "x-g"; then
  15062. apr_new_bugger="$apr_new_bugger $i"
  15063. else
  15064. apr_removed=1
  15065. fi
  15066. done
  15067. if test $apr_removed = "1"; then
  15068. test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
  15069. CFLAGS=$apr_new_bugger
  15070. fi
  15071. fi
  15072. if test "$host" = "i586-pc-beos"; then
  15073. if test "x$CFLAGS" = "x-O2"; then
  15074. test "x$silent" != "xyes" && echo " nulling CFLAGS"
  15075. CFLAGS=""
  15076. else
  15077. apr_new_bugger=""
  15078. apr_removed=0
  15079. for i in $CFLAGS; do
  15080. if test "x$i" != "x-O2"; then
  15081. apr_new_bugger="$apr_new_bugger $i"
  15082. else
  15083. apr_removed=1
  15084. fi
  15085. done
  15086. if test $apr_removed = "1"; then
  15087. test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
  15088. CFLAGS=$apr_new_bugger
  15089. fi
  15090. fi
  15091. if test "x$CFLAGS" = "x"; then
  15092. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
  15093. CFLAGS="-O1"
  15094. else
  15095. apr_addto_bugger="-O1"
  15096. for i in $apr_addto_bugger; do
  15097. apr_addto_duplicate="0"
  15098. for j in $CFLAGS; do
  15099. if test "x$i" = "x$j"; then
  15100. apr_addto_duplicate="1"
  15101. break
  15102. fi
  15103. done
  15104. if test $apr_addto_duplicate = "0"; then
  15105. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  15106. CFLAGS="$CFLAGS $i"
  15107. fi
  15108. done
  15109. fi
  15110. if test "x$LDFLAGS" = "x"; then
  15111. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-p\""
  15112. LDFLAGS="-p"
  15113. else
  15114. apr_addto_bugger="-p"
  15115. for i in $apr_addto_bugger; do
  15116. apr_addto_duplicate="0"
  15117. for j in $LDFLAGS; do
  15118. if test "x$i" = "x$j"; then
  15119. apr_addto_duplicate="1"
  15120. break
  15121. fi
  15122. done
  15123. if test $apr_addto_duplicate = "0"; then
  15124. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  15125. LDFLAGS="$LDFLAGS $i"
  15126. fi
  15127. done
  15128. fi
  15129. fi
  15130. fi
  15131. fi
  15132. # Check whether --enable-pool-debug was given.
  15133. if test "${enable_pool_debug+set}" = set; then :
  15134. enableval=$enable_pool_debug; if test -z "$enableval"; then
  15135. if test "x$CPPFLAGS" = "x"; then
  15136. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
  15137. CPPFLAGS="-DAPR_POOL_DEBUG=1"
  15138. else
  15139. apr_addto_bugger="-DAPR_POOL_DEBUG=1"
  15140. for i in $apr_addto_bugger; do
  15141. apr_addto_duplicate="0"
  15142. for j in $CPPFLAGS; do
  15143. if test "x$i" = "x$j"; then
  15144. apr_addto_duplicate="1"
  15145. break
  15146. fi
  15147. done
  15148. if test $apr_addto_duplicate = "0"; then
  15149. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  15150. CPPFLAGS="$CPPFLAGS $i"
  15151. fi
  15152. done
  15153. fi
  15154. elif test ! "$enableval" = "no"; then
  15155. apr_pool_debug=1
  15156. for i in $enableval
  15157. do
  15158. flag=0
  15159. case $i in
  15160. yes)
  15161. flag=1
  15162. ;;
  15163. verbose)
  15164. flag=2
  15165. ;;
  15166. lifetime)
  15167. flag=4
  15168. ;;
  15169. owner)
  15170. flag=8
  15171. ;;
  15172. verbose-alloc)
  15173. flag=16
  15174. ;;
  15175. all)
  15176. apr_pool_debug=31
  15177. ;;
  15178. *)
  15179. ;;
  15180. esac
  15181. if test $flag -gt 0; then
  15182. apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
  15183. '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
  15184. fi
  15185. done
  15186. if test "x$CPPFLAGS" = "x"; then
  15187. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
  15188. CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
  15189. else
  15190. apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
  15191. for i in $apr_addto_bugger; do
  15192. apr_addto_duplicate="0"
  15193. for j in $CPPFLAGS; do
  15194. if test "x$i" = "x$j"; then
  15195. apr_addto_duplicate="1"
  15196. break
  15197. fi
  15198. done
  15199. if test $apr_addto_duplicate = "0"; then
  15200. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  15201. CPPFLAGS="$CPPFLAGS $i"
  15202. fi
  15203. done
  15204. fi
  15205. fi
  15206. fi
  15207. if test "$host" = "i586-pc-beos"; then
  15208. # Check whether --enable-malloc-debug was given.
  15209. if test "${enable_malloc_debug+set}" = set; then :
  15210. enableval=$enable_malloc_debug;
  15211. if test "x$CFLAGS" = "x-O2"; then
  15212. test "x$silent" != "xyes" && echo " nulling CFLAGS"
  15213. CFLAGS=""
  15214. else
  15215. apr_new_bugger=""
  15216. apr_removed=0
  15217. for i in $CFLAGS; do
  15218. if test "x$i" != "x-O2"; then
  15219. apr_new_bugger="$apr_new_bugger $i"
  15220. else
  15221. apr_removed=1
  15222. fi
  15223. done
  15224. if test $apr_removed = "1"; then
  15225. test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
  15226. CFLAGS=$apr_new_bugger
  15227. fi
  15228. fi
  15229. if test "x$CPPFLAGS" = "x"; then
  15230. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
  15231. CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
  15232. else
  15233. apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
  15234. for i in $apr_addto_bugger; do
  15235. apr_addto_duplicate="0"
  15236. for j in $CPPFLAGS; do
  15237. if test "x$i" = "x$j"; then
  15238. apr_addto_duplicate="1"
  15239. break
  15240. fi
  15241. done
  15242. if test $apr_addto_duplicate = "0"; then
  15243. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  15244. CPPFLAGS="$CPPFLAGS $i"
  15245. fi
  15246. done
  15247. fi
  15248. fi
  15249. fi
  15250. # this is the place to put specific options for platform/compiler
  15251. # combinations
  15252. case "$host:$CC" in
  15253. *-hp-hpux*:cc )
  15254. if test "x$CFLAGS" = "x"; then
  15255. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Ae +Z\""
  15256. CFLAGS="-Ae +Z"
  15257. else
  15258. apr_addto_bugger="-Ae +Z"
  15259. for i in $apr_addto_bugger; do
  15260. apr_addto_duplicate="0"
  15261. for j in $CFLAGS; do
  15262. if test "x$i" = "x$j"; then
  15263. apr_addto_duplicate="1"
  15264. break
  15265. fi
  15266. done
  15267. if test $apr_addto_duplicate = "0"; then
  15268. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  15269. CFLAGS="$CFLAGS $i"
  15270. fi
  15271. done
  15272. fi
  15273. case $host in
  15274. ia64-* )
  15275. ;;
  15276. * )
  15277. if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
  15278. else
  15279. if test "x$CFLAGS" = "x"; then
  15280. test "x$silent" != "xyes" && echo " setting CFLAGS to \"+DAportable\""
  15281. CFLAGS="+DAportable"
  15282. else
  15283. apr_addto_bugger="+DAportable"
  15284. for i in $apr_addto_bugger; do
  15285. apr_addto_duplicate="0"
  15286. for j in $CFLAGS; do
  15287. if test "x$i" = "x$j"; then
  15288. apr_addto_duplicate="1"
  15289. break
  15290. fi
  15291. done
  15292. if test $apr_addto_duplicate = "0"; then
  15293. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  15294. CFLAGS="$CFLAGS $i"
  15295. fi
  15296. done
  15297. fi
  15298. fi
  15299. ;;
  15300. esac
  15301. ;;
  15302. powerpc-*-beos:mwcc* )
  15303. test "x$silent" != "xyes" && echo " forcing CPP to \"mwcc -E\""
  15304. CPP="mwcc -E"
  15305. test "x$silent" != "xyes" && echo " forcing CC to \"mwcc\""
  15306. CC="mwcc"
  15307. test "x$silent" != "xyes" && echo " forcing AR to \"ar\""
  15308. AR="ar"
  15309. ;;
  15310. esac
  15311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
  15312. $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
  15313. if ${ap_cv_atomic_builtins+:} false; then :
  15314. $as_echo_n "(cached) " >&6
  15315. else
  15316. if test "$cross_compiling" = yes; then :
  15317. ap_cv_atomic_builtins=no
  15318. else
  15319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15320. /* end confdefs.h. */
  15321. int main()
  15322. {
  15323. unsigned long val = 1010, tmp, *mem = &val;
  15324. if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
  15325. return 1;
  15326. tmp = val;
  15327. if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
  15328. return 1;
  15329. if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
  15330. return 1;
  15331. tmp = 3030;
  15332. if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
  15333. return 1;
  15334. if (__sync_lock_test_and_set(&val, 4040) != 3030)
  15335. return 1;
  15336. mem = &tmp;
  15337. if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
  15338. return 1;
  15339. __sync_synchronize();
  15340. if (mem != &val)
  15341. return 1;
  15342. return 0;
  15343. }
  15344. _ACEOF
  15345. if ac_fn_c_try_run "$LINENO"; then :
  15346. ap_cv_atomic_builtins=yes
  15347. else
  15348. ap_cv_atomic_builtins=no
  15349. fi
  15350. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15351. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15352. fi
  15353. fi
  15354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
  15355. $as_echo "$ap_cv_atomic_builtins" >&6; }
  15356. if test "$ap_cv_atomic_builtins" = "yes"; then
  15357. $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
  15358. fi
  15359. case $host in
  15360. powerpc-405-*)
  15361. # The IBM ppc405cr processor has a bugged stwcx instruction.
  15362. $as_echo "#define PPC405_ERRATA 1" >>confdefs.h
  15363. ;;
  15364. *)
  15365. ;;
  15366. esac
  15367. if test "$GCC" = "yes"; then
  15368. MKDEP='$(CC) -MM'
  15369. else
  15370. rm -f conftest.c
  15371. cat > conftest.c <<EOF
  15372. #include <sys/types.h>
  15373. int main() { return 0; }
  15374. EOF
  15375. MKDEP="true"
  15376. for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
  15377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
  15378. $as_echo_n "checking if $i can create proper make dependencies... " >&6; }
  15379. if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
  15380. MKDEP=$i
  15381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15382. $as_echo "yes" >&6; }
  15383. break;
  15384. fi
  15385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15386. $as_echo "no" >&6; }
  15387. done
  15388. rm -f conftest.c
  15389. fi
  15390. proc_mutex_is_global=0
  15391. config_subdirs="none"
  15392. INSTALL_SUBDIRS="none"
  15393. OBJECTS_PLATFORM='$(OBJECTS_unix)'
  15394. case $host in
  15395. i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
  15396. OSDIR="aix"
  15397. if test "x$LDFLAGS" = "x"; then
  15398. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-lld\""
  15399. LDFLAGS="-lld"
  15400. else
  15401. apr_addto_bugger="-lld"
  15402. for i in $apr_addto_bugger; do
  15403. apr_addto_duplicate="0"
  15404. for j in $LDFLAGS; do
  15405. if test "x$i" = "x$j"; then
  15406. apr_addto_duplicate="1"
  15407. break
  15408. fi
  15409. done
  15410. if test $apr_addto_duplicate = "0"; then
  15411. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  15412. LDFLAGS="$LDFLAGS $i"
  15413. fi
  15414. done
  15415. fi
  15416. eolstr="\\n"
  15417. OBJECTS_PLATFORM='$(OBJECTS_aix)'
  15418. ;;
  15419. *-os2*)
  15420. if test "x$CPPFLAGS" = "x"; then
  15421. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOS2\""
  15422. CPPFLAGS="-DOS2"
  15423. else
  15424. apr_addto_bugger="-DOS2"
  15425. for i in $apr_addto_bugger; do
  15426. apr_addto_duplicate="0"
  15427. for j in $CPPFLAGS; do
  15428. if test "x$i" = "x$j"; then
  15429. apr_addto_duplicate="1"
  15430. break
  15431. fi
  15432. done
  15433. if test $apr_addto_duplicate = "0"; then
  15434. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  15435. CPPFLAGS="$CPPFLAGS $i"
  15436. fi
  15437. done
  15438. fi
  15439. if test "x$CFLAGS" = "x"; then
  15440. test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Zmt\""
  15441. CFLAGS="-Zmt"
  15442. else
  15443. apr_addto_bugger="-Zmt"
  15444. for i in $apr_addto_bugger; do
  15445. apr_addto_duplicate="0"
  15446. for j in $CFLAGS; do
  15447. if test "x$i" = "x$j"; then
  15448. apr_addto_duplicate="1"
  15449. break
  15450. fi
  15451. done
  15452. if test $apr_addto_duplicate = "0"; then
  15453. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  15454. CFLAGS="$CFLAGS $i"
  15455. fi
  15456. done
  15457. fi
  15458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
  15459. $as_echo_n "checking for random in -lbsd... " >&6; }
  15460. if ${ac_cv_lib_bsd_random+:} false; then :
  15461. $as_echo_n "(cached) " >&6
  15462. else
  15463. ac_check_lib_save_LIBS=$LIBS
  15464. LIBS="-lbsd $LIBS"
  15465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15466. /* end confdefs.h. */
  15467. /* Override any GCC internal prototype to avoid an error.
  15468. Use char because int might match the return type of a GCC
  15469. builtin and then its argument prototype would still apply. */
  15470. #ifdef __cplusplus
  15471. extern "C"
  15472. #endif
  15473. char random ();
  15474. int
  15475. main ()
  15476. {
  15477. return random ();
  15478. ;
  15479. return 0;
  15480. }
  15481. _ACEOF
  15482. if ac_fn_c_try_link "$LINENO"; then :
  15483. ac_cv_lib_bsd_random=yes
  15484. else
  15485. ac_cv_lib_bsd_random=no
  15486. fi
  15487. rm -f core conftest.err conftest.$ac_objext \
  15488. conftest$ac_exeext conftest.$ac_ext
  15489. LIBS=$ac_check_lib_save_LIBS
  15490. fi
  15491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
  15492. $as_echo "$ac_cv_lib_bsd_random" >&6; }
  15493. if test "x$ac_cv_lib_bsd_random" = xyes; then :
  15494. cat >>confdefs.h <<_ACEOF
  15495. #define HAVE_LIBBSD 1
  15496. _ACEOF
  15497. LIBS="-lbsd $LIBS"
  15498. fi
  15499. OSDIR="os2"
  15500. enable_threads="system_threads"
  15501. eolstr="\\r\\n"
  15502. file_as_socket="0"
  15503. proc_mutex_is_global=1
  15504. OBJECTS_PLATFORM='$(OBJECTS_os2)'
  15505. ;;
  15506. *beos*)
  15507. OSDIR="beos"
  15508. if test "x$CPPFLAGS" = "x"; then
  15509. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
  15510. CPPFLAGS="-DBEOS"
  15511. else
  15512. apr_addto_bugger="-DBEOS"
  15513. for i in $apr_addto_bugger; do
  15514. apr_addto_duplicate="0"
  15515. for j in $CPPFLAGS; do
  15516. if test "x$i" = "x$j"; then
  15517. apr_addto_duplicate="1"
  15518. break
  15519. fi
  15520. done
  15521. if test $apr_addto_duplicate = "0"; then
  15522. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  15523. CPPFLAGS="$CPPFLAGS $i"
  15524. fi
  15525. done
  15526. fi
  15527. enable_threads="system_threads"
  15528. native_mmap_emul="1"
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
  15530. $as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
  15531. if ${ac_cv_define_BONE_VERSION+:} false; then :
  15532. $as_echo_n "(cached) " >&6
  15533. else
  15534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15535. /* end confdefs.h. */
  15536. #include <sys/socket.h>
  15537. #ifdef BONE_VERSION
  15538. YES_IS_DEFINED
  15539. #endif
  15540. _ACEOF
  15541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15542. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  15543. ac_cv_define_BONE_VERSION=yes
  15544. else
  15545. ac_cv_define_BONE_VERSION=no
  15546. fi
  15547. rm -f conftest*
  15548. fi
  15549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
  15550. $as_echo "$ac_cv_define_BONE_VERSION" >&6; }
  15551. if test "$ac_cv_define_BONE_VERSION" = "yes"; then
  15552. $as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
  15553. fi
  15554. eolstr="\\n"
  15555. osver=`uname -r`
  15556. proc_mutex_is_global=1
  15557. OBJECTS_PLATFORM='$(OBJECTS_beos)'
  15558. case $osver in
  15559. 5.0.4)
  15560. file_as_socket="1"
  15561. ;;
  15562. *)
  15563. file_as_socket="0"
  15564. ;;
  15565. esac
  15566. ;;
  15567. *os390)
  15568. OSDIR="os390"
  15569. OBJECTS_PLATFORM='$(OBJECTS_os390)'
  15570. eolstr="\\n"
  15571. ;;
  15572. *os400)
  15573. OSDIR="as400"
  15574. eolstr="\\n"
  15575. ;;
  15576. *mingw*)
  15577. OSDIR="win32"
  15578. enable_threads="system_threads"
  15579. eolstr="\\r\\n"
  15580. file_as_socket=0
  15581. proc_mutex_is_global=1
  15582. OBJECTS_PLATFORM='$(OBJECTS_win32)'
  15583. ;;
  15584. *cygwin*)
  15585. OSDIR="unix"
  15586. enable_threads="no"
  15587. eolstr="\\n"
  15588. ;;
  15589. *hpux10* )
  15590. enable_threads="no"
  15591. OSDIR="unix"
  15592. eolstr="\\n"
  15593. ;;
  15594. *)
  15595. OSDIR="unix"
  15596. eolstr="\\n"
  15597. ;;
  15598. esac
  15599. # Check whether LFS has explicitly been disabled
  15600. # Check whether --enable-lfs was given.
  15601. if test "${enable_lfs+set}" = set; then :
  15602. enableval=$enable_lfs; apr_lfs_choice=$enableval
  15603. else
  15604. apr_lfs_choice=yes
  15605. fi
  15606. if test "$apr_lfs_choice" = "yes"; then
  15607. # Check whether the transitional LFS API is sufficient
  15608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
  15609. $as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
  15610. if ${apr_cv_use_lfs64+:} false; then :
  15611. $as_echo_n "(cached) " >&6
  15612. else
  15613. apr_save_CPPFLAGS=$CPPFLAGS
  15614. CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
  15615. if test "$cross_compiling" = yes; then :
  15616. apr_cv_use_lfs64=no
  15617. else
  15618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15619. /* end confdefs.h. */
  15620. #include <sys/types.h>
  15621. #include <sys/stat.h>
  15622. #include <fcntl.h>
  15623. #include <stdlib.h>
  15624. #include <stdio.h>
  15625. #include <unistd.h>
  15626. void main(void)
  15627. {
  15628. int fd, ret = 0;
  15629. struct stat64 st;
  15630. off64_t off = 4242;
  15631. if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
  15632. exit(1);
  15633. if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
  15634. exit(2);
  15635. if (ftruncate64(fd, off) != 0)
  15636. ret = 3;
  15637. else if (fstat64(fd, &st) != 0 || st.st_size != off)
  15638. ret = 4;
  15639. else if (lseek64(fd, off, SEEK_SET) != off)
  15640. ret = 5;
  15641. else if (close(fd) != 0)
  15642. ret = 6;
  15643. else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
  15644. ret = 7;
  15645. else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
  15646. ret = 8;
  15647. unlink("conftest.lfs");
  15648. exit(ret);
  15649. }
  15650. _ACEOF
  15651. if ac_fn_c_try_run "$LINENO"; then :
  15652. apr_cv_use_lfs64=yes
  15653. else
  15654. apr_cv_use_lfs64=no
  15655. fi
  15656. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15657. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15658. fi
  15659. CPPFLAGS=$apr_save_CPPFLAGS
  15660. fi
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
  15662. $as_echo "$apr_cv_use_lfs64" >&6; }
  15663. if test "$apr_cv_use_lfs64" = "yes"; then
  15664. if test "x$CPPFLAGS" = "x"; then
  15665. test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
  15666. CPPFLAGS="-D_LARGEFILE64_SOURCE"
  15667. else
  15668. apr_addto_bugger="-D_LARGEFILE64_SOURCE"
  15669. for i in $apr_addto_bugger; do
  15670. apr_addto_duplicate="0"
  15671. for j in $CPPFLAGS; do
  15672. if test "x$i" = "x$j"; then
  15673. apr_addto_duplicate="1"
  15674. break
  15675. fi
  15676. done
  15677. if test $apr_addto_duplicate = "0"; then
  15678. test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
  15679. CPPFLAGS="$CPPFLAGS $i"
  15680. fi
  15681. done
  15682. fi
  15683. fi
  15684. fi
  15685. # Check whether --enable-nonportable-atomics was given.
  15686. if test "${enable_nonportable_atomics+set}" = set; then :
  15687. enableval=$enable_nonportable_atomics; if test $enableval = yes; then
  15688. force_generic_atomics=no
  15689. else
  15690. force_generic_atomics=yes
  15691. fi
  15692. else
  15693. case $host_cpu in
  15694. i[456]86) force_generic_atomics=yes ;;
  15695. *) force_generic_atomics=no ;;
  15696. esac
  15697. fi
  15698. if test $force_generic_atomics = yes; then
  15699. $as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
  15700. fi
  15701. # For some platforms we need a version string which allows easy numeric
  15702. # comparisons.
  15703. case $host in
  15704. *freebsd*)
  15705. if test -x /sbin/sysctl; then
  15706. os_version=`/sbin/sysctl -n kern.osreldate`
  15707. else
  15708. os_version=000000
  15709. fi
  15710. ;;
  15711. *linux*)
  15712. os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/'`
  15713. ;;
  15714. *os390)
  15715. os_version=`uname -r | sed -e 's/\.//g'`
  15716. ;;
  15717. *)
  15718. os_version=OS_VERSION_IS_NOT_SET
  15719. ;;
  15720. esac
  15721. echo "${nl}Checking for libraries..."
  15722. case $host in
  15723. *mingw*)
  15724. if test "x$LIBS" = "x"; then
  15725. test "x$silent" != "xyes" && echo " setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
  15726. LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
  15727. else
  15728. apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
  15729. for i in $apr_addto_bugger; do
  15730. apr_addto_duplicate="0"
  15731. for j in $LIBS; do
  15732. if test "x$i" = "x$j"; then
  15733. apr_addto_duplicate="1"
  15734. break
  15735. fi
  15736. done
  15737. if test $apr_addto_duplicate = "0"; then
  15738. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  15739. LIBS="$LIBS $i"
  15740. fi
  15741. done
  15742. fi
  15743. ac_cv_func_CreateFileMapping=yes
  15744. ;;
  15745. *)
  15746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  15747. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  15748. if ${ac_cv_search_gethostbyname+:} false; then :
  15749. $as_echo_n "(cached) " >&6
  15750. else
  15751. ac_func_search_save_LIBS=$LIBS
  15752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15753. /* end confdefs.h. */
  15754. /* Override any GCC internal prototype to avoid an error.
  15755. Use char because int might match the return type of a GCC
  15756. builtin and then its argument prototype would still apply. */
  15757. #ifdef __cplusplus
  15758. extern "C"
  15759. #endif
  15760. char gethostbyname ();
  15761. int
  15762. main ()
  15763. {
  15764. return gethostbyname ();
  15765. ;
  15766. return 0;
  15767. }
  15768. _ACEOF
  15769. for ac_lib in '' nsl; do
  15770. if test -z "$ac_lib"; then
  15771. ac_res="none required"
  15772. else
  15773. ac_res=-l$ac_lib
  15774. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15775. fi
  15776. if ac_fn_c_try_link "$LINENO"; then :
  15777. ac_cv_search_gethostbyname=$ac_res
  15778. fi
  15779. rm -f core conftest.err conftest.$ac_objext \
  15780. conftest$ac_exeext
  15781. if ${ac_cv_search_gethostbyname+:} false; then :
  15782. break
  15783. fi
  15784. done
  15785. if ${ac_cv_search_gethostbyname+:} false; then :
  15786. else
  15787. ac_cv_search_gethostbyname=no
  15788. fi
  15789. rm conftest.$ac_ext
  15790. LIBS=$ac_func_search_save_LIBS
  15791. fi
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  15793. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  15794. ac_res=$ac_cv_search_gethostbyname
  15795. if test "$ac_res" != no; then :
  15796. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15797. fi
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
  15799. $as_echo_n "checking for library containing gethostname... " >&6; }
  15800. if ${ac_cv_search_gethostname+:} false; then :
  15801. $as_echo_n "(cached) " >&6
  15802. else
  15803. ac_func_search_save_LIBS=$LIBS
  15804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15805. /* end confdefs.h. */
  15806. /* Override any GCC internal prototype to avoid an error.
  15807. Use char because int might match the return type of a GCC
  15808. builtin and then its argument prototype would still apply. */
  15809. #ifdef __cplusplus
  15810. extern "C"
  15811. #endif
  15812. char gethostname ();
  15813. int
  15814. main ()
  15815. {
  15816. return gethostname ();
  15817. ;
  15818. return 0;
  15819. }
  15820. _ACEOF
  15821. for ac_lib in '' nsl; do
  15822. if test -z "$ac_lib"; then
  15823. ac_res="none required"
  15824. else
  15825. ac_res=-l$ac_lib
  15826. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15827. fi
  15828. if ac_fn_c_try_link "$LINENO"; then :
  15829. ac_cv_search_gethostname=$ac_res
  15830. fi
  15831. rm -f core conftest.err conftest.$ac_objext \
  15832. conftest$ac_exeext
  15833. if ${ac_cv_search_gethostname+:} false; then :
  15834. break
  15835. fi
  15836. done
  15837. if ${ac_cv_search_gethostname+:} false; then :
  15838. else
  15839. ac_cv_search_gethostname=no
  15840. fi
  15841. rm conftest.$ac_ext
  15842. LIBS=$ac_func_search_save_LIBS
  15843. fi
  15844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
  15845. $as_echo "$ac_cv_search_gethostname" >&6; }
  15846. ac_res=$ac_cv_search_gethostname
  15847. if test "$ac_res" != no; then :
  15848. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15849. fi
  15850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  15851. $as_echo_n "checking for library containing socket... " >&6; }
  15852. if ${ac_cv_search_socket+:} false; then :
  15853. $as_echo_n "(cached) " >&6
  15854. else
  15855. ac_func_search_save_LIBS=$LIBS
  15856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15857. /* end confdefs.h. */
  15858. /* Override any GCC internal prototype to avoid an error.
  15859. Use char because int might match the return type of a GCC
  15860. builtin and then its argument prototype would still apply. */
  15861. #ifdef __cplusplus
  15862. extern "C"
  15863. #endif
  15864. char socket ();
  15865. int
  15866. main ()
  15867. {
  15868. return socket ();
  15869. ;
  15870. return 0;
  15871. }
  15872. _ACEOF
  15873. for ac_lib in '' socket; do
  15874. if test -z "$ac_lib"; then
  15875. ac_res="none required"
  15876. else
  15877. ac_res=-l$ac_lib
  15878. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15879. fi
  15880. if ac_fn_c_try_link "$LINENO"; then :
  15881. ac_cv_search_socket=$ac_res
  15882. fi
  15883. rm -f core conftest.err conftest.$ac_objext \
  15884. conftest$ac_exeext
  15885. if ${ac_cv_search_socket+:} false; then :
  15886. break
  15887. fi
  15888. done
  15889. if ${ac_cv_search_socket+:} false; then :
  15890. else
  15891. ac_cv_search_socket=no
  15892. fi
  15893. rm conftest.$ac_ext
  15894. LIBS=$ac_func_search_save_LIBS
  15895. fi
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  15897. $as_echo "$ac_cv_search_socket" >&6; }
  15898. ac_res=$ac_cv_search_socket
  15899. if test "$ac_res" != no; then :
  15900. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15901. fi
  15902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
  15903. $as_echo_n "checking for library containing crypt... " >&6; }
  15904. if ${ac_cv_search_crypt+:} false; then :
  15905. $as_echo_n "(cached) " >&6
  15906. else
  15907. ac_func_search_save_LIBS=$LIBS
  15908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15909. /* end confdefs.h. */
  15910. /* Override any GCC internal prototype to avoid an error.
  15911. Use char because int might match the return type of a GCC
  15912. builtin and then its argument prototype would still apply. */
  15913. #ifdef __cplusplus
  15914. extern "C"
  15915. #endif
  15916. char crypt ();
  15917. int
  15918. main ()
  15919. {
  15920. return crypt ();
  15921. ;
  15922. return 0;
  15923. }
  15924. _ACEOF
  15925. for ac_lib in '' crypt ufc; do
  15926. if test -z "$ac_lib"; then
  15927. ac_res="none required"
  15928. else
  15929. ac_res=-l$ac_lib
  15930. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15931. fi
  15932. if ac_fn_c_try_link "$LINENO"; then :
  15933. ac_cv_search_crypt=$ac_res
  15934. fi
  15935. rm -f core conftest.err conftest.$ac_objext \
  15936. conftest$ac_exeext
  15937. if ${ac_cv_search_crypt+:} false; then :
  15938. break
  15939. fi
  15940. done
  15941. if ${ac_cv_search_crypt+:} false; then :
  15942. else
  15943. ac_cv_search_crypt=no
  15944. fi
  15945. rm conftest.$ac_ext
  15946. LIBS=$ac_func_search_save_LIBS
  15947. fi
  15948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
  15949. $as_echo "$ac_cv_search_crypt" >&6; }
  15950. ac_res=$ac_cv_search_crypt
  15951. if test "$ac_res" != no; then :
  15952. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15953. fi
  15954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
  15955. $as_echo_n "checking for main in -ltruerand... " >&6; }
  15956. if ${ac_cv_lib_truerand_main+:} false; then :
  15957. $as_echo_n "(cached) " >&6
  15958. else
  15959. ac_check_lib_save_LIBS=$LIBS
  15960. LIBS="-ltruerand $LIBS"
  15961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15962. /* end confdefs.h. */
  15963. int
  15964. main ()
  15965. {
  15966. return main ();
  15967. ;
  15968. return 0;
  15969. }
  15970. _ACEOF
  15971. if ac_fn_c_try_link "$LINENO"; then :
  15972. ac_cv_lib_truerand_main=yes
  15973. else
  15974. ac_cv_lib_truerand_main=no
  15975. fi
  15976. rm -f core conftest.err conftest.$ac_objext \
  15977. conftest$ac_exeext conftest.$ac_ext
  15978. LIBS=$ac_check_lib_save_LIBS
  15979. fi
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
  15981. $as_echo "$ac_cv_lib_truerand_main" >&6; }
  15982. if test "x$ac_cv_lib_truerand_main" = xyes; then :
  15983. cat >>confdefs.h <<_ACEOF
  15984. #define HAVE_LIBTRUERAND 1
  15985. _ACEOF
  15986. LIBS="-ltruerand $LIBS"
  15987. fi
  15988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
  15989. $as_echo_n "checking for library containing modf... " >&6; }
  15990. if ${ac_cv_search_modf+:} false; then :
  15991. $as_echo_n "(cached) " >&6
  15992. else
  15993. ac_func_search_save_LIBS=$LIBS
  15994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15995. /* end confdefs.h. */
  15996. /* Override any GCC internal prototype to avoid an error.
  15997. Use char because int might match the return type of a GCC
  15998. builtin and then its argument prototype would still apply. */
  15999. #ifdef __cplusplus
  16000. extern "C"
  16001. #endif
  16002. char modf ();
  16003. int
  16004. main ()
  16005. {
  16006. return modf ();
  16007. ;
  16008. return 0;
  16009. }
  16010. _ACEOF
  16011. for ac_lib in '' m; do
  16012. if test -z "$ac_lib"; then
  16013. ac_res="none required"
  16014. else
  16015. ac_res=-l$ac_lib
  16016. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16017. fi
  16018. if ac_fn_c_try_link "$LINENO"; then :
  16019. ac_cv_search_modf=$ac_res
  16020. fi
  16021. rm -f core conftest.err conftest.$ac_objext \
  16022. conftest$ac_exeext
  16023. if ${ac_cv_search_modf+:} false; then :
  16024. break
  16025. fi
  16026. done
  16027. if ${ac_cv_search_modf+:} false; then :
  16028. else
  16029. ac_cv_search_modf=no
  16030. fi
  16031. rm conftest.$ac_ext
  16032. LIBS=$ac_func_search_save_LIBS
  16033. fi
  16034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
  16035. $as_echo "$ac_cv_search_modf" >&6; }
  16036. ac_res=$ac_cv_search_modf
  16037. if test "$ac_res" != no; then :
  16038. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16039. fi
  16040. ;;
  16041. esac
  16042. echo "${nl}Checking for Threads..."
  16043. if test -z "$enable_threads"; then
  16044. # Check whether --enable-threads was given.
  16045. if test "${enable_threads+set}" = set; then :
  16046. enableval=$enable_threads; enable_threads=$enableval
  16047. else
  16048. if test "$GCC" = "yes"; then
  16049. SAVE_FL="$CPPFLAGS"
  16050. CPPFLAGS="$CPPFLAGS -w"
  16051. for ac_header in pthread.h
  16052. do :
  16053. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  16054. if test "x$ac_cv_header_pthread_h" = xyes; then :
  16055. cat >>confdefs.h <<_ACEOF
  16056. #define HAVE_PTHREAD_H 1
  16057. _ACEOF
  16058. enable_threads="pthread"
  16059. else
  16060. enable_threads="no"
  16061. fi
  16062. done
  16063. CPPFLAGS="$SAVE_FL"
  16064. else
  16065. for ac_header in pthread.h
  16066. do :
  16067. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  16068. if test "x$ac_cv_header_pthread_h" = xyes; then :
  16069. cat >>confdefs.h <<_ACEOF
  16070. #define HAVE_PTHREAD_H 1
  16071. _ACEOF
  16072. enable_threads="pthread"
  16073. else
  16074. enable_threads="no"
  16075. fi
  16076. done
  16077. fi
  16078. fi
  16079. fi
  16080. if test "$enable_threads" = "no"; then
  16081. threads="0"
  16082. pthreadh="0"
  16083. pthreadser="0"
  16084. else
  16085. if test "$enable_threads" = "pthread"; then
  16086. # We have specified pthreads for our threading library, just make sure
  16087. # that we have everything we need
  16088. apr_pthsv_CFLAGS="$CFLAGS"
  16089. apr_pthsv_LIBS="$LIBS"
  16090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
  16091. $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
  16092. if ${apr_cv_pthreads_cflags+:} false; then :
  16093. $as_echo_n "(cached) " >&6
  16094. else
  16095. apr_ptc_cflags=$CFLAGS
  16096. for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
  16097. CFLAGS=$apr_ptc_cflags
  16098. test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
  16099. if test "$cross_compiling" = yes; then :
  16100. apr_p_t_r=no
  16101. else
  16102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16103. /* end confdefs.h. */
  16104. #include <pthread.h>
  16105. #include <stddef.h>
  16106. void *thread_routine(void *data) {
  16107. return data;
  16108. }
  16109. int main() {
  16110. pthread_t thd;
  16111. pthread_mutexattr_t mattr;
  16112. pthread_once_t once_init = PTHREAD_ONCE_INIT;
  16113. int data = 1;
  16114. pthread_mutexattr_init(&mattr);
  16115. return pthread_create(&thd, NULL, thread_routine, &data);
  16116. }
  16117. _ACEOF
  16118. if ac_fn_c_try_run "$LINENO"; then :
  16119. apr_p_t_r=yes
  16120. else
  16121. apr_p_t_r=no
  16122. fi
  16123. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16124. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16125. fi
  16126. if test $apr_p_t_r = yes; then
  16127. apr_cv_pthreads_cflags="$flag"
  16128. break
  16129. fi
  16130. done
  16131. CFLAGS=$apr_ptc_cflags
  16132. fi
  16133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
  16134. $as_echo "$apr_cv_pthreads_cflags" >&6; }
  16135. if test -n "$apr_cv_pthreads_cflags"; then
  16136. pthreads_working=yes
  16137. if test "x$apr_cv_pthreads_cflags" != "xnone"; then
  16138. if test "x$CFLAGS" = "x"; then
  16139. test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
  16140. CFLAGS="$apr_cv_pthreads_cflags"
  16141. else
  16142. apr_addto_bugger="$apr_cv_pthreads_cflags"
  16143. for i in $apr_addto_bugger; do
  16144. apr_addto_duplicate="0"
  16145. for j in $CFLAGS; do
  16146. if test "x$i" = "x$j"; then
  16147. apr_addto_duplicate="1"
  16148. break
  16149. fi
  16150. done
  16151. if test $apr_addto_duplicate = "0"; then
  16152. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  16153. CFLAGS="$CFLAGS $i"
  16154. fi
  16155. done
  16156. fi
  16157. fi
  16158. fi
  16159. # The CFLAGS may or may not be sufficient to ensure that libapr
  16160. # depends on the pthreads library: some versions of libtool
  16161. # drop -pthread when passed on the link line; some versions of
  16162. # gcc ignore -pthread when linking a shared object. So always
  16163. # try and add the relevant library to LIBS too.
  16164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
  16165. $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
  16166. if ${apr_cv_pthreads_lib+:} false; then :
  16167. $as_echo_n "(cached) " >&6
  16168. else
  16169. apr_ptc_libs=$LIBS
  16170. for lib in -lpthread -lpthreads -lc_r; do
  16171. LIBS="$apr_ptc_libs $lib"
  16172. if test "$cross_compiling" = yes; then :
  16173. apr_p_t_r=no
  16174. else
  16175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16176. /* end confdefs.h. */
  16177. #include <pthread.h>
  16178. #include <stddef.h>
  16179. void *thread_routine(void *data) {
  16180. return data;
  16181. }
  16182. int main() {
  16183. pthread_t thd;
  16184. pthread_mutexattr_t mattr;
  16185. pthread_once_t once_init = PTHREAD_ONCE_INIT;
  16186. int data = 1;
  16187. pthread_mutexattr_init(&mattr);
  16188. return pthread_create(&thd, NULL, thread_routine, &data);
  16189. }
  16190. _ACEOF
  16191. if ac_fn_c_try_run "$LINENO"; then :
  16192. apr_p_t_r=yes
  16193. else
  16194. apr_p_t_r=no
  16195. fi
  16196. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16197. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16198. fi
  16199. if test $apr_p_t_r = yes; then
  16200. apr_cv_pthreads_lib=$lib
  16201. break
  16202. fi
  16203. done
  16204. LIBS=$apr_ptc_libs
  16205. fi
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
  16207. $as_echo "$apr_cv_pthreads_lib" >&6; }
  16208. if test -n "$apr_cv_pthreads_lib"; then
  16209. pthreads_working=yes
  16210. if test "x$LIBS" = "x"; then
  16211. test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
  16212. LIBS="$apr_cv_pthreads_lib"
  16213. else
  16214. apr_addto_bugger="$apr_cv_pthreads_lib"
  16215. for i in $apr_addto_bugger; do
  16216. apr_addto_duplicate="0"
  16217. for j in $LIBS; do
  16218. if test "x$i" = "x$j"; then
  16219. apr_addto_duplicate="1"
  16220. break
  16221. fi
  16222. done
  16223. if test $apr_addto_duplicate = "0"; then
  16224. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  16225. LIBS="$LIBS $i"
  16226. fi
  16227. done
  16228. fi
  16229. fi
  16230. if test "$pthreads_working" = "yes"; then
  16231. threads_result="POSIX Threads found"
  16232. else
  16233. threads_result="POSIX Threads not found"
  16234. fi
  16235. if test "$GCC" = "yes"; then
  16236. SAVE_FL="$CPPFLAGS"
  16237. CPPFLAGS="$CPPFLAGS -w"
  16238. for ac_header in pthread.h
  16239. do :
  16240. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  16241. if test "x$ac_cv_header_pthread_h" = xyes; then :
  16242. cat >>confdefs.h <<_ACEOF
  16243. #define HAVE_PTHREAD_H 1
  16244. _ACEOF
  16245. threads="1"
  16246. pthreadh="1"
  16247. pthreadser="1"
  16248. else
  16249. threads="0"
  16250. pthreadh="0"
  16251. pthreadser="0"
  16252. CFLAGS="$apr_pthsv_CFLAGS"
  16253. LIBS="$apr_pthsv_LIBS"
  16254. fi
  16255. done
  16256. CPPFLAGS="$SAVE_FL"
  16257. else
  16258. for ac_header in pthread.h
  16259. do :
  16260. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  16261. if test "x$ac_cv_header_pthread_h" = xyes; then :
  16262. cat >>confdefs.h <<_ACEOF
  16263. #define HAVE_PTHREAD_H 1
  16264. _ACEOF
  16265. threads="1"
  16266. pthreadh="1"
  16267. pthreadser="1"
  16268. else
  16269. threads="0"
  16270. pthreadh="0"
  16271. pthreadser="0"
  16272. CFLAGS="$apr_pthsv_CFLAGS"
  16273. LIBS="$apr_pthsv_LIBS"
  16274. fi
  16275. done
  16276. fi
  16277. elif test "$enable_threads" = "system_threads"; then
  16278. threads="1"
  16279. pthreadh="0"
  16280. pthreadser="0"
  16281. else
  16282. # We basically specified that we wanted threads, but not how to implement
  16283. # them. In this case, just look for pthreads. In the future, we can check
  16284. # for other threading libraries as well.
  16285. apr_pthsv_CFLAGS="$CFLAGS"
  16286. apr_pthsv_LIBS="$LIBS"
  16287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
  16288. $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
  16289. if ${apr_cv_pthreads_cflags+:} false; then :
  16290. $as_echo_n "(cached) " >&6
  16291. else
  16292. apr_ptc_cflags=$CFLAGS
  16293. for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
  16294. CFLAGS=$apr_ptc_cflags
  16295. test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
  16296. if test "$cross_compiling" = yes; then :
  16297. apr_p_t_r=no
  16298. else
  16299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16300. /* end confdefs.h. */
  16301. #include <pthread.h>
  16302. #include <stddef.h>
  16303. void *thread_routine(void *data) {
  16304. return data;
  16305. }
  16306. int main() {
  16307. pthread_t thd;
  16308. pthread_mutexattr_t mattr;
  16309. pthread_once_t once_init = PTHREAD_ONCE_INIT;
  16310. int data = 1;
  16311. pthread_mutexattr_init(&mattr);
  16312. return pthread_create(&thd, NULL, thread_routine, &data);
  16313. }
  16314. _ACEOF
  16315. if ac_fn_c_try_run "$LINENO"; then :
  16316. apr_p_t_r=yes
  16317. else
  16318. apr_p_t_r=no
  16319. fi
  16320. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16321. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16322. fi
  16323. if test $apr_p_t_r = yes; then
  16324. apr_cv_pthreads_cflags="$flag"
  16325. break
  16326. fi
  16327. done
  16328. CFLAGS=$apr_ptc_cflags
  16329. fi
  16330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
  16331. $as_echo "$apr_cv_pthreads_cflags" >&6; }
  16332. if test -n "$apr_cv_pthreads_cflags"; then
  16333. pthreads_working=yes
  16334. if test "x$apr_cv_pthreads_cflags" != "xnone"; then
  16335. if test "x$CFLAGS" = "x"; then
  16336. test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
  16337. CFLAGS="$apr_cv_pthreads_cflags"
  16338. else
  16339. apr_addto_bugger="$apr_cv_pthreads_cflags"
  16340. for i in $apr_addto_bugger; do
  16341. apr_addto_duplicate="0"
  16342. for j in $CFLAGS; do
  16343. if test "x$i" = "x$j"; then
  16344. apr_addto_duplicate="1"
  16345. break
  16346. fi
  16347. done
  16348. if test $apr_addto_duplicate = "0"; then
  16349. test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
  16350. CFLAGS="$CFLAGS $i"
  16351. fi
  16352. done
  16353. fi
  16354. fi
  16355. fi
  16356. # The CFLAGS may or may not be sufficient to ensure that libapr
  16357. # depends on the pthreads library: some versions of libtool
  16358. # drop -pthread when passed on the link line; some versions of
  16359. # gcc ignore -pthread when linking a shared object. So always
  16360. # try and add the relevant library to LIBS too.
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
  16362. $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
  16363. if ${apr_cv_pthreads_lib+:} false; then :
  16364. $as_echo_n "(cached) " >&6
  16365. else
  16366. apr_ptc_libs=$LIBS
  16367. for lib in -lpthread -lpthreads -lc_r; do
  16368. LIBS="$apr_ptc_libs $lib"
  16369. if test "$cross_compiling" = yes; then :
  16370. apr_p_t_r=no
  16371. else
  16372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16373. /* end confdefs.h. */
  16374. #include <pthread.h>
  16375. #include <stddef.h>
  16376. void *thread_routine(void *data) {
  16377. return data;
  16378. }
  16379. int main() {
  16380. pthread_t thd;
  16381. pthread_mutexattr_t mattr;
  16382. pthread_once_t once_init = PTHREAD_ONCE_INIT;
  16383. int data = 1;
  16384. pthread_mutexattr_init(&mattr);
  16385. return pthread_create(&thd, NULL, thread_routine, &data);
  16386. }
  16387. _ACEOF
  16388. if ac_fn_c_try_run "$LINENO"; then :
  16389. apr_p_t_r=yes
  16390. else
  16391. apr_p_t_r=no
  16392. fi
  16393. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16394. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16395. fi
  16396. if test $apr_p_t_r = yes; then
  16397. apr_cv_pthreads_lib=$lib
  16398. break
  16399. fi
  16400. done
  16401. LIBS=$apr_ptc_libs
  16402. fi
  16403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
  16404. $as_echo "$apr_cv_pthreads_lib" >&6; }
  16405. if test -n "$apr_cv_pthreads_lib"; then
  16406. pthreads_working=yes
  16407. if test "x$LIBS" = "x"; then
  16408. test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
  16409. LIBS="$apr_cv_pthreads_lib"
  16410. else
  16411. apr_addto_bugger="$apr_cv_pthreads_lib"
  16412. for i in $apr_addto_bugger; do
  16413. apr_addto_duplicate="0"
  16414. for j in $LIBS; do
  16415. if test "x$i" = "x$j"; then
  16416. apr_addto_duplicate="1"
  16417. break
  16418. fi
  16419. done
  16420. if test $apr_addto_duplicate = "0"; then
  16421. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  16422. LIBS="$LIBS $i"
  16423. fi
  16424. done
  16425. fi
  16426. fi
  16427. if test "$pthreads_working" = "yes"; then
  16428. threads_result="POSIX Threads found"
  16429. else
  16430. threads_result="POSIX Threads not found"
  16431. fi
  16432. if test "$GCC" = "yes"; then
  16433. SAVE_FL="$CPPFLAGS"
  16434. CPPFLAGS="$CPPFLAGS -w"
  16435. for ac_header in pthread.h
  16436. do :
  16437. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  16438. if test "x$ac_cv_header_pthread_h" = xyes; then :
  16439. cat >>confdefs.h <<_ACEOF
  16440. #define HAVE_PTHREAD_H 1
  16441. _ACEOF
  16442. threads="1"
  16443. pthreadh="1"
  16444. pthreadser="1"
  16445. else
  16446. threads="0"
  16447. pthreadser="0"
  16448. pthreadh="0"
  16449. CFLAGS="$apr_pthsv_CFLAGS"
  16450. LIBS="$apr_pthsv_LIBS"
  16451. fi
  16452. done
  16453. CPPFLAGS="$SAVE_FL"
  16454. else
  16455. for ac_header in pthread.h
  16456. do :
  16457. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  16458. if test "x$ac_cv_header_pthread_h" = xyes; then :
  16459. cat >>confdefs.h <<_ACEOF
  16460. #define HAVE_PTHREAD_H 1
  16461. _ACEOF
  16462. threads="1"
  16463. pthreadh="1"
  16464. pthreadser="1"
  16465. else
  16466. threads="0"
  16467. pthreadser="0"
  16468. pthreadh="0"
  16469. CFLAGS="$apr_pthsv_CFLAGS"
  16470. LIBS="$apr_pthsv_LIBS"
  16471. fi
  16472. done
  16473. fi
  16474. fi
  16475. if test "$pthreadh" = "1"; then
  16476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
  16477. $as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
  16478. if ${ac_cv_pthread_getspecific_two_args+:} false; then :
  16479. $as_echo_n "(cached) " >&6
  16480. else
  16481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16482. /* end confdefs.h. */
  16483. #include <pthread.h>
  16484. int
  16485. main ()
  16486. {
  16487. pthread_key_t key;
  16488. void *tmp;
  16489. pthread_getspecific(key,&tmp);
  16490. ;
  16491. return 0;
  16492. }
  16493. _ACEOF
  16494. if ac_fn_c_try_compile "$LINENO"; then :
  16495. ac_cv_pthread_getspecific_two_args=yes
  16496. else
  16497. ac_cv_pthread_getspecific_two_args=no
  16498. fi
  16499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16500. fi
  16501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
  16502. $as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
  16503. if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
  16504. $as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
  16505. fi
  16506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
  16507. $as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
  16508. if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
  16509. $as_echo_n "(cached) " >&6
  16510. else
  16511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16512. /* end confdefs.h. */
  16513. #include <pthread.h>
  16514. int
  16515. main ()
  16516. {
  16517. pthread_attr_t *attr;
  16518. pthread_attr_getdetachstate(attr);
  16519. ;
  16520. return 0;
  16521. }
  16522. _ACEOF
  16523. if ac_fn_c_try_compile "$LINENO"; then :
  16524. ac_cv_pthread_attr_getdetachstate_one_arg=yes
  16525. else
  16526. ac_cv_pthread_attr_getdetachstate_one_arg=no
  16527. fi
  16528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16529. fi
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
  16531. $as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
  16532. if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
  16533. $as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
  16534. fi
  16535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
  16536. $as_echo_n "checking for recursive mutex support... " >&6; }
  16537. if ${apr_cv_mutex_recursive+:} false; then :
  16538. $as_echo_n "(cached) " >&6
  16539. else
  16540. if test "$cross_compiling" = yes; then :
  16541. apr_cv_mutex_recursive=no
  16542. else
  16543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16544. /* end confdefs.h. */
  16545. #include <sys/types.h>
  16546. #include <pthread.h>
  16547. #include <stdlib.h>
  16548. int main() {
  16549. pthread_mutexattr_t attr;
  16550. pthread_mutex_t m;
  16551. exit (pthread_mutexattr_init(&attr)
  16552. || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
  16553. || pthread_mutex_init(&m, &attr));
  16554. }
  16555. _ACEOF
  16556. if ac_fn_c_try_run "$LINENO"; then :
  16557. apr_cv_mutex_recursive=yes
  16558. else
  16559. apr_cv_mutex_recursive=no
  16560. fi
  16561. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16562. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16563. fi
  16564. fi
  16565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
  16566. $as_echo "$apr_cv_mutex_recursive" >&6; }
  16567. if test "$apr_cv_mutex_recursive" = "yes"; then
  16568. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  16569. fi
  16570. for ac_func in pthread_key_delete pthread_rwlock_init \
  16571. pthread_attr_setguardsize pthread_yield
  16572. do :
  16573. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16574. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16575. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16576. cat >>confdefs.h <<_ACEOF
  16577. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16578. _ACEOF
  16579. fi
  16580. done
  16581. if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
  16582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
  16583. $as_echo_n "checking for pthread_rwlock_t... " >&6; }
  16584. if ${apr_cv_type_rwlock_t+:} false; then :
  16585. $as_echo_n "(cached) " >&6
  16586. else
  16587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16588. /* end confdefs.h. */
  16589. #include <sys/types.h>
  16590. #include <pthread.h>
  16591. int
  16592. main ()
  16593. {
  16594. pthread_rwlock_t *rwlock;
  16595. ;
  16596. return 0;
  16597. }
  16598. _ACEOF
  16599. if ac_fn_c_try_compile "$LINENO"; then :
  16600. apr_cv_type_rwlock_t=yes
  16601. else
  16602. apr_cv_type_rwlock_t=no
  16603. fi
  16604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16605. fi
  16606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
  16607. $as_echo "$apr_cv_type_rwlock_t" >&6; }
  16608. if test "$apr_cv_type_rwlock_t" = "yes"; then
  16609. $as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
  16610. fi
  16611. fi
  16612. if test "$ac_cv_func_pthread_yield" = "no"; then
  16613. for ac_header in sched.h
  16614. do :
  16615. ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
  16616. if test "x$ac_cv_header_sched_h" = xyes; then :
  16617. cat >>confdefs.h <<_ACEOF
  16618. #define HAVE_SCHED_H 1
  16619. _ACEOF
  16620. fi
  16621. done
  16622. for ac_func in sched_yield
  16623. do :
  16624. ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
  16625. if test "x$ac_cv_func_sched_yield" = xyes; then :
  16626. cat >>confdefs.h <<_ACEOF
  16627. #define HAVE_SCHED_YIELD 1
  16628. _ACEOF
  16629. fi
  16630. done
  16631. fi
  16632. fi
  16633. fi
  16634. ac_cv_define_READDIR_IS_THREAD_SAFE=no
  16635. ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
  16636. ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
  16637. ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
  16638. if test "$threads" = "1"; then
  16639. echo "APR will use threads"
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
  16641. $as_echo_n "checking for readdir in -lc_r... " >&6; }
  16642. if ${ac_cv_lib_c_r_readdir+:} false; then :
  16643. $as_echo_n "(cached) " >&6
  16644. else
  16645. ac_check_lib_save_LIBS=$LIBS
  16646. LIBS="-lc_r $LIBS"
  16647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16648. /* end confdefs.h. */
  16649. /* Override any GCC internal prototype to avoid an error.
  16650. Use char because int might match the return type of a GCC
  16651. builtin and then its argument prototype would still apply. */
  16652. #ifdef __cplusplus
  16653. extern "C"
  16654. #endif
  16655. char readdir ();
  16656. int
  16657. main ()
  16658. {
  16659. return readdir ();
  16660. ;
  16661. return 0;
  16662. }
  16663. _ACEOF
  16664. if ac_fn_c_try_link "$LINENO"; then :
  16665. ac_cv_lib_c_r_readdir=yes
  16666. else
  16667. ac_cv_lib_c_r_readdir=no
  16668. fi
  16669. rm -f core conftest.err conftest.$ac_objext \
  16670. conftest$ac_exeext conftest.$ac_ext
  16671. LIBS=$ac_check_lib_save_LIBS
  16672. fi
  16673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
  16674. $as_echo "$ac_cv_lib_c_r_readdir" >&6; }
  16675. if test "x$ac_cv_lib_c_r_readdir" = xyes; then :
  16676. $as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
  16677. fi
  16678. if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
  16679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
  16680. $as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
  16681. if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
  16682. $as_echo_n "(cached) " >&6
  16683. else
  16684. ac_check_lib_save_LIBS=$LIBS
  16685. LIBS="-lc_r $LIBS"
  16686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16687. /* end confdefs.h. */
  16688. /* Override any GCC internal prototype to avoid an error.
  16689. Use char because int might match the return type of a GCC
  16690. builtin and then its argument prototype would still apply. */
  16691. #ifdef __cplusplus
  16692. extern "C"
  16693. #endif
  16694. char gethostbyname ();
  16695. int
  16696. main ()
  16697. {
  16698. return gethostbyname ();
  16699. ;
  16700. return 0;
  16701. }
  16702. _ACEOF
  16703. if ac_fn_c_try_link "$LINENO"; then :
  16704. ac_cv_lib_c_r_gethostbyname=yes
  16705. else
  16706. ac_cv_lib_c_r_gethostbyname=no
  16707. fi
  16708. rm -f core conftest.err conftest.$ac_objext \
  16709. conftest$ac_exeext conftest.$ac_ext
  16710. LIBS=$ac_check_lib_save_LIBS
  16711. fi
  16712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
  16713. $as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
  16714. if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
  16715. apr_gethostbyname_is_thread_safe=yes
  16716. fi
  16717. fi
  16718. if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
  16719. $as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
  16720. fi
  16721. if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
  16722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
  16723. $as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
  16724. if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
  16725. $as_echo_n "(cached) " >&6
  16726. else
  16727. ac_check_lib_save_LIBS=$LIBS
  16728. LIBS="-lc_r $LIBS"
  16729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16730. /* end confdefs.h. */
  16731. /* Override any GCC internal prototype to avoid an error.
  16732. Use char because int might match the return type of a GCC
  16733. builtin and then its argument prototype would still apply. */
  16734. #ifdef __cplusplus
  16735. extern "C"
  16736. #endif
  16737. char gethostbyaddr ();
  16738. int
  16739. main ()
  16740. {
  16741. return gethostbyaddr ();
  16742. ;
  16743. return 0;
  16744. }
  16745. _ACEOF
  16746. if ac_fn_c_try_link "$LINENO"; then :
  16747. ac_cv_lib_c_r_gethostbyaddr=yes
  16748. else
  16749. ac_cv_lib_c_r_gethostbyaddr=no
  16750. fi
  16751. rm -f core conftest.err conftest.$ac_objext \
  16752. conftest$ac_exeext conftest.$ac_ext
  16753. LIBS=$ac_check_lib_save_LIBS
  16754. fi
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
  16756. $as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
  16757. if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
  16758. apr_gethostbyaddr_is_thread_safe=yes
  16759. fi
  16760. fi
  16761. if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
  16762. $as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
  16763. fi
  16764. if test "x$apr_getservbyname_is_thread_safe" = "x"; then
  16765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
  16766. $as_echo_n "checking for getservbyname in -lc_r... " >&6; }
  16767. if ${ac_cv_lib_c_r_getservbyname+:} false; then :
  16768. $as_echo_n "(cached) " >&6
  16769. else
  16770. ac_check_lib_save_LIBS=$LIBS
  16771. LIBS="-lc_r $LIBS"
  16772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16773. /* end confdefs.h. */
  16774. /* Override any GCC internal prototype to avoid an error.
  16775. Use char because int might match the return type of a GCC
  16776. builtin and then its argument prototype would still apply. */
  16777. #ifdef __cplusplus
  16778. extern "C"
  16779. #endif
  16780. char getservbyname ();
  16781. int
  16782. main ()
  16783. {
  16784. return getservbyname ();
  16785. ;
  16786. return 0;
  16787. }
  16788. _ACEOF
  16789. if ac_fn_c_try_link "$LINENO"; then :
  16790. ac_cv_lib_c_r_getservbyname=yes
  16791. else
  16792. ac_cv_lib_c_r_getservbyname=no
  16793. fi
  16794. rm -f core conftest.err conftest.$ac_objext \
  16795. conftest$ac_exeext conftest.$ac_ext
  16796. LIBS=$ac_check_lib_save_LIBS
  16797. fi
  16798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
  16799. $as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
  16800. if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
  16801. apr_getservbyname_is_thread_safe=yes
  16802. fi
  16803. fi
  16804. if test "$apr_getservbyname_is_thread_safe" = "yes"; then
  16805. $as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
  16806. fi
  16807. for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
  16808. do :
  16809. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16810. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16811. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16812. cat >>confdefs.h <<_ACEOF
  16813. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16814. _ACEOF
  16815. fi
  16816. done
  16817. else
  16818. echo "APR will be non-threaded"
  16819. fi
  16820. # Check whether --with-efence was given.
  16821. if test "${with_efence+set}" = set; then :
  16822. withval=$with_efence; apr_efence_dir="$withval"
  16823. if test "$apr_efence_dir" != "yes"; then
  16824. if test "x$LDFLAGS" = "x"; then
  16825. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apr_efence_dir/lib\""
  16826. LDFLAGS="-L$apr_efence_dir/lib"
  16827. else
  16828. apr_addto_bugger="-L$apr_efence_dir/lib"
  16829. for i in $apr_addto_bugger; do
  16830. apr_addto_duplicate="0"
  16831. for j in $LDFLAGS; do
  16832. if test "x$i" = "x$j"; then
  16833. apr_addto_duplicate="1"
  16834. break
  16835. fi
  16836. done
  16837. if test $apr_addto_duplicate = "0"; then
  16838. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  16839. LDFLAGS="$LDFLAGS $i"
  16840. fi
  16841. done
  16842. fi
  16843. if test "x$apr_platform_runtime_link_flag" != "x"; then
  16844. if test "x$LDFLAGS" = "x"; then
  16845. test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
  16846. LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
  16847. else
  16848. apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
  16849. for i in $apr_addto_bugger; do
  16850. apr_addto_duplicate="0"
  16851. for j in $LDFLAGS; do
  16852. if test "x$i" = "x$j"; then
  16853. apr_addto_duplicate="1"
  16854. break
  16855. fi
  16856. done
  16857. if test $apr_addto_duplicate = "0"; then
  16858. test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
  16859. LDFLAGS="$LDFLAGS $i"
  16860. fi
  16861. done
  16862. fi
  16863. fi
  16864. fi
  16865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
  16866. $as_echo_n "checking for malloc in -lefence... " >&6; }
  16867. if ${ac_cv_lib_efence_malloc+:} false; then :
  16868. $as_echo_n "(cached) " >&6
  16869. else
  16870. ac_check_lib_save_LIBS=$LIBS
  16871. LIBS="-lefence $LIBS"
  16872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16873. /* end confdefs.h. */
  16874. /* Override any GCC internal prototype to avoid an error.
  16875. Use char because int might match the return type of a GCC
  16876. builtin and then its argument prototype would still apply. */
  16877. #ifdef __cplusplus
  16878. extern "C"
  16879. #endif
  16880. char malloc ();
  16881. int
  16882. main ()
  16883. {
  16884. return malloc ();
  16885. ;
  16886. return 0;
  16887. }
  16888. _ACEOF
  16889. if ac_fn_c_try_link "$LINENO"; then :
  16890. ac_cv_lib_efence_malloc=yes
  16891. else
  16892. ac_cv_lib_efence_malloc=no
  16893. fi
  16894. rm -f core conftest.err conftest.$ac_objext \
  16895. conftest$ac_exeext conftest.$ac_ext
  16896. LIBS=$ac_check_lib_save_LIBS
  16897. fi
  16898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
  16899. $as_echo "$ac_cv_lib_efence_malloc" >&6; }
  16900. if test "x$ac_cv_lib_efence_malloc" = xyes; then :
  16901. if test "x$LIBS" = "x"; then
  16902. test "x$silent" != "xyes" && echo " setting LIBS to \"-lefence\""
  16903. LIBS="-lefence"
  16904. else
  16905. apr_addto_bugger="-lefence"
  16906. for i in $apr_addto_bugger; do
  16907. apr_addto_duplicate="0"
  16908. for j in $LIBS; do
  16909. if test "x$i" = "x$j"; then
  16910. apr_addto_duplicate="1"
  16911. break
  16912. fi
  16913. done
  16914. if test $apr_addto_duplicate = "0"; then
  16915. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  16916. LIBS="$LIBS $i"
  16917. fi
  16918. done
  16919. fi
  16920. else
  16921. as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
  16922. fi
  16923. fi
  16924. for ac_func in sigsuspend
  16925. do :
  16926. ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
  16927. if test "x$ac_cv_func_sigsuspend" = xyes; then :
  16928. cat >>confdefs.h <<_ACEOF
  16929. #define HAVE_SIGSUSPEND 1
  16930. _ACEOF
  16931. have_sigsuspend="1"
  16932. else
  16933. have_sigsuspend="0"
  16934. fi
  16935. done
  16936. for ac_func in sigwait
  16937. do :
  16938. ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
  16939. if test "x$ac_cv_func_sigwait" = xyes; then :
  16940. cat >>confdefs.h <<_ACEOF
  16941. #define HAVE_SIGWAIT 1
  16942. _ACEOF
  16943. have_sigwait="1"
  16944. else
  16945. have_sigwait="0"
  16946. fi
  16947. done
  16948. case $host in
  16949. *alpha*-dec-osf* )
  16950. have_sigwait="1"
  16951. ;;
  16952. esac
  16953. for ac_func in poll kqueue port_create
  16954. do :
  16955. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16956. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16957. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16958. cat >>confdefs.h <<_ACEOF
  16959. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16960. _ACEOF
  16961. fi
  16962. done
  16963. # Check for the Linux epoll interface; epoll* may be available in libc
  16964. # but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
  16965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
  16966. $as_echo_n "checking for epoll support... " >&6; }
  16967. if ${apr_cv_epoll+:} false; then :
  16968. $as_echo_n "(cached) " >&6
  16969. else
  16970. if test "$cross_compiling" = yes; then :
  16971. apr_cv_epoll=no
  16972. else
  16973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16974. /* end confdefs.h. */
  16975. #include <sys/epoll.h>
  16976. #include <unistd.h>
  16977. int main()
  16978. {
  16979. return epoll_create(5) == -1;
  16980. }
  16981. _ACEOF
  16982. if ac_fn_c_try_run "$LINENO"; then :
  16983. apr_cv_epoll=yes
  16984. else
  16985. apr_cv_epoll=no
  16986. fi
  16987. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16988. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16989. fi
  16990. fi
  16991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
  16992. $as_echo "$apr_cv_epoll" >&6; }
  16993. if test "$apr_cv_epoll" = "yes"; then
  16994. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  16995. fi
  16996. # test for epoll_create1
  16997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
  16998. $as_echo_n "checking for epoll_create1 support... " >&6; }
  16999. if ${apr_cv_epoll_create1+:} false; then :
  17000. $as_echo_n "(cached) " >&6
  17001. else
  17002. if test "$cross_compiling" = yes; then :
  17003. apr_cv_epoll_create1=no
  17004. else
  17005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17006. /* end confdefs.h. */
  17007. #include <sys/epoll.h>
  17008. #include <unistd.h>
  17009. int main()
  17010. {
  17011. return epoll_create1(0) == -1;
  17012. }
  17013. _ACEOF
  17014. if ac_fn_c_try_run "$LINENO"; then :
  17015. apr_cv_epoll_create1=yes
  17016. else
  17017. apr_cv_epoll_create1=no
  17018. fi
  17019. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17020. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17021. fi
  17022. fi
  17023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
  17024. $as_echo "$apr_cv_epoll_create1" >&6; }
  17025. if test "$apr_cv_epoll_create1" = "yes"; then
  17026. $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
  17027. fi
  17028. # test for dup3
  17029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
  17030. $as_echo_n "checking for dup3 support... " >&6; }
  17031. if ${apr_cv_dup3+:} false; then :
  17032. $as_echo_n "(cached) " >&6
  17033. else
  17034. if test "$cross_compiling" = yes; then :
  17035. apr_cv_dup3=no
  17036. else
  17037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17038. /* end confdefs.h. */
  17039. #include <unistd.h>
  17040. int main()
  17041. {
  17042. return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
  17043. }
  17044. _ACEOF
  17045. if ac_fn_c_try_run "$LINENO"; then :
  17046. apr_cv_dup3=yes
  17047. else
  17048. apr_cv_dup3=no
  17049. fi
  17050. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17051. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17052. fi
  17053. fi
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
  17055. $as_echo "$apr_cv_dup3" >&6; }
  17056. if test "$apr_cv_dup3" = "yes"; then
  17057. $as_echo "#define HAVE_DUP3 1" >>confdefs.h
  17058. fi
  17059. # test for accept4
  17060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
  17061. $as_echo_n "checking for accept4 support... " >&6; }
  17062. if ${apr_cv_accept4+:} false; then :
  17063. $as_echo_n "(cached) " >&6
  17064. else
  17065. if test "$cross_compiling" = yes; then :
  17066. apr_cv_accept4=no
  17067. else
  17068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17069. /* end confdefs.h. */
  17070. #include <unistd.h>
  17071. #include <sys/types.h>
  17072. #include <sys/socket.h>
  17073. #include <sys/un.h>
  17074. #include <sys/wait.h>
  17075. #include <signal.h>
  17076. #include <errno.h>
  17077. #define A4_SOCK "./apr_accept4_test_socket"
  17078. int main()
  17079. {
  17080. pid_t pid;
  17081. int fd;
  17082. struct sockaddr_un loc, rem;
  17083. socklen_t rem_sz;
  17084. if ((pid = fork())) {
  17085. int status;
  17086. unlink(A4_SOCK);
  17087. if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
  17088. goto cleanup_failure2;
  17089. loc.sun_family = AF_UNIX;
  17090. strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
  17091. if (bind(fd, (struct sockaddr *) &loc,
  17092. sizeof(struct sockaddr_un)) == -1)
  17093. goto cleanup_failure;
  17094. if (listen(fd, 5) == -1)
  17095. goto cleanup_failure;
  17096. rem_sz = sizeof(struct sockaddr_un);
  17097. if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
  17098. goto cleanup_failure;
  17099. }
  17100. else {
  17101. close(fd);
  17102. waitpid(pid, &status, 0);
  17103. unlink(A4_SOCK);
  17104. return 0;
  17105. }
  17106. cleanup_failure:
  17107. close(fd);
  17108. cleanup_failure2:
  17109. kill(pid, SIGKILL);
  17110. waitpid(pid, &status, 0);
  17111. unlink(A4_SOCK);
  17112. return 1;
  17113. }
  17114. else {
  17115. if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
  17116. return 1; /* this will be bad: we'll hang */
  17117. loc.sun_family = AF_UNIX;
  17118. strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
  17119. while(connect(fd, (struct sockaddr *) &loc,
  17120. sizeof(struct sockaddr_un)) == -1 &&
  17121. (errno==ENOENT || errno==ECONNREFUSED))
  17122. ;
  17123. close(fd);
  17124. return 0;
  17125. }
  17126. }
  17127. _ACEOF
  17128. if ac_fn_c_try_run "$LINENO"; then :
  17129. apr_cv_accept4=yes
  17130. else
  17131. apr_cv_accept4=no
  17132. fi
  17133. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17134. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17135. fi
  17136. fi
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
  17138. $as_echo "$apr_cv_accept4" >&6; }
  17139. if test "$apr_cv_accept4" = "yes"; then
  17140. $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
  17141. fi
  17142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
  17143. $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
  17144. if ${apr_cv_sock_cloexec+:} false; then :
  17145. $as_echo_n "(cached) " >&6
  17146. else
  17147. if test "$cross_compiling" = yes; then :
  17148. apr_cv_sock_cloexec=no
  17149. else
  17150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17151. /* end confdefs.h. */
  17152. #include <sys/types.h>
  17153. #include <sys/socket.h>
  17154. int main()
  17155. {
  17156. return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
  17157. }
  17158. _ACEOF
  17159. if ac_fn_c_try_run "$LINENO"; then :
  17160. apr_cv_sock_cloexec=yes
  17161. else
  17162. apr_cv_sock_cloexec=no
  17163. fi
  17164. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17165. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17166. fi
  17167. fi
  17168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
  17169. $as_echo "$apr_cv_sock_cloexec" >&6; }
  17170. if test "$apr_cv_sock_cloexec" = "yes"; then
  17171. $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
  17172. fi
  17173. for ac_func in fdatasync
  17174. do :
  17175. ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
  17176. if test "x$ac_cv_func_fdatasync" = xyes; then :
  17177. cat >>confdefs.h <<_ACEOF
  17178. #define HAVE_FDATASYNC 1
  17179. _ACEOF
  17180. fi
  17181. done
  17182. # test for epoll_create1
  17183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
  17184. $as_echo_n "checking for epoll_create1 support... " >&6; }
  17185. if ${apr_cv_epoll_create1+:} false; then :
  17186. $as_echo_n "(cached) " >&6
  17187. else
  17188. if test "$cross_compiling" = yes; then :
  17189. apr_cv_epoll_create1=no
  17190. else
  17191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17192. /* end confdefs.h. */
  17193. #include <sys/epoll.h>
  17194. #include <unistd.h>
  17195. int main()
  17196. {
  17197. return epoll_create1(0) == -1;
  17198. }
  17199. _ACEOF
  17200. if ac_fn_c_try_run "$LINENO"; then :
  17201. apr_cv_epoll_create1=yes
  17202. else
  17203. apr_cv_epoll_create1=no
  17204. fi
  17205. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17206. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17207. fi
  17208. fi
  17209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
  17210. $as_echo "$apr_cv_epoll_create1" >&6; }
  17211. if test "$apr_cv_epoll_create1" = "yes"; then
  17212. $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
  17213. fi
  17214. # test for dup3
  17215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
  17216. $as_echo_n "checking for dup3 support... " >&6; }
  17217. if ${apr_cv_dup3+:} false; then :
  17218. $as_echo_n "(cached) " >&6
  17219. else
  17220. if test "$cross_compiling" = yes; then :
  17221. apr_cv_dup3=no
  17222. else
  17223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17224. /* end confdefs.h. */
  17225. #include <unistd.h>
  17226. int main()
  17227. {
  17228. return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
  17229. }
  17230. _ACEOF
  17231. if ac_fn_c_try_run "$LINENO"; then :
  17232. apr_cv_dup3=yes
  17233. else
  17234. apr_cv_dup3=no
  17235. fi
  17236. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17237. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17238. fi
  17239. fi
  17240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
  17241. $as_echo "$apr_cv_dup3" >&6; }
  17242. if test "$apr_cv_dup3" = "yes"; then
  17243. $as_echo "#define HAVE_DUP3 1" >>confdefs.h
  17244. fi
  17245. # test for accept4
  17246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
  17247. $as_echo_n "checking for accept4 support... " >&6; }
  17248. if ${apr_cv_accept4+:} false; then :
  17249. $as_echo_n "(cached) " >&6
  17250. else
  17251. if test "$cross_compiling" = yes; then :
  17252. apr_cv_accept4=no
  17253. else
  17254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17255. /* end confdefs.h. */
  17256. #include <unistd.h>
  17257. #include <sys/types.h>
  17258. #include <sys/socket.h>
  17259. #include <sys/un.h>
  17260. #include <sys/wait.h>
  17261. #include <signal.h>
  17262. #include <errno.h>
  17263. #define A4_SOCK "./apr_accept4_test_socket"
  17264. int main()
  17265. {
  17266. pid_t pid;
  17267. int fd;
  17268. struct sockaddr_un loc, rem;
  17269. socklen_t rem_sz;
  17270. if ((pid = fork())) {
  17271. int status;
  17272. unlink(A4_SOCK);
  17273. if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
  17274. goto cleanup_failure2;
  17275. loc.sun_family = AF_UNIX;
  17276. strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
  17277. if (bind(fd, (struct sockaddr *) &loc,
  17278. sizeof(struct sockaddr_un)) == -1)
  17279. goto cleanup_failure;
  17280. if (listen(fd, 5) == -1)
  17281. goto cleanup_failure;
  17282. rem_sz = sizeof(struct sockaddr_un);
  17283. if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
  17284. goto cleanup_failure;
  17285. }
  17286. else {
  17287. close(fd);
  17288. waitpid(pid, &status, 0);
  17289. unlink(A4_SOCK);
  17290. return 0;
  17291. }
  17292. cleanup_failure:
  17293. close(fd);
  17294. cleanup_failure2:
  17295. kill(pid, SIGKILL);
  17296. waitpid(pid, &status, 0);
  17297. unlink(A4_SOCK);
  17298. return 1;
  17299. }
  17300. else {
  17301. if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
  17302. return 1; /* this will be bad: we'll hang */
  17303. loc.sun_family = AF_UNIX;
  17304. strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
  17305. while(connect(fd, (struct sockaddr *) &loc,
  17306. sizeof(struct sockaddr_un)) == -1 &&
  17307. (errno==ENOENT || errno==ECONNREFUSED))
  17308. ;
  17309. close(fd);
  17310. return 0;
  17311. }
  17312. }
  17313. _ACEOF
  17314. if ac_fn_c_try_run "$LINENO"; then :
  17315. apr_cv_accept4=yes
  17316. else
  17317. apr_cv_accept4=no
  17318. fi
  17319. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17320. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17321. fi
  17322. fi
  17323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
  17324. $as_echo "$apr_cv_accept4" >&6; }
  17325. if test "$apr_cv_accept4" = "yes"; then
  17326. $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
  17327. fi
  17328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
  17329. $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
  17330. if ${apr_cv_sock_cloexec+:} false; then :
  17331. $as_echo_n "(cached) " >&6
  17332. else
  17333. if test "$cross_compiling" = yes; then :
  17334. apr_cv_sock_cloexec=no
  17335. else
  17336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17337. /* end confdefs.h. */
  17338. #include <sys/types.h>
  17339. #include <sys/socket.h>
  17340. int main()
  17341. {
  17342. return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
  17343. }
  17344. _ACEOF
  17345. if ac_fn_c_try_run "$LINENO"; then :
  17346. apr_cv_sock_cloexec=yes
  17347. else
  17348. apr_cv_sock_cloexec=no
  17349. fi
  17350. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17351. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17352. fi
  17353. fi
  17354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
  17355. $as_echo "$apr_cv_sock_cloexec" >&6; }
  17356. if test "$apr_cv_sock_cloexec" = "yes"; then
  17357. $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
  17358. fi
  17359. for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
  17360. do :
  17361. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17362. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17363. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17364. cat >>confdefs.h <<_ACEOF
  17365. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17366. _ACEOF
  17367. fi
  17368. done
  17369. echo "${nl}Checking for Shared Memory Support..."
  17370. # The real-time POSIX extensions (e.g. shm_*, sem_*) may only
  17371. # be available if linking against librt.
  17372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
  17373. $as_echo_n "checking for library containing shm_open... " >&6; }
  17374. if ${ac_cv_search_shm_open+:} false; then :
  17375. $as_echo_n "(cached) " >&6
  17376. else
  17377. ac_func_search_save_LIBS=$LIBS
  17378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17379. /* end confdefs.h. */
  17380. /* Override any GCC internal prototype to avoid an error.
  17381. Use char because int might match the return type of a GCC
  17382. builtin and then its argument prototype would still apply. */
  17383. #ifdef __cplusplus
  17384. extern "C"
  17385. #endif
  17386. char shm_open ();
  17387. int
  17388. main ()
  17389. {
  17390. return shm_open ();
  17391. ;
  17392. return 0;
  17393. }
  17394. _ACEOF
  17395. for ac_lib in '' rt; do
  17396. if test -z "$ac_lib"; then
  17397. ac_res="none required"
  17398. else
  17399. ac_res=-l$ac_lib
  17400. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17401. fi
  17402. if ac_fn_c_try_link "$LINENO"; then :
  17403. ac_cv_search_shm_open=$ac_res
  17404. fi
  17405. rm -f core conftest.err conftest.$ac_objext \
  17406. conftest$ac_exeext
  17407. if ${ac_cv_search_shm_open+:} false; then :
  17408. break
  17409. fi
  17410. done
  17411. if ${ac_cv_search_shm_open+:} false; then :
  17412. else
  17413. ac_cv_search_shm_open=no
  17414. fi
  17415. rm conftest.$ac_ext
  17416. LIBS=$ac_func_search_save_LIBS
  17417. fi
  17418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
  17419. $as_echo "$ac_cv_search_shm_open" >&6; }
  17420. ac_res=$ac_cv_search_shm_open
  17421. if test "$ac_res" != no; then :
  17422. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17423. fi
  17424. case $host in
  17425. *-sysv*)
  17426. ac_includes_default="$ac_includes_default
  17427. #if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
  17428. # include <sys/mutex.h>
  17429. #endif";;
  17430. esac
  17431. for ac_header in sys/types.h sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h windows.h
  17432. do :
  17433. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17434. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17435. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17436. cat >>confdefs.h <<_ACEOF
  17437. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17438. _ACEOF
  17439. fi
  17440. done
  17441. for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
  17442. create_area
  17443. do :
  17444. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17445. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17446. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17447. cat >>confdefs.h <<_ACEOF
  17448. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17449. _ACEOF
  17450. fi
  17451. done
  17452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
  17453. $as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
  17454. if ${ac_cv_define_MAP_ANON+:} false; then :
  17455. $as_echo_n "(cached) " >&6
  17456. else
  17457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17458. /* end confdefs.h. */
  17459. #include <sys/mman.h>
  17460. #ifdef MAP_ANON
  17461. YES_IS_DEFINED
  17462. #endif
  17463. _ACEOF
  17464. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17465. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  17466. ac_cv_define_MAP_ANON=yes
  17467. else
  17468. ac_cv_define_MAP_ANON=no
  17469. fi
  17470. rm -f conftest*
  17471. fi
  17472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
  17473. $as_echo "$ac_cv_define_MAP_ANON" >&6; }
  17474. if test "$ac_cv_define_MAP_ANON" = "yes"; then
  17475. $as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
  17476. fi
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
  17478. $as_echo_n "checking for /dev/zero... " >&6; }
  17479. if ${ac_cv_file__dev_zero+:} false; then :
  17480. $as_echo_n "(cached) " >&6
  17481. else
  17482. test "$cross_compiling" = yes &&
  17483. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  17484. if test -r "/dev/zero"; then
  17485. ac_cv_file__dev_zero=yes
  17486. else
  17487. ac_cv_file__dev_zero=no
  17488. fi
  17489. fi
  17490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
  17491. $as_echo "$ac_cv_file__dev_zero" >&6; }
  17492. if test "x$ac_cv_file__dev_zero" = xyes; then :
  17493. fi
  17494. # Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
  17495. if test "$ac_cv_func_mmap" = "yes" &&
  17496. test "$ac_cv_file__dev_zero" = "yes"; then
  17497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
  17498. $as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
  17499. if test "$cross_compiling" = yes; then :
  17500. ac_cv_file__dev_zero=no
  17501. else
  17502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17503. /* end confdefs.h. */
  17504. #include <sys/types.h>
  17505. #include <sys/stat.h>
  17506. #include <fcntl.h>
  17507. #ifdef HAVE_SYS_MMAN_H
  17508. #include <sys/mman.h>
  17509. #endif
  17510. int main()
  17511. {
  17512. int fd;
  17513. void *m;
  17514. fd = open("/dev/zero", O_RDWR);
  17515. if (fd < 0) {
  17516. return 1;
  17517. }
  17518. m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
  17519. if (m == (void *)-1) { /* aka MAP_FAILED */
  17520. return 2;
  17521. }
  17522. if (munmap(m, sizeof(void*)) < 0) {
  17523. return 3;
  17524. }
  17525. return 0;
  17526. }
  17527. _ACEOF
  17528. if ac_fn_c_try_run "$LINENO"; then :
  17529. else
  17530. ac_cv_file__dev_zero=no
  17531. fi
  17532. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17533. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17534. fi
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
  17536. $as_echo "$ac_cv_file__dev_zero" >&6; }
  17537. fi
  17538. # Now we determine which one is our anonymous shmem preference.
  17539. haveshmgetanon="0"
  17540. havemmapzero="0"
  17541. havemmapanon="0"
  17542. ac_decision_item='anonymous shared memory allocation method'
  17543. ac_decision_msg='FAILED'
  17544. ac_decision=''
  17545. ac_rc=yes
  17546. for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do
  17547. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17548. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17549. case $ac_type in
  17550. header )
  17551. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17552. ac_var="ac_cv_header_$ac_item"
  17553. ;;
  17554. file )
  17555. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17556. ac_var="ac_cv_file_$ac_item"
  17557. ;;
  17558. func ) ac_var="ac_cv_func_$ac_item" ;;
  17559. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17560. define ) ac_var="ac_cv_define_$ac_item" ;;
  17561. custom ) ac_var="$ac_item" ;;
  17562. esac
  17563. eval "ac_val=\$$ac_var"
  17564. if test ".$ac_val" != .yes; then
  17565. ac_rc=no
  17566. break
  17567. fi
  17568. done
  17569. if test ".$ac_rc" = .yes; then
  17570. :
  17571. haveshmgetanon="1"
  17572. ac_decision='USE_SHMEM_SHMGET_ANON'
  17573. ac_decision_msg='SysV IPC shmget()'
  17574. ac_decision_USE_SHMEM_SHMGET_ANON=yes
  17575. ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
  17576. else
  17577. :
  17578. fi
  17579. ac_rc=yes
  17580. for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
  17581. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17582. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17583. case $ac_type in
  17584. header )
  17585. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17586. ac_var="ac_cv_header_$ac_item"
  17587. ;;
  17588. file )
  17589. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17590. ac_var="ac_cv_file_$ac_item"
  17591. ;;
  17592. func ) ac_var="ac_cv_func_$ac_item" ;;
  17593. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17594. define ) ac_var="ac_cv_define_$ac_item" ;;
  17595. custom ) ac_var="$ac_item" ;;
  17596. esac
  17597. eval "ac_val=\$$ac_var"
  17598. if test ".$ac_val" != .yes; then
  17599. ac_rc=no
  17600. break
  17601. fi
  17602. done
  17603. if test ".$ac_rc" = .yes; then
  17604. :
  17605. havemmapzero="1"
  17606. ac_decision='USE_SHMEM_MMAP_ZERO'
  17607. ac_decision_msg='SVR4-style mmap() on /dev/zero'
  17608. ac_decision_USE_SHMEM_MMAP_ZERO=yes
  17609. ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
  17610. else
  17611. :
  17612. fi
  17613. ac_rc=yes
  17614. for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
  17615. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17616. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17617. case $ac_type in
  17618. header )
  17619. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17620. ac_var="ac_cv_header_$ac_item"
  17621. ;;
  17622. file )
  17623. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17624. ac_var="ac_cv_file_$ac_item"
  17625. ;;
  17626. func ) ac_var="ac_cv_func_$ac_item" ;;
  17627. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17628. define ) ac_var="ac_cv_define_$ac_item" ;;
  17629. custom ) ac_var="$ac_item" ;;
  17630. esac
  17631. eval "ac_val=\$$ac_var"
  17632. if test ".$ac_val" != .yes; then
  17633. ac_rc=no
  17634. break
  17635. fi
  17636. done
  17637. if test ".$ac_rc" = .yes; then
  17638. :
  17639. havemmapanon="1"
  17640. ac_decision='USE_SHMEM_MMAP_ANON'
  17641. ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
  17642. ac_decision_USE_SHMEM_MMAP_ANON=yes
  17643. ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
  17644. else
  17645. :
  17646. fi
  17647. ac_rc=yes
  17648. for ac_spec in header:os2.h; do
  17649. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17650. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17651. case $ac_type in
  17652. header )
  17653. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17654. ac_var="ac_cv_header_$ac_item"
  17655. ;;
  17656. file )
  17657. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17658. ac_var="ac_cv_file_$ac_item"
  17659. ;;
  17660. func ) ac_var="ac_cv_func_$ac_item" ;;
  17661. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17662. define ) ac_var="ac_cv_define_$ac_item" ;;
  17663. custom ) ac_var="$ac_item" ;;
  17664. esac
  17665. eval "ac_val=\$$ac_var"
  17666. if test ".$ac_val" != .yes; then
  17667. ac_rc=no
  17668. break
  17669. fi
  17670. done
  17671. if test ".$ac_rc" = .yes; then
  17672. :
  17673. haveos2shm="1"
  17674. ac_decision='USE_SHMEM_OS2_ANON'
  17675. ac_decision_msg='OS/2 DosAllocSharedMem()'
  17676. ac_decision_USE_SHMEM_OS2_ANON=yes
  17677. ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
  17678. else
  17679. :
  17680. fi
  17681. ac_rc=yes
  17682. for ac_spec in header:kernel/OS.h func:create_area; do
  17683. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17684. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17685. case $ac_type in
  17686. header )
  17687. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17688. ac_var="ac_cv_header_$ac_item"
  17689. ;;
  17690. file )
  17691. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17692. ac_var="ac_cv_file_$ac_item"
  17693. ;;
  17694. func ) ac_var="ac_cv_func_$ac_item" ;;
  17695. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17696. define ) ac_var="ac_cv_define_$ac_item" ;;
  17697. custom ) ac_var="$ac_item" ;;
  17698. esac
  17699. eval "ac_val=\$$ac_var"
  17700. if test ".$ac_val" != .yes; then
  17701. ac_rc=no
  17702. break
  17703. fi
  17704. done
  17705. if test ".$ac_rc" = .yes; then
  17706. :
  17707. havebeosshm="1"
  17708. ac_decision='USE_SHMEM_BEOS_ANON'
  17709. ac_decision_msg='BeOS areas'
  17710. ac_decision_USE_SHMEM_BEOS_ANON=yes
  17711. ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
  17712. else
  17713. :
  17714. fi
  17715. ac_rc=yes
  17716. for ac_spec in header:windows.h func:CreateFileMapping; do
  17717. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17718. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17719. case $ac_type in
  17720. header )
  17721. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17722. ac_var="ac_cv_header_$ac_item"
  17723. ;;
  17724. file )
  17725. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17726. ac_var="ac_cv_file_$ac_item"
  17727. ;;
  17728. func ) ac_var="ac_cv_func_$ac_item" ;;
  17729. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17730. define ) ac_var="ac_cv_define_$ac_item" ;;
  17731. custom ) ac_var="$ac_item" ;;
  17732. esac
  17733. eval "ac_val=\$$ac_var"
  17734. if test ".$ac_val" != .yes; then
  17735. ac_rc=no
  17736. break
  17737. fi
  17738. done
  17739. if test ".$ac_rc" = .yes; then
  17740. :
  17741. havewin32shm="1"
  17742. ac_decision='USE_SHMEM_WIN32_ANON'
  17743. ac_decision_msg='Windows CreateFileMapping()'
  17744. ac_decision_USE_SHMEM_WIN32_ANON=yes
  17745. ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
  17746. else
  17747. :
  17748. fi
  17749. case $host in
  17750. *linux* )
  17751. # Linux has problems with MM_SHMT_MMANON even though it reports
  17752. # that it has it.
  17753. # FIXME - find exact 2.3 version that MMANON was fixed in. It is
  17754. # confirmed fixed in 2.4 series.
  17755. if test $os_version -le "240"; then
  17756. ac_decision=''
  17757. for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
  17758. eval "ac_decision_this=\$ac_decision_${ac_item}"
  17759. if test ".$ac_decision_this" = .yes; then
  17760. ac_decision=$ac_item
  17761. eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
  17762. fi
  17763. done
  17764. fi
  17765. ;;
  17766. *hpux11* )
  17767. ac_decision=''
  17768. for ac_item in USE_SHMEM_SHMGET_ANON; do
  17769. eval "ac_decision_this=\$ac_decision_${ac_item}"
  17770. if test ".$ac_decision_this" = .yes; then
  17771. ac_decision=$ac_item
  17772. eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
  17773. fi
  17774. done
  17775. ;;
  17776. esac
  17777. if test ".$ac_decision" = .; then
  17778. echo "$0:Error: decision on $ac_decision_item failed" 1>&2
  17779. exit 1
  17780. else
  17781. if test ".$ac_decision_msg" = .; then
  17782. ac_decision_msg="$ac_decision"
  17783. fi
  17784. cat >>confdefs.h <<_ACEOF
  17785. #define ${ac_decision_item} 1
  17786. _ACEOF
  17787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
  17788. $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
  17789. fi
  17790. cat >>confdefs.h <<_ACEOF
  17791. #define $ac_decision 1
  17792. _ACEOF
  17793. useshmgetanon="0"
  17794. usemmapzero="0"
  17795. usemmapanon="0"
  17796. case $ac_decision in
  17797. USE_SHMEM_SHMGET_ANON )
  17798. useshmgetanon="1"
  17799. ;;
  17800. USE_SHMEM_MMAP_ZERO )
  17801. usemmapzero="1"
  17802. ;;
  17803. USE_SHMEM_MMAP_ANON )
  17804. usemmapanon="1"
  17805. ;;
  17806. esac
  17807. # Now we determine which one is our name-based shmem preference.
  17808. havemmaptmp="0"
  17809. havemmapshm="0"
  17810. haveshmget="0"
  17811. havebeosarea="0"
  17812. haveos2shm="0"
  17813. havewin32shm="0"
  17814. ac_decision_item='namebased memory allocation method'
  17815. ac_decision_msg='FAILED'
  17816. ac_decision=''
  17817. ac_rc=yes
  17818. for ac_spec in header:sys/mman.h func:mmap func:munmap; do
  17819. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17820. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17821. case $ac_type in
  17822. header )
  17823. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17824. ac_var="ac_cv_header_$ac_item"
  17825. ;;
  17826. file )
  17827. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17828. ac_var="ac_cv_file_$ac_item"
  17829. ;;
  17830. func ) ac_var="ac_cv_func_$ac_item" ;;
  17831. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17832. define ) ac_var="ac_cv_define_$ac_item" ;;
  17833. custom ) ac_var="$ac_item" ;;
  17834. esac
  17835. eval "ac_val=\$$ac_var"
  17836. if test ".$ac_val" != .yes; then
  17837. ac_rc=no
  17838. break
  17839. fi
  17840. done
  17841. if test ".$ac_rc" = .yes; then
  17842. :
  17843. havemmaptmp="1"
  17844. ac_decision='USE_SHMEM_MMAP_TMP'
  17845. ac_decision_msg='Classical mmap() on temporary file'
  17846. ac_decision_USE_SHMEM_MMAP_TMP=yes
  17847. ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
  17848. else
  17849. :
  17850. fi
  17851. ac_rc=yes
  17852. for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do
  17853. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17854. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17855. case $ac_type in
  17856. header )
  17857. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17858. ac_var="ac_cv_header_$ac_item"
  17859. ;;
  17860. file )
  17861. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17862. ac_var="ac_cv_file_$ac_item"
  17863. ;;
  17864. func ) ac_var="ac_cv_func_$ac_item" ;;
  17865. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17866. define ) ac_var="ac_cv_define_$ac_item" ;;
  17867. custom ) ac_var="$ac_item" ;;
  17868. esac
  17869. eval "ac_val=\$$ac_var"
  17870. if test ".$ac_val" != .yes; then
  17871. ac_rc=no
  17872. break
  17873. fi
  17874. done
  17875. if test ".$ac_rc" = .yes; then
  17876. :
  17877. havemmapshm="1"
  17878. ac_decision='USE_SHMEM_MMAP_SHM'
  17879. ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
  17880. ac_decision_USE_SHMEM_MMAP_SHM=yes
  17881. ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
  17882. else
  17883. :
  17884. fi
  17885. ac_rc=yes
  17886. for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do
  17887. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17888. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17889. case $ac_type in
  17890. header )
  17891. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17892. ac_var="ac_cv_header_$ac_item"
  17893. ;;
  17894. file )
  17895. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17896. ac_var="ac_cv_file_$ac_item"
  17897. ;;
  17898. func ) ac_var="ac_cv_func_$ac_item" ;;
  17899. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17900. define ) ac_var="ac_cv_define_$ac_item" ;;
  17901. custom ) ac_var="$ac_item" ;;
  17902. esac
  17903. eval "ac_val=\$$ac_var"
  17904. if test ".$ac_val" != .yes; then
  17905. ac_rc=no
  17906. break
  17907. fi
  17908. done
  17909. if test ".$ac_rc" = .yes; then
  17910. :
  17911. haveshmget="1"
  17912. ac_decision='USE_SHMEM_SHMGET'
  17913. ac_decision_msg='SysV IPC shmget()'
  17914. ac_decision_USE_SHMEM_SHMGET=yes
  17915. ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
  17916. else
  17917. :
  17918. fi
  17919. ac_rc=yes
  17920. for ac_spec in header:kernel/OS.h func:create_area; do
  17921. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17922. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17923. case $ac_type in
  17924. header )
  17925. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17926. ac_var="ac_cv_header_$ac_item"
  17927. ;;
  17928. file )
  17929. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17930. ac_var="ac_cv_file_$ac_item"
  17931. ;;
  17932. func ) ac_var="ac_cv_func_$ac_item" ;;
  17933. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17934. define ) ac_var="ac_cv_define_$ac_item" ;;
  17935. custom ) ac_var="$ac_item" ;;
  17936. esac
  17937. eval "ac_val=\$$ac_var"
  17938. if test ".$ac_val" != .yes; then
  17939. ac_rc=no
  17940. break
  17941. fi
  17942. done
  17943. if test ".$ac_rc" = .yes; then
  17944. :
  17945. havebeosshm="1"
  17946. ac_decision='USE_SHMEM_BEOS'
  17947. ac_decision_msg='BeOS areas'
  17948. ac_decision_USE_SHMEM_BEOS=yes
  17949. ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
  17950. else
  17951. :
  17952. fi
  17953. ac_rc=yes
  17954. for ac_spec in header:os2.h; do
  17955. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17956. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17957. case $ac_type in
  17958. header )
  17959. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17960. ac_var="ac_cv_header_$ac_item"
  17961. ;;
  17962. file )
  17963. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17964. ac_var="ac_cv_file_$ac_item"
  17965. ;;
  17966. func ) ac_var="ac_cv_func_$ac_item" ;;
  17967. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  17968. define ) ac_var="ac_cv_define_$ac_item" ;;
  17969. custom ) ac_var="$ac_item" ;;
  17970. esac
  17971. eval "ac_val=\$$ac_var"
  17972. if test ".$ac_val" != .yes; then
  17973. ac_rc=no
  17974. break
  17975. fi
  17976. done
  17977. if test ".$ac_rc" = .yes; then
  17978. :
  17979. haveos2shm="1"
  17980. ac_decision='USE_SHMEM_OS2'
  17981. ac_decision_msg='OS/2 DosAllocSharedMem()'
  17982. ac_decision_USE_SHMEM_OS2=yes
  17983. ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
  17984. else
  17985. :
  17986. fi
  17987. ac_rc=yes
  17988. for ac_spec in header:windows.h; do
  17989. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  17990. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  17991. case $ac_type in
  17992. header )
  17993. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17994. ac_var="ac_cv_header_$ac_item"
  17995. ;;
  17996. file )
  17997. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  17998. ac_var="ac_cv_file_$ac_item"
  17999. ;;
  18000. func ) ac_var="ac_cv_func_$ac_item" ;;
  18001. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  18002. define ) ac_var="ac_cv_define_$ac_item" ;;
  18003. custom ) ac_var="$ac_item" ;;
  18004. esac
  18005. eval "ac_val=\$$ac_var"
  18006. if test ".$ac_val" != .yes; then
  18007. ac_rc=no
  18008. break
  18009. fi
  18010. done
  18011. if test ".$ac_rc" = .yes; then
  18012. :
  18013. havewin32shm="1"
  18014. ac_decision='USE_SHMEM_WIN32'
  18015. ac_decision_msg='Windows shared memory'
  18016. ac_decision_USE_SHMEM_WIN32=yes
  18017. ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
  18018. else
  18019. :
  18020. fi
  18021. case $host in
  18022. *linux* )
  18023. # Linux has problems with MM_SHMT_MMANON even though it reports
  18024. # that it has it.
  18025. # FIXME - find exact 2.3 version that MMANON was fixed in. It is
  18026. # confirmed fixed in 2.4 series.
  18027. if test $os_version -le "240"; then
  18028. ac_decision=''
  18029. for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM USE_SHMEM_SHMGET; do
  18030. eval "ac_decision_this=\$ac_decision_${ac_item}"
  18031. if test ".$ac_decision_this" = .yes; then
  18032. ac_decision=$ac_item
  18033. eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
  18034. fi
  18035. done
  18036. fi
  18037. ;;
  18038. esac
  18039. if test ".$ac_decision" = .; then
  18040. echo "$0:Error: decision on $ac_decision_item failed" 1>&2
  18041. exit 1
  18042. else
  18043. if test ".$ac_decision_msg" = .; then
  18044. ac_decision_msg="$ac_decision"
  18045. fi
  18046. cat >>confdefs.h <<_ACEOF
  18047. #define ${ac_decision_item} 1
  18048. _ACEOF
  18049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
  18050. $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
  18051. fi
  18052. cat >>confdefs.h <<_ACEOF
  18053. #define $ac_decision 1
  18054. _ACEOF
  18055. usemmaptmp="0"
  18056. usemmapshm="0"
  18057. useshmget="0"
  18058. usebeosarea="0"
  18059. useos2shm="0"
  18060. usewin32shm="0"
  18061. case $ac_decision in
  18062. USE_SHMEM_MMAP_TMP )
  18063. usemmaptmp="1"
  18064. ;;
  18065. USE_SHMEM_MMAP_SHM )
  18066. usemmapshm="1"
  18067. ;;
  18068. USE_SHMEM_SHMGET )
  18069. useshmget="1"
  18070. ;;
  18071. USE_SHMEM_BEOS )
  18072. usebeosarea="1"
  18073. ;;
  18074. USE_SHMEM_OS2 )
  18075. useos2shm="1"
  18076. ;;
  18077. USE_SHMEM_WIN32 )
  18078. usewin32shm="1"
  18079. ;;
  18080. esac
  18081. # Do we have any shared memory support?
  18082. if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
  18083. sharedmem="0"
  18084. else
  18085. sharedmem="1"
  18086. fi
  18087. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  18088. if test "x$ac_cv_type_size_t" = xyes; then :
  18089. else
  18090. cat >>confdefs.h <<_ACEOF
  18091. #define size_t unsigned int
  18092. _ACEOF
  18093. fi
  18094. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  18095. # for constant arguments. Useless!
  18096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  18097. $as_echo_n "checking for working alloca.h... " >&6; }
  18098. if ${ac_cv_working_alloca_h+:} false; then :
  18099. $as_echo_n "(cached) " >&6
  18100. else
  18101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18102. /* end confdefs.h. */
  18103. #include <alloca.h>
  18104. int
  18105. main ()
  18106. {
  18107. char *p = (char *) alloca (2 * sizeof (int));
  18108. if (p) return 0;
  18109. ;
  18110. return 0;
  18111. }
  18112. _ACEOF
  18113. if ac_fn_c_try_link "$LINENO"; then :
  18114. ac_cv_working_alloca_h=yes
  18115. else
  18116. ac_cv_working_alloca_h=no
  18117. fi
  18118. rm -f core conftest.err conftest.$ac_objext \
  18119. conftest$ac_exeext conftest.$ac_ext
  18120. fi
  18121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  18122. $as_echo "$ac_cv_working_alloca_h" >&6; }
  18123. if test $ac_cv_working_alloca_h = yes; then
  18124. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  18125. fi
  18126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  18127. $as_echo_n "checking for alloca... " >&6; }
  18128. if ${ac_cv_func_alloca_works+:} false; then :
  18129. $as_echo_n "(cached) " >&6
  18130. else
  18131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18132. /* end confdefs.h. */
  18133. #ifdef __GNUC__
  18134. # define alloca __builtin_alloca
  18135. #else
  18136. # ifdef _MSC_VER
  18137. # include <malloc.h>
  18138. # define alloca _alloca
  18139. # else
  18140. # ifdef HAVE_ALLOCA_H
  18141. # include <alloca.h>
  18142. # else
  18143. # ifdef _AIX
  18144. #pragma alloca
  18145. # else
  18146. # ifndef alloca /* predefined by HP cc +Olibcalls */
  18147. void *alloca (size_t);
  18148. # endif
  18149. # endif
  18150. # endif
  18151. # endif
  18152. #endif
  18153. int
  18154. main ()
  18155. {
  18156. char *p = (char *) alloca (1);
  18157. if (p) return 0;
  18158. ;
  18159. return 0;
  18160. }
  18161. _ACEOF
  18162. if ac_fn_c_try_link "$LINENO"; then :
  18163. ac_cv_func_alloca_works=yes
  18164. else
  18165. ac_cv_func_alloca_works=no
  18166. fi
  18167. rm -f core conftest.err conftest.$ac_objext \
  18168. conftest$ac_exeext conftest.$ac_ext
  18169. fi
  18170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  18171. $as_echo "$ac_cv_func_alloca_works" >&6; }
  18172. if test $ac_cv_func_alloca_works = yes; then
  18173. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  18174. else
  18175. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  18176. # that cause trouble. Some versions do not even contain alloca or
  18177. # contain a buggy version. If you still want to use their alloca,
  18178. # use ar to extract alloca.o from them instead of compiling alloca.c.
  18179. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  18180. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  18182. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  18183. if ${ac_cv_os_cray+:} false; then :
  18184. $as_echo_n "(cached) " >&6
  18185. else
  18186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18187. /* end confdefs.h. */
  18188. #if defined CRAY && ! defined CRAY2
  18189. webecray
  18190. #else
  18191. wenotbecray
  18192. #endif
  18193. _ACEOF
  18194. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18195. $EGREP "webecray" >/dev/null 2>&1; then :
  18196. ac_cv_os_cray=yes
  18197. else
  18198. ac_cv_os_cray=no
  18199. fi
  18200. rm -f conftest*
  18201. fi
  18202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  18203. $as_echo "$ac_cv_os_cray" >&6; }
  18204. if test $ac_cv_os_cray = yes; then
  18205. for ac_func in _getb67 GETB67 getb67; do
  18206. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18207. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18208. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18209. cat >>confdefs.h <<_ACEOF
  18210. #define CRAY_STACKSEG_END $ac_func
  18211. _ACEOF
  18212. break
  18213. fi
  18214. done
  18215. fi
  18216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  18217. $as_echo_n "checking stack direction for C alloca... " >&6; }
  18218. if ${ac_cv_c_stack_direction+:} false; then :
  18219. $as_echo_n "(cached) " >&6
  18220. else
  18221. if test "$cross_compiling" = yes; then :
  18222. ac_cv_c_stack_direction=0
  18223. else
  18224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18225. /* end confdefs.h. */
  18226. $ac_includes_default
  18227. int
  18228. find_stack_direction ()
  18229. {
  18230. static char *addr = 0;
  18231. auto char dummy;
  18232. if (addr == 0)
  18233. {
  18234. addr = &dummy;
  18235. return find_stack_direction ();
  18236. }
  18237. else
  18238. return (&dummy > addr) ? 1 : -1;
  18239. }
  18240. int
  18241. main ()
  18242. {
  18243. return find_stack_direction () < 0;
  18244. }
  18245. _ACEOF
  18246. if ac_fn_c_try_run "$LINENO"; then :
  18247. ac_cv_c_stack_direction=1
  18248. else
  18249. ac_cv_c_stack_direction=-1
  18250. fi
  18251. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18252. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18253. fi
  18254. fi
  18255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  18256. $as_echo "$ac_cv_c_stack_direction" >&6; }
  18257. cat >>confdefs.h <<_ACEOF
  18258. #define STACK_DIRECTION $ac_cv_c_stack_direction
  18259. _ACEOF
  18260. fi
  18261. for ac_func in calloc setsid isinf isnan \
  18262. getenv putenv setenv unsetenv \
  18263. writev getifaddrs utime utimes
  18264. do :
  18265. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18266. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18267. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18268. cat >>confdefs.h <<_ACEOF
  18269. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18270. _ACEOF
  18271. fi
  18272. done
  18273. for ac_func in setrlimit
  18274. do :
  18275. ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
  18276. if test "x$ac_cv_func_setrlimit" = xyes; then :
  18277. cat >>confdefs.h <<_ACEOF
  18278. #define HAVE_SETRLIMIT 1
  18279. _ACEOF
  18280. have_setrlimit="1"
  18281. else
  18282. have_setrlimit="0"
  18283. fi
  18284. done
  18285. for ac_func in getrlimit
  18286. do :
  18287. ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
  18288. if test "x$ac_cv_func_getrlimit" = xyes; then :
  18289. cat >>confdefs.h <<_ACEOF
  18290. #define HAVE_GETRLIMIT 1
  18291. _ACEOF
  18292. have_getrlimit="1"
  18293. else
  18294. have_getrlimit="0"
  18295. fi
  18296. done
  18297. sendfile="0"
  18298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
  18299. $as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
  18300. if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
  18301. $as_echo_n "(cached) " >&6
  18302. else
  18303. ac_check_lib_save_LIBS=$LIBS
  18304. LIBS="-lsendfile $LIBS"
  18305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18306. /* end confdefs.h. */
  18307. /* Override any GCC internal prototype to avoid an error.
  18308. Use char because int might match the return type of a GCC
  18309. builtin and then its argument prototype would still apply. */
  18310. #ifdef __cplusplus
  18311. extern "C"
  18312. #endif
  18313. char sendfilev ();
  18314. int
  18315. main ()
  18316. {
  18317. return sendfilev ();
  18318. ;
  18319. return 0;
  18320. }
  18321. _ACEOF
  18322. if ac_fn_c_try_link "$LINENO"; then :
  18323. ac_cv_lib_sendfile_sendfilev=yes
  18324. else
  18325. ac_cv_lib_sendfile_sendfilev=no
  18326. fi
  18327. rm -f core conftest.err conftest.$ac_objext \
  18328. conftest$ac_exeext conftest.$ac_ext
  18329. LIBS=$ac_check_lib_save_LIBS
  18330. fi
  18331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
  18332. $as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
  18333. if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
  18334. cat >>confdefs.h <<_ACEOF
  18335. #define HAVE_LIBSENDFILE 1
  18336. _ACEOF
  18337. LIBS="-lsendfile $LIBS"
  18338. fi
  18339. for ac_func in sendfile send_file sendfilev
  18340. do :
  18341. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18342. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18343. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18344. cat >>confdefs.h <<_ACEOF
  18345. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18346. _ACEOF
  18347. sendfile="1"
  18348. fi
  18349. done
  18350. # Check whether --with-sendfile was given.
  18351. if test "${with_sendfile+set}" = set; then :
  18352. withval=$with_sendfile; if test "$withval" = "yes"; then
  18353. sendfile="1"
  18354. else
  18355. sendfile="0"
  18356. fi
  18357. else
  18358. orig_sendfile=$sendfile
  18359. case $host in
  18360. *freebsd*)
  18361. # FreeBSD < 4.2 has issues with threads+sendfile
  18362. if test $os_version -le "401999"; then
  18363. if test "$threads" = "1"; then
  18364. sendfile="0"
  18365. fi
  18366. fi
  18367. ;;
  18368. *alpha*-dec-osf* )
  18369. sendfile="0"
  18370. ;;
  18371. s390-*-linux-gnu)
  18372. # disable sendfile support for 2.2 on S/390
  18373. if test $os_version -lt 240; then
  18374. sendfile="0"
  18375. fi
  18376. ;;
  18377. *aix*)
  18378. # compiler-independent check for 64-bit build
  18379. # The cast to long int works around a bug in the HP C Compiler
  18380. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18381. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18382. # This bug is HP SR number 8606223364.
  18383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
  18384. $as_echo_n "checking size of void*... " >&6; }
  18385. if ${ac_cv_sizeof_voidp+:} false; then :
  18386. $as_echo_n "(cached) " >&6
  18387. else
  18388. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
  18389. else
  18390. if test "$ac_cv_type_voidp" = yes; then
  18391. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18392. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18393. as_fn_error 77 "cannot compute sizeof (void*)
  18394. See \`config.log' for more details" "$LINENO" 5; }
  18395. else
  18396. ac_cv_sizeof_voidp=0
  18397. fi
  18398. fi
  18399. fi
  18400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
  18401. $as_echo "$ac_cv_sizeof_voidp" >&6; }
  18402. cat >>confdefs.h <<_ACEOF
  18403. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  18404. _ACEOF
  18405. if test "x$ac_cv_sizeof_voidp" = "x8"; then
  18406. # sendfile not working for 64-bit build
  18407. sendfile="0"
  18408. fi
  18409. ;;
  18410. esac
  18411. if test "$orig_sendfile" != "$sendfile"; then
  18412. echo "sendfile support disabled to avoid system problem"
  18413. fi
  18414. fi
  18415. for ac_func in sigaction
  18416. do :
  18417. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  18418. if test "x$ac_cv_func_sigaction" = xyes; then :
  18419. cat >>confdefs.h <<_ACEOF
  18420. #define HAVE_SIGACTION 1
  18421. _ACEOF
  18422. have_sigaction="1"
  18423. else
  18424. have_sigaction="0"
  18425. fi
  18426. done
  18427. ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
  18428. /* NetBSD declares sys_siglist in unistd.h. */
  18429. #ifdef HAVE_UNISTD_H
  18430. # include <unistd.h>
  18431. #endif
  18432. "
  18433. if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
  18434. ac_have_decl=1
  18435. else
  18436. ac_have_decl=0
  18437. fi
  18438. cat >>confdefs.h <<_ACEOF
  18439. #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
  18440. _ACEOF
  18441. for ac_func in fork
  18442. do :
  18443. ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
  18444. if test "x$ac_cv_func_fork" = xyes; then :
  18445. cat >>confdefs.h <<_ACEOF
  18446. #define HAVE_FORK 1
  18447. _ACEOF
  18448. fork="1"
  18449. else
  18450. fork="0"
  18451. fi
  18452. done
  18453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
  18454. $as_echo_n "checking for inet_addr... " >&6; }
  18455. if ${ac_cv_func_inet_addr+:} false; then :
  18456. $as_echo_n "(cached) " >&6
  18457. else
  18458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18459. /* end confdefs.h. */
  18460. #ifdef HAVE_SYS_TYPES_H
  18461. #include <sys/types.h>
  18462. #endif
  18463. #ifdef HAVE_ARPA_INET_H
  18464. #include <arpa/inet.h>
  18465. #endif
  18466. int
  18467. main ()
  18468. {
  18469. inet_addr("127.0.0.1");
  18470. ;
  18471. return 0;
  18472. }
  18473. _ACEOF
  18474. if ac_fn_c_try_compile "$LINENO"; then :
  18475. ac_cv_func_inet_addr=yes
  18476. else
  18477. ac_cv_func_inet_addr=no
  18478. fi
  18479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18480. fi
  18481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
  18482. $as_echo "$ac_cv_func_inet_addr" >&6; }
  18483. if test "$ac_cv_func_inet_addr" = "yes"; then
  18484. have_inet_addr=1
  18485. else
  18486. have_inet_addr=0
  18487. fi
  18488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
  18489. $as_echo_n "checking for inet_network... " >&6; }
  18490. if ${ac_cv_func_inet_network+:} false; then :
  18491. $as_echo_n "(cached) " >&6
  18492. else
  18493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18494. /* end confdefs.h. */
  18495. #ifdef HAVE_SYS_TYPES_H
  18496. #include <sys/types.h>
  18497. #endif
  18498. #ifdef HAVE_ARPA_INET_H
  18499. #include <arpa/inet.h>
  18500. #endif
  18501. int
  18502. main ()
  18503. {
  18504. inet_network("127.0.0.1");
  18505. ;
  18506. return 0;
  18507. }
  18508. _ACEOF
  18509. if ac_fn_c_try_compile "$LINENO"; then :
  18510. ac_cv_func_inet_network=yes
  18511. else
  18512. ac_cv_func_inet_network=no
  18513. fi
  18514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18515. fi
  18516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
  18517. $as_echo "$ac_cv_func_inet_network" >&6; }
  18518. if test "$ac_cv_func_inet_network" = "yes"; then
  18519. have_inet_network=1
  18520. else
  18521. have_inet_network=0
  18522. fi
  18523. ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
  18524. if test "x$ac_cv_func__getch" = xyes; then :
  18525. fi
  18526. for ac_func in strerror_r
  18527. do :
  18528. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  18529. if test "x$ac_cv_func_strerror_r" = xyes; then :
  18530. cat >>confdefs.h <<_ACEOF
  18531. #define HAVE_STRERROR_R 1
  18532. _ACEOF
  18533. strerror_r="1"
  18534. else
  18535. strerror_r="0"
  18536. fi
  18537. done
  18538. if test "$strerror_r" = "1"; then
  18539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
  18540. $as_echo_n "checking for type of return code from strerror_r... " >&6; }
  18541. if test "$cross_compiling" = yes; then :
  18542. ac_cv_strerror_r_rc_int=no
  18543. else
  18544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18545. /* end confdefs.h. */
  18546. #include <errno.h>
  18547. #include <string.h>
  18548. #include <stdio.h>
  18549. main()
  18550. {
  18551. char buf[1024];
  18552. if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
  18553. exit(0);
  18554. }
  18555. else {
  18556. exit(1);
  18557. }
  18558. }
  18559. _ACEOF
  18560. if ac_fn_c_try_run "$LINENO"; then :
  18561. ac_cv_strerror_r_rc_int=yes
  18562. else
  18563. ac_cv_strerror_r_rc_int=no
  18564. fi
  18565. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18566. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18567. fi
  18568. if test "x$ac_cv_strerror_r_rc_int" = xyes; then
  18569. $as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
  18570. msg="int"
  18571. else
  18572. msg="pointer"
  18573. fi
  18574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
  18575. $as_echo "$msg" >&6; }
  18576. fi
  18577. for ac_func in mmap
  18578. do :
  18579. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  18580. if test "x$ac_cv_func_mmap" = xyes; then :
  18581. cat >>confdefs.h <<_ACEOF
  18582. #define HAVE_MMAP 1
  18583. _ACEOF
  18584. mmap="1"
  18585. else
  18586. mmap="0"
  18587. fi
  18588. done
  18589. if test "$native_mmap_emul" = "1"; then
  18590. mmap="1"
  18591. fi
  18592. for ac_func in memmove
  18593. do :
  18594. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  18595. if test "x$ac_cv_func_memmove" = xyes; then :
  18596. cat >>confdefs.h <<_ACEOF
  18597. #define HAVE_MEMMOVE 1
  18598. _ACEOF
  18599. have_memmove="1"
  18600. else
  18601. have_memmove="0"
  18602. fi
  18603. done
  18604. for ac_func in getpass getpassphrase gmtime_r localtime_r mkstemp
  18605. do :
  18606. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18607. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18608. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18609. cat >>confdefs.h <<_ACEOF
  18610. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18611. _ACEOF
  18612. fi
  18613. done
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
  18615. $as_echo_n "checking whether sigwait takes one argument... " >&6; }
  18616. if ${ac_cv_sigwait_one_arg+:} false; then :
  18617. $as_echo_n "(cached) " >&6
  18618. else
  18619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18620. /* end confdefs.h. */
  18621. #if defined(__NETBSD__) || defined(DARWIN)
  18622. /* When using the unproven-pthreads package, we need to pull in this
  18623. * header to get a prototype for sigwait(). Else things will fail later
  18624. * on. XXX Should probably be fixed in the unproven-pthreads package.
  18625. * Darwin is declaring sigwait() in the wrong place as well.
  18626. */
  18627. #include <pthread.h>
  18628. #endif
  18629. #include <signal.h>
  18630. int
  18631. main ()
  18632. {
  18633. sigset_t set;
  18634. sigwait(&set);
  18635. ;
  18636. return 0;
  18637. }
  18638. _ACEOF
  18639. if ac_fn_c_try_compile "$LINENO"; then :
  18640. ac_cv_sigwait_one_arg=yes
  18641. else
  18642. ac_cv_sigwait_one_arg=no
  18643. fi
  18644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18645. fi
  18646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
  18647. $as_echo "$ac_cv_sigwait_one_arg" >&6; }
  18648. if test "$ac_cv_sigwait_one_arg" = "yes"; then
  18649. $as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
  18650. fi
  18651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  18652. $as_echo_n "checking for ANSI C header files... " >&6; }
  18653. if ${ac_cv_header_stdc+:} false; then :
  18654. $as_echo_n "(cached) " >&6
  18655. else
  18656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18657. /* end confdefs.h. */
  18658. #include <stdlib.h>
  18659. #include <stdarg.h>
  18660. #include <string.h>
  18661. #include <float.h>
  18662. int
  18663. main ()
  18664. {
  18665. ;
  18666. return 0;
  18667. }
  18668. _ACEOF
  18669. if ac_fn_c_try_compile "$LINENO"; then :
  18670. ac_cv_header_stdc=yes
  18671. else
  18672. ac_cv_header_stdc=no
  18673. fi
  18674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18675. if test $ac_cv_header_stdc = yes; then
  18676. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18678. /* end confdefs.h. */
  18679. #include <string.h>
  18680. _ACEOF
  18681. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18682. $EGREP "memchr" >/dev/null 2>&1; then :
  18683. else
  18684. ac_cv_header_stdc=no
  18685. fi
  18686. rm -f conftest*
  18687. fi
  18688. if test $ac_cv_header_stdc = yes; then
  18689. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18691. /* end confdefs.h. */
  18692. #include <stdlib.h>
  18693. _ACEOF
  18694. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18695. $EGREP "free" >/dev/null 2>&1; then :
  18696. else
  18697. ac_cv_header_stdc=no
  18698. fi
  18699. rm -f conftest*
  18700. fi
  18701. if test $ac_cv_header_stdc = yes; then
  18702. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18703. if test "$cross_compiling" = yes; then :
  18704. :
  18705. else
  18706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18707. /* end confdefs.h. */
  18708. #include <ctype.h>
  18709. #include <stdlib.h>
  18710. #if ((' ' & 0x0FF) == 0x020)
  18711. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18712. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18713. #else
  18714. # define ISLOWER(c) \
  18715. (('a' <= (c) && (c) <= 'i') \
  18716. || ('j' <= (c) && (c) <= 'r') \
  18717. || ('s' <= (c) && (c) <= 'z'))
  18718. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18719. #endif
  18720. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18721. int
  18722. main ()
  18723. {
  18724. int i;
  18725. for (i = 0; i < 256; i++)
  18726. if (XOR (islower (i), ISLOWER (i))
  18727. || toupper (i) != TOUPPER (i))
  18728. return 2;
  18729. return 0;
  18730. }
  18731. _ACEOF
  18732. if ac_fn_c_try_run "$LINENO"; then :
  18733. else
  18734. ac_cv_header_stdc=no
  18735. fi
  18736. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18737. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18738. fi
  18739. fi
  18740. fi
  18741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  18742. $as_echo "$ac_cv_header_stdc" >&6; }
  18743. if test $ac_cv_header_stdc = yes; then
  18744. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  18745. fi
  18746. for ac_header in ByteOrder.h \
  18747. conio.h \
  18748. crypt.h \
  18749. ctype.h \
  18750. dir.h \
  18751. dirent.h \
  18752. dl.h \
  18753. dlfcn.h \
  18754. errno.h \
  18755. fcntl.h \
  18756. grp.h \
  18757. io.h \
  18758. limits.h \
  18759. mach-o/dyld.h \
  18760. malloc.h \
  18761. memory.h \
  18762. netdb.h \
  18763. osreldate.h \
  18764. poll.h \
  18765. process.h \
  18766. pwd.h \
  18767. semaphore.h \
  18768. signal.h \
  18769. stdarg.h \
  18770. stddef.h \
  18771. stdio.h \
  18772. stdlib.h \
  18773. string.h \
  18774. strings.h \
  18775. sysapi.h \
  18776. sysgtime.h \
  18777. termios.h \
  18778. time.h \
  18779. tpfeq.h \
  18780. tpfio.h \
  18781. unistd.h \
  18782. unix.h \
  18783. windows.h \
  18784. winsock2.h \
  18785. arpa/inet.h \
  18786. kernel/OS.h \
  18787. net/errno.h \
  18788. netinet/in.h \
  18789. netinet/sctp.h \
  18790. netinet/sctp_uio.h \
  18791. sys/file.h \
  18792. sys/ioctl.h \
  18793. sys/mman.h \
  18794. sys/param.h \
  18795. sys/poll.h \
  18796. sys/resource.h \
  18797. sys/select.h \
  18798. sys/sem.h \
  18799. sys/sendfile.h \
  18800. sys/signal.h \
  18801. sys/socket.h \
  18802. sys/sockio.h \
  18803. sys/stat.h \
  18804. sys/sysctl.h \
  18805. sys/syslimits.h \
  18806. sys/time.h \
  18807. sys/types.h \
  18808. sys/uio.h \
  18809. sys/un.h \
  18810. sys/wait.h
  18811. do :
  18812. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18813. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18814. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18815. cat >>confdefs.h <<_ACEOF
  18816. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18817. _ACEOF
  18818. fi
  18819. done
  18820. for aprt_i in ByteOrder.h \
  18821. conio.h \
  18822. crypt.h \
  18823. ctype.h \
  18824. dir.h \
  18825. dirent.h \
  18826. dl.h \
  18827. dlfcn.h \
  18828. errno.h \
  18829. fcntl.h \
  18830. grp.h \
  18831. io.h \
  18832. limits.h \
  18833. mach-o/dyld.h \
  18834. malloc.h \
  18835. memory.h \
  18836. netdb.h \
  18837. osreldate.h \
  18838. poll.h \
  18839. process.h \
  18840. pwd.h \
  18841. semaphore.h \
  18842. signal.h \
  18843. stdarg.h \
  18844. stddef.h \
  18845. stdio.h \
  18846. stdlib.h \
  18847. string.h \
  18848. strings.h \
  18849. sysapi.h \
  18850. sysgtime.h \
  18851. termios.h \
  18852. time.h \
  18853. tpfeq.h \
  18854. tpfio.h \
  18855. unistd.h \
  18856. unix.h \
  18857. windows.h \
  18858. winsock2.h \
  18859. arpa/inet.h \
  18860. kernel/OS.h \
  18861. net/errno.h \
  18862. netinet/in.h \
  18863. netinet/sctp.h \
  18864. netinet/sctp_uio.h \
  18865. sys/file.h \
  18866. sys/ioctl.h \
  18867. sys/mman.h \
  18868. sys/param.h \
  18869. sys/poll.h \
  18870. sys/resource.h \
  18871. sys/select.h \
  18872. sys/sem.h \
  18873. sys/sendfile.h \
  18874. sys/signal.h \
  18875. sys/socket.h \
  18876. sys/sockio.h \
  18877. sys/stat.h \
  18878. sys/sysctl.h \
  18879. sys/syslimits.h \
  18880. sys/time.h \
  18881. sys/types.h \
  18882. sys/uio.h \
  18883. sys/un.h \
  18884. sys/wait.h
  18885. do
  18886. ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
  18887. aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
  18888. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  18889. eval "$aprt_2=1"
  18890. else
  18891. eval "$aprt_2=0"
  18892. fi
  18893. done
  18894. # IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
  18895. # being included by itself. Check for <netinet/tcp.h> manually,
  18896. # including another header file first.
  18897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
  18898. $as_echo_n "checking for netinet/tcp.h... " >&6; }
  18899. if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
  18900. $as_echo_n "(cached) " >&6
  18901. else
  18902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18903. /* end confdefs.h. */
  18904. #ifdef HAVE_NETINET_IN_H
  18905. #include <netinet/in.h>
  18906. #endif
  18907. #include <netinet/tcp.h>
  18908. _ACEOF
  18909. if ac_fn_c_try_cpp "$LINENO"; then :
  18910. apr_cv_hdr_netinet_tcp_h=yes
  18911. else
  18912. apr_cv_hdr_netinet_tcp_h=no
  18913. fi
  18914. rm -f conftest.err conftest.i conftest.$ac_ext
  18915. fi
  18916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
  18917. $as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
  18918. if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
  18919. netinet_tcph=1
  18920. $as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
  18921. else
  18922. netinet_tcph=0
  18923. fi
  18924. # Checking for h_errno in <netdb.h>
  18925. if test "$netdbh" = "1"; then
  18926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
  18927. $as_echo_n "checking for h_errno in netdb.h... " >&6; }
  18928. if ${ac_cv_h_errno_cppflags+:} false; then :
  18929. $as_echo_n "(cached) " >&6
  18930. else
  18931. if test x != x; then
  18932. CPPFLAGS="-D $CPPFLAGS"
  18933. fi
  18934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18935. /* end confdefs.h. */
  18936. #ifdef HAVE_SYS_TYPES_H
  18937. #include <sys/types.h>
  18938. #endif
  18939. #ifdef HAVE_NETDB_H
  18940. #include <netdb.h>
  18941. #endif
  18942. int
  18943. main ()
  18944. {
  18945. int h_e = h_errno;
  18946. ;
  18947. return 0;
  18948. }
  18949. _ACEOF
  18950. if ac_fn_c_try_compile "$LINENO"; then :
  18951. if test x != x; then
  18952. ac_cv_h_errno_cppflags=""
  18953. else
  18954. ac_cv_h_errno_cppflags=yes
  18955. fi
  18956. else
  18957. ac_cv_h_errno_cppflags=no
  18958. fi
  18959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18960. if test "$ac_cv_h_errno_cppflags" = "no"; then
  18961. ac_save="$CPPFLAGS"
  18962. for flag in _XOPEN_SOURCE_EXTENDED; do
  18963. if test x$flag != x; then
  18964. CPPFLAGS="-D$flag $CPPFLAGS"
  18965. fi
  18966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18967. /* end confdefs.h. */
  18968. #ifdef HAVE_SYS_TYPES_H
  18969. #include <sys/types.h>
  18970. #endif
  18971. #ifdef HAVE_NETDB_H
  18972. #include <netdb.h>
  18973. #endif
  18974. int
  18975. main ()
  18976. {
  18977. int h_e = h_errno;
  18978. ;
  18979. return 0;
  18980. }
  18981. _ACEOF
  18982. if ac_fn_c_try_compile "$LINENO"; then :
  18983. if test x$flag != x; then
  18984. ac_cv_h_errno_cppflags="$flag"
  18985. else
  18986. ac_cv_h_errno_cppflags=yes
  18987. fi
  18988. else
  18989. ac_cv_h_errno_cppflags=no
  18990. fi
  18991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18992. if test "$ac_cv_h_errno_cppflags" != "no"; then
  18993. break
  18994. fi
  18995. done
  18996. CPPFLAGS="$ac_save"
  18997. fi
  18998. fi
  18999. if test "$ac_cv_h_errno_cppflags" != "no"; then
  19000. if test "$ac_cv_h_errno_cppflags" != "yes"; then
  19001. CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
  19003. $as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
  19004. else
  19005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
  19006. $as_echo "$ac_cv_h_errno_cppflags" >&6; }
  19007. fi
  19008. else
  19009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
  19010. $as_echo "$ac_cv_h_errno_cppflags" >&6; }
  19011. fi
  19012. if test "$ac_cv_h_errno_cflags" = "no"; then
  19013. as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
  19014. fi
  19015. fi
  19016. # Check whether --enable-allocator-uses-mmap was given.
  19017. if test "${enable_allocator_uses_mmap+set}" = set; then :
  19018. enableval=$enable_allocator_uses_mmap; if test "$enableval" = "yes"; then
  19019. ac_rc=yes
  19020. for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
  19021. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  19022. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  19023. case $ac_type in
  19024. header )
  19025. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  19026. ac_var="ac_cv_header_$ac_item"
  19027. ;;
  19028. file )
  19029. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  19030. ac_var="ac_cv_file_$ac_item"
  19031. ;;
  19032. func ) ac_var="ac_cv_func_$ac_item" ;;
  19033. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  19034. define ) ac_var="ac_cv_define_$ac_item" ;;
  19035. custom ) ac_var="$ac_item" ;;
  19036. esac
  19037. eval "ac_val=\$$ac_var"
  19038. if test ".$ac_val" != .yes; then
  19039. ac_rc=no
  19040. break
  19041. fi
  19042. done
  19043. if test ".$ac_rc" = .yes; then
  19044. :
  19045. $as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
  19046. else
  19047. :
  19048. as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
  19049. fi
  19050. fi
  19051. fi
  19052. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  19053. if test "x$ac_cv_type_off_t" = xyes; then :
  19054. else
  19055. cat >>confdefs.h <<_ACEOF
  19056. #define off_t long int
  19057. _ACEOF
  19058. fi
  19059. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  19060. if test "x$ac_cv_type_pid_t" = xyes; then :
  19061. else
  19062. cat >>confdefs.h <<_ACEOF
  19063. #define pid_t int
  19064. _ACEOF
  19065. fi
  19066. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  19067. if test "x$ac_cv_type_size_t" = xyes; then :
  19068. else
  19069. cat >>confdefs.h <<_ACEOF
  19070. #define size_t unsigned int
  19071. _ACEOF
  19072. fi
  19073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  19074. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  19075. if ${ac_cv_type_uid_t+:} false; then :
  19076. $as_echo_n "(cached) " >&6
  19077. else
  19078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19079. /* end confdefs.h. */
  19080. #include <sys/types.h>
  19081. _ACEOF
  19082. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19083. $EGREP "uid_t" >/dev/null 2>&1; then :
  19084. ac_cv_type_uid_t=yes
  19085. else
  19086. ac_cv_type_uid_t=no
  19087. fi
  19088. rm -f conftest*
  19089. fi
  19090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  19091. $as_echo "$ac_cv_type_uid_t" >&6; }
  19092. if test $ac_cv_type_uid_t = no; then
  19093. $as_echo "#define uid_t int" >>confdefs.h
  19094. $as_echo "#define gid_t int" >>confdefs.h
  19095. fi
  19096. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  19097. if test "x$ac_cv_type_ssize_t" = xyes; then :
  19098. else
  19099. cat >>confdefs.h <<_ACEOF
  19100. #define ssize_t int
  19101. _ACEOF
  19102. fi
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  19104. $as_echo_n "checking for inline... " >&6; }
  19105. if ${ac_cv_c_inline+:} false; then :
  19106. $as_echo_n "(cached) " >&6
  19107. else
  19108. ac_cv_c_inline=no
  19109. for ac_kw in inline __inline__ __inline; do
  19110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19111. /* end confdefs.h. */
  19112. #ifndef __cplusplus
  19113. typedef int foo_t;
  19114. static $ac_kw foo_t static_foo () {return 0; }
  19115. $ac_kw foo_t foo () {return 0; }
  19116. #endif
  19117. _ACEOF
  19118. if ac_fn_c_try_compile "$LINENO"; then :
  19119. ac_cv_c_inline=$ac_kw
  19120. fi
  19121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19122. test "$ac_cv_c_inline" != no && break
  19123. done
  19124. fi
  19125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  19126. $as_echo "$ac_cv_c_inline" >&6; }
  19127. case $ac_cv_c_inline in
  19128. inline | yes) ;;
  19129. *)
  19130. case $ac_cv_c_inline in
  19131. no) ac_val=;;
  19132. *) ac_val=$ac_cv_c_inline;;
  19133. esac
  19134. cat >>confdefs.h <<_ACEOF
  19135. #ifndef __cplusplus
  19136. #define inline $ac_val
  19137. #endif
  19138. _ACEOF
  19139. ;;
  19140. esac
  19141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  19142. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  19143. if ${ac_cv_c_const+:} false; then :
  19144. $as_echo_n "(cached) " >&6
  19145. else
  19146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19147. /* end confdefs.h. */
  19148. int
  19149. main ()
  19150. {
  19151. /* FIXME: Include the comments suggested by Paul. */
  19152. #ifndef __cplusplus
  19153. /* Ultrix mips cc rejects this. */
  19154. typedef int charset[2];
  19155. const charset cs;
  19156. /* SunOS 4.1.1 cc rejects this. */
  19157. char const *const *pcpcc;
  19158. char **ppc;
  19159. /* NEC SVR4.0.2 mips cc rejects this. */
  19160. struct point {int x, y;};
  19161. static struct point const zero = {0,0};
  19162. /* AIX XL C 1.02.0.0 rejects this.
  19163. It does not let you subtract one const X* pointer from another in
  19164. an arm of an if-expression whose if-part is not a constant
  19165. expression */
  19166. const char *g = "string";
  19167. pcpcc = &g + (g ? g-g : 0);
  19168. /* HPUX 7.0 cc rejects these. */
  19169. ++pcpcc;
  19170. ppc = (char**) pcpcc;
  19171. pcpcc = (char const *const *) ppc;
  19172. { /* SCO 3.2v4 cc rejects this. */
  19173. char *t;
  19174. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19175. *t++ = 0;
  19176. if (s) return 0;
  19177. }
  19178. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19179. int x[] = {25, 17};
  19180. const int *foo = &x[0];
  19181. ++foo;
  19182. }
  19183. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19184. typedef const int *iptr;
  19185. iptr p = 0;
  19186. ++p;
  19187. }
  19188. { /* AIX XL C 1.02.0.0 rejects this saying
  19189. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19190. struct s { int j; const int *ap[3]; };
  19191. struct s *b; b->j = 5;
  19192. }
  19193. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19194. const int foo = 10;
  19195. if (!foo) return 0;
  19196. }
  19197. return !cs[0] && !zero.x;
  19198. #endif
  19199. ;
  19200. return 0;
  19201. }
  19202. _ACEOF
  19203. if ac_fn_c_try_compile "$LINENO"; then :
  19204. ac_cv_c_const=yes
  19205. else
  19206. ac_cv_c_const=no
  19207. fi
  19208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19209. fi
  19210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  19211. $as_echo "$ac_cv_c_const" >&6; }
  19212. if test $ac_cv_c_const = no; then
  19213. $as_echo "#define const /**/" >>confdefs.h
  19214. fi
  19215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
  19216. $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  19217. if ${ac_cv_func_setpgrp_void+:} false; then :
  19218. $as_echo_n "(cached) " >&6
  19219. else
  19220. if test "$cross_compiling" = yes; then :
  19221. as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
  19222. else
  19223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19224. /* end confdefs.h. */
  19225. $ac_includes_default
  19226. int
  19227. main ()
  19228. {
  19229. /* If this system has a BSD-style setpgrp which takes arguments,
  19230. setpgrp(1, 1) will fail with ESRCH and return -1, in that case
  19231. exit successfully. */
  19232. return setpgrp (1,1) != -1;
  19233. ;
  19234. return 0;
  19235. }
  19236. _ACEOF
  19237. if ac_fn_c_try_run "$LINENO"; then :
  19238. ac_cv_func_setpgrp_void=no
  19239. else
  19240. ac_cv_func_setpgrp_void=yes
  19241. fi
  19242. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19243. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19244. fi
  19245. fi
  19246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
  19247. $as_echo "$ac_cv_func_setpgrp_void" >&6; }
  19248. if test $ac_cv_func_setpgrp_void = yes; then
  19249. $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
  19250. fi
  19251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  19252. $as_echo_n "checking for socklen_t... " >&6; }
  19253. if ${ac_cv_socklen_t+:} false; then :
  19254. $as_echo_n "(cached) " >&6
  19255. else
  19256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19257. /* end confdefs.h. */
  19258. #ifdef HAVE_SYS_TYPES_H
  19259. #include <sys/types.h>
  19260. #endif
  19261. #ifdef HAVE_SYS_SOCKET_H
  19262. #include <sys/socket.h>
  19263. #endif
  19264. int
  19265. main ()
  19266. {
  19267. socklen_t foo = (socklen_t) 0;
  19268. ;
  19269. return 0;
  19270. }
  19271. _ACEOF
  19272. if ac_fn_c_try_compile "$LINENO"; then :
  19273. ac_cv_socklen_t=yes
  19274. else
  19275. ac_cv_socklen_t=no
  19276. fi
  19277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19278. fi
  19279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
  19280. $as_echo "$ac_cv_socklen_t" >&6; }
  19281. if test "$ac_cv_socklen_t" = "yes"; then
  19282. $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
  19283. fi
  19284. # The cast to long int works around a bug in the HP C Compiler
  19285. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19286. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19287. # This bug is HP SR number 8606223364.
  19288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
  19289. $as_echo_n "checking size of void*... " >&6; }
  19290. if ${ac_cv_sizeof_voidp+:} false; then :
  19291. $as_echo_n "(cached) " >&6
  19292. else
  19293. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
  19294. else
  19295. if test "$ac_cv_type_voidp" = yes; then
  19296. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19297. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19298. as_fn_error 77 "cannot compute sizeof (void*)
  19299. See \`config.log' for more details" "$LINENO" 5; }
  19300. else
  19301. ac_cv_sizeof_voidp=0
  19302. fi
  19303. fi
  19304. fi
  19305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
  19306. $as_echo "$ac_cv_sizeof_voidp" >&6; }
  19307. cat >>confdefs.h <<_ACEOF
  19308. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  19309. _ACEOF
  19310. if test "x$ac_cv_sizeof_voidp" != "x"; then
  19311. voidp_size=$ac_cv_sizeof_voidp
  19312. else
  19313. as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
  19314. fi
  19315. # The cast to long int works around a bug in the HP C Compiler
  19316. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19317. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19318. # This bug is HP SR number 8606223364.
  19319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  19320. $as_echo_n "checking size of char... " >&6; }
  19321. if ${ac_cv_sizeof_char+:} false; then :
  19322. $as_echo_n "(cached) " >&6
  19323. else
  19324. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  19325. else
  19326. if test "$ac_cv_type_char" = yes; then
  19327. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19328. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19329. as_fn_error 77 "cannot compute sizeof (char)
  19330. See \`config.log' for more details" "$LINENO" 5; }
  19331. else
  19332. ac_cv_sizeof_char=0
  19333. fi
  19334. fi
  19335. fi
  19336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  19337. $as_echo "$ac_cv_sizeof_char" >&6; }
  19338. cat >>confdefs.h <<_ACEOF
  19339. #define SIZEOF_CHAR $ac_cv_sizeof_char
  19340. _ACEOF
  19341. # The cast to long int works around a bug in the HP C Compiler
  19342. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19343. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19344. # This bug is HP SR number 8606223364.
  19345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  19346. $as_echo_n "checking size of int... " >&6; }
  19347. if ${ac_cv_sizeof_int+:} false; then :
  19348. $as_echo_n "(cached) " >&6
  19349. else
  19350. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  19351. else
  19352. if test "$ac_cv_type_int" = yes; then
  19353. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19354. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19355. as_fn_error 77 "cannot compute sizeof (int)
  19356. See \`config.log' for more details" "$LINENO" 5; }
  19357. else
  19358. ac_cv_sizeof_int=0
  19359. fi
  19360. fi
  19361. fi
  19362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  19363. $as_echo "$ac_cv_sizeof_int" >&6; }
  19364. cat >>confdefs.h <<_ACEOF
  19365. #define SIZEOF_INT $ac_cv_sizeof_int
  19366. _ACEOF
  19367. # The cast to long int works around a bug in the HP C Compiler
  19368. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19369. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19370. # This bug is HP SR number 8606223364.
  19371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  19372. $as_echo_n "checking size of long... " >&6; }
  19373. if ${ac_cv_sizeof_long+:} false; then :
  19374. $as_echo_n "(cached) " >&6
  19375. else
  19376. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  19377. else
  19378. if test "$ac_cv_type_long" = yes; then
  19379. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19380. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19381. as_fn_error 77 "cannot compute sizeof (long)
  19382. See \`config.log' for more details" "$LINENO" 5; }
  19383. else
  19384. ac_cv_sizeof_long=0
  19385. fi
  19386. fi
  19387. fi
  19388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  19389. $as_echo "$ac_cv_sizeof_long" >&6; }
  19390. cat >>confdefs.h <<_ACEOF
  19391. #define SIZEOF_LONG $ac_cv_sizeof_long
  19392. _ACEOF
  19393. # The cast to long int works around a bug in the HP C Compiler
  19394. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19395. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19396. # This bug is HP SR number 8606223364.
  19397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  19398. $as_echo_n "checking size of short... " >&6; }
  19399. if ${ac_cv_sizeof_short+:} false; then :
  19400. $as_echo_n "(cached) " >&6
  19401. else
  19402. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  19403. else
  19404. if test "$ac_cv_type_short" = yes; then
  19405. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19406. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19407. as_fn_error 77 "cannot compute sizeof (short)
  19408. See \`config.log' for more details" "$LINENO" 5; }
  19409. else
  19410. ac_cv_sizeof_short=0
  19411. fi
  19412. fi
  19413. fi
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  19415. $as_echo "$ac_cv_sizeof_short" >&6; }
  19416. cat >>confdefs.h <<_ACEOF
  19417. #define SIZEOF_SHORT $ac_cv_sizeof_short
  19418. _ACEOF
  19419. # The cast to long int works around a bug in the HP C Compiler
  19420. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19421. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19422. # This bug is HP SR number 8606223364.
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  19424. $as_echo_n "checking size of long long... " >&6; }
  19425. if ${ac_cv_sizeof_long_long+:} false; then :
  19426. $as_echo_n "(cached) " >&6
  19427. else
  19428. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  19429. else
  19430. if test "$ac_cv_type_long_long" = yes; then
  19431. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19432. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19433. as_fn_error 77 "cannot compute sizeof (long long)
  19434. See \`config.log' for more details" "$LINENO" 5; }
  19435. else
  19436. ac_cv_sizeof_long_long=0
  19437. fi
  19438. fi
  19439. fi
  19440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  19441. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  19442. cat >>confdefs.h <<_ACEOF
  19443. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  19444. _ACEOF
  19445. if test "$ac_cv_sizeof_short" = "2"; then
  19446. short_value=short
  19447. fi
  19448. if test "$ac_cv_sizeof_int" = "4"; then
  19449. int_value=int
  19450. fi
  19451. # Now we need to find what apr_int64_t (sizeof == 8) will be.
  19452. # The first match is our preference.
  19453. if test "$ac_cv_sizeof_int" = "8"; then
  19454. int64_literal='#define APR_INT64_C(val) (val)'
  19455. uint64_literal='#define APR_UINT64_C(val) (val##U)'
  19456. int64_t_fmt='#define APR_INT64_T_FMT "d"'
  19457. uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
  19458. uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
  19459. int64_value="int"
  19460. long_value=int
  19461. int64_strfn="strtoi"
  19462. elif test "$ac_cv_sizeof_long" = "8"; then
  19463. int64_literal='#define APR_INT64_C(val) (val##L)'
  19464. uint64_literal='#define APR_UINT64_C(val) (val##UL)'
  19465. int64_t_fmt='#define APR_INT64_T_FMT "ld"'
  19466. uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
  19467. uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
  19468. int64_value="long"
  19469. long_value=long
  19470. int64_strfn="strtol"
  19471. elif test "$ac_cv_sizeof_long_long" = "8"; then
  19472. int64_literal='#define APR_INT64_C(val) (val##LL)'
  19473. uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
  19474. # Linux, Solaris, FreeBSD all support ll with printf.
  19475. # BSD 4.4 originated 'q'. Solaris is more popular and
  19476. # doesn't support 'q'. Solaris wins. Exceptions can
  19477. # go to the OS-dependent section.
  19478. int64_t_fmt='#define APR_INT64_T_FMT "lld"'
  19479. uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
  19480. uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
  19481. int64_value="long long"
  19482. long_value="long long"
  19483. int64_strfn="strtoll"
  19484. elif test "$ac_cv_sizeof_longlong" = "8"; then
  19485. int64_literal='#define APR_INT64_C(val) (val##LL)'
  19486. uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
  19487. int64_t_fmt='#define APR_INT64_T_FMT "qd"'
  19488. uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
  19489. uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
  19490. int64_value="__int64"
  19491. long_value="__int64"
  19492. int64_strfn="strtoll"
  19493. else
  19494. # int64_literal may be overriden if your compiler thinks you have
  19495. # a 64-bit value but APR does not agree.
  19496. as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
  19497. fi
  19498. # If present, allow the C99 macro INT64_C to override our conversion.
  19499. #
  19500. # HP-UX's ANSI C compiler provides this without any includes, so we
  19501. # will first look for INT64_C without adding stdint.h
  19502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
  19503. $as_echo_n "checking for INT64_C... " >&6; }
  19504. if ${apr_cv_define_INT64_C+:} false; then :
  19505. $as_echo_n "(cached) " >&6
  19506. else
  19507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19508. /* end confdefs.h. */
  19509. #ifdef INT64_C
  19510. YES_IS_DEFINED
  19511. #endif
  19512. _ACEOF
  19513. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19514. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  19515. apr_cv_define_INT64_C=yes
  19516. else
  19517. # Now check for INT64_C in stdint.h
  19518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19519. /* end confdefs.h. */
  19520. #include <stdint.h>
  19521. #ifdef INT64_C
  19522. YES_IS_DEFINED
  19523. #endif
  19524. _ACEOF
  19525. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19526. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  19527. apr_cv_define_INT64_C=yes
  19528. else
  19529. apr_cv_define_INT64_C=no
  19530. fi
  19531. rm -f conftest*
  19532. fi
  19533. rm -f conftest*
  19534. fi
  19535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
  19536. $as_echo "$apr_cv_define_INT64_C" >&6; }
  19537. if test "$apr_cv_define_INT64_C" = "yes"; then
  19538. int64_literal='#define APR_INT64_C(val) INT64_C(val)'
  19539. uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
  19540. stdint=1
  19541. else
  19542. stdint=0
  19543. fi
  19544. if test "$ac_cv_type_size_t" = "yes"; then
  19545. size_t_value="size_t"
  19546. else
  19547. size_t_value="apr_int32_t"
  19548. fi
  19549. if test "$ac_cv_type_ssize_t" = "yes"; then
  19550. ssize_t_value="ssize_t"
  19551. else
  19552. ssize_t_value="apr_int32_t"
  19553. fi
  19554. if test "$ac_cv_socklen_t" = "yes"; then
  19555. socklen_t_value="socklen_t"
  19556. case $host in
  19557. *-hp-hpux*)
  19558. if test "$ac_cv_sizeof_long" = "8"; then
  19559. # 64-bit HP-UX requires 32-bit socklens in
  19560. # kernel, but user-space declarations say
  19561. # 64-bit (socklen_t == size_t == long).
  19562. # This will result in many compile warnings,
  19563. # but we're functionally busted otherwise.
  19564. socklen_t_value="int"
  19565. fi
  19566. ;;
  19567. esac
  19568. else
  19569. socklen_t_value="int"
  19570. fi
  19571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
  19572. $as_echo_n "checking size of pid_t... " >&6; }
  19573. if ${ac_cv_sizeof_pid_t+:} false; then :
  19574. $as_echo_n "(cached) " >&6
  19575. else
  19576. if test "$cross_compiling" = yes; then :
  19577. ac_cv_sizeof_pid_t=8
  19578. else
  19579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19580. /* end confdefs.h. */
  19581. #include <stdio.h>
  19582. #include <sys/types.h>
  19583. main()
  19584. {
  19585. FILE *f=fopen("conftestval", "w");
  19586. if (!f) exit(1);
  19587. fprintf(f, "%d\n", sizeof(pid_t));
  19588. exit(0);
  19589. }
  19590. _ACEOF
  19591. if ac_fn_c_try_run "$LINENO"; then :
  19592. ac_cv_sizeof_pid_t=`cat conftestval`
  19593. else
  19594. ac_cv_sizeof_pid_t=0
  19595. fi
  19596. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19597. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19598. fi
  19599. fi
  19600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
  19601. $as_echo "$ac_cv_sizeof_pid_t" >&6; }
  19602. cat >>confdefs.h <<_ACEOF
  19603. #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
  19604. _ACEOF
  19605. if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
  19606. pid_t_fmt='#define APR_PID_T_FMT "hd"'
  19607. elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
  19608. pid_t_fmt='#define APR_PID_T_FMT "d"'
  19609. elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
  19610. pid_t_fmt='#define APR_PID_T_FMT "ld"'
  19611. elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
  19612. pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
  19613. else
  19614. pid_t_fmt='#error Can not determine the proper size for pid_t'
  19615. fi
  19616. # Basically, we have tried to figure out the correct format strings
  19617. # for APR types which vary between platforms, but we don't always get
  19618. # it right.
  19619. case $host in
  19620. s390*linux*)
  19621. # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
  19622. # for size_t rather than "unsigned int":
  19623. size_t_fmt="lu"
  19624. ssize_t_fmt="ld"
  19625. ;;
  19626. *-os2*)
  19627. size_t_fmt="lu"
  19628. ;;
  19629. *-solaris*)
  19630. if test "$ac_cv_sizeof_long" = "8"; then
  19631. pid_t_fmt='#define APR_PID_T_FMT "d"'
  19632. else
  19633. pid_t_fmt='#define APR_PID_T_FMT "ld"'
  19634. fi
  19635. ;;
  19636. *aix4*|*aix5*)
  19637. ssize_t_fmt="ld"
  19638. size_t_fmt="lu"
  19639. ;;
  19640. *beos*)
  19641. ssize_t_fmt="ld"
  19642. size_t_fmt="ld"
  19643. ;;
  19644. *apple-darwin*)
  19645. osver=`uname -r`
  19646. case $osver in
  19647. [0-7].*)
  19648. ssize_t_fmt="d"
  19649. ;;
  19650. *)
  19651. ssize_t_fmt="ld"
  19652. ;;
  19653. esac
  19654. size_t_fmt="lu"
  19655. ;;
  19656. *-mingw*)
  19657. int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
  19658. uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
  19659. uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
  19660. int64_value="__int64"
  19661. long_value="__int64"
  19662. int64_strfn="_strtoi64"
  19663. ;;
  19664. esac
  19665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
  19666. $as_echo_n "checking whether ssize_t and int are the same... " >&6; }
  19667. if ${apr_cv_typematch_ssize_t_int+:} false; then :
  19668. $as_echo_n "(cached) " >&6
  19669. else
  19670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19671. /* end confdefs.h. */
  19672. $ac_includes_default
  19673. int
  19674. main ()
  19675. {
  19676. int foo[0 - !__builtin_types_compatible_p(ssize_t, int)];
  19677. ;
  19678. return 0;
  19679. }
  19680. _ACEOF
  19681. if ac_fn_c_try_compile "$LINENO"; then :
  19682. apr_cv_typematch_ssize_t_int=yes
  19683. ssize_t_fmt="d"
  19684. else
  19685. apr_cv_typematch_ssize_t_int=no
  19686. fi
  19687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19688. fi
  19689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
  19690. $as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
  19691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
  19692. $as_echo_n "checking whether ssize_t and long are the same... " >&6; }
  19693. if ${apr_cv_typematch_ssize_t_long+:} false; then :
  19694. $as_echo_n "(cached) " >&6
  19695. else
  19696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19697. /* end confdefs.h. */
  19698. $ac_includes_default
  19699. int
  19700. main ()
  19701. {
  19702. int foo[0 - !__builtin_types_compatible_p(ssize_t, long)];
  19703. ;
  19704. return 0;
  19705. }
  19706. _ACEOF
  19707. if ac_fn_c_try_compile "$LINENO"; then :
  19708. apr_cv_typematch_ssize_t_long=yes
  19709. ssize_t_fmt="ld"
  19710. else
  19711. apr_cv_typematch_ssize_t_long=no
  19712. fi
  19713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19714. fi
  19715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
  19716. $as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
  19717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
  19718. $as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
  19719. if ${apr_cv_typematch_size_t_unsigned_int+:} false; then :
  19720. $as_echo_n "(cached) " >&6
  19721. else
  19722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19723. /* end confdefs.h. */
  19724. $ac_includes_default
  19725. int
  19726. main ()
  19727. {
  19728. int foo[0 - !__builtin_types_compatible_p(size_t, unsigned int)];
  19729. ;
  19730. return 0;
  19731. }
  19732. _ACEOF
  19733. if ac_fn_c_try_compile "$LINENO"; then :
  19734. apr_cv_typematch_size_t_unsigned_int=yes
  19735. size_t_fmt="u"
  19736. else
  19737. apr_cv_typematch_size_t_unsigned_int=no
  19738. fi
  19739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19740. fi
  19741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
  19742. $as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
  19743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
  19744. $as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
  19745. if ${apr_cv_typematch_size_t_unsigned_long+:} false; then :
  19746. $as_echo_n "(cached) " >&6
  19747. else
  19748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19749. /* end confdefs.h. */
  19750. $ac_includes_default
  19751. int
  19752. main ()
  19753. {
  19754. int foo[0 - !__builtin_types_compatible_p(size_t, unsigned long)];
  19755. ;
  19756. return 0;
  19757. }
  19758. _ACEOF
  19759. if ac_fn_c_try_compile "$LINENO"; then :
  19760. apr_cv_typematch_size_t_unsigned_long=yes
  19761. size_t_fmt="lu"
  19762. else
  19763. apr_cv_typematch_size_t_unsigned_long=no
  19764. fi
  19765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19766. fi
  19767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
  19768. $as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
  19769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
  19770. $as_echo_n "checking size of ssize_t... " >&6; }
  19771. if ${ac_cv_sizeof_ssize_t+:} false; then :
  19772. $as_echo_n "(cached) " >&6
  19773. else
  19774. if test "$cross_compiling" = yes; then :
  19775. ac_cv_sizeof_ssize_t=8
  19776. else
  19777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19778. /* end confdefs.h. */
  19779. #include <stdio.h>
  19780. #include <sys/types.h>
  19781. main()
  19782. {
  19783. FILE *f=fopen("conftestval", "w");
  19784. if (!f) exit(1);
  19785. fprintf(f, "%d\n", sizeof(ssize_t));
  19786. exit(0);
  19787. }
  19788. _ACEOF
  19789. if ac_fn_c_try_run "$LINENO"; then :
  19790. ac_cv_sizeof_ssize_t=`cat conftestval`
  19791. else
  19792. ac_cv_sizeof_ssize_t=0
  19793. fi
  19794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19796. fi
  19797. fi
  19798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
  19799. $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
  19800. cat >>confdefs.h <<_ACEOF
  19801. #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
  19802. _ACEOF
  19803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
  19804. $as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
  19805. if test -n "$ssize_t_fmt"; then
  19806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
  19807. $as_echo "%$ssize_t_fmt" >&6; }
  19808. elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
  19809. ssize_t_fmt="d"
  19810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
  19811. $as_echo "%d" >&6; }
  19812. elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
  19813. ssize_t_fmt="ld"
  19814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
  19815. $as_echo "%ld" >&6; }
  19816. else
  19817. as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
  19818. fi
  19819. ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
  19820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  19821. $as_echo_n "checking size of size_t... " >&6; }
  19822. if ${ac_cv_sizeof_size_t+:} false; then :
  19823. $as_echo_n "(cached) " >&6
  19824. else
  19825. if test "$cross_compiling" = yes; then :
  19826. ac_cv_sizeof_size_t=8
  19827. else
  19828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19829. /* end confdefs.h. */
  19830. #include <stdio.h>
  19831. #include <stddef.h>
  19832. main()
  19833. {
  19834. FILE *f=fopen("conftestval", "w");
  19835. if (!f) exit(1);
  19836. fprintf(f, "%d\n", sizeof(size_t));
  19837. exit(0);
  19838. }
  19839. _ACEOF
  19840. if ac_fn_c_try_run "$LINENO"; then :
  19841. ac_cv_sizeof_size_t=`cat conftestval`
  19842. else
  19843. ac_cv_sizeof_size_t=0
  19844. fi
  19845. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19846. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19847. fi
  19848. fi
  19849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  19850. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  19851. cat >>confdefs.h <<_ACEOF
  19852. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  19853. _ACEOF
  19854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
  19855. $as_echo_n "checking which format to use for apr_size_t... " >&6; }
  19856. if test -n "$size_t_fmt"; then
  19857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
  19858. $as_echo "%$size_t_fmt" >&6; }
  19859. elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
  19860. size_t_fmt="d"
  19861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
  19862. $as_echo "%d" >&6; }
  19863. elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
  19864. size_t_fmt="ld"
  19865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
  19866. $as_echo "%ld" >&6; }
  19867. else
  19868. as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
  19869. fi
  19870. size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
  19871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  19872. $as_echo_n "checking size of off_t... " >&6; }
  19873. if ${ac_cv_sizeof_off_t+:} false; then :
  19874. $as_echo_n "(cached) " >&6
  19875. else
  19876. if test "$cross_compiling" = yes; then :
  19877. ac_cv_sizeof_off_t=8
  19878. else
  19879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19880. /* end confdefs.h. */
  19881. #include <stdio.h>
  19882. #include <sys/types.h>
  19883. main()
  19884. {
  19885. FILE *f=fopen("conftestval", "w");
  19886. if (!f) exit(1);
  19887. fprintf(f, "%d\n", sizeof(off_t));
  19888. exit(0);
  19889. }
  19890. _ACEOF
  19891. if ac_fn_c_try_run "$LINENO"; then :
  19892. ac_cv_sizeof_off_t=`cat conftestval`
  19893. else
  19894. ac_cv_sizeof_off_t=0
  19895. fi
  19896. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19897. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19898. fi
  19899. fi
  19900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  19901. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  19902. cat >>confdefs.h <<_ACEOF
  19903. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  19904. _ACEOF
  19905. if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
  19906. # Enable LFS
  19907. aprlfs=1
  19908. for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64 readdir64_r
  19909. do :
  19910. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19911. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19912. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  19913. cat >>confdefs.h <<_ACEOF
  19914. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19915. _ACEOF
  19916. fi
  19917. done
  19918. elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
  19919. # unsure of using -gt above is as portable, can can't forsee where
  19920. # off_t can legitimately be smaller than size_t
  19921. aprlfs=1
  19922. else
  19923. aprlfs=0
  19924. fi
  19925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
  19926. $as_echo_n "checking which type to use for apr_off_t... " >&6; }
  19927. if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
  19928. # LFS is go!
  19929. off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
  19930. off_t_value='off64_t'
  19931. off_t_strfn='apr_strtoi64'
  19932. elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
  19933. # Special case: off_t may change size with _FILE_OFFSET_BITS
  19934. # on 32-bit systems with LFS support. To avoid compatibility
  19935. # issues when other packages do define _FILE_OFFSET_BITS,
  19936. # hard-code apr_off_t to long.
  19937. off_t_value=long
  19938. off_t_fmt='#define APR_OFF_T_FMT "ld"'
  19939. off_t_strfn='strtol'
  19940. elif test "$ac_cv_type_off_t" = "yes"; then
  19941. off_t_value=off_t
  19942. # off_t is more commonly a long than an int; prefer that case
  19943. # where int and long are the same size.
  19944. if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
  19945. off_t_fmt='#define APR_OFF_T_FMT "ld"'
  19946. off_t_strfn='strtol'
  19947. elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
  19948. off_t_fmt='#define APR_OFF_T_FMT "d"'
  19949. off_t_strfn='strtoi'
  19950. elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
  19951. off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
  19952. off_t_strfn='apr_strtoi64'
  19953. else
  19954. as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
  19955. fi
  19956. # Per OS tuning...
  19957. case $host in
  19958. *-mingw*)
  19959. off_t_value=apr_int64_t
  19960. off_t_fmt='#define APR_OFF_T_FMT "I64d"'
  19961. off_t_strfn='_strtoi64'
  19962. ;;
  19963. esac
  19964. else
  19965. # Fallback on int
  19966. off_t_value=apr_int32_t
  19967. off_t_fmt=d
  19968. off_t_strfn='strtoi'
  19969. fi
  19970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
  19971. $as_echo "$off_t_value" >&6; }
  19972. # Regardless of whether _LARGEFILE64_SOURCE is used, on some
  19973. # platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
  19974. # the build-time ABI may be different from the apparent ABI when using
  19975. # APR with another package which *does* define _FILE_OFFSET_BITS.
  19976. # (Exactly as per the case above with off_t where LFS is *not* used)
  19977. #
  19978. # To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
  19979. # iff that is exactly the size of ino_t here; otherwise use ino_t as existing
  19980. # releases did. To be correct, apr_ino_t should have been made an
  19981. # ino64_t as apr_off_t is off64_t, but this can't be done now without
  19982. # breaking ABI.
  19983. # Per OS tuning...
  19984. case $host in
  19985. *mingw*)
  19986. ino_t_value=apr_int64_t
  19987. ;;
  19988. *)
  19989. ino_t_value=ino_t
  19990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
  19991. $as_echo_n "checking size of ino_t... " >&6; }
  19992. if ${ac_cv_sizeof_ino_t+:} false; then :
  19993. $as_echo_n "(cached) " >&6
  19994. else
  19995. if test "$cross_compiling" = yes; then :
  19996. ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
  19997. else
  19998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19999. /* end confdefs.h. */
  20000. #include <stdio.h>
  20001. $ac_includes_default
  20002. main()
  20003. {
  20004. FILE *f=fopen("conftestval", "w");
  20005. if (!f) exit(1);
  20006. fprintf(f, "%d\n", sizeof(ino_t));
  20007. exit(0);
  20008. }
  20009. _ACEOF
  20010. if ac_fn_c_try_run "$LINENO"; then :
  20011. ac_cv_sizeof_ino_t=`cat conftestval`
  20012. else
  20013. ac_cv_sizeof_ino_t=0
  20014. fi
  20015. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20016. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20017. fi
  20018. fi
  20019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
  20020. $as_echo "$ac_cv_sizeof_ino_t" >&6; }
  20021. cat >>confdefs.h <<_ACEOF
  20022. #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
  20023. _ACEOF
  20024. if test $ac_cv_sizeof_ino_t = 4; then
  20025. if test $ac_cv_sizeof_long = 4; then
  20026. ino_t_value="unsigned long"
  20027. else
  20028. ino_t_value="unsigned int"
  20029. fi
  20030. fi
  20031. ;;
  20032. esac
  20033. { $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
  20034. $as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
  20035. # Checks for endianness
  20036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  20037. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  20038. if ${ac_cv_c_bigendian+:} false; then :
  20039. $as_echo_n "(cached) " >&6
  20040. else
  20041. ac_cv_c_bigendian=unknown
  20042. # See if we're dealing with a universal compiler.
  20043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20044. /* end confdefs.h. */
  20045. #ifndef __APPLE_CC__
  20046. not a universal capable compiler
  20047. #endif
  20048. typedef int dummy;
  20049. _ACEOF
  20050. if ac_fn_c_try_compile "$LINENO"; then :
  20051. # Check for potential -arch flags. It is not universal unless
  20052. # there are at least two -arch flags with different values.
  20053. ac_arch=
  20054. ac_prev=
  20055. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  20056. if test -n "$ac_prev"; then
  20057. case $ac_word in
  20058. i?86 | x86_64 | ppc | ppc64)
  20059. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  20060. ac_arch=$ac_word
  20061. else
  20062. ac_cv_c_bigendian=universal
  20063. break
  20064. fi
  20065. ;;
  20066. esac
  20067. ac_prev=
  20068. elif test "x$ac_word" = "x-arch"; then
  20069. ac_prev=arch
  20070. fi
  20071. done
  20072. fi
  20073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20074. if test $ac_cv_c_bigendian = unknown; then
  20075. # See if sys/param.h defines the BYTE_ORDER macro.
  20076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20077. /* end confdefs.h. */
  20078. #include <sys/types.h>
  20079. #include <sys/param.h>
  20080. int
  20081. main ()
  20082. {
  20083. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  20084. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  20085. && LITTLE_ENDIAN)
  20086. bogus endian macros
  20087. #endif
  20088. ;
  20089. return 0;
  20090. }
  20091. _ACEOF
  20092. if ac_fn_c_try_compile "$LINENO"; then :
  20093. # It does; now see whether it defined to BIG_ENDIAN or not.
  20094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20095. /* end confdefs.h. */
  20096. #include <sys/types.h>
  20097. #include <sys/param.h>
  20098. int
  20099. main ()
  20100. {
  20101. #if BYTE_ORDER != BIG_ENDIAN
  20102. not big endian
  20103. #endif
  20104. ;
  20105. return 0;
  20106. }
  20107. _ACEOF
  20108. if ac_fn_c_try_compile "$LINENO"; then :
  20109. ac_cv_c_bigendian=yes
  20110. else
  20111. ac_cv_c_bigendian=no
  20112. fi
  20113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20114. fi
  20115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20116. fi
  20117. if test $ac_cv_c_bigendian = unknown; then
  20118. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  20119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20120. /* end confdefs.h. */
  20121. #include <limits.h>
  20122. int
  20123. main ()
  20124. {
  20125. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  20126. bogus endian macros
  20127. #endif
  20128. ;
  20129. return 0;
  20130. }
  20131. _ACEOF
  20132. if ac_fn_c_try_compile "$LINENO"; then :
  20133. # It does; now see whether it defined to _BIG_ENDIAN or not.
  20134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20135. /* end confdefs.h. */
  20136. #include <limits.h>
  20137. int
  20138. main ()
  20139. {
  20140. #ifndef _BIG_ENDIAN
  20141. not big endian
  20142. #endif
  20143. ;
  20144. return 0;
  20145. }
  20146. _ACEOF
  20147. if ac_fn_c_try_compile "$LINENO"; then :
  20148. ac_cv_c_bigendian=yes
  20149. else
  20150. ac_cv_c_bigendian=no
  20151. fi
  20152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20153. fi
  20154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20155. fi
  20156. if test $ac_cv_c_bigendian = unknown; then
  20157. # Compile a test program.
  20158. if test "$cross_compiling" = yes; then :
  20159. # Try to guess by grepping values from an object file.
  20160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20161. /* end confdefs.h. */
  20162. short int ascii_mm[] =
  20163. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  20164. short int ascii_ii[] =
  20165. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  20166. int use_ascii (int i) {
  20167. return ascii_mm[i] + ascii_ii[i];
  20168. }
  20169. short int ebcdic_ii[] =
  20170. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  20171. short int ebcdic_mm[] =
  20172. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  20173. int use_ebcdic (int i) {
  20174. return ebcdic_mm[i] + ebcdic_ii[i];
  20175. }
  20176. extern int foo;
  20177. int
  20178. main ()
  20179. {
  20180. return use_ascii (foo) == use_ebcdic (foo);
  20181. ;
  20182. return 0;
  20183. }
  20184. _ACEOF
  20185. if ac_fn_c_try_compile "$LINENO"; then :
  20186. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  20187. ac_cv_c_bigendian=yes
  20188. fi
  20189. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  20190. if test "$ac_cv_c_bigendian" = unknown; then
  20191. ac_cv_c_bigendian=no
  20192. else
  20193. # finding both strings is unlikely to happen, but who knows?
  20194. ac_cv_c_bigendian=unknown
  20195. fi
  20196. fi
  20197. fi
  20198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20199. else
  20200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20201. /* end confdefs.h. */
  20202. $ac_includes_default
  20203. int
  20204. main ()
  20205. {
  20206. /* Are we little or big endian? From Harbison&Steele. */
  20207. union
  20208. {
  20209. long int l;
  20210. char c[sizeof (long int)];
  20211. } u;
  20212. u.l = 1;
  20213. return u.c[sizeof (long int) - 1] == 1;
  20214. ;
  20215. return 0;
  20216. }
  20217. _ACEOF
  20218. if ac_fn_c_try_run "$LINENO"; then :
  20219. ac_cv_c_bigendian=no
  20220. else
  20221. ac_cv_c_bigendian=yes
  20222. fi
  20223. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20224. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20225. fi
  20226. fi
  20227. fi
  20228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  20229. $as_echo "$ac_cv_c_bigendian" >&6; }
  20230. case $ac_cv_c_bigendian in #(
  20231. yes)
  20232. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  20233. ;; #(
  20234. no)
  20235. ;; #(
  20236. universal)
  20237. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  20238. ;; #(
  20239. *)
  20240. as_fn_error $? "unknown endianness
  20241. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  20242. esac
  20243. if test $ac_cv_c_bigendian = yes; then
  20244. bigendian=1
  20245. else
  20246. bigendian=0
  20247. fi
  20248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
  20249. $as_echo_n "checking size of struct iovec... " >&6; }
  20250. if ${ac_cv_sizeof_struct_iovec+:} false; then :
  20251. $as_echo_n "(cached) " >&6
  20252. else
  20253. if test "$cross_compiling" = yes; then :
  20254. ac_cv_sizeof_struct_iovec=0
  20255. else
  20256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20257. /* end confdefs.h. */
  20258. #include <stdio.h>
  20259. #include <sys/types.h>
  20260. #include <sys/uio.h>
  20261. main()
  20262. {
  20263. FILE *f=fopen("conftestval", "w");
  20264. if (!f) exit(1);
  20265. fprintf(f, "%d\n", sizeof(struct iovec));
  20266. exit(0);
  20267. }
  20268. _ACEOF
  20269. if ac_fn_c_try_run "$LINENO"; then :
  20270. ac_cv_sizeof_struct_iovec=`cat conftestval`
  20271. else
  20272. ac_cv_sizeof_struct_iovec=0
  20273. fi
  20274. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20275. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20276. fi
  20277. fi
  20278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
  20279. $as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
  20280. cat >>confdefs.h <<_ACEOF
  20281. #define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
  20282. _ACEOF
  20283. if test "$ac_cv_sizeof_struct_iovec" = "0"; then
  20284. have_iovec=0
  20285. else
  20286. have_iovec=1
  20287. fi
  20288. for ac_func in strnicmp
  20289. do :
  20290. ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
  20291. if test "x$ac_cv_func_strnicmp" = xyes; then :
  20292. cat >>confdefs.h <<_ACEOF
  20293. #define HAVE_STRNICMP 1
  20294. _ACEOF
  20295. have_strnicmp="1"
  20296. else
  20297. have_strnicmp="0"
  20298. fi
  20299. done
  20300. for ac_func in strncasecmp
  20301. do :
  20302. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  20303. if test "x$ac_cv_func_strncasecmp" = xyes; then :
  20304. cat >>confdefs.h <<_ACEOF
  20305. #define HAVE_STRNCASECMP 1
  20306. _ACEOF
  20307. have_strncasecmp="1"
  20308. else
  20309. have_strncasecmp="0"
  20310. fi
  20311. done
  20312. for ac_func in stricmp
  20313. do :
  20314. ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
  20315. if test "x$ac_cv_func_stricmp" = xyes; then :
  20316. cat >>confdefs.h <<_ACEOF
  20317. #define HAVE_STRICMP 1
  20318. _ACEOF
  20319. have_stricmp="1"
  20320. else
  20321. have_stricmp="0"
  20322. fi
  20323. done
  20324. for ac_func in strcasecmp
  20325. do :
  20326. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  20327. if test "x$ac_cv_func_strcasecmp" = xyes; then :
  20328. cat >>confdefs.h <<_ACEOF
  20329. #define HAVE_STRCASECMP 1
  20330. _ACEOF
  20331. have_strcasecmp="1"
  20332. else
  20333. have_strcasecmp="0"
  20334. fi
  20335. done
  20336. for ac_func in strdup
  20337. do :
  20338. ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  20339. if test "x$ac_cv_func_strdup" = xyes; then :
  20340. cat >>confdefs.h <<_ACEOF
  20341. #define HAVE_STRDUP 1
  20342. _ACEOF
  20343. have_strdup="1"
  20344. else
  20345. have_strdup="0"
  20346. fi
  20347. done
  20348. for ac_func in strstr
  20349. do :
  20350. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  20351. if test "x$ac_cv_func_strstr" = xyes; then :
  20352. cat >>confdefs.h <<_ACEOF
  20353. #define HAVE_STRSTR 1
  20354. _ACEOF
  20355. have_strstr="1"
  20356. else
  20357. have_strstr="0"
  20358. fi
  20359. done
  20360. for ac_func in memchr
  20361. do :
  20362. ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
  20363. if test "x$ac_cv_func_memchr" = xyes; then :
  20364. cat >>confdefs.h <<_ACEOF
  20365. #define HAVE_MEMCHR 1
  20366. _ACEOF
  20367. have_memchr="1"
  20368. else
  20369. have_memchr="0"
  20370. fi
  20371. done
  20372. as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
  20373. ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
  20374. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20375. have_int64_strfn="1"
  20376. else
  20377. have_int64_strfn="0"
  20378. fi
  20379. if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
  20380. int64_strfn="strtoq"
  20381. ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
  20382. if test "x$ac_cv_func_strtoq" = xyes; then :
  20383. have_int64_strfn=1
  20384. else
  20385. have_int64_strfn=0
  20386. fi
  20387. fi
  20388. if test "$have_int64_strfn" = "1"; then
  20389. cat >>confdefs.h <<_ACEOF
  20390. #define APR_INT64_STRFN $int64_strfn
  20391. _ACEOF
  20392. fi
  20393. if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
  20394. off_t_strfn=$int64_strfn
  20395. fi
  20396. cat >>confdefs.h <<_ACEOF
  20397. #define APR_OFF_T_STRFN $off_t_strfn
  20398. _ACEOF
  20399. echo "${nl}Checking for DSO..."
  20400. # Check whether --enable-dso was given.
  20401. if test "${enable_dso+set}" = set; then :
  20402. enableval=$enable_dso; if test "x$enableval" = "xyes"; then
  20403. dsotype=any
  20404. else
  20405. dsotype=$enableval
  20406. fi
  20407. else
  20408. dsotype=any
  20409. fi
  20410. if test "$dsotype" = "any"; then
  20411. if test "$dsotype" = "any"; then
  20412. case $host in
  20413. *darwin[0-8]\.*)
  20414. # Original Darwin, not for 9.0!:
  20415. ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
  20416. if test "x$ac_cv_func_NSLinkModule" = xyes; then :
  20417. dsotype=dyld
  20418. fi
  20419. ;;
  20420. hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
  20421. # shl is specific to parisc hpux SOM binaries, not used for 64 bit
  20422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  20423. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  20424. if ${ac_cv_lib_dld_shl_load+:} false; then :
  20425. $as_echo_n "(cached) " >&6
  20426. else
  20427. ac_check_lib_save_LIBS=$LIBS
  20428. LIBS="-ldld $LIBS"
  20429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20430. /* end confdefs.h. */
  20431. /* Override any GCC internal prototype to avoid an error.
  20432. Use char because int might match the return type of a GCC
  20433. builtin and then its argument prototype would still apply. */
  20434. #ifdef __cplusplus
  20435. extern "C"
  20436. #endif
  20437. char shl_load ();
  20438. int
  20439. main ()
  20440. {
  20441. return shl_load ();
  20442. ;
  20443. return 0;
  20444. }
  20445. _ACEOF
  20446. if ac_fn_c_try_link "$LINENO"; then :
  20447. ac_cv_lib_dld_shl_load=yes
  20448. else
  20449. ac_cv_lib_dld_shl_load=no
  20450. fi
  20451. rm -f core conftest.err conftest.$ac_objext \
  20452. conftest$ac_exeext conftest.$ac_ext
  20453. LIBS=$ac_check_lib_save_LIBS
  20454. fi
  20455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  20456. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  20457. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  20458. have_shl=1
  20459. fi
  20460. if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
  20461. dsotype=shl;
  20462. if test "x$LIBS" = "x"; then
  20463. test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
  20464. LIBS="-ldld"
  20465. else
  20466. apr_addto_bugger="-ldld"
  20467. for i in $apr_addto_bugger; do
  20468. apr_addto_duplicate="0"
  20469. for j in $LIBS; do
  20470. if test "x$i" = "x$j"; then
  20471. apr_addto_duplicate="1"
  20472. break
  20473. fi
  20474. done
  20475. if test $apr_addto_duplicate = "0"; then
  20476. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  20477. LIBS="$LIBS $i"
  20478. fi
  20479. done
  20480. fi
  20481. fi;;
  20482. *mingw*|*-os2*)
  20483. # several 'other's below probably belong up here. If they always
  20484. # use a platform implementation and shouldn't test the dlopen/dlfcn
  20485. # features, then bring them up here.
  20486. # But if they -should- optionally use dlfcn, and/or need the config
  20487. # detection of dlopen/dlsym, do not move them up.
  20488. dsotype=other ;;
  20489. esac
  20490. fi
  20491. # Normal POSIX:
  20492. if test "$dsotype" = "any"; then
  20493. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  20494. if test "x$ac_cv_func_dlopen" = xyes; then :
  20495. dsotype=dlfcn
  20496. fi
  20497. fi
  20498. if test "$dsotype" = "any"; then
  20499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20500. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20501. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20502. $as_echo_n "(cached) " >&6
  20503. else
  20504. ac_check_lib_save_LIBS=$LIBS
  20505. LIBS="-ldl $LIBS"
  20506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20507. /* end confdefs.h. */
  20508. /* Override any GCC internal prototype to avoid an error.
  20509. Use char because int might match the return type of a GCC
  20510. builtin and then its argument prototype would still apply. */
  20511. #ifdef __cplusplus
  20512. extern "C"
  20513. #endif
  20514. char dlopen ();
  20515. int
  20516. main ()
  20517. {
  20518. return dlopen ();
  20519. ;
  20520. return 0;
  20521. }
  20522. _ACEOF
  20523. if ac_fn_c_try_link "$LINENO"; then :
  20524. ac_cv_lib_dl_dlopen=yes
  20525. else
  20526. ac_cv_lib_dl_dlopen=no
  20527. fi
  20528. rm -f core conftest.err conftest.$ac_objext \
  20529. conftest$ac_exeext conftest.$ac_ext
  20530. LIBS=$ac_check_lib_save_LIBS
  20531. fi
  20532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20533. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20534. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20535. dsotype=dlfcn;
  20536. if test "x$LIBS" = "x"; then
  20537. test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
  20538. LIBS="-ldl"
  20539. else
  20540. apr_addto_bugger="-ldl"
  20541. for i in $apr_addto_bugger; do
  20542. apr_addto_duplicate="0"
  20543. for j in $LIBS; do
  20544. if test "x$i" = "x$j"; then
  20545. apr_addto_duplicate="1"
  20546. break
  20547. fi
  20548. done
  20549. if test $apr_addto_duplicate = "0"; then
  20550. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  20551. LIBS="$LIBS $i"
  20552. fi
  20553. done
  20554. fi
  20555. fi
  20556. fi
  20557. if test "$dsotype" = "dlfcn"; then
  20558. # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
  20559. ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
  20560. if test "x$ac_cv_func_dlsym" = xyes; then :
  20561. else
  20562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  20563. $as_echo_n "checking for dlsym in -ldl... " >&6; }
  20564. if ${ac_cv_lib_dl_dlsym+:} false; then :
  20565. $as_echo_n "(cached) " >&6
  20566. else
  20567. ac_check_lib_save_LIBS=$LIBS
  20568. LIBS="-ldl $LIBS"
  20569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20570. /* end confdefs.h. */
  20571. /* Override any GCC internal prototype to avoid an error.
  20572. Use char because int might match the return type of a GCC
  20573. builtin and then its argument prototype would still apply. */
  20574. #ifdef __cplusplus
  20575. extern "C"
  20576. #endif
  20577. char dlsym ();
  20578. int
  20579. main ()
  20580. {
  20581. return dlsym ();
  20582. ;
  20583. return 0;
  20584. }
  20585. _ACEOF
  20586. if ac_fn_c_try_link "$LINENO"; then :
  20587. ac_cv_lib_dl_dlsym=yes
  20588. else
  20589. ac_cv_lib_dl_dlsym=no
  20590. fi
  20591. rm -f core conftest.err conftest.$ac_objext \
  20592. conftest$ac_exeext conftest.$ac_ext
  20593. LIBS=$ac_check_lib_save_LIBS
  20594. fi
  20595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  20596. $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  20597. if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
  20598. if test "x$LIBS" = "x"; then
  20599. test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
  20600. LIBS="-ldl"
  20601. else
  20602. apr_addto_bugger="-ldl"
  20603. for i in $apr_addto_bugger; do
  20604. apr_addto_duplicate="0"
  20605. for j in $LIBS; do
  20606. if test "x$i" = "x$j"; then
  20607. apr_addto_duplicate="1"
  20608. break
  20609. fi
  20610. done
  20611. if test $apr_addto_duplicate = "0"; then
  20612. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  20613. LIBS="$LIBS $i"
  20614. fi
  20615. done
  20616. fi
  20617. else
  20618. dsotype=any
  20619. echo "Weird: dlopen() was found but dlsym() was not found!"
  20620. fi
  20621. fi
  20622. fi
  20623. if test "$dsotype" = "any"; then
  20624. # BeOS:
  20625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
  20626. $as_echo_n "checking for load_image in -lroot... " >&6; }
  20627. if ${ac_cv_lib_root_load_image+:} false; then :
  20628. $as_echo_n "(cached) " >&6
  20629. else
  20630. ac_check_lib_save_LIBS=$LIBS
  20631. LIBS="-lroot $LIBS"
  20632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20633. /* end confdefs.h. */
  20634. /* Override any GCC internal prototype to avoid an error.
  20635. Use char because int might match the return type of a GCC
  20636. builtin and then its argument prototype would still apply. */
  20637. #ifdef __cplusplus
  20638. extern "C"
  20639. #endif
  20640. char load_image ();
  20641. int
  20642. main ()
  20643. {
  20644. return load_image ();
  20645. ;
  20646. return 0;
  20647. }
  20648. _ACEOF
  20649. if ac_fn_c_try_link "$LINENO"; then :
  20650. ac_cv_lib_root_load_image=yes
  20651. else
  20652. ac_cv_lib_root_load_image=no
  20653. fi
  20654. rm -f core conftest.err conftest.$ac_objext \
  20655. conftest$ac_exeext conftest.$ac_ext
  20656. LIBS=$ac_check_lib_save_LIBS
  20657. fi
  20658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
  20659. $as_echo "$ac_cv_lib_root_load_image" >&6; }
  20660. if test "x$ac_cv_lib_root_load_image" = xyes; then :
  20661. dsotype=other
  20662. fi
  20663. fi
  20664. # Everything else:
  20665. if test "$dsotype" = "any"; then
  20666. case $host in
  20667. *os390|*os400|*-aix*)
  20668. # Some -aix5 will use dl, no hassles. Keep that pattern here.
  20669. dsotype=other ;;
  20670. *-hpux*)
  20671. if test "$have_shl" = "1"; then
  20672. dsotype=shl;
  20673. if test "x$LIBS" = "x"; then
  20674. test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
  20675. LIBS="-ldld"
  20676. else
  20677. apr_addto_bugger="-ldld"
  20678. for i in $apr_addto_bugger; do
  20679. apr_addto_duplicate="0"
  20680. for j in $LIBS; do
  20681. if test "x$i" = "x$j"; then
  20682. apr_addto_duplicate="1"
  20683. break
  20684. fi
  20685. done
  20686. if test $apr_addto_duplicate = "0"; then
  20687. test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
  20688. LIBS="$LIBS $i"
  20689. fi
  20690. done
  20691. fi
  20692. fi;;
  20693. esac
  20694. fi
  20695. fi
  20696. if test "$dsotype" = "any"; then
  20697. as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
  20698. elif test "$dsotype" = "no"; then
  20699. aprdso="0"
  20700. else
  20701. case "$dsotype" in
  20702. dlfcn)
  20703. $as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
  20704. ;;
  20705. shl)
  20706. $as_echo "#define DSO_USE_SHL 1" >>confdefs.h
  20707. ;;
  20708. dyld)
  20709. $as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
  20710. ;;
  20711. other) ;; # Use whatever is in dso/OSDIR
  20712. *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
  20713. esac
  20714. aprdso="1"
  20715. apr_modules="$apr_modules dso"
  20716. fi
  20717. echo "${nl}Checking for Processes..."
  20718. for ac_func in waitpid
  20719. do :
  20720. ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
  20721. if test "x$ac_cv_func_waitpid" = xyes; then :
  20722. cat >>confdefs.h <<_ACEOF
  20723. #define HAVE_WAITPID 1
  20724. _ACEOF
  20725. fi
  20726. done
  20727. # Check whether --enable-other-child was given.
  20728. if test "${enable_other_child+set}" = set; then :
  20729. enableval=$enable_other_child; if test "$enableval" = "yes"; then
  20730. oc="1"
  20731. else
  20732. oc="0"
  20733. fi
  20734. else
  20735. oc=1
  20736. fi
  20737. if test -z "$have_proc_invoked"; then
  20738. have_proc_invoked="0"
  20739. fi
  20740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
  20741. $as_echo_n "checking for Variable Length Arrays... " >&6; }
  20742. apr_save_CFLAGS=$CFLAGS
  20743. CFLAGS="$CFLAGS $CFLAGS_WARN"
  20744. if test "$ac_cv_c_compiler_gnu" = "yes"; then
  20745. CFLAGS="$CFLAGS -Werror"
  20746. fi
  20747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20748. /* end confdefs.h. */
  20749. #include "confdefs.h"
  20750. int main(int argc, const char *const *argv) {
  20751. int foo[argc];
  20752. foo[0] = 0;
  20753. return 0; }
  20754. _ACEOF
  20755. if ac_fn_c_try_compile "$LINENO"; then :
  20756. vla_msg=yes
  20757. else
  20758. vla_msg=no
  20759. fi
  20760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20761. CFLAGS=$apr_save_CFLAGS
  20762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
  20763. $as_echo "$vla_msg" >&6; }
  20764. if test "$vla_msg" = "yes"; then
  20765. $as_echo "#define HAVE_VLA 1" >>confdefs.h
  20766. fi
  20767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
  20768. $as_echo_n "checking struct rlimit... " >&6; }
  20769. if ${ac_cv_struct_rlimit+:} false; then :
  20770. $as_echo_n "(cached) " >&6
  20771. else
  20772. if test "$cross_compiling" = yes; then :
  20773. ac_cv_struct_rlimit=no
  20774. else
  20775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20776. /* end confdefs.h. */
  20777. #include <sys/types.h>
  20778. #include <sys/time.h>
  20779. #include <sys/resource.h>
  20780. main()
  20781. {
  20782. struct rlimit limit;
  20783. limit.rlim_cur = 0;
  20784. limit.rlim_max = 0;
  20785. exit(0);
  20786. }
  20787. _ACEOF
  20788. if ac_fn_c_try_run "$LINENO"; then :
  20789. ac_cv_struct_rlimit=yes
  20790. else
  20791. ac_cv_struct_rlimit=no
  20792. fi
  20793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20794. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20795. fi
  20796. fi
  20797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
  20798. $as_echo "$ac_cv_struct_rlimit" >&6; }
  20799. struct_rlimit=0
  20800. test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
  20801. echo "${nl}Checking for Locking..."
  20802. for ac_func in semget semctl flock
  20803. do :
  20804. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20805. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20806. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20807. cat >>confdefs.h <<_ACEOF
  20808. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20809. _ACEOF
  20810. fi
  20811. done
  20812. for ac_header in semaphore.h OS.h
  20813. do :
  20814. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20815. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20816. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20817. cat >>confdefs.h <<_ACEOF
  20818. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20819. _ACEOF
  20820. fi
  20821. done
  20822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
  20823. $as_echo_n "checking for library containing sem_open... " >&6; }
  20824. if ${ac_cv_search_sem_open+:} false; then :
  20825. $as_echo_n "(cached) " >&6
  20826. else
  20827. ac_func_search_save_LIBS=$LIBS
  20828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20829. /* end confdefs.h. */
  20830. /* Override any GCC internal prototype to avoid an error.
  20831. Use char because int might match the return type of a GCC
  20832. builtin and then its argument prototype would still apply. */
  20833. #ifdef __cplusplus
  20834. extern "C"
  20835. #endif
  20836. char sem_open ();
  20837. int
  20838. main ()
  20839. {
  20840. return sem_open ();
  20841. ;
  20842. return 0;
  20843. }
  20844. _ACEOF
  20845. for ac_lib in '' rt; do
  20846. if test -z "$ac_lib"; then
  20847. ac_res="none required"
  20848. else
  20849. ac_res=-l$ac_lib
  20850. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20851. fi
  20852. if ac_fn_c_try_link "$LINENO"; then :
  20853. ac_cv_search_sem_open=$ac_res
  20854. fi
  20855. rm -f core conftest.err conftest.$ac_objext \
  20856. conftest$ac_exeext
  20857. if ${ac_cv_search_sem_open+:} false; then :
  20858. break
  20859. fi
  20860. done
  20861. if ${ac_cv_search_sem_open+:} false; then :
  20862. else
  20863. ac_cv_search_sem_open=no
  20864. fi
  20865. rm conftest.$ac_ext
  20866. LIBS=$ac_func_search_save_LIBS
  20867. fi
  20868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
  20869. $as_echo "$ac_cv_search_sem_open" >&6; }
  20870. ac_res=$ac_cv_search_sem_open
  20871. if test "$ac_res" != no; then :
  20872. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20873. fi
  20874. for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
  20875. do :
  20876. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20877. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20878. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20879. cat >>confdefs.h <<_ACEOF
  20880. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20881. _ACEOF
  20882. fi
  20883. done
  20884. # Some systems return ENOSYS from sem_open.
  20885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
  20886. $as_echo_n "checking for working sem_open... " >&6; }
  20887. if ${ac_cv_func_sem_open+:} false; then :
  20888. $as_echo_n "(cached) " >&6
  20889. else
  20890. if test "$cross_compiling" = yes; then :
  20891. ac_cv_func_sem_open=no
  20892. else
  20893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20894. /* end confdefs.h. */
  20895. #include <errno.h>
  20896. #include <stdlib.h>
  20897. #include <fcntl.h>
  20898. #include <semaphore.h>
  20899. #ifndef SEM_FAILED
  20900. #define SEM_FAILED (-1)
  20901. #endif
  20902. main()
  20903. {
  20904. sem_t *psem;
  20905. const char *sem_name = "/apr_autoconf";
  20906. psem = sem_open(sem_name, O_CREAT, 0644, 1);
  20907. if (psem == (sem_t *)SEM_FAILED) {
  20908. exit(1);
  20909. }
  20910. sem_close(psem);
  20911. psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
  20912. if (psem != (sem_t *)SEM_FAILED) {
  20913. sem_close(psem);
  20914. exit(1);
  20915. }
  20916. sem_unlink(sem_name);
  20917. exit(0);
  20918. }
  20919. _ACEOF
  20920. if ac_fn_c_try_run "$LINENO"; then :
  20921. ac_cv_func_sem_open=yes
  20922. else
  20923. ac_cv_func_sem_open=no
  20924. fi
  20925. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20926. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20927. fi
  20928. fi
  20929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
  20930. $as_echo "$ac_cv_func_sem_open" >&6; }
  20931. # It's stupid, but not all platforms have union semun, even those that need it.
  20932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
  20933. $as_echo_n "checking for union semun in sys/sem.h... " >&6; }
  20934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20935. /* end confdefs.h. */
  20936. #include <sys/types.h>
  20937. #include <sys/ipc.h>
  20938. #include <sys/sem.h>
  20939. int
  20940. main ()
  20941. {
  20942. union semun arg;
  20943. semctl(0, 0, 0, arg);
  20944. ;
  20945. return 0;
  20946. }
  20947. _ACEOF
  20948. if ac_fn_c_try_compile "$LINENO"; then :
  20949. have_union_semun="1" union_semun=yes
  20950. msg=yes
  20951. else
  20952. have_union_semun="0"
  20953. msg=no
  20954. fi
  20955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
  20957. $as_echo "$msg" >&6; }
  20958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
  20959. $as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
  20960. if ${ac_cv_define_LOCK_EX+:} false; then :
  20961. $as_echo_n "(cached) " >&6
  20962. else
  20963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20964. /* end confdefs.h. */
  20965. #include <sys/file.h>
  20966. #ifdef LOCK_EX
  20967. YES_IS_DEFINED
  20968. #endif
  20969. _ACEOF
  20970. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20971. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  20972. ac_cv_define_LOCK_EX=yes
  20973. else
  20974. ac_cv_define_LOCK_EX=no
  20975. fi
  20976. rm -f conftest*
  20977. fi
  20978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
  20979. $as_echo "$ac_cv_define_LOCK_EX" >&6; }
  20980. if test "$ac_cv_define_LOCK_EX" = "yes"; then
  20981. $as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
  20982. fi
  20983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
  20984. $as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
  20985. if ${ac_cv_define_F_SETLK+:} false; then :
  20986. $as_echo_n "(cached) " >&6
  20987. else
  20988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20989. /* end confdefs.h. */
  20990. #include <fcntl.h>
  20991. #ifdef F_SETLK
  20992. YES_IS_DEFINED
  20993. #endif
  20994. _ACEOF
  20995. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20996. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  20997. ac_cv_define_F_SETLK=yes
  20998. else
  20999. ac_cv_define_F_SETLK=no
  21000. fi
  21001. rm -f conftest*
  21002. fi
  21003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
  21004. $as_echo "$ac_cv_define_F_SETLK" >&6; }
  21005. if test "$ac_cv_define_F_SETLK" = "yes"; then
  21006. $as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
  21007. fi
  21008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
  21009. $as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
  21010. if ${ac_cv_define_SEM_UNDO+:} false; then :
  21011. $as_echo_n "(cached) " >&6
  21012. else
  21013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21014. /* end confdefs.h. */
  21015. #include <sys/sem.h>
  21016. #ifdef SEM_UNDO
  21017. YES_IS_DEFINED
  21018. #endif
  21019. _ACEOF
  21020. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21021. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  21022. ac_cv_define_SEM_UNDO=yes
  21023. else
  21024. ac_cv_define_SEM_UNDO=no
  21025. fi
  21026. rm -f conftest*
  21027. fi
  21028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
  21029. $as_echo "$ac_cv_define_SEM_UNDO" >&6; }
  21030. if test "$ac_cv_define_SEM_UNDO" = "yes"; then
  21031. $as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
  21032. fi
  21033. # We are assuming that if the platform doesn't have POLLIN, it doesn't have
  21034. # any POLL definitions.
  21035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
  21036. $as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
  21037. if ${ac_cv_define_POLLIN+:} false; then :
  21038. $as_echo_n "(cached) " >&6
  21039. else
  21040. ac_cv_define_POLLIN=no
  21041. for curhdr in poll.h sys/poll.h
  21042. do
  21043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21044. /* end confdefs.h. */
  21045. #include <$curhdr>
  21046. #ifdef POLLIN
  21047. YES_IS_DEFINED
  21048. #endif
  21049. _ACEOF
  21050. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21051. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  21052. ac_cv_define_POLLIN=yes
  21053. fi
  21054. rm -f conftest*
  21055. done
  21056. fi
  21057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
  21058. $as_echo "$ac_cv_define_POLLIN" >&6; }
  21059. if test "$ac_cv_define_POLLIN" = "yes"; then
  21060. $as_echo "#define HAVE_POLLIN 1" >>confdefs.h
  21061. fi
  21062. if test "$threads" = "1"; then
  21063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
  21064. $as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
  21065. if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
  21066. $as_echo_n "(cached) " >&6
  21067. else
  21068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21069. /* end confdefs.h. */
  21070. #include <pthread.h>
  21071. #ifdef PTHREAD_PROCESS_SHARED
  21072. YES_IS_DEFINED
  21073. #endif
  21074. _ACEOF
  21075. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21076. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  21077. ac_cv_define_PTHREAD_PROCESS_SHARED=yes
  21078. else
  21079. ac_cv_define_PTHREAD_PROCESS_SHARED=no
  21080. fi
  21081. rm -f conftest*
  21082. fi
  21083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
  21084. $as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
  21085. if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
  21086. $as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
  21087. fi
  21088. for ac_func in pthread_mutexattr_setpshared
  21089. do :
  21090. ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
  21091. if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
  21092. cat >>confdefs.h <<_ACEOF
  21093. #define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
  21094. _ACEOF
  21095. fi
  21096. done
  21097. # Some systems have setpshared and define PROCESS_SHARED, but don't
  21098. # really support PROCESS_SHARED locks. So, we must validate that we
  21099. # can go through the steps without receiving some sort of system error.
  21100. # Linux and older versions of AIX have this problem.
  21101. ac_rc=yes
  21102. for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
  21103. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21104. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21105. case $ac_type in
  21106. header )
  21107. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21108. ac_var="ac_cv_header_$ac_item"
  21109. ;;
  21110. file )
  21111. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21112. ac_var="ac_cv_file_$ac_item"
  21113. ;;
  21114. func ) ac_var="ac_cv_func_$ac_item" ;;
  21115. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21116. define ) ac_var="ac_cv_define_$ac_item" ;;
  21117. custom ) ac_var="$ac_item" ;;
  21118. esac
  21119. eval "ac_val=\$$ac_var"
  21120. if test ".$ac_val" != .yes; then
  21121. ac_rc=no
  21122. break
  21123. fi
  21124. done
  21125. if test ".$ac_rc" = .yes; then
  21126. :
  21127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
  21128. $as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
  21129. if ${apr_cv_process_shared_works+:} false; then :
  21130. $as_echo_n "(cached) " >&6
  21131. else
  21132. if test "$cross_compiling" = yes; then :
  21133. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21134. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21135. as_fn_error $? "cannot run test program while cross compiling
  21136. See \`config.log' for more details" "$LINENO" 5; }
  21137. else
  21138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21139. /* end confdefs.h. */
  21140. #include <sys/types.h>
  21141. #include <pthread.h>
  21142. int main()
  21143. {
  21144. pthread_mutex_t mutex;
  21145. pthread_mutexattr_t attr;
  21146. if (pthread_mutexattr_init(&attr))
  21147. exit(1);
  21148. if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
  21149. exit(2);
  21150. if (pthread_mutex_init(&mutex, &attr))
  21151. exit(3);
  21152. if (pthread_mutexattr_destroy(&attr))
  21153. exit(4);
  21154. if (pthread_mutex_destroy(&mutex))
  21155. exit(5);
  21156. exit(0);
  21157. }
  21158. _ACEOF
  21159. if ac_fn_c_try_run "$LINENO"; then :
  21160. apr_cv_process_shared_works=yes
  21161. else
  21162. apr_cv_process_shared_works=no
  21163. fi
  21164. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21165. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21166. fi
  21167. fi
  21168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
  21169. $as_echo "$apr_cv_process_shared_works" >&6; }
  21170. # Override detection of pthread_mutexattr_setpshared
  21171. ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
  21172. else
  21173. :
  21174. fi
  21175. if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
  21176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
  21177. $as_echo_n "checking for robust cross-process mutex support... " >&6; }
  21178. if ${apr_cv_mutex_robust_shared+:} false; then :
  21179. $as_echo_n "(cached) " >&6
  21180. else
  21181. if test "$cross_compiling" = yes; then :
  21182. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21183. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21184. as_fn_error $? "cannot run test program while cross compiling
  21185. See \`config.log' for more details" "$LINENO" 5; }
  21186. else
  21187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21188. /* end confdefs.h. */
  21189. #include <sys/types.h>
  21190. #include <pthread.h>
  21191. #include <stdlib.h>
  21192. int main(int argc, char **argv)
  21193. {
  21194. pthread_mutex_t mutex;
  21195. pthread_mutexattr_t attr;
  21196. if (pthread_mutexattr_init(&attr))
  21197. exit(1);
  21198. if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
  21199. exit(2);
  21200. if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
  21201. exit(3);
  21202. if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
  21203. exit(4);
  21204. if (pthread_mutex_init(&mutex, &attr))
  21205. exit(5);
  21206. if (pthread_mutexattr_destroy(&attr))
  21207. exit(6);
  21208. if (pthread_mutex_destroy(&mutex))
  21209. exit(7);
  21210. exit(0);
  21211. }
  21212. _ACEOF
  21213. if ac_fn_c_try_run "$LINENO"; then :
  21214. apr_cv_mutex_robust_shared=yes
  21215. else
  21216. apr_cv_mutex_robust_shared=no
  21217. fi
  21218. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21219. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21220. fi
  21221. fi
  21222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
  21223. $as_echo "$apr_cv_mutex_robust_shared" >&6; }
  21224. if test "$apr_cv_mutex_robust_shared" = "yes"; then
  21225. $as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
  21226. fi
  21227. fi
  21228. fi
  21229. # See which lock mechanisms we can support on this system.
  21230. ac_rc=yes
  21231. for ac_spec in header:semaphore.h func:sem_open func:sem_close func:sem_unlink func:sem_post func:sem_wait; do
  21232. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21233. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21234. case $ac_type in
  21235. header )
  21236. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21237. ac_var="ac_cv_header_$ac_item"
  21238. ;;
  21239. file )
  21240. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21241. ac_var="ac_cv_file_$ac_item"
  21242. ;;
  21243. func ) ac_var="ac_cv_func_$ac_item" ;;
  21244. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21245. define ) ac_var="ac_cv_define_$ac_item" ;;
  21246. custom ) ac_var="$ac_item" ;;
  21247. esac
  21248. eval "ac_val=\$$ac_var"
  21249. if test ".$ac_val" != .yes; then
  21250. ac_rc=no
  21251. break
  21252. fi
  21253. done
  21254. if test ".$ac_rc" = .yes; then
  21255. :
  21256. hasposixser="1"
  21257. else
  21258. :
  21259. hasposixser="0"
  21260. fi
  21261. ac_rc=yes
  21262. for ac_spec in func:semget func:semctl define:SEM_UNDO; do
  21263. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21264. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21265. case $ac_type in
  21266. header )
  21267. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21268. ac_var="ac_cv_header_$ac_item"
  21269. ;;
  21270. file )
  21271. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21272. ac_var="ac_cv_file_$ac_item"
  21273. ;;
  21274. func ) ac_var="ac_cv_func_$ac_item" ;;
  21275. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21276. define ) ac_var="ac_cv_define_$ac_item" ;;
  21277. custom ) ac_var="$ac_item" ;;
  21278. esac
  21279. eval "ac_val=\$$ac_var"
  21280. if test ".$ac_val" != .yes; then
  21281. ac_rc=no
  21282. break
  21283. fi
  21284. done
  21285. if test ".$ac_rc" = .yes; then
  21286. :
  21287. hassysvser="1"
  21288. else
  21289. :
  21290. hassysvser="0"
  21291. fi
  21292. ac_rc=yes
  21293. for ac_spec in func:flock define:LOCK_EX; do
  21294. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21295. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21296. case $ac_type in
  21297. header )
  21298. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21299. ac_var="ac_cv_header_$ac_item"
  21300. ;;
  21301. file )
  21302. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21303. ac_var="ac_cv_file_$ac_item"
  21304. ;;
  21305. func ) ac_var="ac_cv_func_$ac_item" ;;
  21306. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21307. define ) ac_var="ac_cv_define_$ac_item" ;;
  21308. custom ) ac_var="$ac_item" ;;
  21309. esac
  21310. eval "ac_val=\$$ac_var"
  21311. if test ".$ac_val" != .yes; then
  21312. ac_rc=no
  21313. break
  21314. fi
  21315. done
  21316. if test ".$ac_rc" = .yes; then
  21317. :
  21318. hasflockser="1"
  21319. else
  21320. :
  21321. hasflockser="0"
  21322. fi
  21323. ac_rc=yes
  21324. for ac_spec in header:fcntl.h define:F_SETLK; do
  21325. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21326. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21327. case $ac_type in
  21328. header )
  21329. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21330. ac_var="ac_cv_header_$ac_item"
  21331. ;;
  21332. file )
  21333. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21334. ac_var="ac_cv_file_$ac_item"
  21335. ;;
  21336. func ) ac_var="ac_cv_func_$ac_item" ;;
  21337. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21338. define ) ac_var="ac_cv_define_$ac_item" ;;
  21339. custom ) ac_var="$ac_item" ;;
  21340. esac
  21341. eval "ac_val=\$$ac_var"
  21342. if test ".$ac_val" != .yes; then
  21343. ac_rc=no
  21344. break
  21345. fi
  21346. done
  21347. if test ".$ac_rc" = .yes; then
  21348. :
  21349. hasfcntlser="1"
  21350. else
  21351. :
  21352. hasfcntlser="0"
  21353. fi
  21354. # note: the current APR use of shared mutex requires /dev/zero
  21355. ac_rc=yes
  21356. for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared file:/dev/zero; do
  21357. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21358. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21359. case $ac_type in
  21360. header )
  21361. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21362. ac_var="ac_cv_header_$ac_item"
  21363. ;;
  21364. file )
  21365. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21366. ac_var="ac_cv_file_$ac_item"
  21367. ;;
  21368. func ) ac_var="ac_cv_func_$ac_item" ;;
  21369. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21370. define ) ac_var="ac_cv_define_$ac_item" ;;
  21371. custom ) ac_var="$ac_item" ;;
  21372. esac
  21373. eval "ac_val=\$$ac_var"
  21374. if test ".$ac_val" != .yes; then
  21375. ac_rc=no
  21376. break
  21377. fi
  21378. done
  21379. if test ".$ac_rc" = .yes; then
  21380. :
  21381. hasprocpthreadser="1"
  21382. else
  21383. :
  21384. hasprocpthreadser="0"
  21385. fi
  21386. ac_rc=yes
  21387. for ac_spec in header:OS.h func:create_sem; do
  21388. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21389. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21390. case $ac_type in
  21391. header )
  21392. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21393. ac_var="ac_cv_header_$ac_item"
  21394. ;;
  21395. file )
  21396. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21397. ac_var="ac_cv_file_$ac_item"
  21398. ;;
  21399. func ) ac_var="ac_cv_func_$ac_item" ;;
  21400. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21401. define ) ac_var="ac_cv_define_$ac_item" ;;
  21402. custom ) ac_var="$ac_item" ;;
  21403. esac
  21404. eval "ac_val=\$$ac_var"
  21405. if test ".$ac_val" != .yes; then
  21406. ac_rc=no
  21407. break
  21408. fi
  21409. done
  21410. if test ".$ac_rc" = .yes; then
  21411. :
  21412. hasbeossem="1"
  21413. else
  21414. :
  21415. hasbeossem="0"
  21416. fi
  21417. # See which lock mechanism we'll select by default on this system.
  21418. # The last APR_DECIDE to execute sets the default.
  21419. # At this stage, we match the ordering in Apache 1.3
  21420. # which is (highest to lowest): sysvsem -> fcntl -> flock.
  21421. # POSIX semaphores and cross-process pthread mutexes are not
  21422. # used by default since they have less desirable behaviour when
  21423. # e.g. a process holding the mutex segfaults.
  21424. # The BEOSSEM decision doesn't require any substitutions but is
  21425. # included here to prevent the fcntl() branch being selected
  21426. # from the decision making.
  21427. ac_decision_item='apr_lock implementation method'
  21428. ac_decision_msg='FAILED'
  21429. ac_decision=''
  21430. ac_rc=yes
  21431. for ac_spec in func:flock define:LOCK_EX; do
  21432. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21433. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21434. case $ac_type in
  21435. header )
  21436. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21437. ac_var="ac_cv_header_$ac_item"
  21438. ;;
  21439. file )
  21440. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21441. ac_var="ac_cv_file_$ac_item"
  21442. ;;
  21443. func ) ac_var="ac_cv_func_$ac_item" ;;
  21444. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21445. define ) ac_var="ac_cv_define_$ac_item" ;;
  21446. custom ) ac_var="$ac_item" ;;
  21447. esac
  21448. eval "ac_val=\$$ac_var"
  21449. if test ".$ac_val" != .yes; then
  21450. ac_rc=no
  21451. break
  21452. fi
  21453. done
  21454. if test ".$ac_rc" = .yes; then
  21455. :
  21456. ac_decision='USE_FLOCK_SERIALIZE'
  21457. ac_decision_msg='4.2BSD-style flock()'
  21458. ac_decision_USE_FLOCK_SERIALIZE=yes
  21459. ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
  21460. else
  21461. :
  21462. fi
  21463. ac_rc=yes
  21464. for ac_spec in header:fcntl.h define:F_SETLK; do
  21465. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21466. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21467. case $ac_type in
  21468. header )
  21469. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21470. ac_var="ac_cv_header_$ac_item"
  21471. ;;
  21472. file )
  21473. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21474. ac_var="ac_cv_file_$ac_item"
  21475. ;;
  21476. func ) ac_var="ac_cv_func_$ac_item" ;;
  21477. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21478. define ) ac_var="ac_cv_define_$ac_item" ;;
  21479. custom ) ac_var="$ac_item" ;;
  21480. esac
  21481. eval "ac_val=\$$ac_var"
  21482. if test ".$ac_val" != .yes; then
  21483. ac_rc=no
  21484. break
  21485. fi
  21486. done
  21487. if test ".$ac_rc" = .yes; then
  21488. :
  21489. ac_decision='USE_FCNTL_SERIALIZE'
  21490. ac_decision_msg='SVR4-style fcntl()'
  21491. ac_decision_USE_FCNTL_SERIALIZE=yes
  21492. ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
  21493. else
  21494. :
  21495. fi
  21496. ac_rc=yes
  21497. for ac_spec in func:semget func:semctl define:SEM_UNDO; do
  21498. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21499. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21500. case $ac_type in
  21501. header )
  21502. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21503. ac_var="ac_cv_header_$ac_item"
  21504. ;;
  21505. file )
  21506. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21507. ac_var="ac_cv_file_$ac_item"
  21508. ;;
  21509. func ) ac_var="ac_cv_func_$ac_item" ;;
  21510. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21511. define ) ac_var="ac_cv_define_$ac_item" ;;
  21512. custom ) ac_var="$ac_item" ;;
  21513. esac
  21514. eval "ac_val=\$$ac_var"
  21515. if test ".$ac_val" != .yes; then
  21516. ac_rc=no
  21517. break
  21518. fi
  21519. done
  21520. if test ".$ac_rc" = .yes; then
  21521. :
  21522. ac_decision='USE_SYSVSEM_SERIALIZE'
  21523. ac_decision_msg='SysV IPC semget()'
  21524. ac_decision_USE_SYSVSEM_SERIALIZE=yes
  21525. ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
  21526. else
  21527. :
  21528. fi
  21529. ac_rc=yes
  21530. for ac_spec in header:OS.h func:create_sem; do
  21531. ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
  21532. ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
  21533. case $ac_type in
  21534. header )
  21535. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21536. ac_var="ac_cv_header_$ac_item"
  21537. ;;
  21538. file )
  21539. ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
  21540. ac_var="ac_cv_file_$ac_item"
  21541. ;;
  21542. func ) ac_var="ac_cv_func_$ac_item" ;;
  21543. struct ) ac_var="ac_cv_struct_$ac_item" ;;
  21544. define ) ac_var="ac_cv_define_$ac_item" ;;
  21545. custom ) ac_var="$ac_item" ;;
  21546. esac
  21547. eval "ac_val=\$$ac_var"
  21548. if test ".$ac_val" != .yes; then
  21549. ac_rc=no
  21550. break
  21551. fi
  21552. done
  21553. if test ".$ac_rc" = .yes; then
  21554. :
  21555. ac_decision='USE_BEOSSEM'
  21556. ac_decision_msg='BeOS Semaphores'
  21557. ac_decision_USE_BEOSSEM=yes
  21558. ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
  21559. else
  21560. :
  21561. fi
  21562. if test "x$apr_lock_method" != "x"; then
  21563. ac_decision="$apr_lock_method"
  21564. eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
  21565. fi
  21566. if test ".$ac_decision" = .; then
  21567. echo "$0:Error: decision on $ac_decision_item failed" 1>&2
  21568. exit 1
  21569. else
  21570. if test ".$ac_decision_msg" = .; then
  21571. ac_decision_msg="$ac_decision"
  21572. fi
  21573. cat >>confdefs.h <<_ACEOF
  21574. #define ${ac_decision_item} 1
  21575. _ACEOF
  21576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
  21577. $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
  21578. fi
  21579. cat >>confdefs.h <<_ACEOF
  21580. #define $ac_decision 1
  21581. _ACEOF
  21582. flockser="0"
  21583. sysvser="0"
  21584. posixser="0"
  21585. procpthreadser="0"
  21586. fcntlser="0"
  21587. case $ac_decision in
  21588. USE_FLOCK_SERIALIZE )
  21589. flockser="1"
  21590. ;;
  21591. USE_FCNTL_SERIALIZE )
  21592. fcntlser="1"
  21593. ;;
  21594. USE_SYSVSEM_SERIALIZE )
  21595. sysvser="1"
  21596. ;;
  21597. USE_POSIXSEM_SERIALIZE )
  21598. posixser="1"
  21599. ;;
  21600. USE_PROC_PTHREAD_SERIALIZE )
  21601. procpthreadser="1"
  21602. ;;
  21603. USE_BEOSSEM )
  21604. beossem="1"
  21605. ;;
  21606. esac
  21607. if test $hasfcntlser = "1"; then
  21608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
  21609. $as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
  21610. if test "$cross_compiling" = yes; then :
  21611. apr_fcntl_tryacquire_eacces=0
  21612. else
  21613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21614. /* end confdefs.h. */
  21615. #ifdef HAVE_STDLIB_H
  21616. #include <stdlib.h>
  21617. #endif
  21618. #ifdef HAVE_SYS_TYPES_H
  21619. #include <sys/types.h>
  21620. #endif
  21621. #ifdef HAVE_SYS_STAT_H
  21622. #include <sys/stat.h>
  21623. #endif
  21624. #ifdef HAVE_SYS_WAIT_H
  21625. #include <sys/wait.h>
  21626. #endif
  21627. #if defined(HAVE_UNISTD_H)
  21628. #include <unistd.h>
  21629. #endif
  21630. #include <fcntl.h>
  21631. #include <errno.h>
  21632. int fd;
  21633. struct flock proc_mutex_lock_it = {0};
  21634. const char *fname = "conftest.fcntl";
  21635. int main()
  21636. {
  21637. int rc, status;;
  21638. proc_mutex_lock_it.l_whence = SEEK_SET; /* from current point */
  21639. proc_mutex_lock_it.l_type = F_WRLCK; /* set exclusive/write lock */
  21640. fd = creat(fname, S_IRWXU);
  21641. unlink(fname);
  21642. if (rc = lockit()) {
  21643. exit(-1);
  21644. }
  21645. if (fork()) {
  21646. wait(&status);
  21647. }
  21648. else {
  21649. return(lockit());
  21650. }
  21651. close(fd);
  21652. exit(WEXITSTATUS(status) != EACCES);
  21653. }
  21654. int lockit() {
  21655. int rc;
  21656. do {
  21657. rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
  21658. } while ( rc < 0 && errno == EINTR);
  21659. return (rc < 0) ? errno : 0;
  21660. }
  21661. _ACEOF
  21662. if ac_fn_c_try_run "$LINENO"; then :
  21663. apr_fcntl_tryacquire_eacces=1
  21664. else
  21665. apr_fcntl_tryacquire_eacces=0
  21666. fi
  21667. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21668. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21669. fi
  21670. fi
  21671. if test "$apr_fcntl_tryacquire_eacces" = "1"; then
  21672. $as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
  21673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21674. $as_echo "yes" >&6; }
  21675. else
  21676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21677. $as_echo "no" >&6; }
  21678. fi
  21679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
  21680. $as_echo_n "checking if all interprocess locks affect threads... " >&6; }
  21681. if test "x$apr_process_lock_is_global" = "xyes"; then
  21682. proclockglobal="1"
  21683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21684. $as_echo "yes" >&6; }
  21685. else
  21686. proclockglobal="0"
  21687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21688. $as_echo "no" >&6; }
  21689. fi
  21690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
  21691. $as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
  21692. if test "x$apr_posixsem_is_global" = "xyes"; then
  21693. $as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
  21694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21695. $as_echo "yes" >&6; }
  21696. else
  21697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21698. $as_echo "no" >&6; }
  21699. fi
  21700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
  21701. $as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
  21702. if test "x$apr_sysvsem_is_global" = "xyes"; then
  21703. $as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
  21704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21705. $as_echo "yes" >&6; }
  21706. else
  21707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21708. $as_echo "no" >&6; }
  21709. fi
  21710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
  21711. $as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
  21712. if test "x$apr_fcntl_is_global" = "xyes"; then
  21713. $as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
  21714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21715. $as_echo "yes" >&6; }
  21716. else
  21717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21718. $as_echo "no" >&6; }
  21719. fi
  21720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
  21721. $as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
  21722. if test "x$apr_flock_is_global" = "xyes"; then
  21723. $as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
  21724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21725. $as_echo "yes" >&6; }
  21726. else
  21727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21728. $as_echo "no" >&6; }
  21729. fi
  21730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
  21731. $as_echo_n "checking for entropy source... " >&6; }
  21732. why_no_rand=""
  21733. # Check whether --with-egd was given.
  21734. if test "${with_egd+set}" = set; then :
  21735. withval=$with_egd;
  21736. $as_echo "#define HAVE_EGD 1" >>confdefs.h
  21737. if test "$withval" = "yes"; then
  21738. cat >>confdefs.h <<_ACEOF
  21739. #define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
  21740. _ACEOF
  21741. else
  21742. cat >>confdefs.h <<_ACEOF
  21743. #define EGD_DEFAULT_SOCKET "$withval"
  21744. _ACEOF
  21745. fi
  21746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
  21747. $as_echo "EGD-compatible daemon" >&6; }
  21748. rand="1"
  21749. fi
  21750. if test "$rand" != "1"; then
  21751. # Check whether --with-devrandom was given.
  21752. if test "${with_devrandom+set}" = set; then :
  21753. withval=$with_devrandom; apr_devrandom="$withval"
  21754. else
  21755. apr_devrandom="yes"
  21756. fi
  21757. if test "$apr_devrandom" = "yes"; then
  21758. # /dev/random on OpenBSD doesn't provide random data, so
  21759. # prefer /dev/arandom, which does; see random(4).
  21760. for f in /dev/arandom /dev/urandom /dev/random; do
  21761. if test -r $f; then
  21762. apr_devrandom=$f
  21763. rand=1
  21764. break
  21765. fi
  21766. done
  21767. elif test "$apr_devrandom" != "no"; then
  21768. if test -r "$apr_devrandom"; then
  21769. rand="1"
  21770. else
  21771. as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
  21772. fi
  21773. fi
  21774. if test "$rand" = "1"; then
  21775. case $host in
  21776. *os390)
  21777. if test $os_version -lt 1700; then
  21778. rand="0"
  21779. why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
  21780. fi
  21781. ;;
  21782. esac
  21783. fi
  21784. if test "$rand" = "1"; then
  21785. cat >>confdefs.h <<_ACEOF
  21786. #define DEV_RANDOM "$apr_devrandom"
  21787. _ACEOF
  21788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
  21789. $as_echo "$apr_devrandom" >&6; }
  21790. fi
  21791. fi
  21792. if test "$rand" != "1"; then
  21793. case $host in
  21794. # we have built in support for OS/2
  21795. *-os2*)
  21796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
  21797. $as_echo "Using OS/2 builtin random" >&6; }
  21798. rand="1"
  21799. ;;
  21800. *)
  21801. if test "$rand" != "1"; then
  21802. if test "$ac_cv_lib_truerand_main" = "yes"; then
  21803. $as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
  21804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
  21805. $as_echo "truerand" >&6; }
  21806. rand="1"
  21807. else
  21808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
  21809. $as_echo "not found$why_no_rand" >&6; }
  21810. rand="0"
  21811. fi
  21812. fi
  21813. ;;
  21814. esac
  21815. fi
  21816. echo "${nl}Checking for File Info Support..."
  21817. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
  21818. #ifdef HAVE_SYS_TYPES_H
  21819. #include <sys/types.h>
  21820. #endif
  21821. #ifdef HAVE_SYS_STAT_H
  21822. #include <sys/stat.h>
  21823. #endif
  21824. #ifdef HAVE_UNISTD_H
  21825. #include <unistd.h>
  21826. #endif
  21827. "
  21828. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  21829. cat >>confdefs.h <<_ACEOF
  21830. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  21831. _ACEOF
  21832. fi
  21833. ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
  21834. #ifdef HAVE_SYS_TYPES_H
  21835. #include <sys/types.h>
  21836. #endif
  21837. #ifdef HAVE_SYS_STAT_H
  21838. #include <sys/stat.h>
  21839. #endif
  21840. #ifdef HAVE_UNISTD_H
  21841. #include <unistd.h>
  21842. #endif
  21843. "
  21844. if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
  21845. cat >>confdefs.h <<_ACEOF
  21846. #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
  21847. _ACEOF
  21848. fi
  21849. ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
  21850. #ifdef HAVE_SYS_TYPES_H
  21851. #include <sys/types.h>
  21852. #endif
  21853. #ifdef HAVE_SYS_STAT_H
  21854. #include <sys/stat.h>
  21855. #endif
  21856. #ifdef HAVE_UNISTD_H
  21857. #include <unistd.h>
  21858. #endif
  21859. "
  21860. if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
  21861. cat >>confdefs.h <<_ACEOF
  21862. #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
  21863. _ACEOF
  21864. fi
  21865. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
  21866. #ifdef HAVE_SYS_TYPES_H
  21867. #include <sys/types.h>
  21868. #endif
  21869. #ifdef HAVE_SYS_STAT_H
  21870. #include <sys/stat.h>
  21871. #endif
  21872. #ifdef HAVE_UNISTD_H
  21873. #include <unistd.h>
  21874. #endif
  21875. "
  21876. if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
  21877. cat >>confdefs.h <<_ACEOF
  21878. #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
  21879. _ACEOF
  21880. fi
  21881. ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
  21882. #ifdef HAVE_SYS_TYPES_H
  21883. #include <sys/types.h>
  21884. #endif
  21885. #ifdef HAVE_SYS_STAT_H
  21886. #include <sys/stat.h>
  21887. #endif
  21888. #ifdef HAVE_UNISTD_H
  21889. #include <unistd.h>
  21890. #endif
  21891. "
  21892. if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
  21893. cat >>confdefs.h <<_ACEOF
  21894. #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
  21895. _ACEOF
  21896. fi
  21897. ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
  21898. #ifdef HAVE_SYS_TYPES_H
  21899. #include <sys/types.h>
  21900. #endif
  21901. #ifdef HAVE_SYS_STAT_H
  21902. #include <sys/stat.h>
  21903. #endif
  21904. #ifdef HAVE_UNISTD_H
  21905. #include <unistd.h>
  21906. #endif
  21907. "
  21908. if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
  21909. cat >>confdefs.h <<_ACEOF
  21910. #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
  21911. _ACEOF
  21912. fi
  21913. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
  21914. #ifdef HAVE_SYS_TYPES_H
  21915. #include <sys/types.h>
  21916. #endif
  21917. #ifdef HAVE_SYS_STAT_H
  21918. #include <sys/stat.h>
  21919. #endif
  21920. #ifdef HAVE_UNISTD_H
  21921. #include <unistd.h>
  21922. #endif
  21923. "
  21924. if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
  21925. cat >>confdefs.h <<_ACEOF
  21926. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  21927. _ACEOF
  21928. fi
  21929. ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
  21930. #ifdef HAVE_SYS_TYPES_H
  21931. #include <sys/types.h>
  21932. #endif
  21933. #ifdef HAVE_SYS_STAT_H
  21934. #include <sys/stat.h>
  21935. #endif
  21936. #ifdef HAVE_UNISTD_H
  21937. #include <unistd.h>
  21938. #endif
  21939. "
  21940. if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
  21941. cat >>confdefs.h <<_ACEOF
  21942. #define HAVE_STRUCT_STAT_ST_ATIME_N 1
  21943. _ACEOF
  21944. fi
  21945. ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
  21946. #ifdef HAVE_SYS_TYPES_H
  21947. #include <sys/types.h>
  21948. #endif
  21949. #ifdef HAVE_SYS_STAT_H
  21950. #include <sys/stat.h>
  21951. #endif
  21952. #ifdef HAVE_UNISTD_H
  21953. #include <unistd.h>
  21954. #endif
  21955. "
  21956. if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
  21957. cat >>confdefs.h <<_ACEOF
  21958. #define HAVE_STRUCT_STAT_ST_CTIME_N 1
  21959. _ACEOF
  21960. fi
  21961. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
  21962. #ifdef HAVE_SYS_TYPES_H
  21963. #include <sys/types.h>
  21964. #endif
  21965. #ifdef HAVE_SYS_STAT_H
  21966. #include <sys/stat.h>
  21967. #endif
  21968. #ifdef HAVE_UNISTD_H
  21969. #include <unistd.h>
  21970. #endif
  21971. "
  21972. if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
  21973. cat >>confdefs.h <<_ACEOF
  21974. #define HAVE_STRUCT_STAT_ST_MTIME_N 1
  21975. _ACEOF
  21976. fi
  21977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
  21978. $as_echo_n "checking for inode member of struct dirent... " >&6; }
  21979. if ${apr_cv_dirent_inode+:} false; then :
  21980. $as_echo_n "(cached) " >&6
  21981. else
  21982. apr_cv_dirent_inode=no
  21983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21984. /* end confdefs.h. */
  21985. #include <sys/types.h>
  21986. #include <dirent.h>
  21987. int
  21988. main ()
  21989. {
  21990. #ifdef d_ino
  21991. #undef d_ino
  21992. #endif
  21993. struct dirent de; de.d_fileno;
  21994. ;
  21995. return 0;
  21996. }
  21997. _ACEOF
  21998. if ac_fn_c_try_compile "$LINENO"; then :
  21999. apr_cv_dirent_inode=d_fileno
  22000. fi
  22001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22002. if test "$apr_cv_dirent_inode" = "no"; then
  22003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22004. /* end confdefs.h. */
  22005. #include <sys/types.h>
  22006. #include <dirent.h>
  22007. int
  22008. main ()
  22009. {
  22010. #ifdef d_fileno
  22011. #undef d_fileno
  22012. #endif
  22013. struct dirent de; de.d_ino;
  22014. ;
  22015. return 0;
  22016. }
  22017. _ACEOF
  22018. if ac_fn_c_try_compile "$LINENO"; then :
  22019. apr_cv_dirent_inode=d_ino
  22020. fi
  22021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22022. fi
  22023. fi
  22024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
  22025. $as_echo "$apr_cv_dirent_inode" >&6; }
  22026. if test "$apr_cv_dirent_inode" != "no"; then
  22027. cat >>confdefs.h <<_ACEOF
  22028. #define DIRENT_INODE $apr_cv_dirent_inode
  22029. _ACEOF
  22030. fi
  22031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
  22032. $as_echo_n "checking for file type member of struct dirent... " >&6; }
  22033. if ${apr_cv_dirent_type+:} false; then :
  22034. $as_echo_n "(cached) " >&6
  22035. else
  22036. apr_cv_dirent_type=no
  22037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22038. /* end confdefs.h. */
  22039. #include <sys/types.h>
  22040. #include <dirent.h>
  22041. int
  22042. main ()
  22043. {
  22044. struct dirent de; de.d_type = DT_REG;
  22045. ;
  22046. return 0;
  22047. }
  22048. _ACEOF
  22049. if ac_fn_c_try_compile "$LINENO"; then :
  22050. apr_cv_dirent_type=d_type
  22051. fi
  22052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22053. fi
  22054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
  22055. $as_echo "$apr_cv_dirent_type" >&6; }
  22056. if test "$apr_cv_dirent_type" != "no"; then
  22057. cat >>confdefs.h <<_ACEOF
  22058. #define DIRENT_TYPE $apr_cv_dirent_type
  22059. _ACEOF
  22060. fi
  22061. echo "${nl}Checking for OS UUID Support..."
  22062. for ac_header in uuid.h uuid/uuid.h sys/uuid.h
  22063. do :
  22064. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22065. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  22066. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22067. cat >>confdefs.h <<_ACEOF
  22068. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22069. _ACEOF
  22070. break
  22071. fi
  22072. done
  22073. apr_revert_save_LIBS=$LIBS
  22074. # Prefer the flavor(s) that live in libc;
  22075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
  22076. $as_echo_n "checking for library containing uuid_create... " >&6; }
  22077. if ${ac_cv_search_uuid_create+:} false; then :
  22078. $as_echo_n "(cached) " >&6
  22079. else
  22080. ac_func_search_save_LIBS=$LIBS
  22081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22082. /* end confdefs.h. */
  22083. /* Override any GCC internal prototype to avoid an error.
  22084. Use char because int might match the return type of a GCC
  22085. builtin and then its argument prototype would still apply. */
  22086. #ifdef __cplusplus
  22087. extern "C"
  22088. #endif
  22089. char uuid_create ();
  22090. int
  22091. main ()
  22092. {
  22093. return uuid_create ();
  22094. ;
  22095. return 0;
  22096. }
  22097. _ACEOF
  22098. for ac_lib in '' uuid; do
  22099. if test -z "$ac_lib"; then
  22100. ac_res="none required"
  22101. else
  22102. ac_res=-l$ac_lib
  22103. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  22104. fi
  22105. if ac_fn_c_try_link "$LINENO"; then :
  22106. ac_cv_search_uuid_create=$ac_res
  22107. fi
  22108. rm -f core conftest.err conftest.$ac_objext \
  22109. conftest$ac_exeext
  22110. if ${ac_cv_search_uuid_create+:} false; then :
  22111. break
  22112. fi
  22113. done
  22114. if ${ac_cv_search_uuid_create+:} false; then :
  22115. else
  22116. ac_cv_search_uuid_create=no
  22117. fi
  22118. rm conftest.$ac_ext
  22119. LIBS=$ac_func_search_save_LIBS
  22120. fi
  22121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
  22122. $as_echo "$ac_cv_search_uuid_create" >&6; }
  22123. ac_res=$ac_cv_search_uuid_create
  22124. if test "$ac_res" != no; then :
  22125. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  22126. fi
  22127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
  22128. $as_echo_n "checking for library containing uuid_generate... " >&6; }
  22129. if ${ac_cv_search_uuid_generate+:} false; then :
  22130. $as_echo_n "(cached) " >&6
  22131. else
  22132. ac_func_search_save_LIBS=$LIBS
  22133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22134. /* end confdefs.h. */
  22135. /* Override any GCC internal prototype to avoid an error.
  22136. Use char because int might match the return type of a GCC
  22137. builtin and then its argument prototype would still apply. */
  22138. #ifdef __cplusplus
  22139. extern "C"
  22140. #endif
  22141. char uuid_generate ();
  22142. int
  22143. main ()
  22144. {
  22145. return uuid_generate ();
  22146. ;
  22147. return 0;
  22148. }
  22149. _ACEOF
  22150. for ac_lib in '' uuid; do
  22151. if test -z "$ac_lib"; then
  22152. ac_res="none required"
  22153. else
  22154. ac_res=-l$ac_lib
  22155. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  22156. fi
  22157. if ac_fn_c_try_link "$LINENO"; then :
  22158. ac_cv_search_uuid_generate=$ac_res
  22159. fi
  22160. rm -f core conftest.err conftest.$ac_objext \
  22161. conftest$ac_exeext
  22162. if ${ac_cv_search_uuid_generate+:} false; then :
  22163. break
  22164. fi
  22165. done
  22166. if ${ac_cv_search_uuid_generate+:} false; then :
  22167. else
  22168. ac_cv_search_uuid_generate=no
  22169. fi
  22170. rm conftest.$ac_ext
  22171. LIBS=$ac_func_search_save_LIBS
  22172. fi
  22173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
  22174. $as_echo "$ac_cv_search_uuid_generate" >&6; }
  22175. ac_res=$ac_cv_search_uuid_generate
  22176. if test "$ac_res" != no; then :
  22177. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  22178. fi
  22179. if test "$ac_cv_search_uuid_create" = "none required" -o \
  22180. "$ac_cv_search_uuid_generate" = "none required"; then
  22181. LIBS=$apr_revert_save_LIBS
  22182. fi
  22183. for ac_func in uuid_create uuid_generate
  22184. do :
  22185. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22186. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  22187. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  22188. cat >>confdefs.h <<_ACEOF
  22189. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22190. _ACEOF
  22191. fi
  22192. done
  22193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
  22194. $as_echo_n "checking for os uuid usability... " >&6; }
  22195. if ${apr_cv_osuuid+:} false; then :
  22196. $as_echo_n "(cached) " >&6
  22197. else
  22198. # Ensure this test closely mirrors misc/unix/rand.c!
  22199. uuid_includes="
  22200. #if defined(HAVE_SYS_TYPES_H)
  22201. #include <sys/types.h>
  22202. #endif
  22203. #if defined(HAVE_UNISTD_H)
  22204. #include <unistd.h>
  22205. #endif
  22206. #if defined(HAVE_UUID_H)
  22207. #include <uuid.h>
  22208. #elif defined(HAVE_UUID_UUID_H)
  22209. #include <uuid/uuid.h>
  22210. #elif defined(HAVE_SYS_UUID_H)
  22211. #include <sys/uuid.h>
  22212. #endif
  22213. "
  22214. apr_cv_osuuid=no
  22215. if test $ac_cv_func_uuid_create = yes; then
  22216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22217. /* end confdefs.h. */
  22218. $uuid_includes
  22219. int
  22220. main ()
  22221. {
  22222. uuid_t g;
  22223. uint32_t s;
  22224. uuid_create(&g, &s);
  22225. if (s == uuid_s_ok) s = 0;
  22226. ;
  22227. return 0;
  22228. }
  22229. _ACEOF
  22230. if ac_fn_c_try_link "$LINENO"; then :
  22231. apr_cv_osuuid=yes
  22232. else
  22233. apr_cv_func_uuid_create=no
  22234. fi
  22235. rm -f core conftest.err conftest.$ac_objext \
  22236. conftest$ac_exeext conftest.$ac_ext
  22237. fi
  22238. if test $ac_cv_func_uuid_generate = yes; then
  22239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22240. /* end confdefs.h. */
  22241. $uuid_includes
  22242. int
  22243. main ()
  22244. {
  22245. uuid_t g;
  22246. uuid_generate(g);
  22247. ;
  22248. return 0;
  22249. }
  22250. _ACEOF
  22251. if ac_fn_c_try_link "$LINENO"; then :
  22252. apr_cv_osuuid=yes
  22253. else
  22254. apr_cv_func_uuid_generate=no
  22255. fi
  22256. rm -f core conftest.err conftest.$ac_objext \
  22257. conftest$ac_exeext conftest.$ac_ext
  22258. fi
  22259. fi
  22260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
  22261. $as_echo "$apr_cv_osuuid" >&6; }
  22262. if test $apr_cv_osuuid = yes; then
  22263. osuuid="1"
  22264. else
  22265. osuuid="0"
  22266. LIBS=$apr_revert_save_LIBS
  22267. fi
  22268. echo "${nl}Checking for Time Support..."
  22269. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
  22270. #include <sys/types.h>
  22271. #include <time.h>
  22272. "
  22273. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  22274. cat >>confdefs.h <<_ACEOF
  22275. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  22276. _ACEOF
  22277. fi
  22278. ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
  22279. #include <sys/types.h>
  22280. #include <time.h>
  22281. "
  22282. if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
  22283. cat >>confdefs.h <<_ACEOF
  22284. #define HAVE_STRUCT_TM___TM_GMTOFF 1
  22285. _ACEOF
  22286. fi
  22287. echo "${nl}Checking for Networking support..."
  22288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
  22289. $as_echo_n "checking for type in_addr... " >&6; }
  22290. if ${ac_cv_type_in_addr+:} false; then :
  22291. $as_echo_n "(cached) " >&6
  22292. else
  22293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22294. /* end confdefs.h. */
  22295. #ifdef HAVE_SYS_TYPES_H
  22296. #include <sys/types.h>
  22297. #endif
  22298. #ifdef HAVE_NETINET_IN_H
  22299. #include <netinet/in.h>
  22300. #endif
  22301. #ifdef HAVE_WINSOCK2_H
  22302. #include <winsock2.h>
  22303. #endif
  22304. int
  22305. main ()
  22306. {
  22307. struct in_addr arg;
  22308. arg.s_addr = htonl(INADDR_ANY);
  22309. ;
  22310. return 0;
  22311. }
  22312. _ACEOF
  22313. if ac_fn_c_try_compile "$LINENO"; then :
  22314. ac_cv_type_in_addr="yes"
  22315. else
  22316. ac_cv_type_in_addr="no"
  22317. fi
  22318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22319. fi
  22320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
  22321. $as_echo "$ac_cv_type_in_addr" >&6; }
  22322. if test "$ac_cv_type_in_addr" = "yes"; then
  22323. have_in_addr="1"
  22324. else
  22325. have_in_addr="0"
  22326. fi
  22327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
  22328. $as_echo_n "checking if fd == socket on this platform... " >&6; }
  22329. if test "x$file_as_socket" != "x0" ; then
  22330. file_as_socket="1";
  22331. echo "yes"
  22332. else
  22333. echo "no"
  22334. fi
  22335. if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
  22336. $as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
  22337. fi
  22338. # Check the types only if we have gethostbyname_r
  22339. if test "$ac_cv_func_gethostbyname_r" = "yes"; then
  22340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
  22341. $as_echo_n "checking style of gethostbyname_r routine... " >&6; }
  22342. if ${ac_cv_gethostbyname_r_style+:} false; then :
  22343. $as_echo_n "(cached) " >&6
  22344. else
  22345. apr_save_CFLAGS=$CFLAGS
  22346. CFLAGS="$CFLAGS $CFLAGS_WARN"
  22347. if test "$ac_cv_c_compiler_gnu" = "yes"; then
  22348. CFLAGS="$CFLAGS -Werror"
  22349. fi
  22350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22351. /* end confdefs.h. */
  22352. #include "confdefs.h"
  22353. #ifdef HAVE_SYS_TYPES_H
  22354. #include <sys/types.h>
  22355. #endif
  22356. #ifdef HAVE_NETINET_IN_H
  22357. #include <netinet/in.h>
  22358. #endif
  22359. #ifdef HAVE_ARPA_INET_H
  22360. #include <arpa/inet.h>
  22361. #endif
  22362. #ifdef HAVE_NETDB_H
  22363. #include <netdb.h>
  22364. #endif
  22365. #ifdef HAVE_STDLIB_H
  22366. #include <stdlib.h>
  22367. #endif
  22368. int main(int argc, const char *const *argv) {
  22369. int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
  22370. (char *) 0, 0, (struct hostent **) 0, &tmp);
  22371. /* use tmp to suppress the warning */
  22372. tmp=0;
  22373. return 0; }
  22374. _ACEOF
  22375. if ac_fn_c_try_compile "$LINENO"; then :
  22376. ac_cv_gethostbyname_r_style=glibc2
  22377. else
  22378. ac_cv_gethostbyname_r_style=none
  22379. fi
  22380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22381. CFLAGS=$apr_save_CFLAGS
  22382. fi
  22383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
  22384. $as_echo "$ac_cv_gethostbyname_r_style" >&6; }
  22385. if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
  22386. $as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
  22387. fi
  22388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
  22389. $as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
  22390. if ${ac_cv_gethostbyname_r_arg+:} false; then :
  22391. $as_echo_n "(cached) " >&6
  22392. else
  22393. apr_save_CFLAGS=$CFLAGS
  22394. CFLAGS="$CFLAGS $CFLAGS_WARN"
  22395. if test "$ac_cv_c_compiler_gnu" = "yes"; then
  22396. CFLAGS="$CFLAGS -Werror"
  22397. fi
  22398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22399. /* end confdefs.h. */
  22400. #include "confdefs.h"
  22401. #ifdef HAVE_SYS_TYPES_H
  22402. #include <sys/types.h>
  22403. #endif
  22404. #ifdef HAVE_NETINET_IN_H
  22405. #include <netinet/in.h>
  22406. #endif
  22407. #ifdef HAVE_ARPA_INET_H
  22408. #include <arpa/inet.h>
  22409. #endif
  22410. #ifdef HAVE_NETDB_H
  22411. #include <netdb.h>
  22412. #endif
  22413. #ifdef HAVE_STDLIB_H
  22414. #include <stdlib.h>
  22415. #endif
  22416. int main(int argc, const char *const *argv) {
  22417. int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
  22418. (struct hostent_data *) 0);
  22419. /* use tmp to suppress the warning */
  22420. tmp=0;
  22421. return 0; }
  22422. _ACEOF
  22423. if ac_fn_c_try_compile "$LINENO"; then :
  22424. ac_cv_gethostbyname_r_arg=hostent_data
  22425. else
  22426. ac_cv_gethostbyname_r_arg=char
  22427. fi
  22428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22429. CFLAGS=$apr_save_CFLAGS
  22430. fi
  22431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
  22432. $as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
  22433. if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
  22434. $as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
  22435. fi
  22436. fi
  22437. # Check the types only if we have getservbyname_r
  22438. if test "$ac_cv_func_getservbyname_r" = "yes"; then
  22439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
  22440. $as_echo_n "checking style of getservbyname_r routine... " >&6; }
  22441. if ${ac_cv_getservbyname_r_style+:} false; then :
  22442. $as_echo_n "(cached) " >&6
  22443. else
  22444. apr_save_CFLAGS=$CFLAGS
  22445. CFLAGS="$CFLAGS $CFLAGS_WARN"
  22446. if test "$ac_cv_c_compiler_gnu" = "yes"; then
  22447. CFLAGS="$CFLAGS -Werror"
  22448. fi
  22449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22450. /* end confdefs.h. */
  22451. #include "confdefs.h"
  22452. #ifdef HAVE_SYS_TYPES_H
  22453. #include <sys/types.h>
  22454. #endif
  22455. #ifdef HAVE_NETINET_IN_H
  22456. #include <netinet/in.h>
  22457. #endif
  22458. #ifdef HAVE_ARPA_INET_H
  22459. #include <arpa/inet.h>
  22460. #endif
  22461. #ifdef HAVE_NETDB_H
  22462. #include <netdb.h>
  22463. #endif
  22464. #ifdef HAVE_STDLIB_H
  22465. #include <stdlib.h>
  22466. #endif
  22467. int main(int argc, const char *const *argv) {
  22468. int tmp = getservbyname_r((const char *) 0, (const char *) 0,
  22469. (struct servent *) 0, (char *) 0, 0,
  22470. (struct servent **) 0);
  22471. /* use tmp to suppress the warning */
  22472. tmp=0;
  22473. return 0; }
  22474. _ACEOF
  22475. if ac_fn_c_try_compile "$LINENO"; then :
  22476. ac_cv_getservbyname_r_style=glibc2
  22477. else
  22478. ac_cv_getservbyname_r_style=none
  22479. fi
  22480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22481. CFLAGS=$apr_save_CFLAGS
  22482. if test "$ac_cv_getservbyname_r_style" = "none"; then
  22483. apr_save_CFLAGS=$CFLAGS
  22484. CFLAGS="$CFLAGS $CFLAGS_WARN"
  22485. if test "$ac_cv_c_compiler_gnu" = "yes"; then
  22486. CFLAGS="$CFLAGS -Werror"
  22487. fi
  22488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22489. /* end confdefs.h. */
  22490. #include "confdefs.h"
  22491. #ifdef HAVE_SYS_TYPES_H
  22492. #include <sys/types.h>
  22493. #endif
  22494. #ifdef HAVE_NETINET_IN_H
  22495. #include <netinet/in.h>
  22496. #endif
  22497. #ifdef HAVE_ARPA_INET_H
  22498. #include <arpa/inet.h>
  22499. #endif
  22500. #ifdef HAVE_NETDB_H
  22501. #include <netdb.h>
  22502. #endif
  22503. #ifdef HAVE_STDLIB_H
  22504. #include <stdlib.h>
  22505. #endif
  22506. int main(int argc, const char *const *argv) {
  22507. struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
  22508. (struct servent *) 0, (char *) 0, 0);
  22509. /* use tmp to suppress the warning */
  22510. tmp=NULL;
  22511. return 0; }
  22512. _ACEOF
  22513. if ac_fn_c_try_compile "$LINENO"; then :
  22514. ac_cv_getservbyname_r_style=solaris
  22515. else
  22516. ac_cv_getservbyname_r_style=none
  22517. fi
  22518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22519. CFLAGS=$apr_save_CFLAGS
  22520. fi
  22521. if test "$ac_cv_getservbyname_r_style" = "none"; then
  22522. apr_save_CFLAGS=$CFLAGS
  22523. CFLAGS="$CFLAGS $CFLAGS_WARN"
  22524. if test "$ac_cv_c_compiler_gnu" = "yes"; then
  22525. CFLAGS="$CFLAGS -Werror"
  22526. fi
  22527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22528. /* end confdefs.h. */
  22529. #include "confdefs.h"
  22530. #ifdef HAVE_SYS_TYPES_H
  22531. #include <sys/types.h>
  22532. #endif
  22533. #ifdef HAVE_NETINET_IN_H
  22534. #include <netinet/in.h>
  22535. #endif
  22536. #ifdef HAVE_ARPA_INET_H
  22537. #include <arpa/inet.h>
  22538. #endif
  22539. #ifdef HAVE_NETDB_H
  22540. #include <netdb.h>
  22541. #endif
  22542. #ifdef HAVE_STDLIB_H
  22543. #include <stdlib.h>
  22544. #endif
  22545. int main(int argc, const char *const *argv) {
  22546. int tmp = getservbyname_r((const char *) 0, (const char *) 0,
  22547. (struct servent *) 0, (struct servent_data *) 0);
  22548. /* use tmp to suppress the warning */
  22549. tmp=0;
  22550. return 0; }
  22551. _ACEOF
  22552. if ac_fn_c_try_compile "$LINENO"; then :
  22553. ac_cv_getservbyname_r_style=osf1
  22554. else
  22555. ac_cv_getservbyname_r_style=none
  22556. fi
  22557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22558. CFLAGS=$apr_save_CFLAGS
  22559. fi
  22560. fi
  22561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
  22562. $as_echo "$ac_cv_getservbyname_r_style" >&6; }
  22563. if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
  22564. $as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
  22565. elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
  22566. $as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
  22567. elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
  22568. $as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
  22569. fi
  22570. fi
  22571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
  22572. $as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
  22573. if ${ac_cv_tcp_nodelay_inherited+:} false; then :
  22574. $as_echo_n "(cached) " >&6
  22575. else
  22576. if test "$cross_compiling" = yes; then :
  22577. ac_cv_tcp_nodelay_inherited="yes"
  22578. else
  22579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22580. /* end confdefs.h. */
  22581. #include <stdio.h>
  22582. #ifdef HAVE_SYS_TYPES_H
  22583. #include <sys/types.h>
  22584. #endif
  22585. #ifdef HAVE_SYS_SOCKET_H
  22586. #include <sys/socket.h>
  22587. #endif
  22588. #ifdef HAVE_NETINET_IN_H
  22589. #include <netinet/in.h>
  22590. #endif
  22591. #ifdef HAVE_NETINET_TCP_H
  22592. #include <netinet/tcp.h>
  22593. #endif
  22594. #ifndef HAVE_SOCKLEN_T
  22595. typedef int socklen_t;
  22596. #endif
  22597. int main(void) {
  22598. int listen_s, connected_s, client_s;
  22599. int listen_port, rc;
  22600. struct sockaddr_in sa;
  22601. socklen_t sa_len;
  22602. socklen_t option_len;
  22603. int option;
  22604. listen_s = socket(AF_INET, SOCK_STREAM, 0);
  22605. if (listen_s < 0) {
  22606. perror("socket");
  22607. exit(1);
  22608. }
  22609. option = 1;
  22610. rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
  22611. if (rc < 0) {
  22612. perror("setsockopt TCP_NODELAY");
  22613. exit(1);
  22614. }
  22615. memset(&sa, 0, sizeof sa);
  22616. sa.sin_family = AF_INET;
  22617. #ifdef BEOS
  22618. sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
  22619. #endif
  22620. /* leave port 0 to get ephemeral */
  22621. rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
  22622. if (rc < 0) {
  22623. perror("bind for ephemeral port");
  22624. exit(1);
  22625. }
  22626. /* find ephemeral port */
  22627. sa_len = sizeof(sa);
  22628. rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
  22629. if (rc < 0) {
  22630. perror("getsockname");
  22631. exit(1);
  22632. }
  22633. listen_port = sa.sin_port;
  22634. rc = listen(listen_s, 5);
  22635. if (rc < 0) {
  22636. perror("listen");
  22637. exit(1);
  22638. }
  22639. client_s = socket(AF_INET, SOCK_STREAM, 0);
  22640. if (client_s < 0) {
  22641. perror("socket");
  22642. exit(1);
  22643. }
  22644. memset(&sa, 0, sizeof sa);
  22645. sa.sin_family = AF_INET;
  22646. sa.sin_port = listen_port;
  22647. #ifdef BEOS
  22648. sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
  22649. #endif
  22650. /* leave sin_addr all zeros to use loopback */
  22651. rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
  22652. if (rc < 0) {
  22653. perror("connect");
  22654. exit(1);
  22655. }
  22656. sa_len = sizeof sa;
  22657. connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
  22658. if (connected_s < 0) {
  22659. perror("accept");
  22660. exit(1);
  22661. }
  22662. option_len = sizeof option;
  22663. rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
  22664. if (rc < 0) {
  22665. perror("getsockopt");
  22666. exit(1);
  22667. }
  22668. if (!option) {
  22669. fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
  22670. exit(1);
  22671. }
  22672. return 0;
  22673. }
  22674. _ACEOF
  22675. if ac_fn_c_try_run "$LINENO"; then :
  22676. ac_cv_tcp_nodelay_inherited="yes"
  22677. else
  22678. ac_cv_tcp_nodelay_inherited="no"
  22679. fi
  22680. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  22681. conftest.$ac_objext conftest.beam conftest.$ac_ext
  22682. fi
  22683. fi
  22684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
  22685. $as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
  22686. if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
  22687. tcp_nodelay_inherited=1
  22688. else
  22689. tcp_nodelay_inherited=0
  22690. fi
  22691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
  22692. $as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
  22693. if ${ac_cv_o_nonblock_inherited+:} false; then :
  22694. $as_echo_n "(cached) " >&6
  22695. else
  22696. if test "$cross_compiling" = yes; then :
  22697. ac_cv_o_nonblock_inherited="yes"
  22698. else
  22699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22700. /* end confdefs.h. */
  22701. #include <stdio.h>
  22702. #ifdef HAVE_SYS_TYPES_H
  22703. #include <sys/types.h>
  22704. #endif
  22705. #ifdef HAVE_SYS_SOCKET_H
  22706. #include <sys/socket.h>
  22707. #endif
  22708. #ifdef HAVE_NETINET_IN_H
  22709. #include <netinet/in.h>
  22710. #endif
  22711. #ifdef HAVE_NETINET_TCP_H
  22712. #include <netinet/tcp.h>
  22713. #endif
  22714. #ifndef HAVE_SOCKLEN_T
  22715. typedef int socklen_t;
  22716. #endif
  22717. #ifdef HAVE_FCNTL_H
  22718. #include <fcntl.h>
  22719. #endif
  22720. int main(void) {
  22721. int listen_s, connected_s, client_s;
  22722. int listen_port, rc;
  22723. struct sockaddr_in sa;
  22724. socklen_t sa_len;
  22725. listen_s = socket(AF_INET, SOCK_STREAM, 0);
  22726. if (listen_s < 0) {
  22727. perror("socket");
  22728. exit(1);
  22729. }
  22730. memset(&sa, 0, sizeof sa);
  22731. sa.sin_family = AF_INET;
  22732. #ifdef BEOS
  22733. sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
  22734. #endif
  22735. /* leave port 0 to get ephemeral */
  22736. rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
  22737. if (rc < 0) {
  22738. perror("bind for ephemeral port");
  22739. exit(1);
  22740. }
  22741. /* find ephemeral port */
  22742. sa_len = sizeof(sa);
  22743. rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
  22744. if (rc < 0) {
  22745. perror("getsockname");
  22746. exit(1);
  22747. }
  22748. listen_port = sa.sin_port;
  22749. rc = listen(listen_s, 5);
  22750. if (rc < 0) {
  22751. perror("listen");
  22752. exit(1);
  22753. }
  22754. rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
  22755. if (rc < 0) {
  22756. perror("fcntl(F_SETFL)");
  22757. exit(1);
  22758. }
  22759. client_s = socket(AF_INET, SOCK_STREAM, 0);
  22760. if (client_s < 0) {
  22761. perror("socket");
  22762. exit(1);
  22763. }
  22764. memset(&sa, 0, sizeof sa);
  22765. sa.sin_family = AF_INET;
  22766. sa.sin_port = listen_port;
  22767. #ifdef BEOS
  22768. sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
  22769. #endif
  22770. /* leave sin_addr all zeros to use loopback */
  22771. rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
  22772. if (rc < 0) {
  22773. perror("connect");
  22774. exit(1);
  22775. }
  22776. sa_len = sizeof sa;
  22777. connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
  22778. if (connected_s < 0) {
  22779. perror("accept");
  22780. exit(1);
  22781. }
  22782. rc = fcntl(connected_s, F_GETFL, 0);
  22783. if (rc < 0) {
  22784. perror("fcntl(F_GETFL)");
  22785. exit(1);
  22786. }
  22787. if (!(rc & O_NONBLOCK)) {
  22788. fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
  22789. exit(1);
  22790. }
  22791. return 0;
  22792. }
  22793. _ACEOF
  22794. if ac_fn_c_try_run "$LINENO"; then :
  22795. ac_cv_o_nonblock_inherited="yes"
  22796. else
  22797. ac_cv_o_nonblock_inherited="no"
  22798. fi
  22799. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  22800. conftest.$ac_objext conftest.beam conftest.$ac_ext
  22801. fi
  22802. fi
  22803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
  22804. $as_echo "$ac_cv_o_nonblock_inherited" >&6; }
  22805. if test "$ac_cv_o_nonblock_inherited" = "yes"; then
  22806. o_nonblock_inherited=1
  22807. else
  22808. o_nonblock_inherited=0
  22809. fi
  22810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
  22811. $as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
  22812. if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
  22813. $as_echo_n "(cached) " >&6
  22814. else
  22815. if test "$cross_compiling" = yes; then :
  22816. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22817. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22818. as_fn_error $? "cannot run test program while cross compiling
  22819. See \`config.log' for more details" "$LINENO" 5; }
  22820. else
  22821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22822. /* end confdefs.h. */
  22823. #ifdef HAVE_SYS_TYPES_H
  22824. #include <sys/types.h>
  22825. #endif
  22826. #ifdef HAVE_SYS_SOCKET_H
  22827. #include <sys/socket.h>
  22828. #endif
  22829. #ifdef HAVE_NETINET_IN_H
  22830. #include <netinet/in.h>
  22831. #endif
  22832. #ifdef HAVE_NETINET_TCP_H
  22833. #include <netinet/tcp.h>
  22834. #endif
  22835. #include <stdio.h>
  22836. #include <stdlib.h>
  22837. int
  22838. main ()
  22839. {
  22840. int fd, flag, rc;
  22841. fd = socket(AF_INET, SOCK_STREAM, 0);
  22842. if (fd < 0) {
  22843. exit(1);
  22844. }
  22845. flag = 1;
  22846. rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
  22847. if (rc < 0) {
  22848. perror("setsockopt TCP_NODELAY");
  22849. exit(2);
  22850. }
  22851. flag = 1;
  22852. rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
  22853. if (rc < 0) {
  22854. perror("setsockopt TCP_CORK");
  22855. exit(3);
  22856. }
  22857. exit(0);
  22858. ;
  22859. return 0;
  22860. }
  22861. _ACEOF
  22862. if ac_fn_c_try_run "$LINENO"; then :
  22863. apr_cv_tcp_nodelay_with_cork=yes
  22864. else
  22865. apr_cv_tcp_nodelay_with_cork=no
  22866. fi
  22867. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  22868. conftest.$ac_objext conftest.beam conftest.$ac_ext
  22869. fi
  22870. fi
  22871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
  22872. $as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
  22873. if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
  22874. $as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
  22875. fi
  22876. # Look for a way of corking TCP...
  22877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
  22878. $as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
  22879. if ${ac_cv_define_TCP_CORK+:} false; then :
  22880. $as_echo_n "(cached) " >&6
  22881. else
  22882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22883. /* end confdefs.h. */
  22884. #include <netinet/tcp.h>
  22885. #ifdef TCP_CORK
  22886. YES_IS_DEFINED
  22887. #endif
  22888. _ACEOF
  22889. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22890. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  22891. ac_cv_define_TCP_CORK=yes
  22892. else
  22893. ac_cv_define_TCP_CORK=no
  22894. fi
  22895. rm -f conftest*
  22896. fi
  22897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
  22898. $as_echo "$ac_cv_define_TCP_CORK" >&6; }
  22899. if test "$ac_cv_define_TCP_CORK" = "yes"; then
  22900. $as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
  22901. fi
  22902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
  22903. $as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
  22904. if ${ac_cv_define_TCP_NOPUSH+:} false; then :
  22905. $as_echo_n "(cached) " >&6
  22906. else
  22907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22908. /* end confdefs.h. */
  22909. #include <netinet/tcp.h>
  22910. #ifdef TCP_NOPUSH
  22911. YES_IS_DEFINED
  22912. #endif
  22913. _ACEOF
  22914. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22915. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  22916. ac_cv_define_TCP_NOPUSH=yes
  22917. else
  22918. ac_cv_define_TCP_NOPUSH=no
  22919. fi
  22920. rm -f conftest*
  22921. fi
  22922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
  22923. $as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
  22924. if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
  22925. $as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
  22926. fi
  22927. apr_tcp_nopush_flag="0"
  22928. have_corkable_tcp="0"
  22929. if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
  22930. apr_tcp_nopush_flag="TCP_CORK"
  22931. have_corkable_tcp="1"
  22932. else
  22933. case $host in
  22934. *linux*)
  22935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22936. /* end confdefs.h. */
  22937. #include <linux/socket.h>
  22938. #ifdef TCP_CORK
  22939. yes
  22940. #endif
  22941. _ACEOF
  22942. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22943. $EGREP "yes" >/dev/null 2>&1; then :
  22944. apr_tcp_nopush_flag="3"
  22945. have_corkable_tcp="1"
  22946. fi
  22947. rm -f conftest*
  22948. ;;
  22949. *)
  22950. ;;
  22951. esac
  22952. fi
  22953. if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
  22954. apr_tcp_nopush_flag="TCP_NOPUSH"
  22955. have_corkable_tcp="1"
  22956. fi
  22957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
  22958. $as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
  22959. if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
  22960. $as_echo_n "(cached) " >&6
  22961. else
  22962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22963. /* end confdefs.h. */
  22964. #include <sys/socket.h>
  22965. #ifdef SO_ACCEPTFILTER
  22966. YES_IS_DEFINED
  22967. #endif
  22968. _ACEOF
  22969. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22970. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  22971. ac_cv_define_SO_ACCEPTFILTER=yes
  22972. else
  22973. ac_cv_define_SO_ACCEPTFILTER=no
  22974. fi
  22975. rm -f conftest*
  22976. fi
  22977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
  22978. $as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
  22979. if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
  22980. $as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
  22981. fi
  22982. if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
  22983. acceptfilter="1"
  22984. else
  22985. acceptfilter="0"
  22986. fi
  22987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
  22988. $as_echo_n "checking whether SCTP is supported... " >&6; }
  22989. if ${apr_cv_sctp+:} false; then :
  22990. $as_echo_n "(cached) " >&6
  22991. else
  22992. if test "$cross_compiling" = yes; then :
  22993. apr_cv_sctp=no
  22994. else
  22995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22996. /* end confdefs.h. */
  22997. #ifdef HAVE_SYS_TYPES_H
  22998. #include <sys/types.h>
  22999. #endif
  23000. #ifdef HAVE_SYS_SOCKET_H
  23001. #include <sys/socket.h>
  23002. #endif
  23003. #ifdef HAVE_NETINET_IN_H
  23004. #include <netinet/in.h>
  23005. #endif
  23006. #ifdef HAVE_NETINET_SCTP_H
  23007. #include <netinet/sctp.h>
  23008. #endif
  23009. #ifdef HAVE_NETINET_SCTP_UIO_H
  23010. #include <netinet/sctp_uio.h>
  23011. #endif
  23012. #include <stdlib.h>
  23013. int main(void) {
  23014. int s, opt = 1;
  23015. if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
  23016. exit(1);
  23017. if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
  23018. exit(2);
  23019. exit(0);
  23020. }
  23021. _ACEOF
  23022. if ac_fn_c_try_run "$LINENO"; then :
  23023. apr_cv_sctp=yes
  23024. else
  23025. apr_cv_sctp=no
  23026. fi
  23027. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23028. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23029. fi
  23030. fi
  23031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
  23032. $as_echo "$apr_cv_sctp" >&6; }
  23033. if test "$apr_cv_sctp" = "yes"; then
  23034. have_sctp=1
  23035. else
  23036. have_sctp=0
  23037. fi
  23038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
  23039. $as_echo_n "checking for struct ip_mreq... " >&6; }
  23040. if ${apr_cv_struct_ipmreq+:} false; then :
  23041. $as_echo_n "(cached) " >&6
  23042. else
  23043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23044. /* end confdefs.h. */
  23045. #include <sys/types.h>
  23046. #include <netinet/in.h>
  23047. int
  23048. main ()
  23049. {
  23050. struct ip_mreq mip;
  23051. mip.imr_interface.s_addr = INADDR_ANY;
  23052. ;
  23053. return 0;
  23054. }
  23055. _ACEOF
  23056. if ac_fn_c_try_compile "$LINENO"; then :
  23057. apr_cv_struct_ipmreq=yes
  23058. else
  23059. apr_cv_struct_ipmreq=no
  23060. fi
  23061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23062. fi
  23063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
  23064. $as_echo "$apr_cv_struct_ipmreq" >&6; }
  23065. if test $apr_cv_struct_ipmreq = yes; then
  23066. $as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
  23067. fi
  23068. for ac_func in set_h_errno
  23069. do :
  23070. ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
  23071. if test "x$ac_cv_func_set_h_errno" = xyes; then :
  23072. cat >>confdefs.h <<_ACEOF
  23073. #define HAVE_SET_H_ERRNO 1
  23074. _ACEOF
  23075. fi
  23076. done
  23077. echo "${nl}Checking for IPv6 Networking support..."
  23078. # Check whether --enable-ipv6 was given.
  23079. if test "${enable_ipv6+set}" = set; then :
  23080. enableval=$enable_ipv6; if test "$enableval" = "no"; then
  23081. user_disabled_ipv6=1
  23082. fi
  23083. else
  23084. user_disabled_ipv6=0
  23085. fi
  23086. case $host in
  23087. *)
  23088. broken_ipv6=0
  23089. esac
  23090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  23091. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  23092. if ${ac_cv_search_getaddrinfo+:} false; then :
  23093. $as_echo_n "(cached) " >&6
  23094. else
  23095. ac_func_search_save_LIBS=$LIBS
  23096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23097. /* end confdefs.h. */
  23098. /* Override any GCC internal prototype to avoid an error.
  23099. Use char because int might match the return type of a GCC
  23100. builtin and then its argument prototype would still apply. */
  23101. #ifdef __cplusplus
  23102. extern "C"
  23103. #endif
  23104. char getaddrinfo ();
  23105. int
  23106. main ()
  23107. {
  23108. return getaddrinfo ();
  23109. ;
  23110. return 0;
  23111. }
  23112. _ACEOF
  23113. for ac_lib in '' socket inet6; do
  23114. if test -z "$ac_lib"; then
  23115. ac_res="none required"
  23116. else
  23117. ac_res=-l$ac_lib
  23118. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23119. fi
  23120. if ac_fn_c_try_link "$LINENO"; then :
  23121. ac_cv_search_getaddrinfo=$ac_res
  23122. fi
  23123. rm -f core conftest.err conftest.$ac_objext \
  23124. conftest$ac_exeext
  23125. if ${ac_cv_search_getaddrinfo+:} false; then :
  23126. break
  23127. fi
  23128. done
  23129. if ${ac_cv_search_getaddrinfo+:} false; then :
  23130. else
  23131. ac_cv_search_getaddrinfo=no
  23132. fi
  23133. rm conftest.$ac_ext
  23134. LIBS=$ac_func_search_save_LIBS
  23135. fi
  23136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  23137. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  23138. ac_res=$ac_cv_search_getaddrinfo
  23139. if test "$ac_res" != no; then :
  23140. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  23141. fi
  23142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
  23143. $as_echo_n "checking for library containing gai_strerror... " >&6; }
  23144. if ${ac_cv_search_gai_strerror+:} false; then :
  23145. $as_echo_n "(cached) " >&6
  23146. else
  23147. ac_func_search_save_LIBS=$LIBS
  23148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23149. /* end confdefs.h. */
  23150. /* Override any GCC internal prototype to avoid an error.
  23151. Use char because int might match the return type of a GCC
  23152. builtin and then its argument prototype would still apply. */
  23153. #ifdef __cplusplus
  23154. extern "C"
  23155. #endif
  23156. char gai_strerror ();
  23157. int
  23158. main ()
  23159. {
  23160. return gai_strerror ();
  23161. ;
  23162. return 0;
  23163. }
  23164. _ACEOF
  23165. for ac_lib in '' socket inet6; do
  23166. if test -z "$ac_lib"; then
  23167. ac_res="none required"
  23168. else
  23169. ac_res=-l$ac_lib
  23170. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23171. fi
  23172. if ac_fn_c_try_link "$LINENO"; then :
  23173. ac_cv_search_gai_strerror=$ac_res
  23174. fi
  23175. rm -f core conftest.err conftest.$ac_objext \
  23176. conftest$ac_exeext
  23177. if ${ac_cv_search_gai_strerror+:} false; then :
  23178. break
  23179. fi
  23180. done
  23181. if ${ac_cv_search_gai_strerror+:} false; then :
  23182. else
  23183. ac_cv_search_gai_strerror=no
  23184. fi
  23185. rm conftest.$ac_ext
  23186. LIBS=$ac_func_search_save_LIBS
  23187. fi
  23188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
  23189. $as_echo "$ac_cv_search_gai_strerror" >&6; }
  23190. ac_res=$ac_cv_search_gai_strerror
  23191. if test "$ac_res" != no; then :
  23192. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  23193. fi
  23194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
  23195. $as_echo_n "checking for library containing getnameinfo... " >&6; }
  23196. if ${ac_cv_search_getnameinfo+:} false; then :
  23197. $as_echo_n "(cached) " >&6
  23198. else
  23199. ac_func_search_save_LIBS=$LIBS
  23200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23201. /* end confdefs.h. */
  23202. /* Override any GCC internal prototype to avoid an error.
  23203. Use char because int might match the return type of a GCC
  23204. builtin and then its argument prototype would still apply. */
  23205. #ifdef __cplusplus
  23206. extern "C"
  23207. #endif
  23208. char getnameinfo ();
  23209. int
  23210. main ()
  23211. {
  23212. return getnameinfo ();
  23213. ;
  23214. return 0;
  23215. }
  23216. _ACEOF
  23217. for ac_lib in '' socket inet6; do
  23218. if test -z "$ac_lib"; then
  23219. ac_res="none required"
  23220. else
  23221. ac_res=-l$ac_lib
  23222. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23223. fi
  23224. if ac_fn_c_try_link "$LINENO"; then :
  23225. ac_cv_search_getnameinfo=$ac_res
  23226. fi
  23227. rm -f core conftest.err conftest.$ac_objext \
  23228. conftest$ac_exeext
  23229. if ${ac_cv_search_getnameinfo+:} false; then :
  23230. break
  23231. fi
  23232. done
  23233. if ${ac_cv_search_getnameinfo+:} false; then :
  23234. else
  23235. ac_cv_search_getnameinfo=no
  23236. fi
  23237. rm conftest.$ac_ext
  23238. LIBS=$ac_func_search_save_LIBS
  23239. fi
  23240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
  23241. $as_echo "$ac_cv_search_getnameinfo" >&6; }
  23242. ac_res=$ac_cv_search_getnameinfo
  23243. if test "$ac_res" != no; then :
  23244. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  23245. fi
  23246. for ac_func in gai_strerror
  23247. do :
  23248. ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  23249. if test "x$ac_cv_func_gai_strerror" = xyes; then :
  23250. cat >>confdefs.h <<_ACEOF
  23251. #define HAVE_GAI_STRERROR 1
  23252. _ACEOF
  23253. fi
  23254. done
  23255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
  23256. $as_echo_n "checking for working getaddrinfo... " >&6; }
  23257. if ${ac_cv_working_getaddrinfo+:} false; then :
  23258. $as_echo_n "(cached) " >&6
  23259. else
  23260. if test "$cross_compiling" = yes; then :
  23261. ac_cv_working_getaddrinfo="yes"
  23262. else
  23263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23264. /* end confdefs.h. */
  23265. #ifdef HAVE_NETDB_H
  23266. #include <netdb.h>
  23267. #endif
  23268. #ifdef HAVE_STRING_H
  23269. #include <string.h>
  23270. #endif
  23271. #ifdef HAVE_SYS_TYPES_H
  23272. #include <sys/types.h>
  23273. #endif
  23274. #ifdef HAVE_SYS_SOCKET_H
  23275. #include <sys/socket.h>
  23276. #endif
  23277. void main(void) {
  23278. struct addrinfo hints, *ai;
  23279. int error;
  23280. memset(&hints, 0, sizeof(hints));
  23281. hints.ai_family = AF_UNSPEC;
  23282. hints.ai_socktype = SOCK_STREAM;
  23283. error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
  23284. if (error) {
  23285. exit(1);
  23286. }
  23287. if (ai->ai_addr->sa_family != AF_INET) {
  23288. exit(1);
  23289. }
  23290. exit(0);
  23291. }
  23292. _ACEOF
  23293. if ac_fn_c_try_run "$LINENO"; then :
  23294. ac_cv_working_getaddrinfo="yes"
  23295. else
  23296. ac_cv_working_getaddrinfo="no"
  23297. fi
  23298. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23299. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23300. fi
  23301. fi
  23302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
  23303. $as_echo "$ac_cv_working_getaddrinfo" >&6; }
  23304. if test "$ac_cv_working_getaddrinfo" = "yes"; then
  23305. if test "$ac_cv_func_gai_strerror" != "yes"; then
  23306. ac_cv_working_getaddrinfo="no"
  23307. else
  23308. $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
  23309. fi
  23310. fi
  23311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
  23312. $as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
  23313. if ${ac_cv_negative_eai+:} false; then :
  23314. $as_echo_n "(cached) " >&6
  23315. else
  23316. if test "$cross_compiling" = yes; then :
  23317. ac_cv_negative_eai="no"
  23318. else
  23319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23320. /* end confdefs.h. */
  23321. #ifdef HAVE_NETDB_H
  23322. #include <netdb.h>
  23323. #endif
  23324. void main(void) {
  23325. if (EAI_ADDRFAMILY < 0) {
  23326. exit(0);
  23327. }
  23328. exit(1);
  23329. }
  23330. _ACEOF
  23331. if ac_fn_c_try_run "$LINENO"; then :
  23332. ac_cv_negative_eai="yes"
  23333. else
  23334. ac_cv_negative_eai="no"
  23335. fi
  23336. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23337. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23338. fi
  23339. fi
  23340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
  23341. $as_echo "$ac_cv_negative_eai" >&6; }
  23342. if test "$ac_cv_negative_eai" = "yes"; then
  23343. $as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
  23344. fi
  23345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
  23346. $as_echo_n "checking for working getnameinfo... " >&6; }
  23347. if ${ac_cv_working_getnameinfo+:} false; then :
  23348. $as_echo_n "(cached) " >&6
  23349. else
  23350. if test "$cross_compiling" = yes; then :
  23351. ac_cv_working_getnameinfo="yes"
  23352. else
  23353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23354. /* end confdefs.h. */
  23355. #ifdef HAVE_NETDB_H
  23356. #include <netdb.h>
  23357. #endif
  23358. #ifdef HAVE_STRING_H
  23359. #include <string.h>
  23360. #endif
  23361. #ifdef HAVE_SYS_TYPES_H
  23362. #include <sys/types.h>
  23363. #endif
  23364. #ifdef HAVE_SYS_SOCKET_H
  23365. #include <sys/socket.h>
  23366. #endif
  23367. #ifdef HAVE_NETINET_IN_H
  23368. #include <netinet/in.h>
  23369. #endif
  23370. void main(void) {
  23371. struct sockaddr_in sa;
  23372. char hbuf[256];
  23373. int error;
  23374. sa.sin_family = AF_INET;
  23375. sa.sin_port = 0;
  23376. sa.sin_addr.s_addr = inet_addr("127.0.0.1");
  23377. #ifdef SIN6_LEN
  23378. sa.sin_len = sizeof(sa);
  23379. #endif
  23380. error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
  23381. hbuf, 256, NULL, 0,
  23382. NI_NUMERICHOST);
  23383. if (error) {
  23384. exit(1);
  23385. } else {
  23386. exit(0);
  23387. }
  23388. }
  23389. _ACEOF
  23390. if ac_fn_c_try_run "$LINENO"; then :
  23391. ac_cv_working_getnameinfo="yes"
  23392. else
  23393. ac_cv_working_getnameinfo="no"
  23394. fi
  23395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23396. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23397. fi
  23398. fi
  23399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
  23400. $as_echo "$ac_cv_working_getnameinfo" >&6; }
  23401. if test "$ac_cv_working_getnameinfo" = "yes"; then
  23402. $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
  23403. fi
  23404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
  23405. $as_echo_n "checking for sockaddr_in6... " >&6; }
  23406. if ${ac_cv_define_sockaddr_in6+:} false; then :
  23407. $as_echo_n "(cached) " >&6
  23408. else
  23409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23410. /* end confdefs.h. */
  23411. #ifdef HAVE_SYS_TYPES_H
  23412. #include <sys/types.h>
  23413. #endif
  23414. #ifdef HAVE_NETINET_IN_H
  23415. #include <netinet/in.h>
  23416. #endif
  23417. int
  23418. main ()
  23419. {
  23420. struct sockaddr_in6 sa;
  23421. ;
  23422. return 0;
  23423. }
  23424. _ACEOF
  23425. if ac_fn_c_try_compile "$LINENO"; then :
  23426. ac_cv_define_sockaddr_in6=yes
  23427. else
  23428. ac_cv_define_sockaddr_in6=no
  23429. fi
  23430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23431. fi
  23432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
  23433. $as_echo "$ac_cv_define_sockaddr_in6" >&6; }
  23434. if test "$ac_cv_define_sockaddr_in6" = "yes"; then
  23435. have_sockaddr_in6=1
  23436. else
  23437. have_sockaddr_in6=0
  23438. fi
  23439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
  23440. $as_echo_n "checking for sockaddr_storage... " >&6; }
  23441. if ${apr_cv_define_sockaddr_storage+:} false; then :
  23442. $as_echo_n "(cached) " >&6
  23443. else
  23444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23445. /* end confdefs.h. */
  23446. #ifdef HAVE_SYS_TYPES_H
  23447. #include <sys/types.h>
  23448. #endif
  23449. #ifdef HAVE_NETINET_IN_H
  23450. #include <netinet/in.h>
  23451. #endif
  23452. int
  23453. main ()
  23454. {
  23455. struct sockaddr_storage sa;
  23456. ;
  23457. return 0;
  23458. }
  23459. _ACEOF
  23460. if ac_fn_c_try_compile "$LINENO"; then :
  23461. apr_cv_define_sockaddr_storage=yes
  23462. else
  23463. apr_cv_define_sockaddr_storage=no
  23464. fi
  23465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23466. fi
  23467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
  23468. $as_echo "$apr_cv_define_sockaddr_storage" >&6; }
  23469. if test "$apr_cv_define_sockaddr_storage" = "yes"; then
  23470. have_sa_storage=1
  23471. else
  23472. have_sa_storage=0
  23473. fi
  23474. have_ipv6="0"
  23475. if test "$user_disabled_ipv6" = 1; then
  23476. ipv6_result="no -- disabled by user"
  23477. else
  23478. if test "x$broken_ipv6" = "x0"; then
  23479. if test "x$have_sockaddr_in6" = "x1"; then
  23480. if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
  23481. if test "x$ac_cv_working_getnameinfo" = "xyes"; then
  23482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
  23483. $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
  23484. if ${apr_cv_gai_addrconfig+:} false; then :
  23485. $as_echo_n "(cached) " >&6
  23486. else
  23487. if test "$cross_compiling" = yes; then :
  23488. apr_cv_gai_addrconfig=no
  23489. else
  23490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23491. /* end confdefs.h. */
  23492. #ifdef HAVE_NETDB_H
  23493. #include <netdb.h>
  23494. #endif
  23495. #ifdef HAVE_STRING_H
  23496. #include <string.h>
  23497. #endif
  23498. #ifdef HAVE_SYS_TYPES_H
  23499. #include <sys/types.h>
  23500. #endif
  23501. #ifdef HAVE_SYS_SOCKET_H
  23502. #include <sys/socket.h>
  23503. #endif
  23504. int main(int argc, char **argv) {
  23505. struct addrinfo hints, *ai;
  23506. memset(&hints, 0, sizeof(hints));
  23507. hints.ai_family = AF_UNSPEC;
  23508. hints.ai_socktype = SOCK_STREAM;
  23509. hints.ai_flags = AI_ADDRCONFIG;
  23510. return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
  23511. }
  23512. _ACEOF
  23513. if ac_fn_c_try_run "$LINENO"; then :
  23514. apr_cv_gai_addrconfig=yes
  23515. else
  23516. apr_cv_gai_addrconfig=no
  23517. fi
  23518. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23519. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23520. fi
  23521. fi
  23522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
  23523. $as_echo "$apr_cv_gai_addrconfig" >&6; }
  23524. if test $apr_cv_gai_addrconfig = yes; then
  23525. $as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
  23526. fi
  23527. have_ipv6="1"
  23528. ipv6_result="yes"
  23529. else
  23530. ipv6_result="no -- no getnameinfo"
  23531. fi
  23532. else
  23533. ipv6_result="no -- no working getaddrinfo"
  23534. fi
  23535. else
  23536. ipv6_result="no -- no sockaddr_in6"
  23537. fi
  23538. else
  23539. ipv6_result="no -- the platform has known problems supporting IPv6"
  23540. fi
  23541. fi
  23542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
  23543. $as_echo_n "checking if APR supports IPv6... " >&6; }
  23544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
  23545. $as_echo "$ipv6_result" >&6; }
  23546. # hstrerror is only needed if IPv6 is not enabled,
  23547. # so getaddrinfo/gai_strerror are not used.
  23548. if test $have_ipv6 = 0; then
  23549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
  23550. $as_echo_n "checking for library containing hstrerror... " >&6; }
  23551. if ${ac_cv_search_hstrerror+:} false; then :
  23552. $as_echo_n "(cached) " >&6
  23553. else
  23554. ac_func_search_save_LIBS=$LIBS
  23555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23556. /* end confdefs.h. */
  23557. /* Override any GCC internal prototype to avoid an error.
  23558. Use char because int might match the return type of a GCC
  23559. builtin and then its argument prototype would still apply. */
  23560. #ifdef __cplusplus
  23561. extern "C"
  23562. #endif
  23563. char hstrerror ();
  23564. int
  23565. main ()
  23566. {
  23567. return hstrerror ();
  23568. ;
  23569. return 0;
  23570. }
  23571. _ACEOF
  23572. for ac_lib in '' resolv; do
  23573. if test -z "$ac_lib"; then
  23574. ac_res="none required"
  23575. else
  23576. ac_res=-l$ac_lib
  23577. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23578. fi
  23579. if ac_fn_c_try_link "$LINENO"; then :
  23580. ac_cv_search_hstrerror=$ac_res
  23581. fi
  23582. rm -f core conftest.err conftest.$ac_objext \
  23583. conftest$ac_exeext
  23584. if ${ac_cv_search_hstrerror+:} false; then :
  23585. break
  23586. fi
  23587. done
  23588. if ${ac_cv_search_hstrerror+:} false; then :
  23589. else
  23590. ac_cv_search_hstrerror=no
  23591. fi
  23592. rm conftest.$ac_ext
  23593. LIBS=$ac_func_search_save_LIBS
  23594. fi
  23595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
  23596. $as_echo "$ac_cv_search_hstrerror" >&6; }
  23597. ac_res=$ac_cv_search_hstrerror
  23598. if test "$ac_res" != no; then :
  23599. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  23600. $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
  23601. fi
  23602. fi
  23603. for ac_header in langinfo.h
  23604. do :
  23605. ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
  23606. if test "x$ac_cv_header_langinfo_h" = xyes; then :
  23607. cat >>confdefs.h <<_ACEOF
  23608. #define HAVE_LANGINFO_H 1
  23609. _ACEOF
  23610. fi
  23611. done
  23612. for ac_func in nl_langinfo
  23613. do :
  23614. ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
  23615. if test "x$ac_cv_func_nl_langinfo" = xyes; then :
  23616. cat >>confdefs.h <<_ACEOF
  23617. #define HAVE_NL_LANGINFO 1
  23618. _ACEOF
  23619. fi
  23620. done
  23621. if test -z "$have_unicode_fs"; then
  23622. test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"0\""
  23623. have_unicode_fs="0"
  23624. fi
  23625. if test -z "$apr_has_xthread_files"; then
  23626. test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
  23627. apr_has_xthread_files="0"
  23628. fi
  23629. if test -z "$apr_procattr_user_set_requires_password"; then
  23630. test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
  23631. apr_procattr_user_set_requires_password="0"
  23632. fi
  23633. if test -z "$apr_thread_func"; then
  23634. test "x$silent" != "xyes" && echo " setting apr_thread_func to \"\""
  23635. apr_thread_func=""
  23636. fi
  23637. if test -z "$apr_has_user"; then
  23638. test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
  23639. apr_has_user="1"
  23640. fi
  23641. echo "${nl}Restore user-defined environment settings..."
  23642. set X $apr_ste_save_CPPFLAGS
  23643. if test ${#} -eq 1; then
  23644. EXTRA_CPPFLAGS="$CPPFLAGS"
  23645. CPPFLAGS=
  23646. else
  23647. if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
  23648. EXTRA_CPPFLAGS=
  23649. else
  23650. EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
  23651. CPPFLAGS="$apr_ste_save_CPPFLAGS"
  23652. fi
  23653. fi
  23654. if test "x$silent" != "xyes"; then
  23655. echo " restoring CPPFLAGS to \"$CPPFLAGS\""
  23656. echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
  23657. fi
  23658. set X $apr_ste_save_CFLAGS
  23659. if test ${#} -eq 1; then
  23660. EXTRA_CFLAGS="$CFLAGS"
  23661. CFLAGS=
  23662. else
  23663. if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
  23664. EXTRA_CFLAGS=
  23665. else
  23666. EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
  23667. CFLAGS="$apr_ste_save_CFLAGS"
  23668. fi
  23669. fi
  23670. if test "x$silent" != "xyes"; then
  23671. echo " restoring CFLAGS to \"$CFLAGS\""
  23672. echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
  23673. fi
  23674. set X $apr_ste_save_LDFLAGS
  23675. if test ${#} -eq 1; then
  23676. EXTRA_LDFLAGS="$LDFLAGS"
  23677. LDFLAGS=
  23678. else
  23679. if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
  23680. EXTRA_LDFLAGS=
  23681. else
  23682. EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
  23683. LDFLAGS="$apr_ste_save_LDFLAGS"
  23684. fi
  23685. fi
  23686. if test "x$silent" != "xyes"; then
  23687. echo " restoring LDFLAGS to \"$LDFLAGS\""
  23688. echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
  23689. fi
  23690. set X $apr_ste_save_LIBS
  23691. if test ${#} -eq 1; then
  23692. EXTRA_LIBS="$LIBS"
  23693. LIBS=
  23694. else
  23695. if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
  23696. EXTRA_LIBS=
  23697. else
  23698. EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
  23699. LIBS="$apr_ste_save_LIBS"
  23700. fi
  23701. fi
  23702. if test "x$silent" != "xyes"; then
  23703. echo " restoring LIBS to \"$LIBS\""
  23704. echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\""
  23705. fi
  23706. set X $apr_ste_save_INCLUDES
  23707. if test ${#} -eq 1; then
  23708. EXTRA_INCLUDES="$INCLUDES"
  23709. INCLUDES=
  23710. else
  23711. if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
  23712. EXTRA_INCLUDES=
  23713. else
  23714. EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
  23715. INCLUDES="$apr_ste_save_INCLUDES"
  23716. fi
  23717. fi
  23718. if test "x$silent" != "xyes"; then
  23719. echo " restoring INCLUDES to \"$INCLUDES\""
  23720. echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
  23721. fi
  23722. # Use -no-install to link the test programs on all platforms
  23723. # but Darwin, where it would cause the programs to be linked
  23724. # against installed versions of libapr instead of those just
  23725. # built.
  23726. case $host in
  23727. *-apple-darwin*) LT_NO_INSTALL="" ;;
  23728. *) LT_NO_INSTALL="-no-install" ;;
  23729. esac
  23730. #
  23731. # BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
  23732. #
  23733. case $host in
  23734. *bsdi*)
  23735. # Check whether they've installed GNU make
  23736. if make --version > /dev/null 2>&1; then
  23737. INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
  23738. INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
  23739. else
  23740. # BSDi make
  23741. INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
  23742. INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
  23743. fi
  23744. ;;
  23745. *)
  23746. INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
  23747. INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
  23748. ;;
  23749. esac
  23750. ac_config_files="$ac_config_files Makefile include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-$APR_MAJOR_VERSION-config:apr-config.in apr.pc"
  23751. if test -d $srcdir/test; then
  23752. ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
  23753. fi
  23754. dir=include/arch/unix
  23755. test -d $dir || $MKDIR $dir
  23756. ac_config_commands="$ac_config_commands default"
  23757. cat >confcache <<\_ACEOF
  23758. # This file is a shell script that caches the results of configure
  23759. # tests run on this system so they can be shared between configure
  23760. # scripts and configure runs, see configure's option --config-cache.
  23761. # It is not useful on other systems. If it contains results you don't
  23762. # want to keep, you may remove or edit it.
  23763. #
  23764. # config.status only pays attention to the cache file if you give it
  23765. # the --recheck option to rerun configure.
  23766. #
  23767. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23768. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23769. # following values.
  23770. _ACEOF
  23771. # The following way of writing the cache mishandles newlines in values,
  23772. # but we know of no workaround that is simple, portable, and efficient.
  23773. # So, we kill variables containing newlines.
  23774. # Ultrix sh set writes to stderr and can't be redirected directly,
  23775. # and sets the high bit in the cache file unless we assign to the vars.
  23776. (
  23777. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23778. eval ac_val=\$$ac_var
  23779. case $ac_val in #(
  23780. *${as_nl}*)
  23781. case $ac_var in #(
  23782. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23783. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23784. esac
  23785. case $ac_var in #(
  23786. _ | IFS | as_nl) ;; #(
  23787. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23788. *) { eval $ac_var=; unset $ac_var;} ;;
  23789. esac ;;
  23790. esac
  23791. done
  23792. (set) 2>&1 |
  23793. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23794. *${as_nl}ac_space=\ *)
  23795. # `set' does not quote correctly, so add quotes: double-quote
  23796. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23797. sed -n \
  23798. "s/'/'\\\\''/g;
  23799. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23800. ;; #(
  23801. *)
  23802. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23803. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23804. ;;
  23805. esac |
  23806. sort
  23807. ) |
  23808. sed '
  23809. /^ac_cv_env_/b end
  23810. t clear
  23811. :clear
  23812. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23813. t end
  23814. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23815. :end' >>confcache
  23816. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23817. if test -w "$cache_file"; then
  23818. if test "x$cache_file" != "x/dev/null"; then
  23819. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23820. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23821. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23822. cat confcache >"$cache_file"
  23823. else
  23824. case $cache_file in #(
  23825. */* | ?:*)
  23826. mv -f confcache "$cache_file"$$ &&
  23827. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23828. *)
  23829. mv -f confcache "$cache_file" ;;
  23830. esac
  23831. fi
  23832. fi
  23833. else
  23834. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23835. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23836. fi
  23837. fi
  23838. rm -f confcache
  23839. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23840. # Let make expand exec_prefix.
  23841. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23842. DEFS=-DHAVE_CONFIG_H
  23843. ac_libobjs=
  23844. ac_ltlibobjs=
  23845. U=
  23846. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23847. # 1. Remove the extension, and $U if already installed.
  23848. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23849. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23850. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23851. # will be set to the directory where LIBOBJS objects are built.
  23852. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23853. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23854. done
  23855. LIBOBJS=$ac_libobjs
  23856. LTLIBOBJS=$ac_ltlibobjs
  23857. : "${CONFIG_STATUS=./config.status}"
  23858. ac_write_fail=0
  23859. ac_clean_files_save=$ac_clean_files
  23860. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23861. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23862. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23863. as_write_fail=0
  23864. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23865. #! $SHELL
  23866. # Generated by $as_me.
  23867. # Run this file to recreate the current configuration.
  23868. # Compiler output produced by configure, useful for debugging
  23869. # configure, is in config.log if it exists.
  23870. debug=false
  23871. ac_cs_recheck=false
  23872. ac_cs_silent=false
  23873. SHELL=\${CONFIG_SHELL-$SHELL}
  23874. export SHELL
  23875. _ASEOF
  23876. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23877. ## -------------------- ##
  23878. ## M4sh Initialization. ##
  23879. ## -------------------- ##
  23880. # Be more Bourne compatible
  23881. DUALCASE=1; export DUALCASE # for MKS sh
  23882. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23883. emulate sh
  23884. NULLCMD=:
  23885. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23886. # is contrary to our usage. Disable this feature.
  23887. alias -g '${1+"$@"}'='"$@"'
  23888. setopt NO_GLOB_SUBST
  23889. else
  23890. case `(set -o) 2>/dev/null` in #(
  23891. *posix*) :
  23892. set -o posix ;; #(
  23893. *) :
  23894. ;;
  23895. esac
  23896. fi
  23897. as_nl='
  23898. '
  23899. export as_nl
  23900. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23901. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23902. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23903. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23904. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23905. # but without wasting forks for bash or zsh.
  23906. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23907. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23908. as_echo='print -r --'
  23909. as_echo_n='print -rn --'
  23910. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23911. as_echo='printf %s\n'
  23912. as_echo_n='printf %s'
  23913. else
  23914. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23915. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23916. as_echo_n='/usr/ucb/echo -n'
  23917. else
  23918. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23919. as_echo_n_body='eval
  23920. arg=$1;
  23921. case $arg in #(
  23922. *"$as_nl"*)
  23923. expr "X$arg" : "X\\(.*\\)$as_nl";
  23924. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23925. esac;
  23926. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23927. '
  23928. export as_echo_n_body
  23929. as_echo_n='sh -c $as_echo_n_body as_echo'
  23930. fi
  23931. export as_echo_body
  23932. as_echo='sh -c $as_echo_body as_echo'
  23933. fi
  23934. # The user is always right.
  23935. if test "${PATH_SEPARATOR+set}" != set; then
  23936. PATH_SEPARATOR=:
  23937. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23938. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23939. PATH_SEPARATOR=';'
  23940. }
  23941. fi
  23942. # IFS
  23943. # We need space, tab and new line, in precisely that order. Quoting is
  23944. # there to prevent editors from complaining about space-tab.
  23945. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23946. # splitting by setting IFS to empty value.)
  23947. IFS=" "" $as_nl"
  23948. # Find who we are. Look in the path if we contain no directory separator.
  23949. as_myself=
  23950. case $0 in #((
  23951. *[\\/]* ) as_myself=$0 ;;
  23952. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23953. for as_dir in $PATH
  23954. do
  23955. IFS=$as_save_IFS
  23956. test -z "$as_dir" && as_dir=.
  23957. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23958. done
  23959. IFS=$as_save_IFS
  23960. ;;
  23961. esac
  23962. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23963. # in which case we are not to be found in the path.
  23964. if test "x$as_myself" = x; then
  23965. as_myself=$0
  23966. fi
  23967. if test ! -f "$as_myself"; then
  23968. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23969. exit 1
  23970. fi
  23971. # Unset variables that we do not need and which cause bugs (e.g. in
  23972. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23973. # suppresses any "Segmentation fault" message there. '((' could
  23974. # trigger a bug in pdksh 5.2.14.
  23975. for as_var in BASH_ENV ENV MAIL MAILPATH
  23976. do eval test x\${$as_var+set} = xset \
  23977. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23978. done
  23979. PS1='$ '
  23980. PS2='> '
  23981. PS4='+ '
  23982. # NLS nuisances.
  23983. LC_ALL=C
  23984. export LC_ALL
  23985. LANGUAGE=C
  23986. export LANGUAGE
  23987. # CDPATH.
  23988. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23989. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23990. # ----------------------------------------
  23991. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23992. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23993. # script with STATUS, using 1 if that was 0.
  23994. as_fn_error ()
  23995. {
  23996. as_status=$1; test $as_status -eq 0 && as_status=1
  23997. if test "$4"; then
  23998. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23999. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  24000. fi
  24001. $as_echo "$as_me: error: $2" >&2
  24002. as_fn_exit $as_status
  24003. } # as_fn_error
  24004. # as_fn_set_status STATUS
  24005. # -----------------------
  24006. # Set $? to STATUS, without forking.
  24007. as_fn_set_status ()
  24008. {
  24009. return $1
  24010. } # as_fn_set_status
  24011. # as_fn_exit STATUS
  24012. # -----------------
  24013. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  24014. as_fn_exit ()
  24015. {
  24016. set +e
  24017. as_fn_set_status $1
  24018. exit $1
  24019. } # as_fn_exit
  24020. # as_fn_unset VAR
  24021. # ---------------
  24022. # Portably unset VAR.
  24023. as_fn_unset ()
  24024. {
  24025. { eval $1=; unset $1;}
  24026. }
  24027. as_unset=as_fn_unset
  24028. # as_fn_append VAR VALUE
  24029. # ----------------------
  24030. # Append the text in VALUE to the end of the definition contained in VAR. Take
  24031. # advantage of any shell optimizations that allow amortized linear growth over
  24032. # repeated appends, instead of the typical quadratic growth present in naive
  24033. # implementations.
  24034. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  24035. eval 'as_fn_append ()
  24036. {
  24037. eval $1+=\$2
  24038. }'
  24039. else
  24040. as_fn_append ()
  24041. {
  24042. eval $1=\$$1\$2
  24043. }
  24044. fi # as_fn_append
  24045. # as_fn_arith ARG...
  24046. # ------------------
  24047. # Perform arithmetic evaluation on the ARGs, and store the result in the
  24048. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  24049. # must be portable across $(()) and expr.
  24050. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  24051. eval 'as_fn_arith ()
  24052. {
  24053. as_val=$(( $* ))
  24054. }'
  24055. else
  24056. as_fn_arith ()
  24057. {
  24058. as_val=`expr "$@" || test $? -eq 1`
  24059. }
  24060. fi # as_fn_arith
  24061. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24062. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24063. as_expr=expr
  24064. else
  24065. as_expr=false
  24066. fi
  24067. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24068. as_basename=basename
  24069. else
  24070. as_basename=false
  24071. fi
  24072. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24073. as_dirname=dirname
  24074. else
  24075. as_dirname=false
  24076. fi
  24077. as_me=`$as_basename -- "$0" ||
  24078. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24079. X"$0" : 'X\(//\)$' \| \
  24080. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24081. $as_echo X/"$0" |
  24082. sed '/^.*\/\([^/][^/]*\)\/*$/{
  24083. s//\1/
  24084. q
  24085. }
  24086. /^X\/\(\/\/\)$/{
  24087. s//\1/
  24088. q
  24089. }
  24090. /^X\/\(\/\).*/{
  24091. s//\1/
  24092. q
  24093. }
  24094. s/.*/./; q'`
  24095. # Avoid depending upon Character Ranges.
  24096. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24097. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24098. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24099. as_cr_digits='0123456789'
  24100. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24101. ECHO_C= ECHO_N= ECHO_T=
  24102. case `echo -n x` in #(((((
  24103. -n*)
  24104. case `echo 'xy\c'` in
  24105. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  24106. xy) ECHO_C='\c';;
  24107. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  24108. ECHO_T=' ';;
  24109. esac;;
  24110. *)
  24111. ECHO_N='-n';;
  24112. esac
  24113. rm -f conf$$ conf$$.exe conf$$.file
  24114. if test -d conf$$.dir; then
  24115. rm -f conf$$.dir/conf$$.file
  24116. else
  24117. rm -f conf$$.dir
  24118. mkdir conf$$.dir 2>/dev/null
  24119. fi
  24120. if (echo >conf$$.file) 2>/dev/null; then
  24121. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24122. as_ln_s='ln -s'
  24123. # ... but there are two gotchas:
  24124. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  24125. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  24126. # In both cases, we have to default to `cp -p'.
  24127. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  24128. as_ln_s='cp -p'
  24129. elif ln conf$$.file conf$$ 2>/dev/null; then
  24130. as_ln_s=ln
  24131. else
  24132. as_ln_s='cp -p'
  24133. fi
  24134. else
  24135. as_ln_s='cp -p'
  24136. fi
  24137. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  24138. rmdir conf$$.dir 2>/dev/null
  24139. # as_fn_mkdir_p
  24140. # -------------
  24141. # Create "$as_dir" as a directory, including parents if necessary.
  24142. as_fn_mkdir_p ()
  24143. {
  24144. case $as_dir in #(
  24145. -*) as_dir=./$as_dir;;
  24146. esac
  24147. test -d "$as_dir" || eval $as_mkdir_p || {
  24148. as_dirs=
  24149. while :; do
  24150. case $as_dir in #(
  24151. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  24152. *) as_qdir=$as_dir;;
  24153. esac
  24154. as_dirs="'$as_qdir' $as_dirs"
  24155. as_dir=`$as_dirname -- "$as_dir" ||
  24156. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24157. X"$as_dir" : 'X\(//\)[^/]' \| \
  24158. X"$as_dir" : 'X\(//\)$' \| \
  24159. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24160. $as_echo X"$as_dir" |
  24161. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24162. s//\1/
  24163. q
  24164. }
  24165. /^X\(\/\/\)[^/].*/{
  24166. s//\1/
  24167. q
  24168. }
  24169. /^X\(\/\/\)$/{
  24170. s//\1/
  24171. q
  24172. }
  24173. /^X\(\/\).*/{
  24174. s//\1/
  24175. q
  24176. }
  24177. s/.*/./; q'`
  24178. test -d "$as_dir" && break
  24179. done
  24180. test -z "$as_dirs" || eval "mkdir $as_dirs"
  24181. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  24182. } # as_fn_mkdir_p
  24183. if mkdir -p . 2>/dev/null; then
  24184. as_mkdir_p='mkdir -p "$as_dir"'
  24185. else
  24186. test -d ./-p && rmdir ./-p
  24187. as_mkdir_p=false
  24188. fi
  24189. if test -x / >/dev/null 2>&1; then
  24190. as_test_x='test -x'
  24191. else
  24192. if ls -dL / >/dev/null 2>&1; then
  24193. as_ls_L_option=L
  24194. else
  24195. as_ls_L_option=
  24196. fi
  24197. as_test_x='
  24198. eval sh -c '\''
  24199. if test -d "$1"; then
  24200. test -d "$1/.";
  24201. else
  24202. case $1 in #(
  24203. -*)set "./$1";;
  24204. esac;
  24205. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  24206. ???[sx]*):;;*)false;;esac;fi
  24207. '\'' sh
  24208. '
  24209. fi
  24210. as_executable_p=$as_test_x
  24211. # Sed expression to map a string onto a valid CPP name.
  24212. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24213. # Sed expression to map a string onto a valid variable name.
  24214. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24215. exec 6>&1
  24216. ## ----------------------------------- ##
  24217. ## Main body of $CONFIG_STATUS script. ##
  24218. ## ----------------------------------- ##
  24219. _ASEOF
  24220. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  24221. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24222. # Save the log message, to keep $0 and so on meaningful, and to
  24223. # report actual input values of CONFIG_FILES etc. instead of their
  24224. # values after options handling.
  24225. ac_log="
  24226. This file was extended by $as_me, which was
  24227. generated by GNU Autoconf 2.68. Invocation command line was
  24228. CONFIG_FILES = $CONFIG_FILES
  24229. CONFIG_HEADERS = $CONFIG_HEADERS
  24230. CONFIG_LINKS = $CONFIG_LINKS
  24231. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24232. $ $0 $@
  24233. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  24234. "
  24235. _ACEOF
  24236. case $ac_config_files in *"
  24237. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  24238. esac
  24239. case $ac_config_headers in *"
  24240. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  24241. esac
  24242. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24243. # Files that config.status was made for.
  24244. config_files="$ac_config_files"
  24245. config_headers="$ac_config_headers"
  24246. config_commands="$ac_config_commands"
  24247. _ACEOF
  24248. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24249. ac_cs_usage="\
  24250. \`$as_me' instantiates files and other configuration actions
  24251. from templates according to the current configuration. Unless the files
  24252. and actions are specified as TAGs, all are instantiated by default.
  24253. Usage: $0 [OPTION]... [TAG]...
  24254. -h, --help print this help, then exit
  24255. -V, --version print version number and configuration settings, then exit
  24256. --config print configuration, then exit
  24257. -q, --quiet, --silent
  24258. do not print progress messages
  24259. -d, --debug don't remove temporary files
  24260. --recheck update $as_me by reconfiguring in the same conditions
  24261. --file=FILE[:TEMPLATE]
  24262. instantiate the configuration file FILE
  24263. --header=FILE[:TEMPLATE]
  24264. instantiate the configuration header FILE
  24265. Configuration files:
  24266. $config_files
  24267. Configuration headers:
  24268. $config_headers
  24269. Configuration commands:
  24270. $config_commands
  24271. Report bugs to the package provider."
  24272. _ACEOF
  24273. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24274. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  24275. ac_cs_version="\\
  24276. config.status
  24277. configured by $0, generated by GNU Autoconf 2.68,
  24278. with options \\"\$ac_cs_config\\"
  24279. Copyright (C) 2010 Free Software Foundation, Inc.
  24280. This config.status script is free software; the Free Software Foundation
  24281. gives unlimited permission to copy, distribute and modify it."
  24282. ac_pwd='$ac_pwd'
  24283. srcdir='$srcdir'
  24284. INSTALL='$INSTALL'
  24285. AWK='$AWK'
  24286. test -n "\$AWK" || AWK=awk
  24287. _ACEOF
  24288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24289. # The default lists apply if the user does not specify any file.
  24290. ac_need_defaults=:
  24291. while test $# != 0
  24292. do
  24293. case $1 in
  24294. --*=?*)
  24295. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24296. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  24297. ac_shift=:
  24298. ;;
  24299. --*=)
  24300. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24301. ac_optarg=
  24302. ac_shift=:
  24303. ;;
  24304. *)
  24305. ac_option=$1
  24306. ac_optarg=$2
  24307. ac_shift=shift
  24308. ;;
  24309. esac
  24310. case $ac_option in
  24311. # Handling of the options.
  24312. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24313. ac_cs_recheck=: ;;
  24314. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  24315. $as_echo "$ac_cs_version"; exit ;;
  24316. --config | --confi | --conf | --con | --co | --c )
  24317. $as_echo "$ac_cs_config"; exit ;;
  24318. --debug | --debu | --deb | --de | --d | -d )
  24319. debug=: ;;
  24320. --file | --fil | --fi | --f )
  24321. $ac_shift
  24322. case $ac_optarg in
  24323. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24324. '') as_fn_error $? "missing file argument" ;;
  24325. esac
  24326. as_fn_append CONFIG_FILES " '$ac_optarg'"
  24327. ac_need_defaults=false;;
  24328. --header | --heade | --head | --hea )
  24329. $ac_shift
  24330. case $ac_optarg in
  24331. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24332. esac
  24333. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  24334. ac_need_defaults=false;;
  24335. --he | --h)
  24336. # Conflict between --help and --header
  24337. as_fn_error $? "ambiguous option: \`$1'
  24338. Try \`$0 --help' for more information.";;
  24339. --help | --hel | -h )
  24340. $as_echo "$ac_cs_usage"; exit ;;
  24341. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24342. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24343. ac_cs_silent=: ;;
  24344. # This is an error.
  24345. -*) as_fn_error $? "unrecognized option: \`$1'
  24346. Try \`$0 --help' for more information." ;;
  24347. *) as_fn_append ac_config_targets " $1"
  24348. ac_need_defaults=false ;;
  24349. esac
  24350. shift
  24351. done
  24352. ac_configure_extra_args=
  24353. if $ac_cs_silent; then
  24354. exec 6>/dev/null
  24355. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24356. fi
  24357. _ACEOF
  24358. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24359. if \$ac_cs_recheck; then
  24360. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24361. shift
  24362. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  24363. CONFIG_SHELL='$SHELL'
  24364. export CONFIG_SHELL
  24365. exec "\$@"
  24366. fi
  24367. _ACEOF
  24368. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24369. exec 5>>config.log
  24370. {
  24371. echo
  24372. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24373. ## Running $as_me. ##
  24374. _ASBOX
  24375. $as_echo "$ac_log"
  24376. } >&5
  24377. _ACEOF
  24378. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24379. #
  24380. # INIT-COMMANDS
  24381. #
  24382. # The HP-UX ksh and POSIX shell print the target directory to stdout
  24383. # if CDPATH is set.
  24384. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  24385. sed_quote_subst='$sed_quote_subst'
  24386. double_quote_subst='$double_quote_subst'
  24387. delay_variable_subst='$delay_variable_subst'
  24388. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  24389. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  24390. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  24391. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  24392. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  24393. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  24394. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  24395. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  24396. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  24397. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  24398. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  24399. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  24400. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  24401. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  24402. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  24403. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  24404. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  24405. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  24406. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  24407. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  24408. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  24409. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  24410. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  24411. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  24412. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  24413. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  24414. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  24415. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  24416. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  24417. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  24418. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  24419. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  24420. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  24421. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  24422. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  24423. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  24424. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  24425. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  24426. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  24427. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  24428. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  24429. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  24430. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  24431. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  24432. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  24433. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  24434. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24435. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24436. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  24437. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  24438. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  24439. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  24440. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  24441. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  24442. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  24443. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  24444. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  24445. 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"`'
  24446. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  24447. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  24448. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  24449. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  24450. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  24451. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  24452. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  24453. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  24454. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  24455. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  24456. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  24457. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  24458. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  24459. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  24460. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  24461. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  24462. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  24463. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  24464. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24465. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  24466. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  24467. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  24468. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  24469. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  24470. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  24471. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24472. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  24473. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24474. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  24475. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24476. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  24477. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24478. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24479. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  24480. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  24481. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  24482. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  24483. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  24484. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24485. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  24486. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  24487. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  24488. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  24489. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  24490. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  24491. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  24492. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  24493. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  24494. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  24495. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  24496. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  24497. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24498. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24499. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24500. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24501. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24502. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24503. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24504. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24505. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24506. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24507. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24508. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24509. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24510. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24511. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24512. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  24513. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24514. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24515. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24516. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24517. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24518. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24519. LTCC='$LTCC'
  24520. LTCFLAGS='$LTCFLAGS'
  24521. compiler='$compiler_DEFAULT'
  24522. # A function that is used when there is no print builtin or printf.
  24523. func_fallback_echo ()
  24524. {
  24525. eval 'cat <<_LTECHO_EOF
  24526. \$1
  24527. _LTECHO_EOF'
  24528. }
  24529. # Quote evaled strings.
  24530. for var in AS \
  24531. DLLTOOL \
  24532. OBJDUMP \
  24533. SHELL \
  24534. ECHO \
  24535. PATH_SEPARATOR \
  24536. SED \
  24537. GREP \
  24538. EGREP \
  24539. FGREP \
  24540. LD \
  24541. NM \
  24542. LN_S \
  24543. lt_SP2NL \
  24544. lt_NL2SP \
  24545. reload_flag \
  24546. deplibs_check_method \
  24547. file_magic_cmd \
  24548. file_magic_glob \
  24549. want_nocaseglob \
  24550. sharedlib_from_linklib_cmd \
  24551. AR \
  24552. AR_FLAGS \
  24553. archiver_list_spec \
  24554. STRIP \
  24555. RANLIB \
  24556. CC \
  24557. CFLAGS \
  24558. compiler \
  24559. lt_cv_sys_global_symbol_pipe \
  24560. lt_cv_sys_global_symbol_to_cdecl \
  24561. lt_cv_sys_global_symbol_to_c_name_address \
  24562. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24563. nm_file_list_spec \
  24564. lt_prog_compiler_no_builtin_flag \
  24565. lt_prog_compiler_pic \
  24566. lt_prog_compiler_wl \
  24567. lt_prog_compiler_static \
  24568. lt_cv_prog_compiler_c_o \
  24569. need_locks \
  24570. MANIFEST_TOOL \
  24571. DSYMUTIL \
  24572. NMEDIT \
  24573. LIPO \
  24574. OTOOL \
  24575. OTOOL64 \
  24576. shrext_cmds \
  24577. export_dynamic_flag_spec \
  24578. whole_archive_flag_spec \
  24579. compiler_needs_object \
  24580. with_gnu_ld \
  24581. allow_undefined_flag \
  24582. no_undefined_flag \
  24583. hardcode_libdir_flag_spec \
  24584. hardcode_libdir_separator \
  24585. exclude_expsyms \
  24586. include_expsyms \
  24587. file_list_spec \
  24588. variables_saved_for_relink \
  24589. libname_spec \
  24590. library_names_spec \
  24591. soname_spec \
  24592. install_override_mode \
  24593. finish_eval \
  24594. old_striplib \
  24595. striplib; do
  24596. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24597. *[\\\\\\\`\\"\\\$]*)
  24598. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  24599. ;;
  24600. *)
  24601. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24602. ;;
  24603. esac
  24604. done
  24605. # Double-quote double-evaled strings.
  24606. for var in reload_cmds \
  24607. old_postinstall_cmds \
  24608. old_postuninstall_cmds \
  24609. old_archive_cmds \
  24610. extract_expsyms_cmds \
  24611. old_archive_from_new_cmds \
  24612. old_archive_from_expsyms_cmds \
  24613. archive_cmds \
  24614. archive_expsym_cmds \
  24615. module_cmds \
  24616. module_expsym_cmds \
  24617. export_symbols_cmds \
  24618. prelink_cmds \
  24619. postlink_cmds \
  24620. postinstall_cmds \
  24621. postuninstall_cmds \
  24622. finish_cmds \
  24623. sys_lib_search_path_spec \
  24624. sys_lib_dlsearch_path_spec; do
  24625. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24626. *[\\\\\\\`\\"\\\$]*)
  24627. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  24628. ;;
  24629. *)
  24630. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24631. ;;
  24632. esac
  24633. done
  24634. ac_aux_dir='$ac_aux_dir'
  24635. xsi_shell='$xsi_shell'
  24636. lt_shell_append='$lt_shell_append'
  24637. # See if we are running on zsh, and set the options which allow our
  24638. # commands through without removal of \ escapes INIT.
  24639. if test -n "\${ZSH_VERSION+set}" ; then
  24640. setopt NO_GLOB_SUBST
  24641. fi
  24642. PACKAGE='$PACKAGE'
  24643. VERSION='$VERSION'
  24644. TIMESTAMP='$TIMESTAMP'
  24645. RM='$RM'
  24646. ofile='$ofile'
  24647. # Commands run at the beginning of config.status:
  24648. APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
  24649. APR_MAJOR_VERSION=$APR_MAJOR_VERSION
  24650. APR_PLATFORM=$host
  24651. for apri in \${APR_SAVE_HEADERS}; do
  24652. test -r \${apri} && mv \${apri} \${apri}.save
  24653. done
  24654. _ACEOF
  24655. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24656. # Handling of arguments.
  24657. for ac_config_target in $ac_config_targets
  24658. do
  24659. case $ac_config_target in
  24660. "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
  24661. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24662. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24663. "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
  24664. "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
  24665. "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
  24666. "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
  24667. "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
  24668. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  24669. "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
  24670. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  24671. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24672. esac
  24673. done
  24674. # If the user did not use the arguments to specify the items to instantiate,
  24675. # then the envvar interface is used. Set only those that are not.
  24676. # We use the long form for the default assignment because of an extremely
  24677. # bizarre bug on SunOS 4.1.3.
  24678. if $ac_need_defaults; then
  24679. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24680. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24681. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24682. fi
  24683. # Have a temporary directory for convenience. Make it in the build tree
  24684. # simply because there is no reason against having it here, and in addition,
  24685. # creating and moving files from /tmp can sometimes cause problems.
  24686. # Hook for its removal unless debugging.
  24687. # Note that there is a small window in which the directory will not be cleaned:
  24688. # after its creation but before its name has been assigned to `$tmp'.
  24689. $debug ||
  24690. {
  24691. tmp= ac_tmp=
  24692. trap 'exit_status=$?
  24693. : "${ac_tmp:=$tmp}"
  24694. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24695. ' 0
  24696. trap 'as_fn_exit 1' 1 2 13 15
  24697. }
  24698. # Create a (secure) tmp directory for tmp files.
  24699. {
  24700. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24701. test -d "$tmp"
  24702. } ||
  24703. {
  24704. tmp=./conf$$-$RANDOM
  24705. (umask 077 && mkdir "$tmp")
  24706. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24707. ac_tmp=$tmp
  24708. # Set up the scripts for CONFIG_FILES section.
  24709. # No need to generate them if there are no CONFIG_FILES.
  24710. # This happens for instance with `./config.status config.h'.
  24711. if test -n "$CONFIG_FILES"; then
  24712. ac_cr=`echo X | tr X '\015'`
  24713. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24714. # But we know of no other shell where ac_cr would be empty at this
  24715. # point, so we can use a bashism as a fallback.
  24716. if test "x$ac_cr" = x; then
  24717. eval ac_cr=\$\'\\r\'
  24718. fi
  24719. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24720. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24721. ac_cs_awk_cr='\\r'
  24722. else
  24723. ac_cs_awk_cr=$ac_cr
  24724. fi
  24725. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24726. _ACEOF
  24727. {
  24728. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24729. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24730. echo "_ACEOF"
  24731. } >conf$$subs.sh ||
  24732. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24733. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24734. ac_delim='%!_!# '
  24735. for ac_last_try in false false false false false :; do
  24736. . ./conf$$subs.sh ||
  24737. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24738. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24739. if test $ac_delim_n = $ac_delim_num; then
  24740. break
  24741. elif $ac_last_try; then
  24742. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24743. else
  24744. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24745. fi
  24746. done
  24747. rm -f conf$$subs.sh
  24748. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24749. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24750. _ACEOF
  24751. sed -n '
  24752. h
  24753. s/^/S["/; s/!.*/"]=/
  24754. p
  24755. g
  24756. s/^[^!]*!//
  24757. :repl
  24758. t repl
  24759. s/'"$ac_delim"'$//
  24760. t delim
  24761. :nl
  24762. h
  24763. s/\(.\{148\}\)..*/\1/
  24764. t more1
  24765. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24766. p
  24767. n
  24768. b repl
  24769. :more1
  24770. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24771. p
  24772. g
  24773. s/.\{148\}//
  24774. t nl
  24775. :delim
  24776. h
  24777. s/\(.\{148\}\)..*/\1/
  24778. t more2
  24779. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24780. p
  24781. b
  24782. :more2
  24783. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24784. p
  24785. g
  24786. s/.\{148\}//
  24787. t delim
  24788. ' <conf$$subs.awk | sed '
  24789. /^[^""]/{
  24790. N
  24791. s/\n//
  24792. }
  24793. ' >>$CONFIG_STATUS || ac_write_fail=1
  24794. rm -f conf$$subs.awk
  24795. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24796. _ACAWK
  24797. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24798. for (key in S) S_is_set[key] = 1
  24799. FS = ""
  24800. }
  24801. {
  24802. line = $ 0
  24803. nfields = split(line, field, "@")
  24804. substed = 0
  24805. len = length(field[1])
  24806. for (i = 2; i < nfields; i++) {
  24807. key = field[i]
  24808. keylen = length(key)
  24809. if (S_is_set[key]) {
  24810. value = S[key]
  24811. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24812. len += length(value) + length(field[++i])
  24813. substed = 1
  24814. } else
  24815. len += 1 + keylen
  24816. }
  24817. print line
  24818. }
  24819. _ACAWK
  24820. _ACEOF
  24821. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24822. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24823. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24824. else
  24825. cat
  24826. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24827. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24828. _ACEOF
  24829. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24830. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24831. # trailing colons and then remove the whole line if VPATH becomes empty
  24832. # (actually we leave an empty line to preserve line numbers).
  24833. if test "x$srcdir" = x.; then
  24834. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24835. h
  24836. s///
  24837. s/^/:/
  24838. s/[ ]*$/:/
  24839. s/:\$(srcdir):/:/g
  24840. s/:\${srcdir}:/:/g
  24841. s/:@srcdir@:/:/g
  24842. s/^:*//
  24843. s/:*$//
  24844. x
  24845. s/\(=[ ]*\).*/\1/
  24846. G
  24847. s/\n//
  24848. s/^[^=]*=[ ]*$//
  24849. }'
  24850. fi
  24851. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24852. fi # test -n "$CONFIG_FILES"
  24853. # Set up the scripts for CONFIG_HEADERS section.
  24854. # No need to generate them if there are no CONFIG_HEADERS.
  24855. # This happens for instance with `./config.status Makefile'.
  24856. if test -n "$CONFIG_HEADERS"; then
  24857. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24858. BEGIN {
  24859. _ACEOF
  24860. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24861. # here-document in config.status, that substitutes the proper values into
  24862. # config.h.in to produce config.h.
  24863. # Create a delimiter string that does not exist in confdefs.h, to ease
  24864. # handling of long lines.
  24865. ac_delim='%!_!# '
  24866. for ac_last_try in false false :; do
  24867. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24868. if test -z "$ac_tt"; then
  24869. break
  24870. elif $ac_last_try; then
  24871. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24872. else
  24873. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24874. fi
  24875. done
  24876. # For the awk script, D is an array of macro values keyed by name,
  24877. # likewise P contains macro parameters if any. Preserve backslash
  24878. # newline sequences.
  24879. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24880. sed -n '
  24881. s/.\{148\}/&'"$ac_delim"'/g
  24882. t rset
  24883. :rset
  24884. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24885. t def
  24886. d
  24887. :def
  24888. s/\\$//
  24889. t bsnl
  24890. s/["\\]/\\&/g
  24891. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24892. D["\1"]=" \3"/p
  24893. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24894. d
  24895. :bsnl
  24896. s/["\\]/\\&/g
  24897. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24898. D["\1"]=" \3\\\\\\n"\\/p
  24899. t cont
  24900. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24901. t cont
  24902. d
  24903. :cont
  24904. n
  24905. s/.\{148\}/&'"$ac_delim"'/g
  24906. t clear
  24907. :clear
  24908. s/\\$//
  24909. t bsnlc
  24910. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24911. d
  24912. :bsnlc
  24913. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24914. b cont
  24915. ' <confdefs.h | sed '
  24916. s/'"$ac_delim"'/"\\\
  24917. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24918. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24919. for (key in D) D_is_set[key] = 1
  24920. FS = ""
  24921. }
  24922. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24923. line = \$ 0
  24924. split(line, arg, " ")
  24925. if (arg[1] == "#") {
  24926. defundef = arg[2]
  24927. mac1 = arg[3]
  24928. } else {
  24929. defundef = substr(arg[1], 2)
  24930. mac1 = arg[2]
  24931. }
  24932. split(mac1, mac2, "(") #)
  24933. macro = mac2[1]
  24934. prefix = substr(line, 1, index(line, defundef) - 1)
  24935. if (D_is_set[macro]) {
  24936. # Preserve the white space surrounding the "#".
  24937. print prefix "define", macro P[macro] D[macro]
  24938. next
  24939. } else {
  24940. # Replace #undef with comments. This is necessary, for example,
  24941. # in the case of _POSIX_SOURCE, which is predefined and required
  24942. # on some systems where configure will not decide to define it.
  24943. if (defundef == "undef") {
  24944. print "/*", prefix defundef, macro, "*/"
  24945. next
  24946. }
  24947. }
  24948. }
  24949. { print }
  24950. _ACAWK
  24951. _ACEOF
  24952. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24953. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24954. fi # test -n "$CONFIG_HEADERS"
  24955. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24956. shift
  24957. for ac_tag
  24958. do
  24959. case $ac_tag in
  24960. :[FHLC]) ac_mode=$ac_tag; continue;;
  24961. esac
  24962. case $ac_mode$ac_tag in
  24963. :[FHL]*:*);;
  24964. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24965. :[FH]-) ac_tag=-:-;;
  24966. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24967. esac
  24968. ac_save_IFS=$IFS
  24969. IFS=:
  24970. set x $ac_tag
  24971. IFS=$ac_save_IFS
  24972. shift
  24973. ac_file=$1
  24974. shift
  24975. case $ac_mode in
  24976. :L) ac_source=$1;;
  24977. :[FH])
  24978. ac_file_inputs=
  24979. for ac_f
  24980. do
  24981. case $ac_f in
  24982. -) ac_f="$ac_tmp/stdin";;
  24983. *) # Look for the file first in the build tree, then in the source tree
  24984. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24985. # because $ac_f cannot contain `:'.
  24986. test -f "$ac_f" ||
  24987. case $ac_f in
  24988. [\\/$]*) false;;
  24989. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24990. esac ||
  24991. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24992. esac
  24993. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24994. as_fn_append ac_file_inputs " '$ac_f'"
  24995. done
  24996. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24997. # use $as_me), people would be surprised to read:
  24998. # /* config.h. Generated by config.status. */
  24999. configure_input='Generated from '`
  25000. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  25001. `' by configure.'
  25002. if test x"$ac_file" != x-; then
  25003. configure_input="$ac_file. $configure_input"
  25004. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  25005. $as_echo "$as_me: creating $ac_file" >&6;}
  25006. fi
  25007. # Neutralize special characters interpreted by sed in replacement strings.
  25008. case $configure_input in #(
  25009. *\&* | *\|* | *\\* )
  25010. ac_sed_conf_input=`$as_echo "$configure_input" |
  25011. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  25012. *) ac_sed_conf_input=$configure_input;;
  25013. esac
  25014. case $ac_tag in
  25015. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  25016. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  25017. esac
  25018. ;;
  25019. esac
  25020. ac_dir=`$as_dirname -- "$ac_file" ||
  25021. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25022. X"$ac_file" : 'X\(//\)[^/]' \| \
  25023. X"$ac_file" : 'X\(//\)$' \| \
  25024. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  25025. $as_echo X"$ac_file" |
  25026. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25027. s//\1/
  25028. q
  25029. }
  25030. /^X\(\/\/\)[^/].*/{
  25031. s//\1/
  25032. q
  25033. }
  25034. /^X\(\/\/\)$/{
  25035. s//\1/
  25036. q
  25037. }
  25038. /^X\(\/\).*/{
  25039. s//\1/
  25040. q
  25041. }
  25042. s/.*/./; q'`
  25043. as_dir="$ac_dir"; as_fn_mkdir_p
  25044. ac_builddir=.
  25045. case "$ac_dir" in
  25046. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25047. *)
  25048. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  25049. # A ".." for each directory in $ac_dir_suffix.
  25050. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  25051. case $ac_top_builddir_sub in
  25052. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25053. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25054. esac ;;
  25055. esac
  25056. ac_abs_top_builddir=$ac_pwd
  25057. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25058. # for backward compatibility:
  25059. ac_top_builddir=$ac_top_build_prefix
  25060. case $srcdir in
  25061. .) # We are building in place.
  25062. ac_srcdir=.
  25063. ac_top_srcdir=$ac_top_builddir_sub
  25064. ac_abs_top_srcdir=$ac_pwd ;;
  25065. [\\/]* | ?:[\\/]* ) # Absolute name.
  25066. ac_srcdir=$srcdir$ac_dir_suffix;
  25067. ac_top_srcdir=$srcdir
  25068. ac_abs_top_srcdir=$srcdir ;;
  25069. *) # Relative name.
  25070. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25071. ac_top_srcdir=$ac_top_build_prefix$srcdir
  25072. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25073. esac
  25074. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25075. case $ac_mode in
  25076. :F)
  25077. #
  25078. # CONFIG_FILE
  25079. #
  25080. case $INSTALL in
  25081. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25082. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  25083. esac
  25084. _ACEOF
  25085. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25086. # If the template does not know about datarootdir, expand it.
  25087. # FIXME: This hack should be removed a few years after 2.60.
  25088. ac_datarootdir_hack=; ac_datarootdir_seen=
  25089. ac_sed_dataroot='
  25090. /datarootdir/ {
  25091. p
  25092. q
  25093. }
  25094. /@datadir@/p
  25095. /@docdir@/p
  25096. /@infodir@/p
  25097. /@localedir@/p
  25098. /@mandir@/p'
  25099. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  25100. *datarootdir*) ac_datarootdir_seen=yes;;
  25101. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  25102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  25103. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  25104. _ACEOF
  25105. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25106. ac_datarootdir_hack='
  25107. s&@datadir@&$datadir&g
  25108. s&@docdir@&$docdir&g
  25109. s&@infodir@&$infodir&g
  25110. s&@localedir@&$localedir&g
  25111. s&@mandir@&$mandir&g
  25112. s&\\\${datarootdir}&$datarootdir&g' ;;
  25113. esac
  25114. _ACEOF
  25115. # Neutralize VPATH when `$srcdir' = `.'.
  25116. # Shell code in configure.ac might set extrasub.
  25117. # FIXME: do we really want to maintain this feature?
  25118. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25119. ac_sed_extra="$ac_vpsub
  25120. $extrasub
  25121. _ACEOF
  25122. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25123. :t
  25124. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25125. s|@configure_input@|$ac_sed_conf_input|;t t
  25126. s&@top_builddir@&$ac_top_builddir_sub&;t t
  25127. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  25128. s&@srcdir@&$ac_srcdir&;t t
  25129. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  25130. s&@top_srcdir@&$ac_top_srcdir&;t t
  25131. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25132. s&@builddir@&$ac_builddir&;t t
  25133. s&@abs_builddir@&$ac_abs_builddir&;t t
  25134. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25135. s&@INSTALL@&$ac_INSTALL&;t t
  25136. $ac_datarootdir_hack
  25137. "
  25138. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  25139. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25140. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25141. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  25142. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  25143. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  25144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25145. which seems to be undefined. Please make sure it is defined" >&5
  25146. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25147. which seems to be undefined. Please make sure it is defined" >&2;}
  25148. rm -f "$ac_tmp/stdin"
  25149. case $ac_file in
  25150. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  25151. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  25152. esac \
  25153. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25154. ;;
  25155. :H)
  25156. #
  25157. # CONFIG_HEADER
  25158. #
  25159. if test x"$ac_file" != x-; then
  25160. {
  25161. $as_echo "/* $configure_input */" \
  25162. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  25163. } >"$ac_tmp/config.h" \
  25164. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25165. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  25166. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  25167. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  25168. else
  25169. rm -f "$ac_file"
  25170. mv "$ac_tmp/config.h" "$ac_file" \
  25171. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25172. fi
  25173. else
  25174. $as_echo "/* $configure_input */" \
  25175. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  25176. || as_fn_error $? "could not create -" "$LINENO" 5
  25177. fi
  25178. ;;
  25179. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  25180. $as_echo "$as_me: executing $ac_file commands" >&6;}
  25181. ;;
  25182. esac
  25183. case $ac_file$ac_mode in
  25184. "libtool":C)
  25185. # See if we are running on zsh, and set the options which allow our
  25186. # commands through without removal of \ escapes.
  25187. if test -n "${ZSH_VERSION+set}" ; then
  25188. setopt NO_GLOB_SUBST
  25189. fi
  25190. cfgfile="${ofile}T"
  25191. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  25192. $RM "$cfgfile"
  25193. cat <<_LT_EOF >> "$cfgfile"
  25194. #! $SHELL
  25195. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  25196. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  25197. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25198. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  25199. #
  25200. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  25201. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  25202. # Foundation, Inc.
  25203. # Written by Gordon Matzigkeit, 1996
  25204. #
  25205. # This file is part of GNU Libtool.
  25206. #
  25207. # GNU Libtool is free software; you can redistribute it and/or
  25208. # modify it under the terms of the GNU General Public License as
  25209. # published by the Free Software Foundation; either version 2 of
  25210. # the License, or (at your option) any later version.
  25211. #
  25212. # As a special exception to the GNU General Public License,
  25213. # if you distribute this file as part of a program or library that
  25214. # is built using GNU Libtool, you may include this file under the
  25215. # same distribution terms that you use for the rest of that program.
  25216. #
  25217. # GNU Libtool is distributed in the hope that it will be useful,
  25218. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  25219. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25220. # GNU General Public License for more details.
  25221. #
  25222. # You should have received a copy of the GNU General Public License
  25223. # along with GNU Libtool; see the file COPYING. If not, a copy
  25224. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  25225. # obtained by writing to the Free Software Foundation, Inc.,
  25226. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  25227. # The names of the tagged configurations supported by this script.
  25228. available_tags=""
  25229. # ### BEGIN LIBTOOL CONFIG
  25230. # Assembler program.
  25231. AS=$lt_AS
  25232. # DLL creation program.
  25233. DLLTOOL=$lt_DLLTOOL
  25234. # Object dumper program.
  25235. OBJDUMP=$lt_OBJDUMP
  25236. # Which release of libtool.m4 was used?
  25237. macro_version=$macro_version
  25238. macro_revision=$macro_revision
  25239. # Whether or not to build shared libraries.
  25240. build_libtool_libs=$enable_shared
  25241. # Whether or not to build static libraries.
  25242. build_old_libs=$enable_static
  25243. # What type of objects to build.
  25244. pic_mode=$pic_mode
  25245. # Whether or not to optimize for fast installation.
  25246. fast_install=$enable_fast_install
  25247. # Shell to use when invoking shell scripts.
  25248. SHELL=$lt_SHELL
  25249. # An echo program that protects backslashes.
  25250. ECHO=$lt_ECHO
  25251. # The PATH separator for the build system.
  25252. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  25253. # The host system.
  25254. host_alias=$host_alias
  25255. host=$host
  25256. host_os=$host_os
  25257. # The build system.
  25258. build_alias=$build_alias
  25259. build=$build
  25260. build_os=$build_os
  25261. # A sed program that does not truncate output.
  25262. SED=$lt_SED
  25263. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  25264. Xsed="\$SED -e 1s/^X//"
  25265. # A grep program that handles long lines.
  25266. GREP=$lt_GREP
  25267. # An ERE matcher.
  25268. EGREP=$lt_EGREP
  25269. # A literal string matcher.
  25270. FGREP=$lt_FGREP
  25271. # A BSD- or MS-compatible name lister.
  25272. NM=$lt_NM
  25273. # Whether we need soft or hard links.
  25274. LN_S=$lt_LN_S
  25275. # What is the maximum length of a command?
  25276. max_cmd_len=$max_cmd_len
  25277. # Object file suffix (normally "o").
  25278. objext=$ac_objext
  25279. # Executable file suffix (normally "").
  25280. exeext=$exeext
  25281. # whether the shell understands "unset".
  25282. lt_unset=$lt_unset
  25283. # turn spaces into newlines.
  25284. SP2NL=$lt_lt_SP2NL
  25285. # turn newlines into spaces.
  25286. NL2SP=$lt_lt_NL2SP
  25287. # convert \$build file names to \$host format.
  25288. to_host_file_cmd=$lt_cv_to_host_file_cmd
  25289. # convert \$build files to toolchain format.
  25290. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  25291. # Method to check whether dependent libraries are shared objects.
  25292. deplibs_check_method=$lt_deplibs_check_method
  25293. # Command to use when deplibs_check_method = "file_magic".
  25294. file_magic_cmd=$lt_file_magic_cmd
  25295. # How to find potential files when deplibs_check_method = "file_magic".
  25296. file_magic_glob=$lt_file_magic_glob
  25297. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  25298. want_nocaseglob=$lt_want_nocaseglob
  25299. # Command to associate shared and link libraries.
  25300. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  25301. # The archiver.
  25302. AR=$lt_AR
  25303. # Flags to create an archive.
  25304. AR_FLAGS=$lt_AR_FLAGS
  25305. # How to feed a file listing to the archiver.
  25306. archiver_list_spec=$lt_archiver_list_spec
  25307. # A symbol stripping program.
  25308. STRIP=$lt_STRIP
  25309. # Commands used to install an old-style archive.
  25310. RANLIB=$lt_RANLIB
  25311. old_postinstall_cmds=$lt_old_postinstall_cmds
  25312. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25313. # Whether to use a lock for old archive extraction.
  25314. lock_old_archive_extraction=$lock_old_archive_extraction
  25315. # A C compiler.
  25316. LTCC=$lt_CC
  25317. # LTCC compiler flags.
  25318. LTCFLAGS=$lt_CFLAGS
  25319. # Take the output of nm and produce a listing of raw symbols and C names.
  25320. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25321. # Transform the output of nm in a proper C declaration.
  25322. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25323. # Transform the output of nm in a C name address pair.
  25324. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25325. # Transform the output of nm in a C name address pair when lib prefix is needed.
  25326. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25327. # Specify filename containing input files for \$NM.
  25328. nm_file_list_spec=$lt_nm_file_list_spec
  25329. # The root where to search for dependent libraries,and in which our libraries should be installed.
  25330. lt_sysroot=$lt_sysroot
  25331. # The name of the directory that contains temporary libtool files.
  25332. objdir=$objdir
  25333. # Used to examine libraries when file_magic_cmd begins with "file".
  25334. MAGIC_CMD=$MAGIC_CMD
  25335. # Must we lock files when doing compilation?
  25336. need_locks=$lt_need_locks
  25337. # Manifest tool.
  25338. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25339. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25340. DSYMUTIL=$lt_DSYMUTIL
  25341. # Tool to change global to local symbols on Mac OS X.
  25342. NMEDIT=$lt_NMEDIT
  25343. # Tool to manipulate fat objects and archives on Mac OS X.
  25344. LIPO=$lt_LIPO
  25345. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25346. OTOOL=$lt_OTOOL
  25347. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25348. OTOOL64=$lt_OTOOL64
  25349. # Old archive suffix (normally "a").
  25350. libext=$libext
  25351. # Shared library suffix (normally ".so").
  25352. shrext_cmds=$lt_shrext_cmds
  25353. # The commands to extract the exported symbol list from a shared archive.
  25354. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25355. # Variables whose values should be saved in libtool wrapper scripts and
  25356. # restored at link time.
  25357. variables_saved_for_relink=$lt_variables_saved_for_relink
  25358. # Do we need the "lib" prefix for modules?
  25359. need_lib_prefix=$need_lib_prefix
  25360. # Do we need a version for libraries?
  25361. need_version=$need_version
  25362. # Library versioning type.
  25363. version_type=$version_type
  25364. # Shared library runtime path variable.
  25365. runpath_var=$runpath_var
  25366. # Shared library path variable.
  25367. shlibpath_var=$shlibpath_var
  25368. # Is shlibpath searched before the hard-coded library search path?
  25369. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25370. # Format of library name prefix.
  25371. libname_spec=$lt_libname_spec
  25372. # List of archive names. First name is the real one, the rest are links.
  25373. # The last name is the one that the linker finds with -lNAME
  25374. library_names_spec=$lt_library_names_spec
  25375. # The coded name of the library, if different from the real name.
  25376. soname_spec=$lt_soname_spec
  25377. # Permission mode override for installation of shared libraries.
  25378. install_override_mode=$lt_install_override_mode
  25379. # Command to use after installation of a shared archive.
  25380. postinstall_cmds=$lt_postinstall_cmds
  25381. # Command to use after uninstallation of a shared archive.
  25382. postuninstall_cmds=$lt_postuninstall_cmds
  25383. # Commands used to finish a libtool library installation in a directory.
  25384. finish_cmds=$lt_finish_cmds
  25385. # As "finish_cmds", except a single script fragment to be evaled but
  25386. # not shown.
  25387. finish_eval=$lt_finish_eval
  25388. # Whether we should hardcode library paths into libraries.
  25389. hardcode_into_libs=$hardcode_into_libs
  25390. # Compile-time system search path for libraries.
  25391. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25392. # Run-time system search path for libraries.
  25393. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  25394. # Whether dlopen is supported.
  25395. dlopen_support=$enable_dlopen
  25396. # Whether dlopen of programs is supported.
  25397. dlopen_self=$enable_dlopen_self
  25398. # Whether dlopen of statically linked programs is supported.
  25399. dlopen_self_static=$enable_dlopen_self_static
  25400. # Commands to strip libraries.
  25401. old_striplib=$lt_old_striplib
  25402. striplib=$lt_striplib
  25403. # The linker used to build libraries.
  25404. LD=$lt_LD
  25405. # How to create reloadable object files.
  25406. reload_flag=$lt_reload_flag
  25407. reload_cmds=$lt_reload_cmds
  25408. # Commands used to build an old-style archive.
  25409. old_archive_cmds=$lt_old_archive_cmds
  25410. # A language specific compiler.
  25411. CC=$lt_compiler
  25412. # Is the compiler the GNU compiler?
  25413. with_gcc=$GCC
  25414. # Compiler flag to turn off builtin functions.
  25415. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25416. # Additional compiler flags for building library objects.
  25417. pic_flag=$lt_lt_prog_compiler_pic
  25418. # How to pass a linker flag through the compiler.
  25419. wl=$lt_lt_prog_compiler_wl
  25420. # Compiler flag to prevent dynamic linking.
  25421. link_static_flag=$lt_lt_prog_compiler_static
  25422. # Does compiler simultaneously support -c and -o options?
  25423. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25424. # Whether or not to add -lc for building shared libraries.
  25425. build_libtool_need_lc=$archive_cmds_need_lc
  25426. # Whether or not to disallow shared libs when runtime libs are static.
  25427. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25428. # Compiler flag to allow reflexive dlopens.
  25429. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25430. # Compiler flag to generate shared objects directly from archives.
  25431. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25432. # Whether the compiler copes with passing no objects directly.
  25433. compiler_needs_object=$lt_compiler_needs_object
  25434. # Create an old-style archive from a shared archive.
  25435. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25436. # Create a temporary old-style archive to link instead of a shared archive.
  25437. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25438. # Commands used to build a shared archive.
  25439. archive_cmds=$lt_archive_cmds
  25440. archive_expsym_cmds=$lt_archive_expsym_cmds
  25441. # Commands used to build a loadable module if different from building
  25442. # a shared archive.
  25443. module_cmds=$lt_module_cmds
  25444. module_expsym_cmds=$lt_module_expsym_cmds
  25445. # Whether we are building with GNU ld or not.
  25446. with_gnu_ld=$lt_with_gnu_ld
  25447. # Flag that allows shared libraries with undefined symbols to be built.
  25448. allow_undefined_flag=$lt_allow_undefined_flag
  25449. # Flag that enforces no undefined symbols.
  25450. no_undefined_flag=$lt_no_undefined_flag
  25451. # Flag to hardcode \$libdir into a binary during linking.
  25452. # This must work even if \$libdir does not exist
  25453. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25454. # Whether we need a single "-rpath" flag with a separated argument.
  25455. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25456. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  25457. # DIR into the resulting binary.
  25458. hardcode_direct=$hardcode_direct
  25459. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  25460. # DIR into the resulting binary and the resulting library dependency is
  25461. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  25462. # library is relocated.
  25463. hardcode_direct_absolute=$hardcode_direct_absolute
  25464. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25465. # into the resulting binary.
  25466. hardcode_minus_L=$hardcode_minus_L
  25467. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25468. # into the resulting binary.
  25469. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25470. # Set to "yes" if building a shared library automatically hardcodes DIR
  25471. # into the library and all subsequent libraries and executables linked
  25472. # against it.
  25473. hardcode_automatic=$hardcode_automatic
  25474. # Set to yes if linker adds runtime paths of dependent libraries
  25475. # to runtime path list.
  25476. inherit_rpath=$inherit_rpath
  25477. # Whether libtool must link a program against all its dependency libraries.
  25478. link_all_deplibs=$link_all_deplibs
  25479. # Set to "yes" if exported symbols are required.
  25480. always_export_symbols=$always_export_symbols
  25481. # The commands to list exported symbols.
  25482. export_symbols_cmds=$lt_export_symbols_cmds
  25483. # Symbols that should not be listed in the preloaded symbols.
  25484. exclude_expsyms=$lt_exclude_expsyms
  25485. # Symbols that must always be exported.
  25486. include_expsyms=$lt_include_expsyms
  25487. # Commands necessary for linking programs (against libraries) with templates.
  25488. prelink_cmds=$lt_prelink_cmds
  25489. # Commands necessary for finishing linking programs.
  25490. postlink_cmds=$lt_postlink_cmds
  25491. # Specify filename containing input files.
  25492. file_list_spec=$lt_file_list_spec
  25493. # How to hardcode a shared library path into an executable.
  25494. hardcode_action=$hardcode_action
  25495. # ### END LIBTOOL CONFIG
  25496. _LT_EOF
  25497. case $host_os in
  25498. aix3*)
  25499. cat <<\_LT_EOF >> "$cfgfile"
  25500. # AIX sometimes has problems with the GCC collect2 program. For some
  25501. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25502. # vanish in a puff of smoke.
  25503. if test "X${COLLECT_NAMES+set}" != Xset; then
  25504. COLLECT_NAMES=
  25505. export COLLECT_NAMES
  25506. fi
  25507. _LT_EOF
  25508. ;;
  25509. esac
  25510. ltmain="$ac_aux_dir/ltmain.sh"
  25511. # We use sed instead of cat because bash on DJGPP gets confused if
  25512. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25513. # text mode, it properly converts lines to CR/LF. This bash problem
  25514. # is reportedly fixed, but why not run on old versions too?
  25515. sed '$q' "$ltmain" >> "$cfgfile" \
  25516. || (rm -f "$cfgfile"; exit 1)
  25517. if test x"$xsi_shell" = xyes; then
  25518. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  25519. func_dirname ()\
  25520. {\
  25521. \ case ${1} in\
  25522. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  25523. \ * ) func_dirname_result="${3}" ;;\
  25524. \ esac\
  25525. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  25526. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25527. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25528. test 0 -eq $? || _lt_function_replace_fail=:
  25529. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  25530. func_basename ()\
  25531. {\
  25532. \ func_basename_result="${1##*/}"\
  25533. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  25534. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25535. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25536. test 0 -eq $? || _lt_function_replace_fail=:
  25537. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  25538. func_dirname_and_basename ()\
  25539. {\
  25540. \ case ${1} in\
  25541. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  25542. \ * ) func_dirname_result="${3}" ;;\
  25543. \ esac\
  25544. \ func_basename_result="${1##*/}"\
  25545. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  25546. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25547. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25548. test 0 -eq $? || _lt_function_replace_fail=:
  25549. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  25550. func_stripname ()\
  25551. {\
  25552. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  25553. \ # positional parameters, so assign one to ordinary parameter first.\
  25554. \ func_stripname_result=${3}\
  25555. \ func_stripname_result=${func_stripname_result#"${1}"}\
  25556. \ func_stripname_result=${func_stripname_result%"${2}"}\
  25557. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  25558. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25559. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25560. test 0 -eq $? || _lt_function_replace_fail=:
  25561. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  25562. func_split_long_opt ()\
  25563. {\
  25564. \ func_split_long_opt_name=${1%%=*}\
  25565. \ func_split_long_opt_arg=${1#*=}\
  25566. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  25567. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25568. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25569. test 0 -eq $? || _lt_function_replace_fail=:
  25570. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  25571. func_split_short_opt ()\
  25572. {\
  25573. \ func_split_short_opt_arg=${1#??}\
  25574. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  25575. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  25576. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25577. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25578. test 0 -eq $? || _lt_function_replace_fail=:
  25579. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  25580. func_lo2o ()\
  25581. {\
  25582. \ case ${1} in\
  25583. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  25584. \ *) func_lo2o_result=${1} ;;\
  25585. \ esac\
  25586. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  25587. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25588. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25589. test 0 -eq $? || _lt_function_replace_fail=:
  25590. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  25591. func_xform ()\
  25592. {\
  25593. func_xform_result=${1%.*}.lo\
  25594. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  25595. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25596. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25597. test 0 -eq $? || _lt_function_replace_fail=:
  25598. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  25599. func_arith ()\
  25600. {\
  25601. func_arith_result=$(( $* ))\
  25602. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  25603. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25604. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25605. test 0 -eq $? || _lt_function_replace_fail=:
  25606. sed -e '/^func_len ()$/,/^} # func_len /c\
  25607. func_len ()\
  25608. {\
  25609. func_len_result=${#1}\
  25610. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  25611. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25612. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25613. test 0 -eq $? || _lt_function_replace_fail=:
  25614. fi
  25615. if test x"$lt_shell_append" = xyes; then
  25616. sed -e '/^func_append ()$/,/^} # func_append /c\
  25617. func_append ()\
  25618. {\
  25619. eval "${1}+=\\${2}"\
  25620. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  25621. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25622. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25623. test 0 -eq $? || _lt_function_replace_fail=:
  25624. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  25625. func_append_quoted ()\
  25626. {\
  25627. \ func_quote_for_eval "${2}"\
  25628. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  25629. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  25630. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25631. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25632. test 0 -eq $? || _lt_function_replace_fail=:
  25633. # Save a `func_append' function call where possible by direct use of '+='
  25634. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  25635. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25636. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25637. test 0 -eq $? || _lt_function_replace_fail=:
  25638. else
  25639. # Save a `func_append' function call even when '+=' is not available
  25640. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  25641. && mv -f "$cfgfile.tmp" "$cfgfile" \
  25642. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25643. test 0 -eq $? || _lt_function_replace_fail=:
  25644. fi
  25645. if test x"$_lt_function_replace_fail" = x":"; then
  25646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  25647. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  25648. fi
  25649. mv -f "$cfgfile" "$ofile" ||
  25650. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25651. chmod +x "$ofile"
  25652. ;;
  25653. "default":C)
  25654. # Commands run at the end of config.status:
  25655. for i in $APR_SAVE_HEADERS; do
  25656. if cmp -s $i $i.save 2>/dev/null; then
  25657. mv $i.save $i
  25658. { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
  25659. $as_echo "$as_me: $i is unchanged" >&6;}
  25660. fi
  25661. rm -f $i.save
  25662. done
  25663. chmod +x apr-$APR_MAJOR_VERSION-config
  25664. ;;
  25665. esac
  25666. done # for ac_tag
  25667. as_fn_exit 0
  25668. _ACEOF
  25669. ac_clean_files=$ac_clean_files_save
  25670. test $ac_write_fail = 0 ||
  25671. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25672. # configure is writing to config.log, and then calls config.status.
  25673. # config.status does its own redirection, appending to config.log.
  25674. # Unfortunately, on DOS this fails, as config.log is still kept open
  25675. # by configure, so config.status won't be able to write to it; its
  25676. # output is simply discarded. So we exec the FD to /dev/null,
  25677. # effectively closing config.log, so it can be properly (re)opened and
  25678. # appended to by config.status. When coming back to configure, we
  25679. # need to make the FD available again.
  25680. if test "$no_create" != yes; then
  25681. ac_cs_success=:
  25682. ac_config_status_args=
  25683. test "$silent" = yes &&
  25684. ac_config_status_args="$ac_config_status_args --quiet"
  25685. exec 5>/dev/null
  25686. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25687. exec 5>>config.log
  25688. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25689. # would make configure fail if this is the last instruction.
  25690. $ac_cs_success || as_fn_exit 1
  25691. fi
  25692. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25694. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25695. fi